Introducing Zokie Map: your coding agent finds code with 95% fewer tokens
Zokie Map is a code graph that Zokie builds on your own computer. Claude Code and Codex ask it one question and get back the exact source they need, instead of grepping and opening file after file. In its first two days of our everyday work, agents spent 275,000 tokens finding code where reading the

Before a coding agent changes a line, it has to find the code. Today that looks like this: grep, open a file, open three more, grep again. On a big question it can run to dozens of calls before any work starts.
Zokie Map replaces that search with one call. It's in Zokie now, and you can switch it on for every repository with one setting.
Every file an agent opens, you pay for again and again
The model remembers nothing between turns. Each turn, the agent sends the whole conversation back: your question, every grep result and every file it has opened so far. A 3,000-token file opened early in a 30-turn session gets paid for over and over until the session ends.
So the cost of searching isn't just the files themselves. It's the files multiplied by every turn that follows. Cut the searching, and you cut both.
How Zokie Map works
When a chat starts, Zokie reads your repository and builds a graph of it. The nodes are files, functions, types, routes and components. The edges say who calls what, what imports what, and which test covers which function. It's stored in a small database next to your code.
There's no AI in that step. The parser reads the code, so building the graph costs zero tokens, and your code never leaves your computer. It's quick, too. Our own app has about 950 files, and its full graph builds in under two seconds. After that, the graph keeps up as you save, usually in well under a tenth of a second per file.
Your agent reaches the map through one tool, explore. It asks in plain words or by symbol name, something like "how does submitOrder reach OrderMachine.transition", and gets back:
- the call paths between the functions it asked about,
- a one-line "blast radius" for each key function: how many callers it has, in which files, and which tests cover it,
- the exact source of the relevant functions, line-numbered and grouped by file.
Every reply stops at a token budget: 4,000 tokens for small repos, 5,500 for medium ones and 7,000 for large ones. The agent can ask for more, up to 20,000. When something doesn't fit, the reply names it so the agent can ask for it next. The last line tells the agent the source is current, so it doesn't open the files again.
What it did in our first two days
We build Zokie with Zokie, so we switched Zokie Map on for all our own work on November 24. Zokie keeps a count of every lookup on our machine. Here is the record of the first two days, across 23 separate chats.
To find the code they needed, our agents put 275,000 tokens into their context. Reading the same files whole would have put in 5.1 million.
That's 95% fewer tokens spent finding code.
In money, the saving is smaller, and we'd rather show you that number too. If we price each saved token once, at $3 per million (the input price of the cheapest current Claude model), Zokie Map saved about 5% of what we spent on AI over those two days. That's a floor. A file the agent never opened is also a file it never re-sends on later turns, and we don't count any of those re-sends.
Turn it on
Zokie Map works with Claude Code and Codex inside Zokie. It reads TypeScript, JavaScript, Go, Python and Dart, and a chat that spans several repositories gets one map that links them.
- In Zokie's settings, switch on Use Zokie Map for every repository.
- Start a chat. The first one in each repository builds the graph; after that it stays current on its own.
- To leave it out of one chat, set Zokie Map to Off for that chat. Set it to On to use it in a repository that's otherwise off.
To see what it's saving you, open AI usage. Each agent's card shows how much Zokie saved you this week, and How? lists the chats it saved in.
What it doesn't do yet
- Other languages. Repositories in languages outside the five above work as before: the agent reads files the usual way.
- Very large repositories take longer the first time. VS Code, at about 16,000 files, takes around a minute to index and a few hundred megabytes on disk. Repositories of a normal size take seconds.
- Our estimate of reading files whole is an estimate. For each lookup, Zokie counts the files the agent would have needed to open to see the same source. Agents usually open more than they need while searching, so if anything this side reads low.
- Two days is a short record. We'll publish a full month of numbers once we have it, whatever they show.
More from Zokie
Zokie
Introducing Guardrails
Guardrails gives your AI agents rules they can’t change, and lets them use your API keys without ever seeing them.
Zokie
Introducing Zokie
Zokie is a lightweight IDE for builders. Run several AI agents side by side and follow along, even if you don't read code. Here's what's live:

