Here’s a problem I run into constantly: my AI coding assistant has zero memory of what I worked on last week. But every session starts fresh. And I keep dumping the same files into context, re-explain the same architecture, and burn tokens asking questions the agent answered yesterday.
Graphify solves that in a way I hadn’t seen before. It’s a skill for Claude Code (and many other AI coding tools) that reads a directory — code, docs, PDFs, even screenshots — builds a persistent knowledge graph from it, and lets you query that graph weeks later without re-reading the raw files. It’s sitting at around 2.3k stars on GitHub right now. 71.5x fewer tokens per query on a mixed corpus of code + papers. That’s not a marketing number — that’s their benchmark against Karpathy’s repos with actual output files to verify.
How Graphify Works
| Step | What Happens |
|---|---|
| Install | pip install graphifyy && graphify install |
| Run | /graphify . inside Claude Code |
| Output | Interactive HTML graph + Obsidian vault + wiki + JSON |
| Cache | SHA256 cache — re-runs only process changed files |
| Tech | NetworkX + Leiden clustering + tree-sitter AST + Claude vision |
Now the install took about a minute. pip install graphifyy then graphify install — writes the skill file to ~/.claude/skills/graphify/ and adds a line to your CLAUDE.md so Claude Code knows about /graphify. The PyPI package is temporarily named graphifyy while they reclaim the original name, but the CLI and skill command stay as graphify. Minor naming hiccup, nothing that affects usage.
I ran into a numpy version issue on Windows (Python 3.14 / 3.11 venv mismatch) when trying the standalone extraction. Still it’s a known cross-version pain point — the tool needs pipx install graphifyy to avoid it, or just running inside Claude Code which manages its own Python environment. Worth flagging if you’re on an unusual Python setup.
What Makes Graphify Different
Still, I’ve tried code-knowledge tools before. But the ones that worked needed Neo4j and a server. The rest just dumped a JSON tree. Graphify sits in a sweet spot:
-
Fully local. No server, no Neo4j. The AST extractor runs entirely on tree-sitter — Python, TypeScript, Go, Rust, 20+ languages. No API key needed for code-only mode.
-
Edge tagging you can trust. Every connection is tagged
EXTRACTED,INFERRED, orAMBIGUOUS. You always know whether graphify found a real call or guessed from naming. Matters when you’re debugging. -
71.5x compression. On a 52-file Karpathy-repos benchmark, that’s 71× fewer tokens per query using the graph vs raw files. The
worked/folder on GitHub has the actual outputs. -
Auto-sync and git hooks.
--watchrebuilds on file changes.graphify hook installadds a post-commit hook so every commit rebuilds the graph. Workflow detail that tells me the author uses the tool. -
Multi-platform. Claude Code, Cursor, OpenCode, Gemini CLI, Aider, Copilot, VS Code — auto-detects your setup and writes the right config.
If you use Repomix for packing codebases into AI context, Graphify takes that idea further — instead of a flat bundle, you get a connected graph. And for zero-trust agentic coding, check out Clodex. If you’re new to building LLM-powered apps, Building LLM Powered Applications covers the full pipeline — from API integration to agent design — and pairs well with what Graphify does on the knowledge side. (affiliate link)
Where It Gets Honest
But the extract command failed on my Windows setup — numpy C-extension mismatch between Python versions. Using pipx fixes it, but if you’re deep in a managed Python environment (conda, pyenv, system Python), install graphifyy in a clean venv or use the Claude Code integration which handles the Python runtime itself.
But the graph quality depends heavily on what you feed it. On a well-structured codebase with clear function boundaries, the AST pass produces a clean call graph. But on a monorepo with mixed conventions, the LLM semantic pass is needed to make meaningful connections — and that pass needs an API key (Claude, OpenAI, Gemini, or DeepSeek). The --code-only flag helps, but you lose the “surprising connections” that make the graph useful.
Still the wiki output (--wiki) generates markdown articles per community — great for agent navigation but adds build time. For small projects (under 20 files), building and maintaining the graph probably isn’t worth it — just dump the files into your assistant directly.
The Bottom Line on Graphify
Still Graphify fills a real gap: persistent project memory that doesn’t require a server or database. The 71.5x token compression is impressive, the edge tagging is honest, and the multi-platform install works with whatever assistant you use. If your Claude Code sessions keep forgetting what you built last week, this is worth the five-minute setup.
Disclosure: Some links below are affiliate links. If you sign up through them, I may earn a commission at no extra cost to you.
- Building LLM Powered Applications — on Amazon
📚 Further reading: If Graphify’s knowledge-graph approach to AI coding interests you, Building LLM Powered Applications goes deep into designing intelligent apps and agents — the natural next step after mastering project-level context.