AI Code Reviewer Buddy 🤖👥
Your intelligent coding companion! An AI-powered VS Code extension that provides comprehensive code analysis, review, and refactoring suggestions using Google's Gemini AI.

✨ Features
- 🔍 AI-Powered Code Review: Get intelligent feedback on your code quality, potential bugs, and improvements
- � Real-time Analytics Dashboard: Track your coding metrics, issues found, and fixes applied
- 🔄 Smart Refactoring Suggestions: AI-generated refactoring recommendations with one-click application
- 📝 Automatic Documentation Generation: Generate comprehensive documentation for your functions and classes
- ⚡ Real-time Analysis: Get instant feedback as you type
- 🎯 Multi-language Support: Works with JavaScript, TypeScript, Python, Java, C#, and more
- � Detailed Analytics: Track your progress with comprehensive metrics and insights
- 🚨 Security Detection: Find hardcoded passwords, vulnerabilities, and security issues
- ⚡ Performance Analysis: Identify bottlenecks and optimization opportunities
🚀 Quick Start
1. Setup
# Install dependencies
npm install
pip install -r backend/requirements.txt
# Configure your Google Gemini API key
# Either in VS Code settings or run command "Configure API Key"
2. Start Backend Server
# Option 1: Using npm script
npm run start-backend
# Option 2: Manual
cd backend
uvicorn api.server:app --reload
3. Run Extension
- Press
F5
in VS Code to launch Extension Development Host
- Or package and install:
npm run package
🎯 Commands
Command |
Description |
Shortcut |
🔍 Review Code with AI |
Full AI analysis |
Ctrl+Shift+P |
🔧 Suggest AI Refactoring |
Smart code improvements |
Context menu |
📝 Generate Documentation |
Auto-generate docs |
Ctrl+Shift+P |
🧹 Clear AI Review Feedback |
Clear all diagnostics |
Ctrl+Shift+P |
📊 Show AI Dashboard |
View metrics and insights |
Ctrl+Shift+P |
⚙️ Configure API Key |
Set up Gemini API |
Ctrl+Shift+P |
📁 Project Structure
AI-Based-Code-Reviewer/
├── 📁 src/ # Frontend VS Code Extension
│ ├── 📁 core/ # Core extension logic
│ ├── 📁 commands/ # Command implementations
│ ├── 📁 providers/ # Language providers
│ ├── 📁 services/ # Business logic services
│ └── 📁 utils/ # Utility functions
├── 📁 backend/ # Python AI Backend
│ ├── 📁 api/ # FastAPI endpoints
│ ├── 📁 services/ # AI analysis services
│ └── 📁 utils/ # Backend utilities
├── 📁 test/ # Test files and fixtures
├── 📁 docs/ # Documentation
└── package.json # Extension manifest
⚙️ Configuration
Configure in VS Code settings (Ctrl+,
):
{
"ai-code-reviewer.apiKey": "your-gemini-api-key",
"ai-code-reviewer.serverURL": "http://localhost:8000",
"ai-code-reviewer.enableRealtimeAnalysis": true,
"ai-code-reviewer.realtimeAnalysisDelay": 3000
}
🛠️ Development
# Watch mode for TypeScript
npm run watch
# Run tests
npm test
# Package extension
npm run package
📊 Supported Languages
- C# (.cs)
- JavaScript (.js)
- TypeScript (.ts)
- Python (.py)
- Java (.java)
- C++ (.cpp)
- Go (.go)
- And more...
📄 License
MIT License - see LICENSE file for details.