# Gortex vs Graphify: Code Exploration Token Benchmark on a 726-File Next.js Repo

> Source: <https://dev.to/_55b168cae64b7eaef4cbf/gortex-vs-graphify-code-exploration-token-benchmark-on-a-726-file-nextjs-repo-2kmc>
> Published: 2026-12-03 03:08:17+00:00

**Recommendation:** Route code-archaeology lookups through structural graph queries like Graphify's query and explain/affected instead of full-symbol exploration to cut token spend, and pin --loading-wait 30s and GRAPHIFY_BACKEND=none in CI scripts.
More in the playbook "Controlling LLM cost": <https://wpnews.pro/playbooks/llm-cost>

Most token burn in AI coding agents happens during **code archaeology**—running `grep` and reading whole files just to trace one call chain.

We installed **Gortex (`v0.64.12`, Go daemon)** and **Graphify (` v0.9.124`, Python AST knowledge graph)** side-by-side on a clean 726-file Next.js repo (`hafuture-app`) and measured exact `cl100k_base` token counts across 4 real maintenance tasks:

`43,861 tokens`
`explore -f gcx` (includes full symbol source + blast callers)`11,246 tokens` (`125.1 ms` median CLI latency; GCX1 cuts 14.8% vs Gortex's own JSON)`query` (depth-2 BFS structure)`9,083 tokens` (`269.7 ms` median)`explain` / `affected` (pinpoint edges + line anchors)`906 tokens` (`256.1 ms` median)`--loading-wait` silently drops from `30s` to `0` when stdout isn't a TTY. Always pass `gortex daemon start --detach` and `--loading-wait 30s` in scripts/CI.`claude -p` fallback`graphify cluster-only .` without an API key automatically invokes the local `claude` CLI unless you set `GRAPHIFY_BACKEND=none`.` graphify-out/` with 0 MB idle RAM.
