Interlinked.

Guides · diagnosing the file-hunt tax · 6 min

Your agent isn't thinking slowly. It's looking slowly.

The lag you blame on the model is mostly disk. Before an agent can reason about your code, it has to find it: which file, which function, where it lives. On a real 4.47-million-file machine we measured where a session's time and tokens actually go, and more than half never reach your question. The bottleneck isn't intelligence. It's search.

Read the symptoms honestly

You're debugging the wrong layer.

Almost everything that feels like "the AI is slow today" is the same underlying event: the agent shelled out to a search tool and is waiting on the filesystem. It looks like thinking. It is mostly waiting. Here is the translation table.

What you seeWhat you blameWhat's actually happening
A long pause before it says anythingthe model is thinking hardit is walking the disk with find and grep
It gets slower the longer the session runsthe context is just getting longevery turn re-reads pages of earlier search output
You hit your usage limit by lunchyou simply used it a lotover half your tokens went to directory listings
The bill outruns the work donethe model is expensiveyou paid top-tier rates to read ls output
It gives up and asks you where the file isit isn't smart enoughit spent its whole search budget guessing folders

The right-hand column has one name: your agent is I/O-bound on file search, not compute-bound on reasoning. Reaching for a smarter or larger model doesn't fix an I/O bottleneck: it just pays more per second to wait on the same disk.

The centerpiece · where the tokens go

More than half the session never touched your question.

Every tool result the agent runs is appended to the conversation and re-read on the next turn. A find that returns thousands of candidate paths adds thousands of lines the model pays to read again, and again. Drawn as a token budget, one real session splits like this.

WITHOUT AN INDEXWITH AN INDEX58%FILE HUNTING~0%FILE HUNTINGmost of the sessionthe budget goes to reasoning

WITHOUT AN INDEX

~58%: file hunting
the rest: reasoning

WITH AN INDEX

~0%: file hunting
nearly all: reasoning

Read it like a budget. The red slice is not one search: it is dozens of small ones (the notches), each a directory listing, a grep dump, or a re-read of candidate paths the model already saw. None of it is the answer you asked for. Give the file-hunt layer a real index and that slice all but disappears; the tokens you paid for go where you wanted them: reasoning about your actual problem.

One task · measured, not estimated

We watched Claude Code find one file.

6m 57s → 16ms
wall-clock to the file: hunting, then indexed
71 → 1
tool calls spent locating it
~58% → ~0%
of session tokens burned on the hunt

That was the whole workflow (plan, search, narrow, repeat) walked call by call in how Claude Code finds files. Content search tells the same story: one representative query took 93.8 seconds on ripgrep (the fastest grep there is) where the index returned the identical result in 16 milliseconds. The agent didn't get smarter or dumber between those two numbers. Only the floor under it changed.

The jobWithout an indexWith Interlinked
Claude Code finds one file6m 57s · 71 calls16 ms · 1 call
ripgrep runs a content query93.8 s16 ms

Methodology: Ryzen 9 9950X3D · 64 GB DDR5 · NVMe · Windows 11 · 4,470,000 files. The Claude Code row is the measured agent run to open one file; the ripgrep row is a content query over the same corpus. The same disk walk is what VS Code and Windows Search do too: every tool here was built for one person with one project open, not an agent that questions the whole machine.

Metered or capped: same leak

You feel it two ways. Neither is the model's fault.

How the wasted tokens reach you depends only on how you pay. The waste itself is identical.

CLAUDE CODE · METERED

You pay per token. Every directory listing the model re-reads is billed at top-tier rates, so the file-hunt tax lands straight on the invoice, and stretches each task from seconds into minutes. The slowness and the bill are the same event, counted twice.

CLAUDE MAX · $200 SUBSCRIPTION

You pay a flat monthly rate against a usage limit. Tokens burned hunting for files are tokens off that limit, so you hit the cap sooner and wait, having spent a chunk of the allowance on ls output you'll forget one turn later.

Two pricing models, one root cause. Finding files is the layer every session stands on (the backbone of the LLM economy), and today it runs on tools built for humans, not agents. Whether you meet the tax as a bigger bill or a limit you hit before lunch, the fix is the same, and it is not a different model: stop making the agent walk the disk.

The fix · make the floor answer at memory speed

Hand the agent an answer, not a search.

Interlinked keeps a live index of every file on the machine (names and contents) and exposes it to any agent over MCP. No model, no embeddings, no cloud: just an index that answers offline and never leaves your machine. The agent asks once and gets the path or the matching lines back before it could have finished typing find /. No directory walk, no output flood, no re-reads. The token budget snaps back to reasoning.

16 ms
the content query that takes ripgrep 93.8 s, answered from the index
71 → 1
blind filesystem calls replaced by a single indexed lookup
~58% → ~0%
of the session's tokens, handed back to reasoning
0 LLMs
no model, no embeddings, no cloud: an index that stays on the machine

SAME MACHINE · SAME MODEL · THE ONLY THING THAT CHANGED IS THE FLOOR UNDER IT.

Fix it today

Give your agent the floor back.

1

Install once. One signed installer auto-configures your AI clients (Claude Code, Cursor, Copilot, Codex, Windsurf, Zed and the rest) over MCP. No JSON to edit.

2

Let it index. Filenames are searchable immediately; contents fill in behind, a light background service you'll forget is running.

3

Watch the shape change. The lookup that cost 71 tool calls becomes 1. The file-hunt slice of your token budget drops toward zero: the tokens go to the work.

4

Scope when you know where to look. Whole-machine when you don't; a folder when you do. Either way the answer is back before the model would have finished its first ls.

Everything local is free forever, on all your devices, no card. Hosting starts at $5.99/mo. Download for Windows.

Measured July 2026 · Ryzen 9 9950X3D · 4.47M files · Windows 11← All research