Measuring token savings honestly
Saying a change saves tokens is easy. Showing it is harder. This article explains the honest way to measure, and tells how our own panel of token cuts held guesses written as facts until we checked.
Posts with this tag: 14
Saying a change saves tokens is easy. Showing it is harder. This article explains the honest way to measure, and tells how our own panel of token cuts held guesses written as facts until we checked.
A long agent chat gets resent on every turn. ctxd folds the oldest part into a short summary and keeps the original text in a local store. This article explains the idea, our gate numbers and the honest gap in our evidence.
An agent can look at a screen as a picture or read it as text. The picture often costs about thirteen times more for the same words. This article explains why, when pictures are still the right choice, and what we do about it.
Squeezing text after it is sent saves less than never sending it. This article shows four ways to cut what an agent reads: remove duplicates, shorten the fixed start, cut repeats at the source and replace pictures with text.
A cached read of a repeated prompt start costs about a tenth of the first read. We retired a duplicate file we estimate at 7,000 tokens, and we are honest that we never measured the saving.
Every turn resends the whole chat. Our proxy ctxd folds the oldest part into a summary once the chat passes 80 percent of the window, and keeps the original in a local store you can search.
Our small model first trained on a mix of Wikipedia, our own notes and math problems. The later round gave it ten times more text, about 82 percent of it Wikipedia-style, and its tool score rose from 22 to 55 of 56.
A token is a small piece of text a model reads or writes, and you pay for each one. This article explains tokens in plain words, why an agent burns through them, and which parts of a working day cost the most.
A line counter in Mojo that matches tokei on the corpora it was checked against and adds diff budgets, token estimates and duplicate detection. On one 11.5k-file checkout it took 67.4 ms.
The same text can be many tokens or few. Our notes averaged 2.42 bytes per token against 3.64 for Wikipedia, and a text screenshot cost 363 tokens as pixels but 27 as text.
The panel said enforced for six days while nothing enforced it. The fix was a check that names unwired hooks, and the only cut with a measurement is also the only one a hook now denies.
Sending a text screenshot as a picture cost about 13 times the tokens of its recognised text. A hook now denies that pixel read, and the oversized case shows 2,280 billed tokens that bought no pixels the encoder used.
A duplicated instruction file cost room in every request, not much money, because cached reads are cheap. The 7k figure is an estimate, and the measurement that would confirm it has not been run.
A redundant 964-byte path block reached the model 50 times in one session. The fix was not compression after the fact, but removing redundant context at the emitter.