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
🔍 Comprehensive Analysis
- Security vulnerability detection
- Performance optimization suggestions
- Code maintainability assessment
- Testing coverage analysis
- Architectural consistency checks
- API-specific code review with smart classification
🎯 Smart Classification System
- Issues: Code defects requiring immediate developer fixes
- Performance Recommendations: Infrastructure optimizations requiring team coordination
- Modernization Opportunities: Legacy code improvement suggestions
✨ 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 API - Deep analysis of specific API endpoints with smart classification
AI PR Reviewer: Review Pull Request - Review a specific PR (Upcoming)
AI PR Reviewer: Review PR from URL - Review PR from GitHub/GitLab URL (Upcoming)
AI PR Reviewer: Configure AI Providers - Set up API keys and preferences
AI PR Reviewer: View Saved Reports - Browse and open previously generated review reports
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
Report Management
View Saved Reports
Access all your previously generated review reports through the View Saved Reports command:
- Quick Access: Browse all saved PR and API review reports in one place
- Smart Sorting: Reports are automatically sorted by modification date (newest first)
- Report Types: Clearly labeled as "PR Review" or "API Review" for easy identification
- Folder Access: Option to open the reports folder directly in your file explorer
- Persistent Storage: Reports are saved in
.ai-pr-reviewer-reports/ directory in your workspace
How to Use:
- Open Command Palette (
Cmd/Ctrl + Shift + P )
- Run "AI PR Reviewer: View Saved Reports"
- Select a report from the list or choose "Open Reports Folder"
- Reports open in your default browser with full interactive features
Report Features:
- Professional HTML format with VSCode theming
- Expandable sections for detailed findings
- Copy-to-clipboard functionality for code suggestions
- Before/after code comparisons
- Comprehensive analysis results with actionable recommendations
Requirements
- Visual Studio Code 1.74.0 or higher
- Git repository with changes to review
- AI provider API keys Gemini and Claude API Key
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
| |