What costs tokens
Docs means
.md, .mdx, .qmd, .txt, .rst, .html, .skill and Jinja templates. Images means .png, .jpg, .jpeg, .gif, .webp and .svg.
The semantic pass runs on your assistant’s own model when you use /graphify, or on a model key you’ve configured when you use the CLI. Either way it uses tokens. A README and a folder of screenshots are enough to trigger it.
Build from code only
1
Skip docs, papers and images
2
Or turn model work off everywhere
3
Keep specific files out
Add paths to
.graphifyignore (same syntax as .gitignore) so they’re never scanned.No key, mixed repo?
graphify extract stops with “no LLM API key found” and tells you how many doc, paper or image files need a model. Add --code-only or configure a backend. A repo with only code never needs a key.Check what you save
Run this after a build:Avoid paying twice
- Unchanged files are cached. Docs whose content hasn’t changed reuse their earlier results. An upgrade that changes the extraction prompt re-extracts them once.
- Refreshes are code only.
graphify update ., the git hooks andgraphify watchnever call a model. --force --code-onlykeeps what you paid for. It rebuilds code and keeps the existing doc and image layer.
Watch out for
Hooks can undo --code-only
Hooks can undo --code-only
A graph built with
--code-only gets doc nodes back after the next branch switch, merge or rebase, because the hook rebuild doesn’t remember the scope. This adds no model calls, but the graph grows. Use .graphifyignore for anything you want kept out for good. Tracked in #4923.Headline numbers aren't your numbers
Headline numbers aren't your numbers
How much smaller a graph answer is than your whole repo depends on the repo and the question. Measure it on yours with
graphify benchmark.FAQ
How do I reduce Claude Code token usage with Graphify?
How do I reduce Claude Code token usage with Graphify?
Build the graph, then let your assistant ask it questions instead of reading whole files. It gets back the few functions, files and links that matter. Keep the build cheap with
--code-only and keep it current with graphify hook install.Does Graphify need an API key?
Does Graphify need an API key?
Not for code. Code is read locally with tree-sitter. A key or your assistant’s model is only needed for docs, PDFs and images.
Do refreshes cost tokens?
Do refreshes cost tokens?
No.
graphify update ., the git hooks and graphify watch only re-read code. Docs and images are re-read only when you run /graphify . --update, and unchanged files come from the cache.Next steps
Token benchmark
Measure savings on your own repository.
Documents and media
What the semantic pass extracts from docs and images.
Try it in Graphify
We build and host the graph for you. The Free plan (up to 3 repositories) needs no card. Pro and Teams start with a 14-day trial, card required.