AI PR Reviewer
A comprehensive AI-powered pull request review extension for Visual Studio Code with dual-AI architecture.
Features
🤖 Dual-AI Architecture
- Gemini 2.5 Pro for architectural mind mapping
- Claude Sonnet 4 for detailed code review
- OpenAI GPT-o3 support
🔍 Comprehensive Analysis
- Security vulnerability detection
- Performance optimization suggestions
- Code maintainability assessment
- Testing coverage analysis
- Architectural consistency checks
✨ Enhanced UI
- Expandable sections for detailed findings
- Copy-to-clipboard functionality for suggested code
- Professional VSCode-themed interface
- Before/after code comparisons
🎯 Smart Context Management
- Intelligent code chunking
- Dependency analysis
- Focus area prioritization
- Token-optimized processing
Quick Start
- Install the extension from the VSCode Marketplace
- Configure API keys:
- Open VSCode Settings (
Cmd/Ctrl + , )
- Search for "AI PR Reviewer"
- Add your API keys:
- Claude API Key (required for code review)
- Gemini API Key (required for mind mapping)
- Review your code:
- Open Command Palette (
Cmd/Ctrl + Shift + P )
- Run "AI PR Reviewer: Review Current Branch Changes"
Configuration
API Keys
Settings
- Review Depth: Surface, Moderate, or Deep analysis
- Focus Areas: Security, Performance, Maintainability, Testing, Architecture
- AI Providers: Choose your preferred AI models
- Context Window: Adjust token limits for analysis
Commands
AI PR Reviewer: Review Current Branch Changes - Analyze changes in current branch
AI PR Reviewer: Review Pull Request - Review a specific PR
AI PR Reviewer: Review PR from URL - Review PR from GitHub/GitLab URL
AI PR Reviewer: Configure AI Providers - Set up API keys and preferences
How It Works
- Code Analysis: Extracts and analyzes code changes from git diff
- Mind Mapping: Creates architectural overview using Gemini AI
- Context Synthesis: Combines architectural insights with code changes
- AI Review: Performs comprehensive review using Claude AI
- Enhanced Display: Presents findings with actionable suggestions
Requirements
- Visual Studio Code 1.74.0 or higher
- Git repository with changes to review
- At least one AI provider API key (Claude recommended)
Privacy & Security
- API keys are stored securely in VSCode settings
- Code is sent only to configured AI providers
- No data is stored or transmitted to third parties
- All processing respects your privacy settings
Support
License
MIT License - see LICENSE file for details.
Made with ❤️ for developers who care about code quality
| |