aixsam.dev / tools / graphify
Graphify
Turns your whole codebase into a knowledge graph, so Claude Code, Cursor or Codex ask the graph instead of re-reading every file.
What is Graphify?
Graphify is a free, open-source tool that reads a folder (your code, notes, PDFs, screenshots, diagrams) and builds a knowledge graph of how everything connects. Your AI coding assistant can then ask the graph instead of opening and re-reading every file in each new session.
Code is parsed locally with tree-sitter, so it never needs an AI to understand your functions and imports. Docs, papers and images are read by Claude to pull out concepts and links. Every connection in the graph is marked as extracted, inferred or ambiguous, so you can see what was found and what was guessed.
How much it saves depends on size. On the project's own benchmark of 52 files (3 repos, 5 papers, 4 images) a query used 71.5× fewer tokens than reading the raw files; on 4 files it was 5.4×, and on 6 small files about the same as reading them. The bigger the folder, the bigger the win.
What Graphify can do
- An interactive map
graph.html: click, search and filter your code by community. - A one-page report
GRAPH_REPORT.mdlists the "god nodes" everything runs through, surprising connections, and questions the graph can answer. - Questions in plain English
/graphify query,pathandexplainanswer from the graph. - Stays up to date
--updatere-reads only changed files;--watchor a git commit hook rebuilds it automatically. - Exports an Obsidian vault, a wiki for agents, SVG, GraphML (Gephi, yEd), Neo4j, or an MCP server.
- Any mix of files Python, TypeScript, Go, Rust, Java, C/C++ and more, plus Markdown, PDFs and images.

What you need
- Python 3.10 or newer.
- uv (installs Graphify in its own clean space). Step 1 shows how.
- An AI coding assistant: Claude Code, Cursor, Codex and 20+ others.
Setup, step by stepcopy each command with the button on the right
Install uv
Mac:
brew install python@3.12 uvWindows (PowerShell):
winget install astral-sh.uvLinux:
curl -LsSf https://astral.sh/uv/install.sh | shInstall Graphify
uv tool install graphifyyTwo y's:
graphifyyis the official package. Other "graphify" packages aren't theirs. The command you type is stillgraphify.Connect it to your assistant
graphify installIt detects Claude Code automatically. For others:
graphify cursor install, orgraphify install --platform codex.Build the graph
Open your assistant in your project folder and type:
/graphify .You get a
graphify-out/folder withGRAPH_REPORT.md(the big picture),graph.jsonand an interactive graph.Make it always use the graph
Run this once in the project:
graphify claude installNow Claude checks the graph before searching your files.
Try this first
Stuck?
"graphify: command not found"
Run this, then close and reopen your terminal:
uv tool update-shellDoes my code leave my computer?
No. Code is parsed locally. Only docs/media go through an AI backend, and only if you set one up.
How do I remove it?
graphify uninstallQuestions people ask
Is Graphify free?
Yes, it's free and open source. Building the graph from code costs nothing; reading docs, PDFs and images goes through your AI assistant, like any other request.
Why is the package called graphifyy?
The PyPI name graphify is being reclaimed, so the official package is temporarily graphifyy (two y's). The command you type is still graphify.
Does it work with Cursor or Codex, not just Claude Code?
Yes. graphify install sets up Claude Code, and there are install options for Cursor, Codex and other assistants (step 3 above).
“graphify” is not recognized on Windows
Add Python's Scripts folder to your PATH (%APPDATA%\Python\Python3xx\Scripts), or install with uv or pipx, which handle the PATH for you.
Will it really save 71.5× tokens on my project?
Only on a big, mixed folder like the benchmark's 52 files. Small projects that already fit in the context window save little; there the value is seeing the structure, not saving tokens.
Still stuck?
DM me on Instagram with a screenshot of the error and which step you're on.
DM @aixsamdevMore setup guides
MoneyPrinterTurbo
Type one topic and it makes the whole short video for you.
LINKEDINLinkedIn Skills
12 free Claude skills that write your LinkedIn posts, comments and replies in your voice, plan your week and fix your profile.
TEAMECC (Everything Claude Code)
Turns Claude Code into a whole engineering team.
CLONEReplica skill
11 free Claude skills that study an app, rebuild it, test it, read what its users hate and fix that, then help you launch your own version.
REPOVoicebox
A free AI voice studio on your own computer.
DEVClaude Code Dev Team
Five free tools that turn Claude Code from one developer into a full team.