Measured guides · KN-08
When can you trust a token number?
People post token numbers for coding agents all the time. 'My start is 20k.' 'This tool costs 3k.' Most of those numbers are true on one machine on one day. We learned that about our own numbers, and then we found two records of the same session that disagree by a factor of sixteen.
By GuildBuild research · published 2026-10-22 · measurement tokens method
Six conditions
A token number holds only under the conditions it was measured in. We now write six beside every one.
- Release. The harness ships about once a weekday. A start can change overnight.
- Operating system. One built-in tool costs 3,369 tokens and is on by default only on Windows.
- Instrument. Terminal, desktop app and cloud are different starts. A bare agent profile is 1,884 tokens in the terminal and 8,633 in the app.
- Trust state of the folder. An untrusted folder ignores allow rules and keeps deny rules, hooks and environment.
- Account kind. Two accounts on one release can receive different prompts.
- Model. In one folder, one model's start carried about 6,000 more characters than another's.
Every number we hold today was measured on one Windows machine. We say so, and we do not call a number reproduced until a second machine on a second system has run it.
One thing does travel: blocks. Totals differ between machines. The size of a given tool or file is far more stable. Compare two setups block by block.
Why the instrument matters
The desktop app has a usage panel. The harness also writes a log of every call, with the usage the API returned. They are two records of the same calls, kept by the same product.
We compared them on two sessions.
| Panel | Log | |
|---|---|---|
| Session 1 (Opus 5.5), cache read | 152.8M | 152,565,400 |
| Session 1, output | 28.4k | 461,837 |
| Session 2 (Fable 5.1), cache read | 5.3M | 5,253,398 |
| Session 2, output | 3.6k | 84,821 |
Input agrees. Output does not, by a factor of 16 in one session and 23 in the other.
We checked our side first.
- Double counting. Our sum takes one value per message. In the second session, taking the first, last, largest or smallest record per message gives the same 84,821.
- Plausibility. In both sessions the panel's output is below what was visibly written, counting text and tool input together. The second session wrote about 150,000 characters; the panel shows 3.6k tokens.
- Speed. The panel's own clock gives about 70 tokens a second from the log's figure in both sessions. From the panel's figure it would be 3 or 4.
We do not know the cause. Two guesses failed: the panel is not counting only the final call of each turn, and it is not counting text alone.
What it does not mean
It does not mean anyone was overcharged. Billing is Anthropic's. The docs say Claude Code charges by API token consumption, and that the session figure is a local estimate for API users, with the Console as the authority. For a subscriber, the panel is not a bill at all.
It means this: if you tune an agent by watching that output figure, you may be tuning against a number that is many times too small.
What to do with it
- Write the six conditions beside every number you publish.
- Name the instrument and the counting rule: which record, one value per what.
- When two instruments disagree, check your own side first, then say that the cause is unknown rather than guess.
- Take output from the log.
How we know
- Two sessions, two models, one day in late September 2026, one machine.
- The gap has not been re-checked on the current release. Do that before relying on it.
- Other holes can exist in general: a resumed or forked session can copy history into a new file, and side threads keep their own records.
- The list of six is ours. We tested Windows only; Linux and macOS are untested.
Cite this
GuildBuild research, "When can you trust a token number?", BuildGuild, 2026-10-22, https://buildguild.gg/guides/when-can-you-trust-a-token-number/