Gortex Claims 98.9% Token Cuts for AI Coding Agents
Gortex indexes repositories into a local SQLite graph so AI agents query code relationships instead of reading whole files — claiming up to 98.9% token savings, with caveats attached.
- AuthorPriya Raman
- ChannelAI & Emerging Interfaces
- Filed
- Read4 min

- Gortex claims up to 98.9% token reduction (151 vs 14,268 tokens) in self-run benchmarks dated May 18, 2026
- Open source under Apache 2.0; latest release v0.64.11 on October 26, 2026; supports 257 languages and grammars
- Setup needs one command, no Docker or database service; integrates with Claude Code, Cursor, Copilot, Codex CLI and others
- Savings figures are estimates, not proof — one dashboard query used 339.8% more tokens than file reading
- Indexing is local, but agents or model providers can still send source-derived code and prompts off the machine
Gortex, an open-source code-intelligence tool released under Apache 2.0, claims token reductions of up to 98.9% in its maker's benchmarks — specifically 151 tokens versus 14,268 for a file-reading workflow on a FileCoherenceSignal query. That number deserves scrutiny. It comes from a benchmark the project ran on its own repository, dated May 18, 2026, and it compares graph queries against a guessed file-reading routine.
Still, the mechanism is real and worth understanding.
What does Gortex actually do?
Built by Andrey Kumanyaev, Gortex indexes source code into a local SQLite knowledge graph. It records functions, classes, interfaces, imports and their relationships. A coding agent queries the graph for callers, dependencies, change impact and data flow instead of placing entire files in its context.
The tool parses code with Tree-sitter and, for major languages, goes deeper through language-server integration. It supports 257 languages and grammars — though depth of analysis varies by language, and that caveat matters more than the headline count.
A background daemon watches tracked files and updates relevant graph parts as code changes, rather than rebuilding the whole index. You can reach the graph through a CLI, an MCP server, an HTTP API and a web interface. Gortex also previews edits without writing them to disk. The latest release listed is v0.64.11, dated October 26, 2026; the project has a couple of thousand GitHub stars.
How does setup work?
Setup requires one command — gortex install — after the installer downloads components. Then gortex track registers a repository, and an analyze flag builds the first index and creates agent configuration. No Docker, no virtual environment, no separate database service.
Binaries run on:
- Linux x86-64 and ARM64 (kernel 3.7+)
- macOS 11+ on x86-64 and ARM64
- Windows 10+ x86-64 (ARM via x64 emulation; daemon needs 1803+)
Gortex integrates with Claude Code, Cursor, Codex CLI, Gemini CLI, GitHub Copilot, Kiro and Windsurf. The Claude Code plugin needs the Gortex binary, and the project warns against registering the same integration twice.
Does it change how agents investigate code?
In a Better Stack test, Claude Code instructed to use graph tools first narrowed an investigation into a payment-function signature change by tracing its call chain — without loading entire files. The identified tests still needed to be run, and would not necessarily break. Honest result. Gortex helped locate relevant code; it did not prove the dashboard's estimated savings.
Cross-repository work is where it gets interesting. With a front end calling a payment endpoint in a separate backend repository, Claude Code could investigate API contract mismatches and find where the front end called those endpoints. GitNexus offers cross-repository analysis too, plus a browser-based graph explorer; Graphify connects code with project documents like PDFs. Better Stack sees Gortex's difference in packaging — one native binary, shared daemon, live updates, API contract analysis, savings dashboard — and stops short of calling it better than the rest.
Can you trust the savings numbers?
No, not as receipts. The dashboard estimates savings per call, per session and across restarts by comparing graph queries with what a file-reading workflow might consume. Gortex cannot know what the model provider would have done without it.
The maker's claims from its own benchmark:
- AddObservation: 972 vs 31,530 tokens (96.9% fewer)
- IsSymbolQuery: 577 vs 23,027 (97.5%)
- FileCoherenceSignal: 151 vs 14,268 (98.9%)
- alphaFuse: 534 vs 14,574 (96.3%)
- Rerank-pipeline query: 97 vs 415 (76.6%)
- MCP-server-start query: 372 vs 415 (10.4%)
Savings were not universal. A natural-language savings-dashboard query used 1,825 tokens versus 415 — 339.8% more. An illustrative edit claimed 688 tokens versus 11,480 for file reads and search, a 94.0% reduction.
What about retrieval quality and privacy?
In a 156-case retrieval test, the maker reports Gortex's lexical search found relevant results at 42.3%, 55.1% and 63.5% within the first 1, 5 and 20 results; ripgrep scored 0.0%, 17.3% and 29.5%. Recall within the first five results: 96.8% for exact-name queries, but only 25.4% for concept queries and 30.0% for connection queries. The claimed GCX1 response format saved a median 27.4% of tokens against JSON across 20 fixtures — a large find-usages fixture used 351 tokens versus 569, while a cycles fixture used 90 versus 87.
Local indexing does not mean your code stays local. A coding agent may send retrieved code to its model provider, and Gortex's security policy says a configured hosted or subprocess provider can send source-derived prompts off the machine. The policy also warns of prompt injection through repository content. Large repositories can demand several gigabytes of memory; on Linux, the static binary skips custom Tree-sitter grammars, which need a dynamically linked build. Reported issues exist with Git worktrees and agent integration.
Better Stack recommends Gortex for everyday coding-agent work across repositories and calls it overkill for tiny projects. The real value is cleaner context — an agent that asks a graph who calls a function has more room to reason about the change itself. Check which tools your agent actually calls, because it can still fall back to plain search.
Source: geeky-gadgets.com
More from Priya Raman
Show full bio
Market editor covering technology and product news in Product and interaction design, design systems at Interface Wire.
161 articles