🚀 AI Code Assure - Advanced AI Coding Assistant for VS Code
AI Code Assure is a comprehensive, production-ready VS Code extension that brings enterprise-grade AI capabilities to your development workflow. With 11 powerful features and 31 commands, it transforms VS Code into an intelligent coding environment.

✨ Features Overview
🎯 Phase 1: Foundation Features
1. Code Refactoring
AI-powered code improvements for better readability and maintainability.
- Modern syntax updates
- Design pattern suggestions
- Complexity reduction
- Best practices enforcement
2. Bug Detection & Fixes
Comprehensive bug analysis with security focus.
- Common bug detection (null refs, off-by-one, type issues)
- Security vulnerability scanning (SQL injection, XSS, CSRF)
- Logic error identification
- Resource leak detection
- Severity ratings (Critical/High/Medium/Low)
3. Test Generation
Automatic unit test creation for multiple frameworks.
- Framework detection (Jest, pytest, JUnit, xUnit, Go testing)
- Complete test suite generation
- Edge case coverage
- Mock setup included
- 100% code coverage goal
4. Code Review
Professional code review with actionable feedback.
- Quality assessment (0-100 score)
- Performance analysis
- Security review
- Best practices validation
- Maintainability metrics
5. Documentation Generation
Auto-generate professional documentation.
- JSDoc for JavaScript/TypeScript
- Python docstrings (Google/NumPy style)
- Javadoc for Java
- XML docs for C#
- Includes examples and edge cases
6. Code Optimization
Performance improvements and efficiency gains.
- Algorithmic optimization (Big O analysis)
- Memory usage reduction
- I/O optimization
- Concurrency improvements
- Before/after complexity comparison
🗂️ Phase 2: Context Management
7. File Indexing System
Real-time workspace intelligence.
- Auto-indexes all code files
- Tracks functions, classes, imports, exports
- File relationship mapping
- Live updates on file changes
- Multi-language support (TS, JS, Python, Java, Go, Rust, C#, PHP)
8. Context Builder
Smart context for AI operations.
- Related file detection
- Dependency analysis
- Symbol tracking across files
- Relevance scoring
- Smart prompt enhancement
9. Multi-File Operations
Project-wide code transformations.
- Cross-file symbol renaming
- Multi-file refactoring
- Pattern-based search & fix
- Feature planning across files
- Dependency tracking
🚀 Phase 3: Advanced Features
10. Terminal Integration
AI-powered command-line assistance.
- Command suggestions for any task
- Command explanation and breakdown
- Error debugging with fixes
- Shell script generation
- Safety checks (risk assessment)
- Command history
11. Semantic Code Search
Natural language code discovery.
- "Find all authentication functions"
- Similar code pattern detection
- Codebase Q&A system
- Usage example finder
- Relevance ranking
📦 Installation
From VS Code Marketplace (Coming Soon)
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X or Cmd+Shift+X)
- Search for "AI Code Assure"
- Click Install
From VSIX File
code --install-extension ai-code-assure-1.0.0.vsix
⚙️ Setup
Option 1: OpenAI (Cloud-based)
- Get an API key from OpenAI Platform
- Open VS Code Settings (
Ctrl+,)
- Search for "AI Code Assure"
- Set Provider to
openai
- Enter your API Key
- Choose Model (e.g.,
gpt-3.5-turbo, gpt-4)
Option 2: Ollama (Local/Private)
- Install Ollama
- Pull a model:
ollama pull codellama
- Start Ollama server:
ollama serve
- In VS Code Settings:
- Set Provider to
ollama
- Set Ollama URL (default:
http://localhost:11434)
- Choose Ollama Model (e.g.,
codellama, llama2)
🎯 Usage Guide
Single-File Operations
Code Refactoring
- Select code to refactor
- Right-click → "AI Code Assure: Refactor Code"
- View suggestions in chat
- Apply changes
Find and Fix Bugs
- Select code to analyze
- Right-click → "AI Code Assure: Find and Fix Bugs"
- Review severity-rated issues
- See fixes with explanations
Generate Unit Tests
- Select function/class
- Right-click → "AI Code Assure: Generate Unit Tests"
- Choose to:
- Create test file
- Copy to clipboard
- View only
Code Review
- Select code
- Right-click → "AI Code Assure: Review Code"
- Get comprehensive analysis with score
Generate Documentation
- Select code
- Right-click → "AI Code Assure: Generate Documentation"
- Choose to apply, copy, or view
Optimize Code
- Select code
- Right-click → "AI Code Assure: Optimize Code"
- Review performance improvements
Multi-File Operations
Rename Symbol Across Files
- Command Palette (
Ctrl+Shift+P)
- "AI Code Assure: Rename Symbol Across Files"
- Enter old and new names
- Confirm changes
Multi-File Refactor
- Command Palette
- "AI Code Assure: Multi-File Refactor"
- Describe refactoring goal
- AI analyzes related files
Find and Fix Pattern
- Command Palette
- "AI Code Assure: Find and Fix Pattern"
- Enter regex pattern
- Get AI-suggested fixes
Plan Feature Implementation
- Command Palette
- "AI Code Assure: Plan Feature Implementation"
- Describe feature and areas
- Get implementation roadmap
Terminal Commands
Suggest Command
- Command Palette
- "AI Code Assure: Suggest Terminal Command"
- Describe what you want to do
- Choose from AI suggestions
Explain Command
- Command Palette
- "AI Code Assure: Explain Command"
- Enter command to understand
- Get detailed breakdown
Debug Command Error
- Command Palette
- "AI Code Assure: Debug Command Error"
- Paste command and error
- Get fixes and solutions
Generate Shell Script
- Command Palette
- "AI Code Assure: Generate Shell Script"
- Describe task
- Save or copy script
Semantic Search
Natural Language Search
- Command Palette
- "AI Code Assure: Semantic Code Search"
- Ask: "Find all API endpoints"
- Navigate to results
Find Similar Code
- Select code snippet
- Right-click → "AI Code Assure: Find Similar Code"
- See similar patterns
Ask About Code
- Command Palette
- "AI Code Assure: Ask About Code"
- Ask: "How does authentication work?"
- Get architectural insights
Find Usage Examples
- Command Palette
- "AI Code Assure: Find Usage Examples"
- Enter function/class name
- See all usages
Context & Analysis
Show File Context
- Command: "AI Code Assure: Show File Context"
- See current file context with related files
Show Symbol Context
- Command: "AI Code Assure: Show Symbol Context"
- Get context for symbol at cursor
Find Dependencies
- Command: "AI Code Assure: Find Dependencies"
- See what file imports and what imports it
Analyze Project Structure
- Command: "AI Code Assure: Analyze Project Structure"
- Get project overview and statistics
Show Index Statistics
- Command: "AI Code Assure: Show Index Statistics"
- View workspace indexing stats
🎨 All Available Commands (31)
Code Quality (6)
aiCodeAssure.explainCode - Explain Selected Code
aiCodeAssure.refactorCode - Refactor Code
aiCodeAssure.findBugs - Find and Fix Bugs
aiCodeAssure.generateTests - Generate Unit Tests
aiCodeAssure.reviewCode - Review Code
aiCodeAssure.generateDocumentation - Generate Documentation
aiCodeAssure.optimizeCode - Optimize Code
Multi-File (5)
aiCodeAssure.renameSymbol - Rename Symbol Across Files
aiCodeAssure.multiFileRefactor - Multi-File Refactor
aiCodeAssure.findAndFixPattern - Find and Fix Pattern
aiCodeAssure.planFeature - Plan Feature Implementation
aiCodeAssure.analyzeProjectStructure - Analyze Project Structure
Terminal (5)
aiCodeAssure.suggestCommand - Suggest Terminal Command
aiCodeAssure.explainCommand - Explain Command
aiCodeAssure.debugCommandError - Debug Command Error
aiCodeAssure.generateScript - Generate Shell Script
aiCodeAssure.showCommandHistory - Show Command History
Search (4)
aiCodeAssure.semanticSearch - Semantic Code Search
aiCodeAssure.findSimilarCode - Find Similar Code
aiCodeAssure.askAboutCode - Ask About Code
aiCodeAssure.findUsageExamples - Find Usage Examples
Context (5)
aiCodeAssure.showFileContext - Show File Context
aiCodeAssure.showSymbolContext - Show Symbol Context
aiCodeAssure.findDependencies - Find Dependencies
aiCodeAssure.showIndexStats - Show Index Statistics
aiCodeAssure.reindexWorkspace - Re-index Workspace
Core (6)
aiCodeAssure.openChat - Open Chat
aiCodeAssure.generateCode - Generate Code from Comments
aiCodeAssure.completeCode - Complete Current Code
⚙️ Configuration Options
AI Provider Settings
aiCodeAssure.provider - Choose openai or ollama (default: openai)
aiCodeAssure.apiKey - OpenAI API key (required for OpenAI)
aiCodeAssure.model - Model name (default: gpt-3.5-turbo)
aiCodeAssure.openaiBaseUrl - API base URL (default: https://api.openai.com/v1)
Ollama Settings
aiCodeAssure.ollamaUrl - Ollama server URL (default: http://localhost:11434)
aiCodeAssure.ollamaModel - Ollama model (default: codellama)
aiCodeAssure.ollamaTimeoutMs - Request timeout (default: 60000)
Feature Settings
aiCodeAssure.enableInlineCompletion - Enable inline code completion (default: true)
aiCodeAssure.maxTokens - Maximum tokens for responses (default: 10048)
aiCodeAssure.contextSize - Max context characters (default: 20000)
aiCodeAssure.systemPrompt - Custom system prompt (optional)
Logging
aiCodeAssure.logPath - Log file location (default: .ai-code-assure/logs/)
🔒 Security & Privacy
OpenAI Mode
- Code snippets sent to OpenAI API for processing
- Encrypted HTTPS communication
- No code stored by extension
- Review OpenAI Privacy Policy
Ollama Mode (Recommended for Privacy)
- All processing happens locally
- No external API calls
- Complete data privacy
- No internet required after model download
Safety Features
- Command risk assessment (Low/Medium/High)
- Confirmation dialogs for dangerous operations
- No automatic file deletion
- Backup recommendations before major changes
🎓 Supported Languages
Primary Support:
- TypeScript / JavaScript / React / Vue
- Python
- Java
- Go
- Rust
- C# / .NET
- PHP
- Ruby
- C / C++
Additional Support:
- Most languages via AI understanding
- Generic function/class detection
- Universal refactoring capabilities
🏗️ Architecture
AI Code Assure Extension
├── Foundation Features (Phase 1)
│ ├── Code Refactoring
│ ├── Bug Detection
│ ├── Test Generation
│ ├── Code Review
│ ├── Documentation
│ └── Optimization
├── Context Management (Phase 2)
│ ├── File Indexer (Real-time)
│ ├── Context Builder (Smart prompts)
│ └── Multi-File Operations
└── Advanced Features (Phase 3)
├── Terminal Integration
└── Semantic Search
- File Indexing: Sub-second for projects < 1000 files
- Semantic Search: 2-5 seconds typical response
- Code Operations: 3-10 seconds depending on complexity
- Memory Usage: ~50MB typical
- Real-time Updates: File watcher for instant index updates
🐛 Troubleshooting
- Check Settings → AI Code Assure → API Key
- Ensure no extra spaces
- Verify key is valid on OpenAI platform
"Ollama connection failed"
- Ensure Ollama is running:
ollama serve
- Check URL in settings (default:
http://localhost:11434)
- Verify model is pulled:
ollama list
Commands not appearing
- Reload VS Code window
- Check extension is activated
- Look for errors in Developer Console
Indexing slow or incomplete
- Use "Re-index Workspace" command
- Check excluded folders in .gitignore
- Reduce workspace size for large projects
🤝 Contributing
Contributions welcome! Please read our contributing guidelines.
Development Setup
git clone https://github.com/vbrocket/vscode-ai.git
cd vscode-ai
npm install
npm run compile
Press F5 to launch Extension Development Host.
📝 Changelog
Version 1.0.0 (Current)
- ✅ 11 major features implemented
- ✅ 31 commands available
- ✅ Multi-file operations
- ✅ Terminal integration
- ✅ Semantic search
- ✅ Full OpenAI and Ollama support
📄 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
- Built with VS Code Extension API
- Powered by OpenAI GPT models or local Ollama
- Inspired by modern AI coding assistants
📧 Support
🌟 Show Your Support
If you find AI Code Assure helpful, please:
- ⭐ Star the repository
- 📢 Share with fellow developers
- 📝 Write a review
- 🐛 Report bugs
- 💡 Suggest features
Made with ❤️ by developers, for developers