// rag · vitali87/code-graph-rag

code-graph-rag

code-graph-rag — проект с открытым исходным кодом из категории «RAG и базы знаний» от vitali87 (vitali87/code-graph-rag на GitHub). У него 5 238 звёзд на GitHub и 699 форков, он распространяется по лицензии MIT и последний раз обновлялся на GitHub 8 октября 2026.

RAG for your monorepo: query, understand and edit multi-language codebases with a knowledge graph.

★ 5,2 тыс. звёзд⑂ 699 форковMITобновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
vitali87/code-graph-rag
Звёзды GitHub
5 238
Форки
699
Лицензия
MIT
Последнее обновление на GitHub
8 октября 2026
Тип страницы
Полное руководство по установке
Официальный сайт
Official site
// как это работает

Как это работает

  1. Clarify your codebase problem

    Decide what you need: understanding a monorepo, finding dead code, tracing behavior, or safe automated edits.

  2. Install the tool

    Install code-graph-rag with the Tree-sitter and semantic extras via uv or pipx.

  3. Start the stack and index

    Start the packaged daemon, then parse your repository into the graph.

  4. Ask your first question

    Query the codebase in natural language and inspect the grounded, graph-backed answer.

// возможности

Почему его любят

Knowledge-graph code index

Parses source with Tree-sitter into AST-level graph structure — functions, classes, calls and references — stored in Memgraph.

Natural-language querying

Asks questions in plain language; an AI model generates Cypher against the graph and answers grounded in the real structure.

Surgical code editing

Edit code through the agent with AST-based patching and a diff preview before anything changes.

Dead-code and structural analysis

Finds dead code by walking call and reference edges from entry points, and searches/rewrites by AST pattern with ast-grep.

Runtime overlay

cgr trace merges actually-executed calls (test runs or production eBPF profiles) into the graph, exposing dynamic dispatch static analysis cannot see.

MCP server mode

Exposes the graph to MCP-compatible agents, with incremental indexing that keeps the graph current as code changes.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Clone Code-Graph-RAG if you want the source; most users install the tool.

    git clone https://github.com/vitali87/code-graph-rag.git
    cd code-graph-rag
  2. Install with extras

    Install the packaged tool with full Tree-sitter language support and semantic search.

    uv tool install "code-graph-rag[treesitter-full,semantic]"
  3. Index and query

    Start the packaged Memgraph + Qdrant stack, parse your repo into the graph, and start querying.

    cgr daemon up
    cgr start --repo-path /path/to/repo --update-graph
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains Code-Graph-RAG?

It is maintained by vitali87 and contributors, with enterprise services offered around the open-source core.

Is it free?

Yes — the tool is MIT licensed and runs locally; enterprise cloud and on-premise services are optional paid offerings.

Does it need a paid API key?

Querying uses an AI model to generate Cypher, so you need access to a model provider you configure; the indexing itself is local.

How does it compare to Semble or grep-based search?

Search tools return chunks; Code-Graph-RAG builds a structural knowledge graph you can traverse — call edges, references, runtime traces — and edit through, at the cost of a heavier indexing stack.

How do I get started?

Install with uv, run cgr daemon up, and index your repo with cgr start --repo-path.

// продолжить изучение

Похожие инструменты

RAG и базы знаний

graphrag

Microsoft's graph-based RAG: index a corpus into a knowledge graph, then query it with an LLM

★ 36,3 тыс. звёздMIT
Смотреть руководство →
RAG и базы знаний

autoflow

Graph RAG conversational knowledge base built on TiDB Serverless vector storage

★ 3,0 тыс. звёздApache-2.0
Смотреть руководство →
RAG и базы знаний

autonomie

Open rag & knowledge for "autonomie" is a highly semantic, responsive, accessibl.

★ 103 звездыMIT
Смотреть руководство →
RAG и базы знаний

UltraRAG

A low-code MCP framework for building complex, innovative RAG pipelines — visibly, not as a black box.

★ 5,7 тыс. звёздApache-2.0
Смотреть руководство →
RAG и базы знаний

SAG

A new state of the art for RAG: an open knowledge base for humans and agents.

★ 2,5 тыс. звёздMIT
Смотреть руководство →
RAG и базы знаний

coco-server

Free rag & knowledge tool that 🥥 coco ai server - search, connect, collaborate, ai-pow.

★ 147 звёздNOASSERTION
Смотреть руководство →
// альтернативы

Альтернативы: RAG и базы знаний

Другие проекты из категории «RAG и базы знаний» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если code-graph-rag вам не подходит.

// ещё в категории rag

Больше проектов: RAG и базы знаний

Соседние проекты из категории «RAG и базы знаний» в каталоге, ближайшие по числу звёзд к code-graph-rag — продолжайте изучать полку по обе стороны от него.

Получить code-graph-rag

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.