An AI-powered backend tool that analyzes GitHub repositories and generates automated code review suggestions.
- Analyze GitHub repositories automatically
- Detect code issues using static analysis
- Generate AI-powered code review suggestions
- Provide structured JSON reports
- Calculate repository code quality score
- Python
- FastAPI
- GitHub REST API
- Ollama (Local LLM Runtime)
- DeepSeek Coder Model
GitHub Repository
↓
Fetch Repository Files
↓
Static Code Analysis
↓
AI Code Review
↓
JSON Report
git clone https://github.com/YOUR_USERNAME/ai-github-code-review-assistant.git
cd ai-github-code-review-assistantpython -m venv venvActivate:
Windows
venv\Scripts\activateMac/Linux
source venv/bin/activatepip install -r requirements.txtDownload:
Pull AI model:
ollama pull deepseek-coder:1.3bTo avoid API rate limits set an environment variable.
Windows:
setx GITHUB_TOKEN "your_token_here"
Mac/Linux:
export GITHUB_TOKEN="your_token_here"
uvicorn main:app --reloadOpen API docs:
http://127.0.0.1:8000/docs
{
"repo_url": "https://github.com/pallets/flask"
}{
"repository": "flask",
"files_analyzed": 8,
"results": [
{
"file": "auth.py",
"issues": ["Deep nesting"],
"ai_review": [
"Reduce nested if statements",
"Extract helper functions",
"Add docstrings"
]
}
],
"quality_score": 8
}- GitHub Pull Request AI reviewer
- Web dashboard
- Multi-language support
- Code history analysis
MIT License