AI products and toolsReviewed · vitali87

Code-Graph-RAG

Code-Graph-RAG is an AI tool for developers who want to understand and edit codebases, but it requires Python 3.12 or newer and its language coverage varies. It builds a knowledge graph of code relationships, uses model-generated Cypher queries to retrieve context, and provides a CLI and MCP server. The default graph uses embedded SQLite without a database server.

Researched 22 Nov 2026

In short.

Code-Graph-RAG is an AI tool for developers exploring and changing codebases, but language support varies and the README does not specify AI model configuration. Its documented design combines Tree-sitter parsing, optional compiler information and runtime calls, graph retrieval, and editing with a diff preview. The default SQLite graph avoids running a database server, while Python 3.12+, ripgrep and a supported native extension platform remain prerequisites. Nothing was executed; answer accuracy, editing correctness and performance are not established.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is only README.md at [https://github.com/vitali87/code-graph-rag/blob/main/README.md], represented by the supplied snapshot at revision f5027df009ef8621a3dd49e93c49b833c5138e03. LICENSE is the accompanying rights notice outside the selected file. Linked documentation, source code, NEWS.md, releases, badge destinations, demonstrations, pricing pages and third-party credits are excluded. The account is based on documentation; no installation, execution, benchmark, security assessment or end-to-end use was performed.

The overview

What it is

Code-Graph-RAG is an open-source code assistant operated through the cgr command-line tool. Its graph represents functions, classes, methods, modules and their relationships so an AI agent can retrieve code context, answer questions and propose changes.

The project also describes an MCP server, allowing Claude Code and other MCP clients to query and edit an indexed codebase. The original resource address is [https://github.com/vitali87/code-graph-rag/blob/main/README.md].

Practical fit

The documented design makes it a plausible option for developers who repeatedly investigate callers, imports and dependencies across a repository or mixed-language monorepo. The default embedded graph reduces database administration, although installation and AI configuration still require developer setup.

The README establishes intended capabilities rather than measured effectiveness. It supplies no quantitative results for retrieval accuracy, edit correctness, indexing time or repository scale, so those factors remain unassessed.

Who it serves

Potential users include maintainers tracing dependencies, developers learning unfamiliar repositories, and teams seeking code context for refactoring or dead-code investigation. Developers already using an MCP client can access the documented server integration.

Beginners need enough command-line familiarity to install a Python tool, select a repository and maintain its index. Experienced developers can consider optional compiler frontends, runtime tracing and alternative graph backends when the default structural analysis is insufficient.

Documented capabilities

The README describes natural-language code questions, source retrieval by name or intent, AST-based edits with a diff preview, optimisation against coding standards, dead-code discovery from entry points, and structural search and rewriting through ast-grep. It also describes merging calls observed during test execution or from production eBPF profiles.

The README labels Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart and Julia as fully supported. Scala is described as in development. Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash and Nix have structural support through ast-grep. These are documented coverage claims, not independently verified results.

Using it

Requirements

The stated prerequisites are Python 3.12 or newer and ripgrep. Installation requires the native cgr-graph-rs extension, which the README says ships for CPython 3.12+ on Linux x86_64 and aarch64, macOS, and Windows x64.

The recommended installation includes treesitter-full, ast-grep and semantic extras for language grammars, additional structural language support and vector search. The default graph needs no database server, Docker or cmake. AI provider settings, credentials, memory requirements and storage estimates are not specified in this README.

How it works

Tree-sitter parses source code into an abstract syntax tree, a structured representation of its syntax. The parser extracts code entities and relationships into a shared, language-independent graph. For a question, an AI model generates a Cypher graph query; matching graph information and source code provide context for the response.

Optional compiler frontends add more exact information: libclang for C/C++, go/types for Go, and opt-in Roslyn, javac and Jedi for C#, Java and Python. Runtime tracing adds observed calls. Compiler coverage depends on what its toolchain can build, while traces cover only code that actually ran.

Documented setup

The recommended installation command is uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic]". The README also documents pipx installation. These commands obtain the published PyPI release rather than necessarily matching the supplied source commit.

The documented indexing command is cgr start --repo-path /path/to/repo --update-graph. The subsequent query command is cgr start --repo-path /path/to/repo. The default graph file is ~/.cgr/graph.sqlite; SQLITE_GRAPH_PATH changes its location. AI model connection details require configuration documentation beyond this README.

Example use

For a repository containing a function named parse_config, an illustrative question after indexing is: Which functions call parse_config, and can you show its source? This combines the documented relationship lookup and source-retrieval capabilities. The function name is hypothetical; no answer or execution result is supplied.

A follow-up could request a change to that function. The documented editing interface offers a diff preview before changes, giving the developer a chance to inspect the proposal. Editing behaviour was not exercised.

Assessment & evidence

Limits and cautions

Coverage varies by language and analysis mode. Default indexing omits opt-in capture groups, which require --capture or CGR_CAPTURE. Runtime traces cannot reveal paths that did not execute. As an inference from those coverage limits, dead-code findings should be treated as candidates for investigation rather than proof that deletion is safe.

The default graph is shared across indexed repositories. The README states that --clean deletes every project in that graph, not just the selected repository, and requests confirmation when other projects would be destroyed.

Local graph storage does not establish where an AI provider processes code or prompts. The README advertises air-gapped enterprise deployments, but does not establish offline operation or model data-handling terms for the standard installation.

Why the design may help

The main design argument is that explicit caller, import and other structural relationships can provide useful context for questions that span multiple files. This is a reasoned benefit of the documented graph approach, not evidence that it outperforms text search or other retrieval systems.

The practical trade-off is maintaining an index and configuring analysis tools in return for richer code context. Its value will depend on the target languages, available toolchains and the questions a developer needs answered; no measured comparison establishes that value.

Available alternatives

Within Code-Graph-RAG, the documented graph choices are embedded SQLite, Memgraph and Neo4j. SQLite is the default without a database server. The Memgraph route requires its driver extra, GRAPH_BACKEND=memgraph and the packaged Memgraph plus Qdrant stack started with cgr daemon up. Detailed Neo4j setup and comparative performance are not supplied.

The README provides no substantive comparison with independent coding assistants or code-search products, so relative pricing, accuracy and feature rankings are unknown.

Source evidence

The README is pinned to source revision f5027df009ef8621a3dd49e93c49b833c5138e03 at [https://raw.githubusercontent.com/vitali87/code-graph-rag/f5027df009ef8621a3dd49e93c49b833c5138e03/README.md]. Its supplied SHA-256 is 0d96578a0e96b8c24e708d9f8dffc62bccfaca34c385051b5afb3cdac47c09c9.

The accompanying licence is [https://raw.githubusercontent.com/vitali87/code-graph-rag/f5027df009ef8621a3dd49e93c49b833c5138e03/LICENSE]. The README contains badges, demonstration links and links to implementation documentation, but those linked materials are not evidence of observed behaviour in this report. Nothing was executed; implementation correctness, security and performance were not assessed.

Access & freshness

Costs

The README describes the open-source software as free to use. It does not establish total operating cost: AI model charges, computing resources, storage needs and infrastructure costs are unknown.

Managed cloud hosting, on-premise and air-gapped deployments, custom development, consulting, support and training are advertised. Prices are not supplied. The linked enterprise page is [https://code-graph-rag.com/enterprise].

Use and redistribution rights

The accompanying MIT licence permits use, copying, modification, publication, distribution, sublicensing and sale of the software and associated documentation. Copies or substantial portions must retain the copyright notice and permission notice. The stated copyright is 2025 Vitali Avagyan, and the licence provides no warranty.

The README links to third-party licence credits at [https://docs.code-graph-rag.com/credits/]. Those notices are not included in the supplied evidence, so the obligations of individual dependencies are not established.

Version context

The supplied source snapshot was captured on 2026-11-22 at 09:05:25.645 UTC. The commit date and a concrete package release number are not supplied; the findings apply to the identified README revision.

The README distinguishes tags for every merge from GitHub Releases and PyPI publications, normally made every fiftieth version, with immediate releases for security fixes, breaking changes or merges labelled release now. A PyPI installation may therefore differ from the analyzed commit.

Before adopting it

Confirm that the target platform and languages match the documented support, then consult the linked installation and configuration guides to resolve AI model setup. Identify the installed version and graph location before indexing a repository.

Evaluate a few questions whose answers are already known, inspect the retrieved source, and review proposed diffs using the project's normal validation process. These are suggested adoption steps, not completed tests. Preserve other indexed projects when considering the shared graph's --clean option.

Evidence for this report

LICENSEnotice · checked 2026-11-22
README.mdselected · checked 2026-11-22