# suvoh05/codebase-intelligence-engine architecture

> Architecture diagram of the GitHub repository suvoh05/codebase-intelligence-engine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/suvoh05/codebase-intelligence-engine
- Repository: https://github.com/suvoh05/codebase-intelligence-engine

## Overview

This is an early-stage, local-first codebase intelligence tool. Its current runtime can discover and read Python files; the chunker is an experimental AST script, and the repository does not yet provide a working end-to-end query flow. The README describes planned semantic indexing and graph-based code understanding, so those capabilities appear as planned components rather than implemented services. Their internal links reflect documented architecture, not inspected calls.

Main entry points: [`app/repository_loader.py`](https://github.com/suvoh05/codebase-intelligence-engine/blob/main/app/repository_loader.py) (Repository Loader), [`app/code_chunker.py`](https://github.com/suvoh05/codebase-intelligence-engine/blob/main/app/code_chunker.py) (AST Chunker), [`app`](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app) (Chunk Embeddings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_current["Current Runtime"]
  node_loader["Repository Loader"]
  node_chunker["AST Chunker<br/>[code_chunker.py]"]
end

subgraph group_semantic["Semantic Retrieval"]
  node_embeddings["Chunk Embeddings"]
  node_vector_store[("Vector Store")]
  node_semantic_search["Semantic Search"]
end

subgraph group_structural["Structural Intelligence"]
  node_unified_indexer["Unified Indexer"]
  node_symbol_extraction["Symbol Extraction"]
  node_code_graph[("Code Graph")]
  node_structural_queries["Structural Queries"]
end

node_developer(("Developer"))

node_developer -->|"selects repository"| node_loader
node_loader -.->|"planned input"| node_chunker
node_chunker -.->|"planned chunks"| node_embeddings
node_embeddings -.->|"planned storage"| node_vector_store
node_vector_store -.->|"planned retrieval"| node_semantic_search
node_loader -.->|"planned indexing"| node_unified_indexer
node_unified_indexer -.->|"planned parsing"| node_symbol_extraction
node_symbol_extraction -.->|"planned graph build"| node_code_graph
node_code_graph -.->|"planned queries"| node_structural_queries

click node_loader "https://github.com/suvoh05/codebase-intelligence-engine/blob/main/app/repository_loader.py"
click node_chunker "https://github.com/suvoh05/codebase-intelligence-engine/blob/main/app/code_chunker.py"
click node_embeddings "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"
click node_vector_store "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"
click node_semantic_search "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"
click node_unified_indexer "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"
click node_symbol_extraction "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"
click node_code_graph "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"
click node_structural_queries "https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_loader,node_chunker toneBlue
class node_embeddings,node_vector_store,node_semantic_search toneAmber
class node_unified_indexer,node_symbol_extraction,node_code_graph,node_structural_queries toneMint
class node_developer toneIndigo
```

## Components

### Current Runtime

- [Repository Loader](https://github.com/suvoh05/codebase-intelligence-engine/blob/main/app/repository_loader.py): `app/repository_loader.py`
- [AST Chunker](https://github.com/suvoh05/codebase-intelligence-engine/blob/main/app/code_chunker.py): `app/code_chunker.py`

### Semantic Retrieval

- [Chunk Embeddings](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`
- [Vector Store](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`
- [Semantic Search](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`

### Structural Intelligence

- [Unified Indexer](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`
- [Symbol Extraction](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`
- [Code Graph](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`
- [Structural Queries](https://github.com/suvoh05/codebase-intelligence-engine/tree/main/app): `app`

### Other components

- **Developer**

## Connections

- Developer → Repository Loader: selects repository (evidence: `README.md`)
- Repository Loader → AST Chunker: planned input (evidence: `README.md`)
- AST Chunker → Chunk Embeddings: planned chunks (evidence: `README.md`)
- Chunk Embeddings → Vector Store: planned storage (evidence: `README.md`)
- Vector Store → Semantic Search: planned retrieval (evidence: `README.md`)
- Repository Loader → Unified Indexer: planned indexing (evidence: `README.md`)
- Unified Indexer → Symbol Extraction: planned parsing (evidence: `README.md`)
- Symbol Extraction → Code Graph: planned graph build (evidence: `README.md`)
- Code Graph → Structural Queries: planned queries (evidence: `README.md`)
