How rohit4034/repo-intelligence works
Repo Intelligence is a repository-analysis workbench: users import a repository, receive a static code graph and analysis artifacts, then explore architecture, flows, findings, technology, and source-grounded answers. The README documents the broader API capabilities; the worker excerpt shows the job’s analyze → persist → index ownership. Source excerpts are limited, so frontend-to-backend wiring and several backend internals are shown only where documented or referenced by the source index.
Main entry points: workspace.tsx Workspace · retrieval.py Search and indexing · worker.py Ingestion worker · api.ts API client
Components 24
Web workbench
- Workspace
web/components/workspace.tsx - API client
web/lib/api.ts - Evidence search
web/components/search-panel.tsx - Repository graph
web/components/repository-graph.tsx - Architecture view
web/components/architecture-panel.tsx - Reports
web/components/reports-panel.tsx - Tech stack view
web/components/tech-stack-panel.tsx - AI settings
web/components/ai-settings.tsx
API and jobs
- FastAPI service
codebase_ingestion_engine/src/repo_intelligence/api.py - Ingestion worker
codebase_ingestion_engine/src/repo_intelligence/worker.py - Repository access
codebase_ingestion_engine/src/repo_intelligence/repositories.py
Repository analysis
- Static analyzer
codebase_ingestion_engine/src/repo_intelligence/analyzer.py - Stack detection
codebase_ingestion_engine/src/repo_intelligence/tech_stack.py
Retrieval and artifacts
- Artifact and job store
codebase_ingestion_engine/src/repo_intelligence/storage.py - Search and indexing
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - Domain models
codebase_ingestion_engine/src/repo_intelligence/models.py - Operations tracking
codebase_ingestion_engine/src/repo_intelligence/operations.py
Accounts and AI
- Authentication
codebase_ingestion_engine/src/repo_intelligence/auth.py - GitHub connection
codebase_ingestion_engine/src/repo_intelligence/github_connection.py - AI providers
codebase_ingestion_engine/src/repo_intelligence/providers.py - AI configuration
codebase_ingestion_engine/src/repo_intelligence/ai_config.py - AI inference
codebase_ingestion_engine/src/repo_intelligence/inference.py - Service settings
codebase_ingestion_engine/src/repo_intelligence/settings.py
Other components
- Developer
Connections 27
- Developer → Workspace: uses
- Workspace → API client: requests data
- API client → FastAPI service: calls API
- Evidence search → API client: searches
web/components/search-panel.tsx - Repository graph → API client: loads graph
web/components/repository-graph.tsx - Workspace → Evidence search: presents
- Workspace → Repository graph: presents
- Workspace → Architecture view: presents
- Workspace → Reports: presents
- Workspace → Tech stack view: presents
- FastAPI service → Ingestion worker: queues work
- Ingestion worker → Repository access: analyzes repository
codebase_ingestion_engine/src/repo_intelligence/worker.py - Ingestion worker → GitHub connection: gets job token
codebase_ingestion_engine/src/repo_intelligence/worker.py - Ingestion worker → Artifact and job store: saves artifact
codebase_ingestion_engine/src/repo_intelligence/worker.py - Ingestion worker → Search and indexing: indexes artifact
codebase_ingestion_engine/src/repo_intelligence/worker.py - Ingestion worker → Operations tracking: records failures
codebase_ingestion_engine/src/repo_intelligence/worker.py - Repository access → Static analyzer: analyzes source
- Static analyzer → Stack detection: detects stack
- Search and indexing → Artifact and job store: reads and writes
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - Search and indexing → Domain models: uses models
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - Search and indexing → AI providers: uses providers
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - Search and indexing → Service settings: reads settings
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - Search and indexing → AI configuration: selects configuration
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - Search and indexing → AI inference: uses inference
codebase_ingestion_engine/src/repo_intelligence/retrieval.py - FastAPI service → Authentication: authenticates users
- FastAPI service → GitHub connection: offers GitHub connection
- AI settings → API client: configures AI