← Discover
Discover · GitHub · Code Graph RAG↑ +96 today

Query your code repository with artificial intelligence

Code-graph-rag combines knowledge graphs and fetch-assisted generation (RAG) to understand and query complex structures in large code repositories. It allows developers to analyze and edit code bases in different languages ​​with the help of artificial intelligence.

Updates

  • September 3, 2026: Stars 4,897 → 4,924, latest release v0.0.845 (September 2, 2026).
  • August 31, 2026: Stars 4,833 → 4,897, latest release v0.0.820 (August 31, 2026).
  • August 27, 2026: Stars 4,782 → 4,833, latest release v0.0.770 (August 26, 2026).
  • August 23, 2026: Stars 4,593 → 4,782, latest release v0.0.720 (August 22, 2026).

What you get

  • See complex relationships by turning the codebase into a knowledge graph
  • Get answers about code structure by asking questions in natural language
  • Make precise changes to code with structured search and editing tools

Installation

Installation with package manager
uv tool install "code-graph-rag[treesitter-full,semantic]"
Alternative installation method
pipx install "code-graph-rag[treesitter-full,semantic]"

Running it

Starting the database
cgr daemon up
Analyze and query the warehouse
cgr start --repo-path /path/to/repo --update-graph

If you don't write code

🤖 Paste this into your AI agent (Claude Code · Codex · Antigravity)

Analyze my code repository using the Code-Graph-RAG tool. Answer my questions using relationships between functions, classes, and modules in your code base. Suggest changes or optimizations I should make to the code using the structural analysis capabilities provided by the tool.

Related dictionary terms

Who it is forIt is for software developers who want to understand and query structural relationships in large and complex code repositories and make safe changes with the help of artificial intelligence.
LicenseMIT

Links

TreScout did not build this tool · we found it in GitHub trends and wrote it up. This page describes the repository as of 2026-08-10: The star count and our text belong to that day, the repository may have changed since. Check the repository link for the current state. This page was machine-translated from the Turkish original · the Turkish version prevails.