Code-Graph-RAG vs REA
Code-Graph-RAG is an open-source MCP server for knowledge and memory. REA is an open-source MCP server for developer tools.
- Code-Graph-RAG is best for ask how a function is reached in an unfamiliar monorepo.
- REA is best for explain how a specific app feature works.
- What it is
- Code-Graph-RAG is an open-source MCP server for knowledge and memory.REA is an open-source MCP server for developer tools.
- Best for
- Ask how a function is reached in an unfamiliar monorepoExplain how a specific app feature works
- Kind
- MCP serverMCP server
- Pricing
- Open sourceOpen source
- Platforms
- CLI, self-hostedCLI, macOS, Windows, Linux
- Runs
- LocallyLocally
- GitHub stars
- 464K
- Last commit
- Nov 2026
- License
- MIT
- Open source
- Good for
- Ask how a function is reached in an unfamiliar monorepo; Find unreachable functions before a cleanup; Apply a pattern-based rewrite across a whole codebaseExplain how a specific app feature works; Investigate binary behavior with an agent; Rebuild a feature from observed logic
What Code-Graph-RAG does
Tree-sitter graph index
Parses 14 languages into one graph schema of functions, classes, modules and dependencies.
Natural-language queries
Translates plain-English questions into Cypher queries over the code graph.
AST-based editing
Replaces specific functions with a diff preview shown before anything changes.
Dead code detection
Walks call and reference edges from entry points to find unreachable functions.
Structural search and replace
Uses ast-grep patterns to match and rewrite code by structure, not text.
Runtime trace overlay
Merges calls observed in a test run into the graph with the cgr trace command.
What REA does
Agent-driven inspection
Lets a coding agent read a program's code and watch its behavior while it runs.
CLI plus MCP server
The same tooling is reachable from a terminal or from an MCP-capable agent.
Guided setup
An npx setup command presents a plan for approval and then verifies the install.
Interactive examples
The site includes worked investigations, such as a calculator and a browser game, with guides.
Code-Graph-RAG vs REA: questions
Is Code-Graph-RAG or REA cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between Code-Graph-RAG and REA?
Code-Graph-RAG is an open-source MCP server for knowledge and memory. REA is an open-source MCP server for developer tools.
