How aditya-g25/reviewpilot works
ReviewPilot AI is a Python-first code-review and test-generation platform. A reviewer submits a GitHub pull request or source file through the frontend; the backend ingests it, inspects Python code, triages findings with an SLM, selectively escalates findings to an LLM, generates pytest cases, validates them in a sandbox, and stores a human-review report. The UI also exposes findings, routing, test validation, history, repositories, analytics, benchmarks, and settings. The README documents the workflow; some backend wiring and frontend API behavior are unsampled, so those links are omitted or marked unverified.
Main entry points: hybrid_engine.py Review Orchestrator · App.tsx Review App · NewReviewPage.tsx New Review · CodeReviewResultsPage.tsx Review Results
Components 33
Submission & UI
- New Review
frontend/src/pages/NewReviewPage.tsx - Review App
frontend/src/App.tsx - API Client
frontend/src/services/api.ts - Review Results
frontend/src/pages/CodeReviewResultsPage.tsx - Overview
frontend/src/pages/OverviewPage.tsx - Repositories
frontend/src/pages/RepositoriesPage.tsx - Review History
frontend/src/pages/ReviewHistoryPage.tsx - Findings
frontend/src/pages/FindingsPage.tsx - Routing View
frontend/src/pages/RoutingVisualizationPage.tsx - Test Validation
frontend/src/pages/TestValidationPage.tsx - Benchmarks
frontend/src/pages/BenchmarkPage.tsx - Landing Page
frontend/src/pages/LandingPage.tsx - UI Primitives
frontend/src/components/ui/Primitives.tsx - Python Code View
frontend/src/components/ui/PythonCodeBlock.tsx
Review Analysis
- PR Ingestion
backend/modules/ingestion.py - GitHub Access
backend/modules/github_client.py - Review Orchestrator
backend/services/hybrid_engine.py - Static Analysis
backend/modules/static_analysis.py - AST Inspection
backend/modules/ast_parser.py - File Extraction
backend/modules/file_extractor.py - SLM Triage
backend/modules/slm_client.py - Escalation Routing
backend/modules/routing_engine.py - LLM Reasoning
backend/modules/llm_client.py
Tests & Reporting
- Pytest Generation
backend/modules/test_generator.py - Sandbox Validation
backend/modules/sandbox_runner.py - Report Generation
backend/modules/report_generator.py
Persistence & Contracts
- Backend API
backend/main.py - Review Contracts
backend/models/schemas.py - SQLite Store
backend/db/database.py - UI Contracts
frontend/src/types/reviewpilot.ts - Demo Records
frontend/src/data/demoData.ts
Other components
- Reviewer
- LLM Provider
Connections 36
- Reviewer → New Review: submits review
- New Review → API Client: fetches PR detail
frontend/src/pages/NewReviewPage.tsx - Review App → New Review: routes to
frontend/src/App.tsx - Review App → Overview: routes to
frontend/src/App.tsx - Review App → Repositories: routes to
frontend/src/App.tsx - Review App → Review History: routes to
frontend/src/App.tsx - Review App → Findings: routes to
frontend/src/App.tsx - Review App → Routing View: routes to
frontend/src/App.tsx - Review App → Test Validation: routes to
frontend/src/App.tsx - Review App → Benchmarks: routes to
frontend/src/App.tsx - Review App → Landing Page: routes to
frontend/src/App.tsx - Review App → API Client: saves settings
frontend/src/App.tsx - Review App → Demo Records: loads demo records
frontend/src/App.tsx - New Review → Review Orchestrator: submits analysis
- Backend API → Review Orchestrator: dispatches review
- Review Orchestrator → PR Ingestion: ingests request
backend/services/hybrid_engine.py - Review Orchestrator → Static Analysis: runs analyzers
backend/services/hybrid_engine.py - Review Orchestrator → AST Inspection: inspects syntax
backend/services/hybrid_engine.py - Review Orchestrator → File Extraction: extracts targets
backend/services/hybrid_engine.py - Review Orchestrator → SLM Triage: triages findings
backend/services/hybrid_engine.py - Review Orchestrator → Escalation Routing: routes findings
backend/services/hybrid_engine.py - Review Orchestrator → LLM Reasoning: escalates findings
backend/services/hybrid_engine.py - LLM Reasoning → LLM Provider: requests reasoning
backend/modules/llm_client.py - Review Orchestrator → Pytest Generation: generates tests
backend/services/hybrid_engine.py - Review Orchestrator → Sandbox Validation: validates tests
backend/services/hybrid_engine.py - Review Orchestrator → Report Generation: builds report
backend/services/hybrid_engine.py - Review Orchestrator → SQLite Store: writes review data
backend/services/hybrid_engine.py - GitHub Access → SQLite Store: stores auth
backend/modules/github_client.py - New Review → GitHub Access: requests PR files
- Review App → Review Results: shows report
frontend/src/App.tsx - Review Results → UI Primitives: renders controls
frontend/src/pages/CodeReviewResultsPage.tsx - Review Results → Python Code View: renders snippets
frontend/src/pages/CodeReviewResultsPage.tsx - Routing View → UI Primitives: renders controls
frontend/src/pages/RoutingVisualizationPage.tsx - New Review → UI Primitives: renders controls
frontend/src/pages/NewReviewPage.tsx - New Review → Python Code View: renders examples
frontend/src/pages/NewReviewPage.tsx - Review Orchestrator → Review Contracts: creates review models
backend/services/hybrid_engine.py