How oussamcsc/codebase-intelligence works
Codebase Intelligence accepts a GitHub repository through its React interface or CLI, gathers static evidence, filters and synthesizes a review, then exposes progress and results. The documented web workflow runs through FastAPI, which also handles GitHub authentication and job results. The graph includes the four analyzers, UI views, configuration, and documented persistence and optional RAG. Some backend pipeline wiring is documented in the README rather than shown in sampled API source; those relationships cite the README.
Main entry points: api.py FastAPI jobs · Code_reviewer.py Review orchestration · App.js App workflow · AnalysisResults.js Review results
Components 21
Web interface
- App workflow
web/src/App.js - Repository input
web/src/components/GitHubAnalyzer.js - Job progress
web/src/components/ProgressTracker.js - Review results
web/src/components/AnalysisResults.js - API settings
web/src/config.js
API and review
- FastAPI jobs
api.py - GitHub OAuth
github_auth.py - CLI review
cli.py - Review orchestration
Code_reviewer.py - Runtime settings
config.py
Static analysis
- File discovery
scan_project.py - Dependency impact
Codebase_analyzer.py - AST patterns
pattern_matcher.py - Type signals
type_analyzer.py - Duplicate detection
duplicate_detector.py
State and context
- Results database
api.py - RAG context
Code_reviewer.py
Other components
- Developer
- GitHub
- OpenAI
- ChromaDB
Connections 23
- Developer → App workflow: uses
README.md - App workflow → Repository input: renders
web/src/App.js - App workflow → Job progress: renders
web/src/App.js - App workflow → Review results: renders
web/src/App.js - Repository input → FastAPI jobs: starts analysis
web/src/components/GitHubAnalyzer.js - Job progress → FastAPI jobs: polls job
web/src/components/ProgressTracker.js - FastAPI jobs → Review results: returns results
- Review results → FastAPI jobs: exports and shares
web/src/components/AnalysisResults.js - API settings → FastAPI jobs: sets API URL
web/src/config.js - FastAPI jobs → GitHub OAuth: uses OAuth
api.py - GitHub OAuth → GitHub: exchanges token
github_auth.py - FastAPI jobs → Review orchestration: runs review
README.md - CLI review → Review orchestration: runs review
cli.py - Review orchestration → Dependency impact: runs graph analysis
Code_reviewer.py - Review orchestration → AST patterns: runs pattern checks
Code_reviewer.py - Review orchestration → Type signals: runs type checks
Code_reviewer.py - Review orchestration → Duplicate detection: runs duplicate checks
Code_reviewer.py - Review orchestration → OpenAI: synthesizes review
Code_reviewer.py - FastAPI jobs → Results database: stores job results
README.md - Review orchestration → RAG context: retrieves context
README.md - RAG context → ChromaDB: queries vectors
README.md - FastAPI jobs → File discovery: discovers files
README.md - Runtime settings → FastAPI jobs: configures
api.py