Frequently asked questions
Why not just use Claude Code directly?
You still do: TokenBuild runs inside Claude Code. Claude Code pays tokens to learn your codebase, search it and re-read files. TokenBuild does that work locally with ordinary code, which costs no tokens, and blocks common waste before it enters Claude's context.
Does TokenBuild see my code?
No. Every TokenBuild tool runs on your machine, and Local Boost only talks to a model on that same machine. If you choose to sync with the dashboard, TokenBuild receives counts only, such as how many reads were blocked and how many tokens they kept out of context, plus one-way error hashes and noised learning counts. Never code, file contents or prompts. On Team plans, shared Repo Memory also sends the paths of edited files and how often they change together; you can turn that off.
Do I need a Claude subscription?
You need Claude Code, with either a Claude plan (Pro, Max, Team) or an Anthropic API key. TokenBuild never asks for your Claude login and never uses your Claude account itself.
Is this allowed under Anthropic's terms?
TokenBuild uses Claude Code's published extension points: hooks, an MCP server and project instructions. You run official Claude Code as normal. TokenBuild does not offer Claude login, share subscriptions or route your plan's usage through its own servers. TokenBuild is independent and not affiliated with Anthropic.
How are savings measured?
On your machine, as each tool runs. A blocked read counts the size of the file it kept out of context. A condensed log counts the full log minus what Claude was shown. A Local Boost answer counts the file the local model read minus its short answer. Auto-format and repo lookups save turns rather than a countable number of tokens, so they show as uses only. The free audit prices the same waste in your past sessions from Claude Code's own logs, using the same code.
Since 0.20.4, tokenbuild stats keeps three tiers apart and never adds them up: measured use (what Claude Code actually used), estimated avoided text (what the tools above count, which can overlap and isn't the same as a lower bill) and proven savings (control groups, below). It also shows TokenBuild's own overhead and whether the proven saving covers your plan fee.
What does the Output Shrinker do?
Tests, builds, installs and linters can print thousands of lines, and every line Claude sees stays in its context for the rest of the session. TokenBuild runs those commands as .tokenbuild/run <command>: same command, same exit code, but Claude sees only the errors with their code frames, warnings and the final summary. The full log is saved in .tokenbuild/logs in case Claude needs a specific part. On a typical failing test run it cuts the output by more than 90%.
Does model routing make Claude worse?
Your main session keeps the model you chose. Routing only sets the model for Claude Code's helper agents that don't name one, plus a read-only tb-scout agent for searching and reading. The default, balanced, runs helpers on Sonnet and the scout on Haiku. With lean, all helpers run on Haiku, and off leaves everything as it was. If you've already chosen a helper model yourself, TokenBuild keeps your choice. The audit shows your spend by model so you can see the effect.
What is the Loop Breaker?
Claude sometimes gets stuck: it runs the same failing test again and again with small edits that don't touch the cause, or it undoes and redoes its own change. Each lap re-sends the whole conversation. The Loop Breaker watches results on your machine. When the same command fails with the same error three times, or Claude reverts its own edit twice, it tells Claude what was already tried and asks it to find the root cause or ask you. It speaks once per problem.
What is Fresh Start?
Every reply re-sends the whole conversation, so a long session gets expensive with each turn. When a conversation passes about 100K tokens, TokenBuild writes a handoff note from the session: the goal, the latest requests, the plan, files changed, which checks pass or fail, and where it left off. It tells you, and when you type /clear the new session starts from that note, about 1–2K tokens. It also saves a note before Claude compacts. Run tokenbuild handoff to save one any time. The saving counted is the context the new session no longer carries.
What is Repo Memory?
TokenBuild notes which files each task in your repo actually changed, and which files change together. When you start a similar task, Claude is told where past tasks like it ended up, so it skips most of the searching. When it edits a file that usually changes with others, it hears that too, which avoids a failed run and another lap. It also ranks context packs. Memory lives in .tokenbuild/memory.json on your machine. On Team, tokenbuild sync pools file paths and counts (never the task wording) so each teammate's Claude learns from everyone's history on the same repo.
What is Team Relay?
On Team plans, Team Relay links your teammates' Claude Code sessions on the same repository. Conflict radar: before Claude edits a file a teammate is editing right now, it's told who and on which branch, so it keeps the change small or picks other work. Baton pass: tokenbuild relay send maya hands your task state and handoff note to Maya; her next Claude session starts from it. Shared plan: tokenbuild relay share shares your plan; each teammate's Claude claims items, so no two do the same work. Ask the expert: when Claude is stuck on an error a teammate fixed before, it's pointed at that teammate and where they fixed it. Team board: the dashboard shows who's working where, who's stuck, the plan and tasks waiting to be picked up.
What does Team Relay share?
Level 1, the default: your display name (your git user name, or the one you set with tokenbuild relay name), the repository folder name, your branch, the paths of files you edited recently, and one-way hashes of errors. Level 2, which a team turns on in the dashboard, also shares task goals, plan item titles, saved answers about the repo, and the handoff notes of tasks you pass on. Code, file contents and prompts are never sent. To turn Relay off for one repository, set "relay": false in .tokenbuild/config.json.
What is the Recipe Compiler?
When you've done the same kind of task three or more times, such as adding an API endpoint, TokenBuild writes a recipe for it: a Claude Code skill in .claude/skills/ in your repo. It's built from what actually happened, not a template: the files that change and in what order (with line numbers), files that often change too, the check that proved it worked, and errors seen before with where they were fixed. Claude Code loads a skill only when a task matches, so a recipe costs nothing until it's used. Each use is measured; after three uses, a recipe that doesn't beat the tasks it came from is removed. Recipes live in your repo, so your team gets them through git. To keep your own edits, delete the marker line; to turn recipes off, set "recipes": false.
What is the Repo Shape Optimizer?
It measures what each file and each section of a file costs Claude to read, from the actual reads in your sessions, and shows what would make the codebase cheaper to work in: a big file whose reads concentrate in a few sections that could stand alone, files almost always read together, and files growing fast. tokenbuild shape --plan 1 turns a suggestion into a step-by-step plan Claude can carry out, and once the new files are in use, tokenbuild shape shows the measured before and after.
What are shared fingerprints?
When an error is fixed by changing a well-known configuration file, such as package.json, tsconfig.json or pyproject.toml, TokenBuild shares a one-way hash of the normalized error with just that file name. The server keeps an error once at least two teams have fixed it that way. When you hit the same error and have no fix of your own on record, Claude is told which config files fixed it for other TokenBuild users, and by how many teams. Your own file names, error text and code are never sent. Turn it off with "shareFingerprints": false.
How is my plan checked?
When TokenBuild confirms your plan online, the server answers with a token it signs with a private key that never leaves the server. Your CLI checks that signature with a public key built into TokenBuild, so the answer can't be faked or edited. The token is tied to your CLI key and lasts 14 days, so TokenBuild keeps working offline; it's renewed automatically when a Claude Code session starts.
What is the Real Meter?
Claude Code records the exact token usage of every reply in its session transcript on your machine: new input, cache reads, cache writes and output. The Real Meter reads those records, without sending any transcript text anywhere, and shows real tokens and cost per task and in total (tokenbuild meter). Costs are shown at API list prices. On a Pro or Max plan you pay a subscription instead, but the same tokens count toward your usage limits.
How do you prove the savings?
With control groups. About 10% of sessions run with one feature turned off: the Context Ledger, Verify Loop, Task Brief, Next-Read, Edit Preflight or Project State. Comparing real metered tokens per task in those sessions with all the others shows what each feature actually saves. tokenbuild proof shows the results once there are enough tasks, each with a 95% interval. A saving is credited only when the interval excludes no effect, and at its low end. Otherwise it says "insufficient evidence". To opt out, set "holdout": 0 in .tokenbuild/config.json.
Does TokenBuild pay for itself?
It depends on how much you use Claude Code, and TokenBuild tells you rather than assuming. tokenbuild stats prices the proven savings of the last 30 days, minus TokenBuild's own overhead, at your own metered cost per token, and compares that with your plan fee. At light use, a few percent saved can be less than the $9 Solo fee, and the line says so. The value then is mostly in verified work, fewer broken edits and coordination, which the Team and ML tools measure separately.
What are Anchor Edits?
To change code, Claude normally writes out the exact old text and then the new text, so every edit pays to write the old code a second time. Output tokens are the most expensive kind. With the tb_edit tool, Claude names the line range it has already read and sends only the new text. TokenBuild applies it only if those lines are unchanged since Claude read them, and refuses an edit that would break the syntax.
What is Edit Preflight?
Before an edit lands, TokenBuild applies it in memory and checks the syntax: JavaScript, TypeScript, JSON and Python. If the edit would break a file that was fine before, it's sent straight back to Claude with the exact error and line, before anything runs. That replaces a cycle of edit, run, read the error and fix, which can take several full turns. If the broken state is intentional, resending the same edit lets it through.
What does the Cache Keeper do?
Claude Code caches the conversation so each reply can re-read it at a fraction of the price. The cache expires after a few idle minutes; TokenBuild learns how long from your own sessions. If you come back to a very large conversation after the cache has expired, your next message would re-cache all of it. The Cache Keeper saves a handoff note first and offers a much smaller fresh start: type /clear and send your message again. Or just send it again to carry on where you are.
What are the Context Profiler and Context GC?
The Context Profiler shows what fills Claude's context right now: files, command output, search results, tool definitions and so on. It also shows how much of it is dead weight, meaning content nothing has used since. When a large conversation is mostly dead weight, Context GC saves a clean note with only the live files, verified facts and plan, so you can /clear and continue at a fraction of the size.
What do Tool Diet, CLAUDE.md Compiler and Permission Learner do?
All three tune your setup to how you actually work, and change nothing until you run them with --apply. Tool Diet measures how many tokens each MCP server's tool list adds to every turn, against how often you use it. The CLAUDE.md Compiler moves instructions that only matter in one folder into that folder's CLAUDE.md, which Claude Code loads only when it works there. Permission Learner turns safe commands you approve every time into allow rules.
What are the Docs Oracle and Exploration Memo?
tb_docs answers how a library function works from the version installed in your project: type declarations and doc comments for JavaScript and TypeScript, docstrings for Python, go doc for Go. tb_memo keeps answers Claude worked out about your repo, such as where something is handled, and returns them only while the files they're based on are unchanged. Questions that took several searches are saved automatically.
What is the Context Ledger?
TokenBuild keeps a private record, on your machine, of which parts of which files Claude has read in the current session. If Claude asks for lines it already has and they haven't changed, it's told they're already in its context, so they aren't sent again. If the file changed in the meantime, for example because you edited it or a formatter ran, Claude gets only the changed lines with their line numbers. Claude's own edits are tracked too, so they never count as changes. The record resets when the conversation is compacted or a new session starts. If Claude really needs the full text, asking a second time gets it, and that saving is taken back out of your ledger.
What is the Verify Loop?
After each edit, TokenBuild works out from your imports which test files can be affected by that change. It runs only those tests, in the background, with your project's own test runner (node --test, Vitest, Jest, pytest or go test). Claude gets one line back: pass, or the failing assertion with the path to the full log. If a check fails at the end of a turn, Claude keeps going and fixes it before handing back to you. Turn it off with "verify": false in .tokenbuild/config.json, or set your own command with {files}.
What is the Task Brief?
When you send a prompt, TokenBuild builds a short brief from your repo index and Repo Memory before Claude starts: the likely files with line numbers, files usually opened with them, the tests to check, and past failures fixed in those files. Claude starts in the right place instead of exploring. If the request names nothing it can match, Claude is nudged to ask you one short question first, which is cheaper than a long search in the wrong place. The brief is built by plain code and costs about 150 tokens to read.
What are Fingerprints?
When a check fails, TokenBuild reduces the error to a fingerprint: numbers, quoted values and machine-specific paths are removed, then it's hashed. When that check later passes, the files changed in between are recorded as the fix. The next time the same error appears, on any branch or in any session, Claude is pointed at those files first. On Team plans, fingerprints are shared as one-way hashes with file paths and counts. The error text never leaves your machine.
What is Task State?
TokenBuild keeps a live record of the current task: the goal, the plan, files changed, check results, verified facts and open questions. A new session or a subagent can read it with the tb_task tool and resume immediately. Parallel agents claim plan items before working on them, so two agents never do the same work. Fresh Start handoff notes include it too.
What is Local Boost?
An optional helper that uses a free, open model running on your own computer through Ollama. Claude can ask it a question about a large file or log and get a short answer with line numbers, so the large text never enters Claude's context. It only connects to your own machine, so your code still never leaves it. Turn it on with tokenbuild boost on. A model such as qwen2.5-coder:7b runs on most 16 GB laptops.
Is there a free version of Claude I can run locally instead?
No. Anthropic doesn't offer Claude for download, so there is no free or older Claude to host yourself. Open models from other companies can run locally and are good at small jobs like reading a log, which is how Local Boost uses them. For writing and changing code, Claude remains the better tool, so TokenBuild makes each Claude token count rather than replacing it.
What if I'm not saving?
Your dashboard shows it plainly. Cancel in one click and you won't be charged again.
What does the $5 trial include?
All tools for 30 days. On day 31 the plan you chose starts and renews monthly or yearly, as you picked, with the $5 credited to your first payment. Turn off renewal any time before then and you won't be charged again.
How do I install TokenBuild?
Start a trial, then open the CLI key page and click Create key. The page shows one line with your key already in it, for Windows or Mac/Linux, and a Copy button. Open PowerShell (Windows) or Terminal (Mac), paste the line and press Enter. It installs anything missing (Node.js and Claude Code's command-line tool, from their official installers), then the TokenBuild plugin, saves your key in your system's secure storage and confirms your plan. When it says All set, restart the Claude app or start Claude Code in a project. You don't need to know Node, npm or plugin commands. Run /tokenbuild:setup any time to check, and /tokenbuild:stats to see your savings. To change the key later, run /plugin configure tokenbuild@tokenbuild. The free audit needs no account or key.
Can I install without the plugin?
Yes. In a terminal, run npx tokenbuild login <key> once, then npx tokenbuild init in each project. This writes the hooks into the project's own Claude Code settings, which suits teams that commit their setup or want model routing for all subagents. If both are installed, the plugin steps aside in that project so nothing runs twice.
What happens to the tools if I cancel?
They switch themselves off at the next plan check, and Claude Code works exactly as it did before TokenBuild. Nothing breaks: commands run normally and the hooks step aside. The free audit keeps working.
How do I cancel?
Sign in at app.tokenbuild.ai, open Billing and click Manage billing or cancel. It takes one click; no call or email needed. You keep access until the end of the period you've paid for.
How does Team billing work?
$19 per seat per month, 2–100 seats, on one invoice. Add or remove seats any time; changes are prorated by our payment processor.
Which languages does the Repo Index support?
TypeScript, JavaScript, Python, Go, Ruby, Java, Kotlin, C#, Rust, PHP and Swift. Other files are still covered by Waste Guard.
Does it work offline?
Yes. The tools confirm your plan when Claude Code starts, and keep working offline for 14 days after the last successful check. Dashboard sync needs a connection.