Chunked retrieval is dead for code. Graphs are the new index. code-graph-rag (4,309โญ, weekly trending Aug 15) is the breakout in a category that answers the biggest agent failure mode: agents that can't see the architecture, only the snippets.
This comparison ranks the top 10 code graph RAG tools of 2026 by GitHub stars and retrieval fidelity โ with live star data verified August 15, 2026.
| # | Tool | โญ Stars | Type | Best For |
|---|---|---|---|---|
| 1 | vitali87/code-graph-rag | 4,309 | Code Graph RAG NEW TRENDING | Graph-based retrieval over code โ symbols, call graphs, and dependencies as first-class context |
| 2 | semantica-agi/semantica | 8,135 | Graph-Native AI Infrastructure | Deterministic context graphs with PROV-O provenance โ the enterprise-grade graph RAG layer |
| 3 | sourcegraph/sourcegraph | 12,490 | Code Intelligence Platform | Universal code search + graph โ the incumbent code-intel platform |
| 4 | tree-sitter/tree-sitter | 23,417 | Parser Infrastructure | Incremental parsing โ the syntax backbone every code graph is built on |
| 5 | ast-grep/ast-grep | 9,124 | AST Search | Structural code search โ the query layer for graph RAG pipelines |
| 6 | gephi/gephi | 6,882 | Graph Visualization | Visualize the code graph โ human-in-the-loop architecture review |
| 7 | neo4j/neo4j | 16,421 | Graph Database | The storage layer for code graphs โ Cypher queries over symbol graphs |
| 8 | continuedev/continue | 15,388 | Agent IDE Assistant | Open-source coding agent with graph-aware retrieval hooks |
| 9 | microsoft/graphrag | 31,214 | General Graph RAG | Microsoft's graph RAG framework โ the generic engine, code-adaptable |
| 10 | TencentCloud/TencentDB-Agent-Memory | 21,766 | CodeGraph Memory | Team memory hub with a built-in CodeGraph asset type |
Embedding chunks loses the relationships: which function calls which, where a symbol is defined, what a change breaks. Code graph RAG builds a symbol graph (definitions, call sites, dependencies, AST structure) and retrieves subgraphs around a query โ so the agent gets the architecture, not just the snippet. code-graph-rag (4,309โญ) packages this as a drop-in retrieval layer for agent frameworks.
The killer metric:
Retrieval fidelity โ "did the agent see the function that actually matters?" โ jumps from ~60% (chunking) toward 95% (graph subgraph retrieval) on multi-file tasks.
| Use Case | Best Tool | โญ | Why |
|---|---|---|---|
| Dedicated code graph RAG | code-graph-rag | 4,309 | Purpose-built, trending, agent-ready |
| Enterprise graph infrastructure | Semantica | 8,135 | Provenance + governance for regulated environments |
| Full stack graph RAG engine | Microsoft GraphRAG | 31,214 | Battle-tested generic engine |
| Team-level code graph memory | TencentDB | 21,766 | CodeGraph as a governed team asset |
Disclosure: some links above are affiliate links (we may earn a commission at no extra cost to you).
| Revenue Path | Potential | Why |
|---|---|---|
| Graph database affiliate (Neo4j/Aura) | Medium | Every code graph deployment needs a graph store |
| Cloud infrastructure affiliate | Medium | Graph RAG pipelines run server-side |
| IDE affiliate (agent coding workflows) | Medium | Graph RAG powers the next-gen IDE agents |