Repo2graph — AI skill for Claude Code
Give coding agents trustworthy, cited answers about your codebase.
How to install Repo2graph
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Srinivasan-78/repo2graph and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Repo2graph does
Give coding agents trustworthy, cited answers about your codebase. Code graph + MCP server, no LLM required.
Alternatives in AI
- Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
- Memtrace Public — Structural memory for AI coding agents 466 ★
- Octocode — Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in o 464 ★
README
repo2graph
**Cited, token-bounded answers about a codebase, for coding agents and CI.**
[](https://pypi.org/project/repo2graph/) [](https://github.com/Srinivasan-78/repo2graph/actions/workflows/ci.yml) [](LICENSE)
Ask a repository a question and get back the source that answers it. Every block is headed `[cite: path:start-end]`, and the whole reply fits under a token ceiling that the tool enforces. One tree-sitter pass records who calls whom, who imports what, and which files keep changing together in git. Retrieval starts from BM25 matches and follows those links.
It needs no model, no API key, no language server and no database. Building, querying and the MCP server make no network calls; the only exceptions are `rag --answer` (opt-in, sends the pack to an LLM), `repo2graph github` and a `rag`/`query` target given as a GitHub spec (both clone a repository), and `--vectors`/`embed` (download the embedding model on first use). Parsers are part of that promise: `tree-sitter-language-pack` is pinned below 1.0 so every grammar arrives compiled into the installed wheel, rather than being downloaded on first parse — see [SECURITY.md](.github/SECURITY.md#why-this-is-safe-for-enterprise-use). Use it from the CLI, as an MCP server in Claude Code or Cursor, or as a GitHub Action.
Try it
uvx repo2graph demo # bundled example repo, five questions answered
uvx repo2graph build . -o .r2g # index your own code
uvx repo2graph rag "how does routing work" -o
Related Skills
Jirrafe
Code graph of Java/Kotlin projects, including the code inside internal jars, for AI coding agents. Ships as an
Codebone
A real-time semantic codebase knowledge graph powered by a local LLM for macOS, delivering clean architectural
AutoSearch
new Self-evolving deep research plugin for Claude Code -- 32 dedicated search channels (arXiv, GitHub, Reddit,
Codigest
Turn your codebase, diffs and terminal output into LLM-ready context. CLI + MCP server for AI coding agents.
Zotero LLM Wiki
Claude Code skills and plugin for research papers: ask about your Zotero PDFs with page-cited answers, search
Axon
Local-first RAG engine with cited answers from your own docs. GraphRAG, sealed sharing, MCP-native, VS Code Co
Related Agents
Cortex Analyst
Answers questions about a codebase using the Córtex knowledge graph (MCP tools or the cortex CLI). Use for "wh
Manual Verifier
Independent fact-checker for answers built from the Ford service manual. Give it the vehicle, the question and
Question Forger
Generates evaluation questions with gold answers and gold evidence from real graph paths and from the syntheti