Simple Ai Assistant
Enterprise-grade AI coding agent for VS Code.
Features
- Chat Interface - Conversational AI assistant integrated into VS Code sidebar
- Code Understanding - Explain, refactor, review, and generate tests for your code
- Semantic Search - Search your codebase by intent, not just keywords
- Multi-Model - Supports OpenAI GPT-4o, Anthropic Claude, and custom endpoints
- Context-Aware - Automatically collects workspace context for informed responses
- Plan and Execute - Complex tasks are decomposed into actionable step-by-step plans
- Safety First - Built-in safety guard for dangerous operations
Quick Start
- Install the extension from VS Code Marketplace
- Open the Agent panel from the Activity Bar (left side)
- Configure your API key: Cmd+Shift+P then "Agent: Open Settings"
- Start coding! Select code and right-click then Agent menu
Commands
- Agent: Start New Session - Start a fresh chat session
- Agent: Explain Selected Code - Explain the selected code
- Agent: Refactor Selected Code - Refactor the selected code
- Agent: Generate Tests - Generate unit tests for selected code
- Agent: Review Code - Review the current file
- Agent: Fix Issue - Find and fix issues in code
- Agent: Semantic Search - Search your codebase
- Agent: Open Settings - Configure the extension
Development
npm install
npm run compile
npm run bundle-webview
Press F5 to launch Extension Development Host
Architecture
src/
extension.ts Extension entry point
types.ts Shared type definitions
panel/
AgentPanelProvider.ts WebView panel provider
webview/ React frontend
agent/
AgentEngine.ts Core agent engine
LLMOrchestrator.ts LLM integration
ToolSystem.ts Tool registry
ContextManager.ts Context collection
PlanningEngine.ts Task decomposition
SafetyGuard.ts Safety checks
code/
CodeIndexer.ts Code indexing
test/
extension.test.ts Tests
| |