Pay for the Model Once
In one real coding workload, 95 percent of agent tokens were cached rereads.
Counting model calls and output tokens is the easy way to price an agent run. This month's papers show what that count misses. Much of the work they measure is repetition: rereading the same context, continuing after the task is solved, judging similar items one call at a time, and retrying an action that may already have happened.
Several of my own projects touch this. Computer Use Runtime learns a task with a model once and replays it with no model calls. My LLM Serving Benchmark Harness measured how much faster a shared prompt prefix makes the first token. A retry bug in careeroc once turned a short review into 151 model calls.
Most tokens are rereads
Re-Reading Is Not Free analyzed nearly one billion tokens from ten weeks of real AI-assisted software development. Cached context reads made up 94.8 percent of the tokens the API reported, and uncached input made up 0.017 percent. The agent read about 260 cached tokens for every token it generated. The authors also found that parent-session logs showed only a subagent's final call, which undercounted delegated tokens by a factor of ten.
Caching makes each reread cheap, and the volume still dominates the token count. My serving harness saw the cheap side of that mechanism. On one laptop running Ollama, reusing a shared prompt prefix let the server's cache deliver the first token 6.6 times faster. That result covers first-token speed only, and the token data covers what a long session uses in total. Context grew 5.3-fold over a session and 1.4-fold within a single task. The authors estimate that a fresh context per task would cut their energy estimate by about 60 percent, and they note that neither estimator has been validated on long cached contexts.
Agents keep working after they are done
Termination Lag recorded and tested every distinct patch that coding agents produced across five models, two agent frameworks, and three SWE-bench datasets. In 38 to 82 percent of successful runs, the first source edit already solved the task. The agents kept going anyway. In successful runs on SWE-bench Verified and Multilingual, a median of 35 to 37 percent of steps came after the solution for Qwen3-Coder, and 54 to 60 percent for Laguna-XS.2. The agents spent most of those steps verifying their work and exploring the repository. In 1 to 8 percent of cases, the extra work undid the correct patch and the run ended wrong.
Verification is work I want an agent to do. I would give it a budget and an explicit stop rule to limit unnecessary work and the risk of undoing a correct patch.
careeroc hit a different unbudgeted loop. When a failed repair ended in empty model replies, the agent re-asked without limit: 151 model calls in 100 seconds, then a timeout. Scripted tests had missed it, and it showed up on a real model. After the fix, a review of the same made-up inbox took 9 calls. That was one run each on test data. Both cases point at the same fix: give the loop its own exit.
Try the small model first
Timeout Cascades evaluated 36 open-weight models released since 2024 on SWE-bench Verified. Recent small models trailed large ones mostly on hard tasks and did well on easy and medium ones. Trying a small model first and escalating to a large one when needed cut total GPU-hour cost by up to 33 percent, and by 16.4 percent across all SWE-bench Verified tasks, without losing accuracy. The simple cascade came close to an oracle-style router, so a team can get most of the savings without training a router.
A cost comparison also depends on the tool that sends the requests. For giraffe, a tool that checks whether a self-hosted LLM performs as expected, my merged #136 added a validation record for vLLM and Ollama serving Qwen2.5-1.5B on a Tesla T4. The validation surfaced a bug in giraffe's own client: it sent `stream_options` on non-streamed requests, and vLLM rejected them with HTTP 400. I reported it as #135, and the maintainer fixed it in #137 about three hours later. Before trusting a cost curve, check that the client and the server agree on the request.
Compile the expensive step
Can Programs Replace LLM Judges? attacks the evaluation bill. Instead of calling a frontier model for every relevance judgment, ExecJudges asks the model to write one readable program per topic. The program uses lexical matching, standard NLP libraries, and pool statistics. On TREC DL 2019 to 2021, those programs agreed with NIST assessors about as well as Claude Sonnet 5.5 judges did. Their labels ranked the official runs with Kendall's tau of 0.87 to 0.94. Writing a program cost $0.17 to $0.49 per topic once, and grading after that cost nothing extra.
Computer Use Runtime follows the same pattern for actions. A model explores an app with no API once, and the runtime saves the working path as a versioned capability. Later runs replay that capability with zero model calls, and on my test banking app it still worked after the table rows and columns were reversed. That evidence comes from one made-up app, and I wrote up its limits in [The Interface I Give an Agent](/blog/2026-10-16). The design choice carries over: pay the large model to produce an artifact you can read and rerun, then run the artifact.
A retry needs a ledger
Idempotency Is Not Recovery studies what happens when an agent's tool call is interrupted after it may have changed an external system. A retry risks doing the action twice, and assuming success may hide an action that never happened. The author injected ten fault classes into a runtime with authorization, an action ledger, target-side idempotency, reconciliation, and sealed evidence, over 7,513 trials each on Windows and Linux.
The full configuration repeated an effect in 0 of 200 known crash-and-replay pairs, against 117 of 200 for each simpler baseline. A ledger-related ablation left 170 of 170 effects orphaned, against 0 of 170 for the full configuration. Turning off reconciliation produced no duplicates, but left 100 of 100 post-effect crashes ambiguous. The safety had a price: the full runtime ran at about one-seventh of fail-open throughput. It is one author's controlled study of single-host faults, built from 24 constructed cases. The useful part is the distinction: suppressing a duplicate does not tell you whether the first attempt happened.
Recovery Under Interference, a library I wrote, takes the same position. It saves each recovery plan so a restarted worker resumes cleanly, and it marks a result it cannot confirm as uncertain instead of guessing. This paper gives me numbers for why the uncertain state has to exist. A retry policy without a ledger converts an unknown outcome into a guess.
My takeaway
The savings in these papers came from two moves: doing repeated work once, as ExecJudges does, and making steps cheaper, as the cascade does.
- Give each task a fresh or bounded context, and count cached reads and subagent tokens in the bill.
- Give every loop a stop rule and a call budget, and test for undoing a correct result.
- Try the small model first, and check the client and server before trusting the savings.
- Turn repeated judgments or actions into a program or a saved capability that people can read and rerun.
- Record every external action before attempting it, and keep an uncertain state for outcomes nobody can confirm.
Item 4 pays for the model once, at design time. Item 5 needs a record for each action, reconciliation, and an uncertain state when the outcome stays unknown. Items 1 and 2 are budgets on tokens and steps, and item 3 is a routing policy that the cascade paper measured in GPU-hours.