Multi-dimensional repository analysis with Git history, quality scoring, and AI-powered insights
| Feature | Description |
|---|---|
| 🔄 Git History Analysis | Commit frequency, contributor patterns, code hotspots |
| 📈 Code Quality Scoring | Documentation coverage, naming conventions, complexity metrics |
| 🧪 Test Coverage Estimation | Automatic test file detection and coverage estimates |
| 🔗 Dependency Vulnerability Scan | CVE checks for requirements.txt and package.json |
| 📜 License Detection | Automatic license identification (MIT, Apache, GPL, etc.) |
| 🛡️ OWASP Mapping | Security issues mapped to OWASP Top 10 categories |
cd codegenome_v2
pip install -r requirements.txtGitPython— Git history analysispylint— Code quality lintingradon— Complexity metricsosv— CVE vulnerability database
python codegenome_v2.py
# Enter: https://github.com/user/repoGit History:
├─ Total Commits: 1,234
├─ Contributors: 15
├─ Top Contributor: Alice (45%)
└─ Hotspots (most changed):
1. src/core.py (89 changes)
2. tests/test_main.py (67 changes)
Quality Score: 78.5/100
├─ Documentation Coverage: 65%
├─ Naming Conventions: 92%
├─ Complexity Score: 85%
└─ Test Coverage Estimate: 45% (12 test files)
Dependency Issues: 3
├─ requirements.txt: Django==1.11 (outdated)
├─ package.json: lodash@* (unpinned version)
└─ Recommendation: Update to latest secure versions
License: MIT
File: LICENSE
Compatible: ✅ Yes
Edit .env:
# Choose ONE of the following AI Providers (Checked in this order):
OPENROUTER_API_KEY=sk-or-v1-your-key-here # Uses openai/gpt-oss-120b
SAMBANOVA_API_KEY=your-uuid-format-key-here # Uses Meta-Llama-3.1-70B-Instruct
OPENAI_API_KEY=sk-proj-your-key-here # Uses gpt-4o-mini
# GitHub Token (REQUIRED to avoid 403 Rate Limit errors)
GITHUB_TOKEN=ghp_your-token-hereDetailed Guides: See API_KEY_GUIDE.md and GITHUB_TOKEN_GUIDE.md for setup help.
| Feature | v1 | v2 |
|---|---|---|
| Multi-language support | ✅ | ✅ |
| Security scanning | ✅ | ✅ Enhanced |
| Git history analysis | ❌ | ✅ |
| Code quality scoring | ❌ | ✅ |
| Dependency CVE checks | ❌ | ✅ |
| License detection | ❌ | ✅ |
| Test coverage estimation | ❌ | ✅ |
- Pre-commit Analysis — Check quality before pushing
- Code Review — Comprehensive review metrics
- Security Audit — Find vulnerabilities + dependency issues
- Technical Debt — Identify hotspots and complexity
- License Compliance — Verify license compatibility
╭──────────────────────────────────────╮
│ CodeGenome v2 Analysis Complete │
│ Repository: flask/flask │
╰──────────────────────────────────────╯
Architecture Summary
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ Property ┃ Value ┃
┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
│ Type │ Web Framework │
│ Quality Score │ 78.5/100 │
│ Risk Score │ 35/100 (LOW) │
│ License │ BSD-3-Clause │
│ Contributors │ 15 │
└────────────────┴──────────────────┘
Found a bug? Want a feature? Open an issue or PR!
MIT License — Free for academic and commercial use.