Overview Version History Q & A Rating & Review
PRPilot Extension
AI-powered PR review assistant for VS Code.
Features
🤖 AI-powered code review with GPT-4
🎯 Multiple review focus areas (Clean Code, Security, Performance, Tests, Documentation)
📐 Custom code practices detection and enforcement
💬 GitHub PR integration
🎨 Beautiful sidebar UI
Development
# Install dependencies
pnpm install
# Run in development mode (watch)
pnpm dev
# Build for production
pnpm build
# Package extension
pnpm package
# Run tests
pnpm test
Structure
src/
├── extension.ts # Extension entry point
├── views/
│ └── SidebarProvider.ts # Webview provider
├── services/
│ ├── AuthService.ts # GitHub authentication
│ ├── ReviewService.ts # Review API calls
│ ├── PracticesService.ts # Pattern detection (TODO)
│ └── GitHubService.ts # GitHub API (TODO)
└── webview/
├── App.tsx # React app root
├── store.ts # Zustand state management
├── types.ts # TypeScript types
├── views/ # View components
├── components/ # Reusable components
└── styles/ # CSS styles
Architecture
The extension uses a sidebar webview powered by React for the UI. Communication between the extension host and webview happens via message passing.
Extension Host
Handles VS Code API interactions
Manages authentication via SecretStorage
Coordinates review operations
Webview (React)
Sidebar UI with multiple views (Auth, Main, Processing, Results, Settings)
State management with Zustand
VS Code theme integration
Requirements
VS Code 1.85.0 or higher
Node.js 20+
pnpm
License
MIT