"Stop reviewing code manually. Let AI find the bugs, vulnerabilities, and improvements for you."
Developers spend 60% of their time reading and reviewing code. RepoSage automates this with AI β analyzing entire GitHub repositories for bugs, security flaws, performance bottlenecks, and generating comprehensive documentation in seconds.
π Documentation Β· π Report Bug Β· π‘ Request Feature Β· π€ Contribute
- β¨ Features
- ποΈ Architecture
- π οΈ Tech Stack
- β‘ Quick Start
- π€ GitHub Action Integration
- π API Reference
- πΊοΈ Roadmap
- π€ Contributing
- π₯ Contributors
- π License
|
Automated detection of bugs, anti-patterns, performance bottlenecks, and style violations powered by LLMs (Llama 3, DeepSeek, Google Gemma). |
Regex-based credential detection for API keys, private keys, Twilio tokens, AWS secrets, and common |
|
Automatically generates comprehensive, well-structured documentation for any repository with a single click. |
Static analysis computing Lines of Code, Comment Density, Function Counts, and Complexity Grades (AβF) per file. |
|
Full support for Python, JavaScript, TypeScript, Java, Go, Rust, C++, C#, PHP, Ruby, SQL, HTML, and CSS. |
Beautiful React dashboard with Light/Dark themes, file tree search, interactive metrics, and one-click HTML report export. |
|
Drop-in GitHub Action that posts inline, line-by-line AI review comments directly on your Pull Requests. |
Ask natural-language questions about any codebase β "Explain the authentication flow", "Where are the API routes?" |
graph TB
subgraph Frontend["π¨ Frontend (React + Vite)"]
UI[Dashboard UI]
Theme[Theme Toggle]
FileNav[File Navigator]
Metrics[Metrics Panel]
end
subgraph Backend["βοΈ Backend (Node.js + Express)"]
API[REST API]
Clone[Repo Cloner]
Scanner[Security Scanner]
Analyzer[Complexity Analyzer]
Reporter[Report Exporter]
end
subgraph AIEngine["π§ AI Engine (Python + FastAPI)"]
LLM[LLM Integration]
Prompt[Prompt Manager]
Models[Llama Β· DeepSeek Β· Gemma]
end
subgraph GitHubAction["π€ GitHub Action"]
Webhook[PR Webhook]
Reviewer[Inline Reviewer]
end
UI --> API
API --> Clone
Clone --> Scanner
Clone --> Analyzer
API --> LLM
LLM --> Prompt
Prompt --> Models
API --> Reporter
Webhook --> Reviewer
Reviewer --> API
The project is split into four independent modules:
| Module | Tech | Description |
|---|---|---|
| Frontend | React 19 + Vite + Vanilla CSS | Interactive dashboard with theme toggle, file search, and metrics visualization |
| Backend | Node.js 18 + Express | REST API for repo cloning, security scanning, complexity analysis, and report export |
| AI Engine | Python 3.10 + FastAPI | LLM-powered code review, bug detection, and README generation |
| GitHub Action | Bundled JS Runner | Automated PR review bot posting inline comments on GitHub |
- Node.js β₯ 18 & npm β₯ 9
- Python β₯ 3.10 & pip
- Git
- A free Groq API Key
git clone https://github.com/kalyan-1845/ai-code-reviewer.git
cd ai-code-reviewercd backend
npm install
cp .env.example .env # Add your GROQ_API_KEY
npm run dev # Starts on http://localhost:5000cd ai-engine
pip install -r requirements.txt
uvicorn app:app --reload # Starts on http://localhost:8000cd frontend
npm install
npm run dev # Starts on http://localhost:3000π‘ Tip: Open
http://localhost:3000in your browser, paste any public GitHub repo URL, and click Analyze to see RepoSage in action!
Add automated AI code review to any repository in 2 minutes:
# .github/workflows/reposage-review.yml
name: RepoSage AI Reviewer
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run RepoSage AI PR Audit
uses: kalyan-1845/ai-code-reviewer/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
groq-api-key: ${{ secrets.GROQ_API_KEY }}The bot will automatically post inline, line-by-line review comments on every new PR!
For complete endpoint documentation with request/response examples, see API.md.
| Endpoint | Method | Description |
|---|---|---|
/api/analyze |
POST |
Analyze a GitHub repository |
/api/reports/html |
POST |
Export audit report as HTML |
/api/chat |
POST |
Chat with a repository using AI |
/analyze |
POST |
AI Engine direct analysis (FastAPI) |
See our full ROADMAP.md for the detailed project roadmap.
| Phase | Status | Highlights |
|---|---|---|
| Phase 1: MVP | β Complete | Repo import, AI review, README generation, Dashboard UI |
| Phase 2: Core Enhancements | β Complete | 13+ languages, report export, security scanner, model selection |
| Phase 3: Advanced Features | β Complete | AI repo chat, architecture diagrams, PR bot, complexity metrics |
| Phase 4: Community & Scale | π§ In Progress | Audit history, PDF export, settings modal, composition charts |
| Phase 5: Enterprise | π Planned | Team workspaces, RBAC, VS Code extension, SARIF export |
We are proudly part of GirlScript Summer of Code (GSSoC) '26! π
We welcome contributions from everyone β whether you're a first-time open-source contributor or a seasoned developer.
- π Read our Contributing Guidelines
- π·οΈ Browse Good First Issues for beginner-friendly tasks
- π¬ Comment on an issue to get assigned
- π΄ Fork, code, and submit a PR!
Note: Please wait for an admin/mentor to assign the issue before starting work to avoid duplicate efforts.
Thanks to all the amazing people who have contributed to RepoSage! π
If you find RepoSage useful, please consider giving it a β on GitHub β it helps the project grow and motivates us to keep improving!
This project is licensed under the MIT License β see the LICENSE file for details.
Built with β€οΈ by Bhoompally Kalyan Reddy and the open-source community.
RepoSage β Making code review smarter, one repository at a time.