Non-conversational
AI-Powered Code Assistant

Just add shorthand AI commands and watch your code evolve.

main.js
function calculateTotal(items) {
//ai wtf
// Explain this confusing code
}

11 Smart Commands

Shorthand AI comments for every coding task

Language Agnostic

Works with JavaScript, Python, Java, Go, Rust & more

Pattern Discovery

Automatic codebase analysis and architectural insights

11AI Commands
7+Languages Supported
Patterns Discovered

Powerful AI Commands at Your Fingertips

Transform your coding workflow with intelligent shorthand commands. Just add AI comments and watch your code evolve instantly.

Before

function mysterious(x) {
  //ai wtf
  return x.reduce((a,b,i) => i%2 ? a+b : a-b, 0);
}

After

// This function calculates the alternating sum of array elements
// For each element at even index (0,2,4...), it subtracts from total
// For each element at odd index (1,3,5...), it adds to total
// Example: [1,2,3,4] = 1-2+3-4 = -2

Language Agnostic Support

JavaScript
TypeScript
Python
Java
Go
Rust
C#

11 Smart Commands

From 'wtf' to 'test', each command is designed for specific development tasks. Quick, intuitive, and powerful.

Pattern Discovery

Automatic codebase analysis generates .pattern.yaml files with architectural insights and naming conventions.

Interactive Progress

Real-time notifications with cancellation support. Track your AI operations and maintain control over the process.

How Saelind Works

From AI comments to transformed code in seconds. Experience the power of strategic and tactical AI assistance.

Add AI Comment

Simply add an AI comment with your desired command and save the file

example.js
function getUserData(id) {
  //ai doc
  return fetch(`/api/users/${id}`)
    .then(res => res.json());
}

Complete Command Reference

//ai wtf

Explain confusing code

//ai doc

Generate documentation

//ai c

Add comments

//ai fix

Fix bugs

//ai refactor

Improve structure

//ai type

Add type annotations

//ai test

Generate tests

//ai err

Add error handling

//ai sniff

Code quality check

//ai +

Add feature

//ai -

Remove code

Documentation

Complete reference for all Saelind commands and features. Master AI-powered code assistance with these comprehensive guides.

//ai wtf

analysis

Explains confusing or complex code

Usage:

//ai wtf [optional description]

Examples:

Basic usage

const result = arr.reduce((a,b,i) => i%2?a+b:a-b, 0);
//ai wtf

With description

//ai wtf - What does this regex pattern match?
const pattern = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$/;

//ai doc

documentation

Generates comprehensive documentation

Usage:

//ai doc [optional format]

Examples:

JSDoc generation

function calculateTax(amount, rate) {
  //ai doc
  return amount * rate;
}

TypeScript documentation

//ai doc - Add TypeScript documentation
function processUser(user) {
  return user.name.toUpperCase();
}

//ai c

documentation

Adds inline comments to code

Usage:

//ai c [optional style]

Examples:

Add comments

function fibonacci(n) {
  //ai c
  if (n <= 1) return n;
  return fibonacci(n-1) + fibonacci(n-2);
}

//ai fix

debugging

Fixes bugs and handles edge cases

Usage:

//ai fix [optional description]

Examples:

Basic bug fix

function divide(a, b) {
  //ai fix
  return a / b;
}

Specific issue fix

//ai fix - Handle null values
function getUserName(user) {
  return user.name;
}

//ai refactor

improvement

Improves code structure and readability

Usage:

//ai refactor [optional approach]

Examples:

Code refactoring

function processUsers(users) {
  //ai refactor
  var result = [];
  for (var i = 0; i < users.length; i++) {
    if (users[i].active) {
      result.push(users[i]);
    }
  }
  return result;
}

//ai type

types

Adds type annotations (TypeScript)

Usage:

//ai type [optional type system]

Examples:

TypeScript types

function mergeObjects(obj1, obj2) {
  //ai type
  return { ...obj1, ...obj2 };
}

//ai test

testing

Generates unit tests

Usage:

//ai test [optional framework]

Examples:

Generate tests

function add(a, b) {
  //ai test
  return a + b;
}

Jest specific tests

//ai test - Create Jest tests
function validateEmail(email) {
  return /\S+@\S+\.\S+/.test(email);
}

//ai err

debugging

Adds error handling

Usage:

//ai err [optional strategy]

Examples:

Add error handling

async function fetchData(url) {
  //ai err
  const response = await fetch(url);
  return response.json();
}

//ai sniff

analysis

Performs code quality analysis

Usage:

//ai sniff [optional focus]

Examples:

Code quality check

function processData(data) {
  //ai sniff
  // Complex function with multiple responsibilities
  const filtered = data.filter(item => item.active);
  const mapped = filtered.map(item => ({ ...item, processed: true }));
  return mapped.sort((a, b) => a.name.localeCompare(b.name));
}

//ai +

modification

Adds new features or functionality

Usage:

//ai + [feature description]

Examples:

Add feature

function Calculator() {
  //ai + Add multiplication method
  this.add = (a, b) => a + b;
  this.subtract = (a, b) => a - b;
}

//ai -

modification

Removes unnecessary code

Usage:

//ai - [removal description]

Examples:

Remove code

function processUser(user) {
  //ai - Remove debugging code
  console.log('Processing user:', user);
  console.log('User details:', user.name, user.email);
  return user.name.toUpperCase();
}

Get Started in Minutes

Install Saelind and start transforming your code with AI-powered assistance. No complex setup required.

1

Install Extension

Get Saelind from the VS Code Marketplace

Install from Marketplace
# Or install via command line
code --install-extension saelind.saelind
2

Configure API Key

Set up your Claude API key in VS Code settings

{
  "saelind.apiKey": "your-claude-api-key-here",
  "saelind.model": "claude-3-haiku-20240307"
}
3

Start Coding

Add AI comments to your code and watch the magic happen

function calculateSum(numbers) {
  //ai doc
  return numbers.reduce((sum, num) => sum + num, 0);
}

Quick Start Guide

Common Commands to Get You Started

//ai wtf

Explain confusing code

//ai wtf - What does this regex do?

//ai doc

Generate documentation

//ai doc - Add JSDoc comments

//ai fix

Fix bugs automatically

//ai fix - Handle edge cases

//ai test

Generate unit tests

//ai test - Create comprehensive tests

Requirements

System Requirements

  • VS Code 1.70.0 or higher
  • Node.js 14.0.0 or higher
  • Internet connection

API Requirements

  • Claude API key
  • Anthropic account
  • API credits/usage limits

Need a Claude API Key?

Get your API key from Anthropic to start using Saelind

Get API Key