ReviewPilot is an AI-powered code review agent that analyzes GitHub pull requests, generates structured feedback, and posts semantic inline review comments directly on the changed lines of code.
It transforms LLM reasoning into a real developer workflow.
Untitled.Project.mp4
Live Demo: https://reviewpilot-frontend.onrender.com
- 🔍 Ingests real GitHub Pull Requests
- 🧠 LLM-based multi-point code review
⚠️ Risk classification based on change scope- 💬 Inline comments on the exact lines of code
- 📌 Structured PR summary
- 🧭 Multiple issue detection in a single run
- 🎯 Demo-ready UI for running reviews
Most AI code review demos stop at summarizing diffs.
ReviewPilot acts as a real reviewer inside GitHub:
PR → AI analysis → Inline feedback → Developer workflow
This project demonstrates how LLMs can:
- Reason over real code changes
- Make architectural suggestions
- Execute actions in external systems
- Fetch PR metadata and diff from GitHub
- Send diff to LLM for structured analysis
- Extract multiple review findings
- Map findings to exact changed lines
- Post inline review comments via GitHub API
- Return structured summary to UI
Backend
- FastAPI
- Groq LLM
- GitHub REST API
AI Layer
- Structured prompting
- JSON parsing & validation
- Multi-finding semantic extraction
Frontend (Demo UI)
- Static HTML
- Vanilla JavaScript
- TailwindCSS
-
Enter repository →
owner/repo -
Enter Pull Request number
-
Click Run AI Review
-
AI:
- Analyzes code
- Posts inline feedback on GitHub
- Returns structured summary
git clone https://github.com/your-username/reviewpilot.git
cd reviewpilotpython -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txtCreate a .env file:
GROQ_API_KEY=your_key
GITHUB_TOKEN=your_tokenRun the backend:
uvicorn app.main:app --reloadRun the frontend:
python frontend-new/serve.pyThe frontend will be available at http://127.0.0.1:5500/ and will call the backend at http://127.0.0.1:8000/review.
{
"repo": "owner/repo",
"pr_number": 1
}{
"summary": "...",
"issues": ["..."],
"suggestions": ["..."],
"risk": "low | medium | high"
}- Inline comments on risky code paths
- Architectural improvement suggestions
- Test coverage warnings
- Maintainability feedback
This project is built to demonstrate:
- Real-world AI agent workflows
- LLM orchestration beyond chat interfaces
- Tool integration with external platforms
- AI as a developer productivity system
- Priority & severity scoring
- Confidence levels per finding
- Review analytics
- Multi-PR batch reviews
Krish Patel
AI / GenAI / LLM Application Engineer
Give it a star — it helps the project reach more developers.