repo-graph

Structural graph memory for AI coding assistants. Map your codebase. Navigate by structure. Read only what matters.
repo-graph gives LLMs a map of your codebase — entities, relationships, and flows — so they can navigate to the right files without reading everything first.
Instead of flooding an LLM's context window with your entire codebase (or hoping it guesses right), repo-graph builds a lightweight graph of what exists, how things connect, and where the entry points are. The LLM queries the graph, finds the minimal set of files it needs, and reads only those.
It pays off most where that's hardest to do by hand: large repos, monorepos that span several languages, and multi-service systems where a feature's path crosses files, stacks, and service boundaries. On a small single-language project a model can just read the files — see Where it fits best for the honest sweet spot.
Install in one click:

Or one command in your terminal wires up every agent you have: uvx mcp-repo-graph install (see Install).
Upgrading to 0.5.4
Most people don't have to do anything. uvx and pip install mcp-repo-graph pull in the new
engine (glia 0.5.7, pinned exactly). The first start in each repo reparses everything once. Same
six tools, same arguments.
You only need to act in two cases:
- You hand-wrote stanzas in
.glia/overlay.toml. Add origin = "human" to each [[wrapper]],
[constants] and [[route_prefix]] stanza you wrote yourself. An unmarked stanza is now treated
as model-written, and the links it creates are ranked heuristic.
- You also run glia's own CLI hooks in the same repo. Reinstall the CLI at
v0.5.7 too, or the
two rebuild each other's cache on every commit.
What's better: MCP servers (Python @mcp.tool(), the TypeScript SDK's McpServer) are read as
hosts, so their tool functions are entry points, not dead code. Every declared entry (host starts,
scripts, __main__ guards) now starts a flow. Rails nested resources, C# [HttpX] + [Route]
actions, Angular lazy routes and Solidity events come out right. Test-to-code pairing and Python
attributes are less noisy.
Upgrading to 0.5.3
Most people don't have to do anything. uvx and pip install mcp-repo-graph pull in the new
engine (glia 0.5.6, pinned exactly). The first start in each repo reparses everything once.
Three things changed that you might notice:
impact answers big radiuses as an overview. A hub node used to return every row (thousands
on a large repo). It now returns the top 25, then the areas and files the rest fall in. Drill in
with scope=<area>, page with offset, or pass full=true for the old every-row answer. If a
script parses repo-graph impact output and needs every row, add --full.
- The skills are renamed
repo-graph-<verb> → glia-<verb> (/repo-graph:glia-find). They
now live in glia and also show the glia CLI command. The plugin updates them for you.
- Absence tiers are lowercase:
No answer (no_match, fact), not FACT.
If you also run glia's own CLI hooks in the same repo, reinstall the CLI at v0.5.6 too, or
the two rebuild each other's cache on every commit.
What's better: rankings put files that historically change together first (once you've run
uvx --from glia-cli glia history sync .), far fewer phantom edges in every language, routes carry their mount prefix
(Django, Flask / FastAPI, Express / Koa / NestJS, gin groups), the graph knows what a Dockerfile,
compose service, Procfile or systemd unit starts, Lua is parsed, and the file watcher updates the
graph in place instead of rebuilding it. Every tool is also a shell command (uvx mcp-repo-graph find checkout), no server needed.
Upgrading to 0.5.2
Most people don't have to do anything. uvx and pip install mcp-repo-graph pull in the new