Saelind - Non-conversational AI Coding Assistant
Saelind is a free open-source LLM-powered assistant you don't have to talk to. Just use the shorthands, save file, and get the code updated in a few seconds. Undo the changes if you don't like the updates.
The tool itself is free, but you will need to obtain your own Anthropic API key.
Saelind does not store any of your data, everything goes directly to Claude.
✨ Features
Transform your code using simple AI comments that get processed automatically when you save files:
function calculateTotal() {
//ai wtf
return items.reduce((sum, item) => sum + item.price, 0);
}
🔍 Shorthand Commands
Use shorthand commands for common operations:
//ai wtf
- Add explanatory comments before functions/variables (max 3 lines) + refactoring suggestions
//ai doc
- Add comprehensive documentation with parameters, return types, and examples
//ai c
- Clean file by removing console statements, debug prints, and temporary code
//ai fix
- Fix obvious bugs and issues while maintaining functionality
//ai refactor
- Improve code structure, readability, and follow best practices
//ai type
- Add proper type annotations and type safety measures
//ai test
- Create unit tests with various test cases including edge cases
//ai err
- Add proper error handling with appropriate exception mechanisms
//ai sniff
- Add comments next to suboptimal code explaining issues and solutions
//ai -
- Remove the entity or code block that follows this comment
//ai +
- Add the logic described in the instruction that follows
🎯 Enhanced Shorthand with Custom Instructions
Combine shorthand commands with additional context:
//ai err handle network timeouts
//ai doc with examples and usage patterns
//ai refactor using modern async patterns
//ai sniff focus on performance issues
- Language Agnostic: Works with JavaScript, TypeScript, Python, Java, Go, Rust, C#, and more
- Context Aware: Uses your project's
.pattern.yaml
file for consistent code generation
📊 Pattern Discovery (optional)
Automatically analyze your codebase to discover:
- File Structure Patterns: Understand your project's organization
- Naming Conventions: Identify consistent naming patterns
- Architectural Decisions: Recognize design patterns and practices
- Technology Stack: Catalog frameworks, libraries, and tools
- Engineering Guidelines: Extract best practices from existing code
The extension generates a .pattern.yaml
file that provides context for all AI operations.
🚀 Getting Started
Setup
- Set your Claude API key: Open Command Palette (
Cmd+Shift+P
) → "Saelind: Set API Key"
- Generate project patterns (optional): Open the Saelind sidebar → Click "Find Patterns in Codebase"
- Start using AI comments: Add AI comments to your code and save files!
📝 Usage Examples
Documentation Generation
//ai doc
export function processPayment(amount: number, method: string) {
// Your code here
}
Code Cleanup
#ai c
print("Debug: processing user data...")
user_data = fetch_user_data()
print(f"User data: {user_data}")
Error Handling
//ai err
public String fetchUserData(int userId) {
return database.query("SELECT * FROM users WHERE id = " + userId);
}
Code Analysis
//ai sniff
fn process_data(x: Vec<Option<String>>) -> Vec<String> {
let mut result = Vec::new();
for i in 0..x.len() {
if x[i].is_some() {
result.push(x[i].clone().unwrap());
}
}
result
}
🏗️ Architecture
Extension Core
- VS Code Extension API: Native integration with VS Code
- Claude API: Powered by Anthropic's Claude AI
- File Processing: Automatic AI comment detection and processing
- Pattern Analysis: Codebase structure and convention analysis
Custom Instructions
//ai + validation for email format and password strength
function validateUser(user) {
return user.name && user.email;
}
📄 License
MIT License - see LICENSE file for details.