All postsLONG-FORM6 min read
Gortex + Claude Code: I Measured the Tokens With and Without It
Five checked Django tasks with Sonnet 5.5, two Gortex setups, and the difference between response savings and whole-task token use.
Gortex's README says “up to 50x fewer tokens per response.” I compared plain Claude Code with two Gortex setups on five checked Django tasks: all 60 graded runs passed, and plain used fewer median total tokens on every task in both comparisons.
What Gortex is
According to its README, Gortex builds a persistent graph connecting functions, classes, call chains, HTTP routes and cross-service contracts. It ships as one static binary; a background daemon maintains an on-disk SQLite store. Its server docs describe MCP access for agents, plus a Unix socket and HTTP API.
The README's 257 languages/grammars span three tiers: bespoke tree-sitter, regex and forest-backed signatures. It names 17 languages for compiler-grade resolution, counting TypeScript and JavaScript separately. The language docs describe limits in the signature-only tier, including absent ORM, contract, dataflow and scope-aware resolution.
Read the claim closely
The project's “up to 50x fewer tokens per response” claim concerns retrieval. Its token-efficiency benchmark section reports a 3–50x range on identifier queries, comparing retrieval against ripgrep plus full-file reads. The eight-query table uses Gortex's own repository on one operator's machine; the section was updated May 18, 2026.
One natural-language query returned 1,825 Gortex tokens versus 415 for ripgrep plus a full-file read, or 544 with context. Both ripgrep pipelines missed relevant material: recall differed. My take is that answer completeness belongs beside answer size. I did not independently replicate those eight queries.
The saved end-to-end agent benchmark page, BENCHMARK-SWE.md, is a template marked “Last run: TBD,” with empty result cells. Its checked snapshot supplies no completed end-to-end task comparison.
Installing and indexing on my Mac
I tested Gortex v0.64.12 on December 1, 2026, on an M5 Max Mac with 128 GB RAM. I saved and read the installer first, pinned the version and used a lab install directory. SHA-256 verification passed, including a manual repeat. The installer skipped signature verification because cosign was absent. SLSA verification was also untested.
The unpacked binary was about 322 MB. With a lab home folder, gortex init configured all five detected agents and created 71 files, including files in that lab home.
Indexing the init-only Django copy took 47.2 seconds; the full-setup copy took 64.3 seconds. These were individual indexes under load. After the first index, the store occupied about 1.1 GB for a checkout of about 77 MB. The daemon held about 4.0 GB of resident memory, a separate measure from live Go heap.
How I compared the setups
Every run used Sonnet 5.5, Claude Code 2.1.333, the same prompts, flags, built-in tools and 40-turn cap. The agent started without personal instructions, plugins, hooks or other MCP servers. Runs were headless; Read, Grep, Glob, Edit and Write were allowed. Web tools, subagents and skills-as-tools were off. Some read-only shell commands ran under the same restriction in every setup.
Plain used a clean Django copy. Init-only added indexing and gortex init, including MCP and its default-deny hooks. Full setup followed the README Quick Start, including gortex install. Because my clean agent ignores user-level configuration, I placed the installed instructions, skills, commands and subagents inside the project as a lab workaround. Both Gortex setups used a hook wrapper setting the lab home and explicit --mcp-config.
I wrote checks first for five tasks: find callers, identify subclasses, rename a parameter across files, add a one-file function and trace a call chain. Checks covered exact answers, syntax, behavior and allowed changes. Each task ran three times per setup, with compared setups running simultaneously.
The first rename grader had two bugs: an app-registry import problem and a leftover-name search matching its own compiled file. I corrected the grader and regraded saved diffs. Every original run remained in the results.
What happened
There were two separate comparisons: 15 plain runs against 15 init-only runs, then another 15 plain runs against 15 full-setup runs. All 60 passed.
Tokens include input, cache writes, cache reads and output across every model call. These are actual totals over 15 runs per setup within each comparison:
| Comparison | Plain tokens | Gortex tokens | Gortex/plain |
|---|---|---|---|
| Init-only | 610,743 | 1,594,972 | 2.61x |
| Full setup, project-level placement | 594,661 | 2,087,798 | 3.51x |
Claude Code's API-price estimates, also totals over 15 runs per setup, were $0.40 plain versus $0.83 init-only, and $0.34 plain versus $1.35 full setup. I used a subscription; these figures estimate API pricing.
Gortex led on some measures. For find-callers in the init-only comparison, medians of three runs were 3 tool calls versus plain's 8, and 6.9 seconds versus 11.3; tokens were 1.05x plain's. For class-tree in the full-setup comparison, medians of three runs were 4.7 seconds versus plain's 5.1, with 1.58x the tokens. One graph relations call answered that class-tree question.
Rename tool-call medians of three runs were 6 init-only versus 13 plain, and 8 full setup versus 12 plain. Init-only's class-tree and one-file-edit token medians were 7.04x and 4.34x their paired plain medians. On call-chain, init-only made zero Gortex calls in all three runs despite a connected server.
Where the tokens went
First-call context medians were 9,171 tokens for plain, 13,216 for init-only and 14,760 for full setup. The session-start hook supplied about 4,500 characters, and each Gortex session mounted 21 Gortex tools. Later calls reread context, mostly through cache.
Deferred tools added a loading step. Init-only often tried Grep, received a hook refusal and switched. Selected full-setup answers included 32,337 characters from explore and 15,339 from an impact check before a five-line addition. Matching plain Grep answers were 209–792 characters. Plain searched patterns and read small ranges. Output token totals were about level. These examples leave each component's causal contribution unisolated.
Response size and the savings dashboard
A standalone init-only Gortex method lookup returned 2,364 bytes against a 97,715-byte whole file, about 41x smaller. This byte comparison does not independently verify the project's token ratio.
The dashboard reported 89.1% saved, or 658,511 of 738,920 tokens, for 30 Gortex runs plus a pilot. Its documented baseline compares returned tokens with a whole file for read-family calls, or cited whole files for retrieval. Each file receives baseline credit once per session, capped at eight files per call. My comparison counts everything used to finish a checked task against plain Claude Code's actual behavior. The baselines answer different questions.
When I would try a graph — my opinion
I'd try change-impact questions, large codebases, multiple repos, long sessions or agents that read whole files. An init-only standalone depth-three query returned 17 dependents: two direct callers, seven methods above them and eight tests. The video's graph visual comes from that query; I did not run the separate web app.
My take: run matched tasks on your own repo with checks written first. Compare success, total tokens, wall time and API-price estimates. Include indexing, disk and resident daemon memory. Inspect starting context and responses, and remeasure after updates. Plain search can work well for small scoped tasks with a strong model.
Limits
This covers one repository, model and Claude Code version, five bounded tasks, three repeats per cell and one evening. Long sessions, multi-repo work, huge monorepos and weaker or local models remain untested. All setups passed, leaving help on tasks plain fails unknown. Interactive sessions with full Bash access may differ from these restricted headless runs.
The full setup used the project-level placement workaround. Cache reads dominated tokens and have lower prices; the API-price estimates account for that and still show 2.07x init-only and 3.97x full setup relative to their paired plain totals. Timings were under shared load. During the full-setup comparison, the daemon carried both indexed Django copies.
Daily email
Get each breakdown in your inbox.
One email each evening, right after the Short goes live: the AI tool it covers, the full write-up with sources, and how to get paid for it. Free, and you can unsubscribe anytime.
Sources
- README: graph, claim and language tiers.
- Retrieval benchmark: scope and recall.
- End-to-end benchmark template.
- Language coverage.
- Server and separate web app.
- Installation and verification conditions.
- Savings baseline and credit limits.
- Firsthand measurements: lab/RESULTS.md; claim-to-evidence index: claims.json.