Measured 2026-11-04 and 2026-11-06 on Claude Code with sonnet. Read this before changing the output-saver block or claiming an output-side saving. Per-test numbers and the public claims live in the output-saver doc.
From local transcripts, 105,592 model calls, at price ratios of 1 (input), 1.25 (cache write), 0.1 (cache read) and 5 (output):
| Part of the bill | Share |
|---|---|
| Cache reads (rereading the context every turn) | 76% |
| Cache writes | 16.4% |
| Output | 7.6% |
Inside output tokens: hidden thinking about 50-58% (a residual estimate, so an upper bound), tool arguments 35% (73% of Bash tokens are heredocs), reply prose 6-10%. A rule that shortens prose touches about 0.5% of total cost.
A public paired study (arXiv 2607.12161) reached the same place from the input side: reducing tool output is not a reliable predictor of billed cost. A published agentic A/B of a telegraphic reply style found -8.5% output with no quality loss, far below the 65% its authors quote from chat prompts, while a system prompt aimed at fewer steps cut median cost 17.9%.
| Test | Runs | Arms | Result |
|---|---|---|---|
Chat replies, no tools (output_saver_ab.py) |
40 per arm | none, one line, block | Run 2, with the longer block: vs none -235 tokens (CI -326 to -141), vs one line -22 (CI -80 to +39), fidelity 100% in every arm. Run 1, older block: -237 and -20, fidelity 95%, see the feature doc |
Small repo tasks, tools on (output_saver_agentic.py) |
24 per arm | none, one line, 3 blocks | No arm differs on cost or turns. Blocks about $0.004 per run above none |
Stale docs vs code (--suite stale) |
40 per arm | none, one line, block | Correct: 95%, 95%, 90%. Block vs one line -5 points (CI -17.5 to +5) |
| “Thorough and bold” (stale and repo suites, numbers) | 37 and 24 per arm | none, one line, phrase, one line + bold | No winner. The phrase cost +11.6% on stale, over the 10% limit |
The third test also gave the only clear cost signal, and it favors the one line. Same runs:
| Arm | Cost | Turns | Output tokens | Both values shown |
|---|---|---|---|---|
| none | $0.048 | 3.5 | 541 | 95% |
| “Answer concisely.” | $0.045 | 2.9 | 363 | 95% |
| block | $0.049 | 3.4 | 409 | 82% |
The one line beats none on cost (-$0.003, CI -$0.005 to -$0.001) and turns (-0.68, CI -1.28 to -0.05), and beats the block on cost (-$0.005, CI -$0.007 to -$0.002). These comparisons were not the pre-registered ones and many were looked at, so treat them as a lead to retest, not a result. The “thorough and bold” runs repeat the gap over none: cost -$0.003 (CI -$0.005 to -$0.000), turns -0.70 (CI -1.43 to -0.03). It held, again as a secondary comparison.
Rules tried and dropped, none with a measured gain: word budgets, shape and style rules, “fewer turns” (batching, bounded reads, no polling), “read once”, “verify against code”, “prefer the newest source”, “be thorough”, “be bold”. The “fewer turns” rules moved turns by +0.25 (CI -0.67 to +1.13).
sed: 50 of 120 runs hit a denial and every failure was one of them.claude -p in a temp repo with the arm as CLAUDE.md and
--setting-sources project. Subagents can’t do this, they inherit the global
config and the trs hook.--permission-mode acceptEdits with a scoped --allowedTools, never
bypassPermissions.--total-cap-usd. About 120 runs cost $6 to $8 at low effort;
160 stale runs need more than $7.In order of expected value:
find,
grep and curl, but 100 runs make up 68-98% of each, so look at those
one-offs before building filters.Don’t add a line to the block without a test it passes. Size a feature against local history and transcripts before building it, and test the estimate: a loose regex said piped checks that could be fixed were 17.7% of Bash calls, the real rewrite reached 3.5%.