94% Fewer Tokens? I Tested Gortex With Claude Code
Summary
Gortex is an open-source code knowledge graph that pre-indexes functions, callers, dependencies, and cross-repo API contracts so that agents like Claude Code can query structure directly instead of grepping and reading whole files. The reviewer installs it on macOS, verifies the token reduction and multi-repo workflows, and finds genuine utility for change-impact and test discovery, while flagging that the 94% savings figure is only an estimate. The practical caveat is that agents can silently ignore the graph tools and fall back to file reading, so tool usage needs verification.
Key takeaways
- Gortex ships as a single native binary plus a background daemon, so setup avoids Docker, a separate database, or a virtualenv, and one daemon indexes multiple repos.
- Queries for call chains, signature-change impact, and affected tests return graph answers rather than file contents, keeping the agent's context window lean; the 94% token cut (11,500 to 688) is a modeled comparison, not measured provider billing.
- Cross-repo API contract analysis is the standout use case: it surfaces mismatched or unmatched endpoints between a front end and backend without manual search.
- Indexing combines Tree-sitter parsing for all languages with language-server-backed resolution for major ones, so depth varies by language despite the 257-language claim; large repos can consume several GB of memory.
- The agent may bypass the graph and revert to grep, and Gortex is a young project with known issues around git worktrees and agent integration, so confirm which tools are actually invoked.