Local AI code reviewer. No cloud. No API keys. Your code never leaves your machine.
Paste any GitHub repo URL → CodeSage reviews it like a senior engineer. Finds bugs, security issues, and performance problems with exact file names and line numbers. Everything runs on your Mac. Zero internet required after setup.
| Cursor / Copilot / GitHub Actions | CodeSage | |
|---|---|---|
| Runs 100% locally | ❌ | ✅ |
| Code stays private | ❌ | ✅ |
| No API key needed | ❌ | ✅ |
| Works offline | ❌ | ✅ |
| Free forever | ❌ | ✅ |
GitHub URL → Ingestion → Chunking → Rule Engine → Fast Pass (Qwen 1.5B) → Deep Pass (DeepSeek 6.7B) → Structured Report
- Ingestion — clones repo, parses all code files
- Rule Engine — deterministic checks for SQL injection, hardcoded secrets, bare excepts
- Fast Pass — Qwen2.5-Coder-1.5B scans every file for issues
- Deep Pass — DeepSeek-Coder-6.7B-4bit analyzes files with issues in detail
- Memory — stores patterns across reviews, gets smarter over time
git clone https://github.com/sameersharma06/CodeSage.git
cd CodeSage
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -m api.mainModels download automatically on first run (~4GB total).
- macOS (Apple Silicon recommended)
- Python 3.10+
- 8GB RAM minimum, 16GB recommended
- Git installed
- Models — Qwen2.5-Coder-1.5B (fast pass) + DeepSeek-Coder-6.7B-4bit (deep pass)
- Inference — MLX (Apple Silicon optimized)
- Backend — FastAPI
- Rule Engine — AST + regex (deterministic, never hallucinates)
- Memory — local JSON store, tracks patterns across reviews
- Frontend — vanilla HTML/CSS/JS
codesage/ ├── core/ │ ├── ingestion.py # clone + parse repos │ ├── chunker.py # smart code splitting │ ├── agent.py # multi-pass review pipeline │ ├── model_manager.py # lazy load / unload models │ ├── rule_engine.py # deterministic bug detection │ └── memory.py # pattern memory across reviews ├── api/ │ └── main.py # FastAPI server └── ui/ ├── index.html ├── style.css └── app.js
- Reviewed 80 file repo in ~3 minutes on M-series Mac
- Peak RAM: ~7GB (well within 16GB)
- No GPU cloud costs
- GitHub Actions integration
- VS Code extension
- Multi-language support (Go, Rust, Java)
- Team workspace (self-hosted)
- PR review mode
Sameer Sharma — First year CS & AI student, Haryana India Building local AI systems on Apple Silicon.
