Description
CodeGraph is a Rust tool that turns a codebase into a searchable knowledge graph, so AI coding assistants can find code by meaning and by its relationships. It parses source code into an AST and combines the resulting graph with embeddings, storing the index in a SurrealDB backend. When an agent searches for a function, it also gets the code that calls that function and the code it depends on, so the result keeps its place in the architecture. Four agentic code analysis tools are exposed through MCP, and the same tools are available from the command line through the codegraph agent context command. The codegraph init command can set up project-local hooks for Claude Code and Codex and add instructions for agents before indexing. The README includes an installation guide, a usage guide for working with an AI assistant, and a section on how the graph and embeddings work together. The repository is public on GitHub. A sibling project, CodeGraph Agent Memory, is described as adding persistent memory for decisions, findings and reusable procedures.…
Highlights
- Knowledge graph of code with relationships kept intact
- AST parsing combined with embeddings
- SurrealDB storage backend
- Four agentic code tools exposed through MCP
- Command line use and Claude Code or Codex hook setup
Ratings & Reviews
No ratings yet
Be the first to rate Codegraph Rust.
People also visit

DeusData/codebase-memory-mcp
Indexes a repo into a persistent local knowledge graph of functions, classes
Codegraph Rust FAQ
What does CodeGraph do?
It builds a searchable knowledge graph of your codebase, so AI coding agents can find a piece of code together with the code it relates to.
Who is it for?
Developers who use AI coding assistants on larger projects and want them to understand the architecture without reading files one at a time.
How do agents connect to it?
Through its MCP tools, or from the command line with codegraph agent context. The codegraph init command can add project-local hooks for Claude Code and Codex.
Where is the index stored?
The index is kept in a SurrealDB backend, and the README describes how embedding inputs are chunked.
Is it free?
The project is public on GitHub. The text shown does not state a licence, so check the repository before you use it commercially.
What are the best Codegraph Rust alternatives?
Popular alternatives to Codegraph Rust include Code-Graph-RAG, Semble RS and GraphMind. See all Codegraph Rust alternatives













