How harshaappikatla/codegraph-rag works
CodeGraph-RAG ingests source repositories into a scope-aware AST, then indexes code in a vector store and structural dependencies in a graph store. Users query through the interactive entry point or MCP tools; the agent combines semantic retrieval with graph-based impact analysis to produce answers. The README also documents polyglot parsing, model failover, and IDE integrations. Some ingestion and synthesis internals are unsampled, so those links are shown only where the README or source index supports them.
Main entry points: repo_ingestor.py Repository Ingestor · agent_workflow.py CodeGraph Agent · main.py Interactive Entry · graph_store.py Dependency Graph
Components 11
Repository Ingestion
- Repository Ingestor
modules/repo_ingestor.py - Polyglot AST Parser
modules/ast_parser.py
Code Indexes
- Dependency Graph
modules/graph_store.py - Vector Index
modules/vector_store.py
Retrieval and Reasoning
- CodeGraph Agent
modules/agent_workflow.py
Interfaces
- Interactive Entry
main.py - MCP Server
mcp_server.py
Other components
- Developer
- Target Repository
- Gemini Models
- IDE Clients
Connections 19
- Developer → Interactive Entry: asks query
main.py - Target Repository → Interactive Entry: provides source
main.py - Interactive Entry → Polyglot AST Parser: parses files
main.py - Interactive Entry → Dependency Graph: writes structures
main.py - Interactive Entry → Vector Index: indexes snippets
main.py - Target Repository → Repository Ingestor: supplies repository
README.md - Repository Ingestor → Polyglot AST Parser: extracts structures
modules/repo_ingestor.py - Repository Ingestor → Dependency Graph: indexes graph
modules/repo_ingestor.py - Repository Ingestor → Vector Index: indexes vectors
modules/repo_ingestor.py - Polyglot AST Parser → Dependency Graph: provides AST data
main.py - Polyglot AST Parser → Vector Index: provides code chunks
main.py - Developer → CodeGraph Agent: submits query
- CodeGraph Agent → Vector Index: searches snippets
modules/agent_workflow.py - CodeGraph Agent → Dependency Graph: analyzes impact
modules/agent_workflow.py - CodeGraph Agent → Gemini Models: generates answer
README.md - IDE Clients → MCP Server: sends MCP requests
README.md - MCP Server → CodeGraph Agent: routes search
mcp_server.py - MCP Server → Dependency Graph: requests impact
mcp_server.py - MCP Server → Repository Ingestor: starts ingestion
mcp_server.py