Skip to content
Shipworthy

Graphify: what a code knowledge graph gives Claude Code

Graphify maps a repo into a graph that Claude Code queries before it greps. What it found and missed on a real Next.js project, plus cost and privacy.

By · · Updated · 16 min read


Graphify is a free, open-source command-line tool that parses a repository into a knowledge graph: files, functions, imports and calls as nodes and edges. An AI coding agent such as Claude Code can then ask the graph where something lives and what depends on it before it starts searching files. The code pass runs on your own machine and needs no account and no API key.

I have used it in the repository behind this site since 28 October 2026. In my tests the narrow commands were the useful part: explain, path and affected gave short, exact answers with file and line numbers. The broad query command was noisier than a plain grep for the question I gave it. The newest release when I tested, 0.9.118, crashed on those commands in a clean install. Version 0.9.119, published later the same day, fixes that, and I have added the result of running it below.

What it is and who makes it

Graphify comes from Graphify Labs. The code is on GitHub at Graphify-Labs/graphify and the tool is published on PyPI as graphifyy, with a double y. The README warns that other graphify* packages on PyPI are not affiliated.

Some numbers, all read on 24 November 2026:

  • Age: the GitHub repository was created on 3 April 2026.
  • Popularity: 152,668 stars and 14,669 forks.
  • Open work: 782 open issues and 927 open pull requests.
  • Latest release: 0.9.118, published on 23 November 2026. Version 0.9.119 followed on 24 November, after I read these numbers.
  • Release pace: PyPI carries 284 releases since 4 April 2026. That is more than one a day on average.
  • Licence: Apache-2.0.

The README makes three claims that the rest of this post tests:

  • "Code is parsed with tree-sitter AST: deterministic, no LLM, nothing leaves your machine."
  • Every edge is tagged EXTRACTED (explicit in the source) or INFERRED (resolved by graphify).
  • "Not a vector index. No embeddings, no vector store: a real graph you traverse."

How it is set up in this repo

The install on 28 October added three things:

  • A skill. .claude/skills/graphify/ holds an 836-line SKILL.md and eight reference files. This is what runs when you type /graphify in Claude Code.
  • Two Claude Code hooks. .claude/settings.json gained PreToolUse hooks: one on Bash and Grep, one on Read and Glob. Both call graphify hook-guard.
  • Four git hooks. post-commit, post-checkout, post-merge and post-rewrite rebuild the graph in the background. The log on this machine shows 24 rebuilds and no errors.

The output goes to a graphify-out/ folder with three main files: graph.json, an interactive graph.html and a GRAPH_REPORT.md summary. Here that folder is 6 MB, and graph.json is about 1.1 MB. I keep it out of git, so each machine builds its own.

The project's CLAUDE.md also has a short graphify section that tells the agent to run a graph query before its first grep.

What the graph contains

These numbers come from the report and from graph.json, built by 0.9.97 at the current commit:

MeasureValue
Files read192
Nodes1,364
Edges1,996
Communities (detected groups)126
Edges tagged EXTRACTED1,962
Edges tagged INFERRED34
LLM tokens used0

The node types say a lot about this particular repo:

  • 714 nodes are document headings. Without any LLM, graphify still reads Markdown and MDX and adds each heading as a node. This site is a blog, so 531 nodes come from article files.
  • 604 nodes are code: files, functions, components and types.
  • 46 nodes are package names from package.json.

The edges are mostly structure. 1,134 are contains edges (a file contains a function, a document contains a heading). The ones that carry real information about the code are 542 import edges and 236 calls edges.

The 34 inferred edges were reasonable when I checked them. 23 link a section of a Markdown doc to a function it mentions. 11 are indirect calls, such as the MDX component map that passes AffiliateLink to the renderer without calling it directly.

How fast it is

All on the same machine, with the code-only graphify update . command:

RunTime
Build from nothing (192 files, clean copy of the repo)4.2 seconds
Rebuild with 88 files to re-read2.8 seconds
Rebuild with nothing changed0.9 seconds
One query, path, explain or affected callabout 0.5 seconds
One hook call before a searchabout 0.2 seconds

For a repo this size, speed is not a concern. I have no numbers for a large codebase.

Where it helped

affected gives a list of what depends on a file. I asked what depends on the click-tracking module:

graphify affected "track.ts"

It returned ten dependents in 13 lines: the files that import it, the two functions that call into it, and the files one step further out. Each line has a file and line number. Getting the second step out of grep takes several searches.

explain shows one symbol and its connections. For the AffiliateLink component it listed nine connections in 17 lines: who imports it, who calls it, what it calls, and two sections of this repo's status log that mention it. Three were tagged INFERRED (the two doc links and one indirect call) and the rest EXTRACTED, so I could see which were read straight from code and which were worked out.

path answers "how are these two connected". From AffiliateLink to the tracking module it found the two-hop path through the import.

Where it did not

The broad query was worse than grep for a narrow question. I asked:

graphify query "how does the affiliate link redirect through /go work"

The answer was 6,643 characters: a list of 65 nodes, cut off from 139, with no relations between them at all. The route handler that does the redirect was 39th in the list. One of the five starting points was a heading in an unrelated article, "Pay as you go, through Claude Code", matched on the words of my question.

A plain search for AffiliateLink or /go/ in the source folder returned 22 lines and 1,930 characters, across the ten files that matter.

The output suggested raising the token budget to 4,021 to see everything. With that setting 0.9.97 printed 54,368 characters, and its own header said the answer was about 17,755 tokens.

I ran the same question on 0.9.115 with a fresh graph. The result was the same shape: 67 of 134 nodes, no relations, the route handler in the same place.

Two more questions behaved the same way, with 107 and 183 nodes found and both cut off. From what the output shows, query matches words in the question to node names and then walks outwards two steps. In a repo where more than half the nodes are article headings, that picks up a lot of noise.

It cannot see links made of strings. The component and the route handler are connected by a URL:

href={`/go/${tool.slug}?${query}`}

There is no import and no call between them, so the graph has no edge. graphify path between the two said "No directed path found". With --undirected it found a path through a helper function both happen to use, which is true but is not the reason they are related. The same limit will apply to anything wired by route names, event names, queue names or config keys.

Test files are nearly empty in the graph. Every build warns that 12 code files "yielded no symbols". They are test files, where everything is a call to describe or it. Each one appears as a single file node.

Some names in the report are noise. Community names are taken from the most connected node, so this repo has groups called "with", "compilerOptions" and "Log". The list of most connected nodes is led by next (the npm dependency) and includes "Log" (a heading in a status file). The README says a separate labelling step can name groups with an LLM. I have not run it.

The hook in practice

The hook is how the graph reaches the agent without being asked. Before a search, Claude Code calls graphify hook-guard, and the hook adds a note to the tool call. For a search for recordClick the note was:

graphify: this project has a knowledge graph at graphify-out/graph.json. graphify query "<question>" returns the files and relations that matter for a question, usually in far fewer tokens than grepping raw files.

It then suggested graphify explain "recordClick()" and named the file and line where that function is defined. That last part is useful: the agent gets the location without running the search.

Two things to know:

  • It does not block. In this setup the hook only adds a note. The README describes a --strict install that denies one read or search per session unless the agent has recently queried the graph. I have not used it.
  • It fires on searches that are not about code. While preparing this post, the hook added its note to a search of this repo's to-do list.

The claim in the note, "far fewer tokens than grepping", did not hold for the question above. It may hold on a larger codebase, where a grep returns hundreds of lines. I cannot say from this repo.

The newest release crashes on queries

I repeated the tests on the latest release in a clean, temporary environment. On 0.9.118, the build worked, but query, path, explain and affected all ended the same way:

ModuleNotFoundError: No module named 'anyio'

The cause is in the package. anyio is installed only with the optional mcp extra, but a module that those commands load now imports it at the top. An open pull request, #5422, describes the same crash and moves the import back. It was opened on 23 November and was not merged when I checked.

Version 0.9.115 ran all the same commands without error. Versions 0.9.112 to 0.9.114 passed the one command I tried on them, explain.

With more than one release a day, this kind of regression will probably be fixed quickly. It is also the cost of that pace: the version you install today may not be the one that worked yesterday.

Update, 25 November 2026. It was fixed quickly. Version 0.9.119 was published on 24 November, about 26 hours after 0.9.118. Its release notes say the graph commands "run again on a core install without the [mcp] extra", and give the same cause: 0.9.118 imported anyio at the top of graphify/serve.py. Pull request #5422 was closed without being merged. The maintainer's comment on it says the fix "Landed in v0.9.119 via an authorship-preserving cherry-pick".

I ran 0.9.119 on 25 November in a clean copy of this repo, in a temporary environment where anyio was not installed. The build worked, and explain, path, affected and query all ran without error. I did not repeat the timing or size comparisons from this post, because the repo has grown since the first test.

What leaves your machine

For code, nothing, according to the README, and my test agrees as far as it can: the builds ran with no API key set and the report shows zero tokens.

Three details matter:

  • Documents are different. The README says docs, PDFs and images are "sent to your AI assistant for semantic extraction", or to whichever provider you have an API key for. Every code-only build here ends with a tip to set a Gemini key for that step. If your repo holds private documents, read the README's privacy section before you run the full /graphify pipeline.
  • The README is out of date about query logging. It says every query is logged to ~/.cache/graphify-queries.log unless you opt out. The code says the opposite: logging is off unless you set GRAPHIFY_QUERY_LOG_ENABLE=1, a change made after issue #1797 in July. On this machine that file does not exist, even after the queries run for this post.
  • The hosted product is a separate choice. The pricing page says hosted Graphify re-indexes your default branch on each push, so your code is processed on their side. I have not used it.

What it costs

The command-line tool is free. Graphify Cloud is the paid product. Prices are from the pricing page, checked on 24 November 2026.

PlanMonthly billingBilled yearlyMain limits
Free$0$0One developer, 3 repositories, 25,000 graph nodes per repo, 15 pull request reviews a month
Pro$15 a month$10 a monthOne developer, unlimited repositories, 400 pull request reviews a day
Teams$29 per seat a month$20 per seat a monthMinimum 2 seats, shared graphs, central billing
EnterpriseCustomCustomSelf-hosted, SSO

The Teams prices are labelled "for the first 100 teams" and rise to $40 monthly or $28 on yearly billing after that. Pro and Teams have a two-week trial that needs a card and renews unless you cancel.

The page is clear about the split: the CLI "builds the same kind of graph" for free, and what you pay for is a graph kept current for you and automatic pull request reviews.

Installing it

The README's route uses uv:

uv tool install graphifyy
graphify install

graphify install sets up Claude Code by default. Other agents are named explicitly, for example graphify cursor install or graphify install --platform codex. The README lists more than 20.

Skip 0.9.118, which crashes on the query commands. If a later release breaks something for you, pin one that worked. This is the newest one I have run:

uv tool install graphifyy==0.9.119

Then build the code graph in a project:

graphify update .

Two notes:

  • Python version. PyPI lists 0.9.118 as needing Python 3.11.5 to 3.14. The older 0.9.97 only asked for 3.10 or newer. On my machine, where Python 3.15.2 is the only one installed, uv 0.13.6 installed and ran these versions anyway.
  • Removing it. graphify uninstall removes it from every agent it finds, and --purge also deletes graphify-out/. I have not run the uninstall.

Is it worth using?

This is a first impression from one small repository, not a verdict.

It costs nothing, builds in seconds and adds about a fifth of a second to a search. For those costs, it gave me three commands I would keep:

  • affected before changing a shared file.
  • explain to see what touches one function.
  • path to check how two things connect through imports and calls.

I would not rely on the broad query command in a repo like this one, small and full of prose. Grep was shorter and more exact here. The next thing I would try is a .graphifyignore that keeps the article files out of the graph, which the README documents.

The README also publishes benchmark results. Two of the three are tests of memory over long conversations, and the one run on a codebase uses six questions. I have not reproduced any of them.

What my testing did not answer:

  • Does query do better on a large codebase, where grep returns too much?
  • How good is the semantic pass over documents, and what does it cost in tokens?
  • Does the agent finish tasks in fewer tokens with the hook than without it? I measured the hook's output, not a whole session.
  • How do the MCP server and Graphify Cloud behave?
  • Does it work as well with Cursor or Codex, which have no hook and rely on an instruction file?

The short version

  • Graphify is an Apache-2.0 CLI that parses a repo into a graph of files, functions, imports and calls for AI coding agents to query.
  • On this site's repo (192 files), it built 1,364 nodes and 1,996 edges in 4.2 seconds from nothing, with no LLM and no API key.
  • Useful: affected, explain and path gave short answers with file and line numbers in about half a second.
  • Not useful here: the broad query returned 6,643 characters with no relations for a question that grep answered in 1,930.
  • Blind spot: code connected by a URL or any other string has no edge in the graph.
  • Version warning: release 0.9.118 crashes on query, path, explain and affected in a plain install. Version 0.9.119, published on 24 November 2026, fixes it.
  • Privacy: code is parsed locally. Documents, PDFs and images go to a model if you run the semantic pass.
  • Price: the CLI is free. Graphify Cloud has a free plan and paid plans from $15 a month, or $10 billed yearly.

If you want the wider picture on the agent this was tested with, see the Claude Code guide. For another tool that plugs into Claude Code's hooks, for a different purpose, see HOL Guard.

Frequently asked questions

What is Graphify?

Graphify is an open-source command-line tool from Graphify Labs that parses a repository into a knowledge graph of files, functions, imports and calls. AI coding agents such as Claude Code, Cursor and Codex can query that graph before they search files. The CLI is Apache-2.0 and is published on PyPI as graphifyy.

Is Graphify free?

The command-line tool is free, open source under Apache-2.0 and needs no account. Graphify Cloud, the hosted product, has a free plan for one developer and three repositories. Paid plans start at $15 a month for Pro, or $10 a month billed yearly, as listed on 24 November 2026.

Does Graphify send my code anywhere?

The README says code files are parsed locally with tree-sitter and nothing leaves the machine. Documents, PDFs and images are different: a semantic pass sends them to your assistant's model or to an API key you configure. In my test only the local code pass ran, and the report showed zero tokens used.

Does Graphify work with Claude Code?

Yes. It installs a /graphify skill and two PreToolUse hooks in .claude/settings.json. The hooks add a note before Claude Code searches or reads files, pointing it at the graph. In my test the hook answered in about 0.2 seconds and did not block the search.

Which Graphify version should I install?

Use 0.9.119 or later, and skip 0.9.118. On 24 November 2026 release 0.9.118 crashed on query, path, explain and affected in a plain install because of a missing anyio module. Version 0.9.119, published the same day, fixes that, and the four commands ran without error when I tried it on 25 November.

Get The Shipping Forecast

One email on Thursdays: what I tested and wrote that week, plus one tool worth your time.

You'll get a confirmation email first. Unsubscribe in one click. Privacy policy.