Code-Graph-RAGMonorepo knowledge graph for AI code queries
Codebase MemoryLocal MCP code intelligence knowledge graph server
Code-Graph-RAG vs Codebase Memory
How Code-Graph-RAG and Codebase Memory compare on popularity, activity, license and platforms: two open-source AI Assisted Coding projects, both alternatives to Sourcegraph.
At a glance
- Codebase Memory has more GitHub stars (49.6k vs 5.5k, about 9× as many).
- Both are actively maintained (last commits today and today).
- Both use the MIT license.
- Codebase Memory can be self-hosted.
Side by side
| Code-Graph-RAG | Codebase Memory | |
|---|---|---|
| GitHub stars | ★ 5,464 | ★ 49,590 +426 in 9 days |
| Forks | 739 | 4,170 |
| Last commit | today | today |
| Latest version | v0.7.180 | v0.12.1 |
| Repository started | June 2025 | February 2026 |
| License | MIT · permissive | MIT · permissive |
| Self-hosted | Desktop/CLI app | Yes |
| Platforms | CLI, Linux, macOS, Windows | Linux, macOS, Windows, CLI |
| Main language | Python | C |
| Alternative to | Sourcegraph | Sourcegraph |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
Code-Graph-RAG
Code-Graph-RAG indexes multi-language repositories into a queryable graph and answers natural-language questions with grounded retrieval. It supports edits, dead-code detection, tracing, and MCP access.
Key features
- Multi-language Tree-sitter indexing
- Natural-language graph queries
- AST-based code edits
- Dead code detection
- Dynamic call tracing
- MCP server integration
Codebase Memory
Codebase Memory indexes repositories into a persistent local graph and exposes it through MCP tools and a CLI. Optional CBM Lens UI explores calls, docs, and infrastructure links on your machine.
Key features
- Seventeen MCP graph query tools
- Persistent local index and SQLite storage
- Tree-sitter parsing and hybrid LSP types
- Infrastructure and docs linked to code
- Installer hooks for many coding agents
- Native CLI alongside MCP access