Graphify Tested: 34 Seconds to a Semantic Code Graph, but the Docs Path Fails Quietly
Graphify Tested: The 139k-Star Graph Tool, 34 Seconds on a Real Project
Object under test:
Graphify-Labs/graphifyv0.9.99 (PyPI package graphifyy, double y) License Apache-2.0 | GitHub 139.9k stars | Last updated 2026-10-30 Test time: 2026-11-01 early morning | Test machine: Windows, Python 3.13 Test target:TradingAgents(real multi-module Python project, 165 code files)
One-sentence conclusion
The code leg is solid; the docs leg depends on your key; and its real value is not "replacing grep" but giving you a dimension grep can't provide.
What problem it solves
Before changing a utility function, you want to know "who uses it". grep gives you a pile of text matches, and you have to manually decide which are comments, which are docstrings, and which are real calls. Once the project grows, that job never ends.
Graphify's approach: use tree-sitter to parse code into an AST, extract semantic edges like "calls / imports / inherits / references", connect them into a graph, and let you query the graph instead of flipping through files.
What I did with it (all real data)
Ran pure local AST graph construction on TradingAgents (165 code files):
graphify extract . --code-only
| Metric | Result |
|---|---|
| Time | 34 seconds (12 workers in parallel) |
| Output | 2,589 nodes / 5,919 edges / 105 communities |
| API Key | Zero, fully offline |
| Artifact size | graph.json 2.5 MB |
| Export interactive HTML | 1 second, 2.7 MB, opens without a server |
| Second project (516 py, 3.3 MB) | 33 seconds, 2405 nodes / 6340 edges / 180 communities |
Token reduction measurement (its own benchmark):
Corpus: 129,450 words → ~172,600 tokens (naive)
Graph: 2,589 nodes, 5,919 edges
Avg query: ~2,444 tokens
Reduction: 70.6x fewer tokens per query
God-nodes (architectural hubs) — this is the most useful; understand an unfamiliar project in 30 seconds:
1. TradingAgentsGraph 74 edges
2. TradingMemoryLog 49 edges
3. get_instrument_context_from_state() 45 edges
4. NoMarketDataError 42 edges
5. make_log() 42 edges
The top TradingAgentsGraph really is the core graph object of this project — it didn't guess blindly.
Path query (the selling point the copy boasts about; in testing it actually delivers):
$ graphify path "TradingAgentsGraph" "route_to_vendor"
Shortest path (3 hops):
TradingAgentsGraph --method [EXTRACTED]--> ._create_tool_nodes()
--indirect_call [INFERRED 0.85]--> get_stock_data()
--calls [EXTRACTED]--> route_to_vendor()
Path confidence: INFERRED (weakest hop 2: indirect_call, score 0.85)
Pitfall log (core, and what I value most)
Pit 1: Its best trait is not speed, it's honesty
Notice the labels in the path above: [EXTRACTED] means the edge is genuinely pulled from the AST, [INFERRED 0.85] means the model guessed it. And it proactively tells you "the weakest hop in this path is hop 2, confidence 0.85".
Most tools mix both kinds of edges and make you think they are equally reliable. This one does not. I think this design is worth more than the 70x token reduction — because you know which part you can't fully trust.
Pit 2: query is not Q&A, it's BFS traversal
This is the easiest to misunderstand. I asked it a real question:
$ graphify query "how are errors handled in data fetching"
Graph: 2589 nodes | Traversal: BFS depth=2 | 388 nodes found
[!] TRUNCATED: showing 73 of 388 nodes (~2000-token budget)
NODE errors.py [src=...errors.py loc=L1 community=13]
NODE NoMarketDataError [src=...errors.py loc=L25 community=29]
...
It didn't answer "how errors are handled"; it gave me 388 related nodes (and truncated to 73). You have to trace through them yourself.
So don't use it as a ChatGPT. It's a retriever, not an answerer. For an answer, you plug your own model to read these nodes.
Pit 3: The docs / images leg can silently fall
This is the roughest hit this round. Same directory, this time without --code-only:
found 165 code, 6 docs, 0 papers, 10 images
using backend 'gemini' (auto-detected from GEMINI_API_KEY)
AST extraction: 165/165 files (100%)
chunk 1/7 failed: Error code: 400
chunk 6/7 failed: Error code: 429
WARNING: 7/7 semantic chunk(s) failed — Partial results returned.
WARNING: 16/16 dispatched file(s) produced no nodes and are absent from the graph
The code part, 165 files, is intact, but semantic parsing failed all 7 chunks (5 with 400, 2 with 429), and 16 files (index.html, a bunch of pngs) directly dropped out of the graph.
The key point is that it's partial results — it doesn't stop, doesn't error out with a nonzero exit, it gives you a graph missing 16 files. If you don't read the logs, you won't know anything is missing.
That's the other side of "code doesn't call the LLM": code needs no key, so it's stable; docs need a key, so if the key expires or gets rate-limited, that leg breaks, and it breaks quietly.
Pit 4: Installing the wrong package
The PyPI package name is graphifyy (double y), not graphify. The official README explicitly says other graphify* packages "are not affiliated". If you miss a y, you may install something with the same name but different behavior.
Correct installation:
uv tool install graphifyy # or pipx install graphifyy
graphify install # auto-detect your AI assistant
graphify install --platform codex # specify platform, supports 20+
Pit 5: I almost blamed it wrongly (the real cause was my own directory)
This one is a self-correction, and I think it's more valuable than the ones above.
I then scanned our own tool library — a directory with 1133 entries and 516 py files. It didn't finish in 5 minutes, and reported pypdf missing. My first reaction: oh, when the scale grows it's no longer linear.
I almost wrote that into the review.
Then I measured the size of that directory:
| Type | Count | Size |
|---|---|---|
.gguf (local model weights) |
2 | 1.56 GB |
.7z |
1 | 400 MB |
.zip |
4 | 399 MB |
.msi (installers) |
2 | 358 MB |
.pth (weights) |
1 | 332 MB |
.exe |
29 | 219 MB |
| Whole directory | 1407 | 3.4 GB |
I copied just the 516 py files to a clean directory (3.3 MB) and reran:
AST extraction: 516/516 files (100%) [12 workers]
graph.json: 2405 nodes, 6340 edges, 180 communities
Time: 33 seconds
165 files in 34 seconds, 516 files in 33 seconds — it's linear; I was wrong.
It was slow because I asked it to index a junk drawer holding 1.5 GB of model weights. That's not a tool flaw; my directory was dirty.
Lesson here: clean the directory before feeding it to an indexer, or use .graphifyignore to exclude binaries and weights. Before you conclude "this tool is slow", measure how many GB you actually fed it.
Pit 6: Comparing grep counts can mislead
Same question "who uses normalize_symbol":
| Method | Return |
|---|---|
grep -rn "normalize_symbol" |
71 text matches (including comments, docstrings, the definition itself, import statements) |
graphify affected "normalize_symbol" |
13 semantic relations, each with relation type + file + line number |
13 vs 71 is not a miss — it's separating "this word appears" from "this function is called". These two numbers can't be compared by size; what you compare is the dimension.
Comparison of alternatives
| Method | Cross-file relations | Cost | What it gets wrong |
|---|---|---|---|
| grep / ripgrep | ❌ only text positions | 0 | can't distinguish comments from calls |
| Read code manually | ✅ | most expensive | large projects unreadable |
| LSP / IDE jump | ✅ single point very accurate | low | only one hop at a time, no global structure |
| Graphify | ✅ includes inheritance, indirect calls | code zero cost, docs need a key | query doesn't answer; multimodal can collapse |
| Code search SaaS | ✅ | pay per use + code leaves your machine | code goes to the cloud |
Who it fits / who it doesn't (explicitly steering away)
Use it if:
- You take over a large unfamiliar codebase and want to see which nodes are hubs in 30 seconds (
god-nodesalone pays for it) - Before changing a low-level function, you want a precise list of affected call sites (not 71 lines of noise)
- Code is confidential and can't leave the machine — it handles this cleanly, pure code graph is truly offline
- You want an AI assistant to consult the graph before answering code questions instead of guessing (
installregisters a hook)
Don't use it if:
- You want a Q&A bot that directly answers "how are errors handled" — it's not, it only gives nodes
- Your corpus is mostly PDF / scanned documents / images — that leg depends on a model and collapses with key status, quietly
- The project is a few hundred lines; grep does it in three seconds, building a graph is over-engineering
- You expect it to replace understanding code — it only compresses "which files to look at" from 2 hours to 2 minutes; the rest you still read yourself
Four-dimension scoring
| Dimension | Score | Reason |
|---|---|---|
| Usability | ★★★★☆ | One command to build the graph, one command to export HTML; but query is easy to misread |
| Stability | ★★★☆☆ | Pure code mode is stable (165 files / 34s, 516 files / 33s, linear, no failures); mixing in docs depends on the key, measured 7/7 all failed |
| Value for money | ★★★★★ | Open source and free, zero token cost on code, the 70x token reduction is real |
| Learning curve | ★★★☆☆ | There are 40+ commands; you need to sort out extract/cluster/query/affected/god-nodes first |
Is it worth it
Yes, but set expectations right.
It's not the magic of "AI reads code"; it's a structure indexer: upgrades "where text is" to "who depends on whom".
My real workflow is three commands: extract --code-only to build the graph → god-nodes to see the skeleton → affected to query impact. Before, those steps relied on flipping through files and memory; now it's a dozen seconds.
The 34 seconds / 2,589 nodes / 70.6x is its strongest side; the 7/7 chunk failure / 16 files silently missing is the side you most need to know about.
Two sentences to remember: the code leg is safe to step on; on the docs leg, check the logs first.
One more lesson of my own: I once thought it "gets slow at scale", but it turned out my directory held 1.5 GB of model weights. Before concluding "slow" for any tool, measure how many GB you fed it.
This article is a tool test record, not investment advice. All numbers were measured locally on 2026-11-01; your environment may differ. Video/audio local transcription (faster-whisper) was not tested by me; I only citied the official description.
Top 1 from juejin.cn, machine-translated. The original thread is authoritative.
This trick hits me most — when taking over an unfamiliar project, seeing the skeleton in 30 seconds is far faster than flipping through files. Also keep in mind that the documentation leg can fail silently; without checking the logs you really can't tell something is missing.