TokenTrial leaderboard
Does a token-saving tool lower what a coding agent costs per correctly solved task? Each tool is compared with baseline and with a matched control that reproduces its side effects on Claude Code without the tool itself. Write-up: v0.3 FINDINGS.
v0.3 in brief
- No tool saved money beyond the noise floor on either model.
- caveman v4.1.0 cost 25% more on Sonnet 5.5 (95% CI +12% to +44%) than its control. Its SessionStart hook adds about 1,850 tokens of instructions to every session, and Sonnet's output, already short, didn't get shorter. On Haiku 5.5, where output fell about 17%, it was −8% (CI −19% to +5%).
- rtk's penalty replicated where rtk does the most work. Averaged over 18 tasks it's +4–5% (inconclusive), but on the four Bash-heavy tasks identified in v0.2 it was +38% for v1.1.0 on Haiku (CI +9% to +81%) and +36% for v1.2.0 on Sonnet (CI +5% to +114%).
- headroom had no measurable effect against a pass-through proxy (Haiku −6%, Sonnet −2%). It compressed requests in every run but removed only about 2% of input tokens.
- Claude Code updated itself mid-run (2.1.252 → 2.1.322) after 447 of the 810 Haiku runs; all Sonnet runs used 2.1.322. 2.1.322 no longer makes the background title call that skewed caveman's pilot result. See FINDINGS for the version-split analysis.
Try it on your own Claude Code subscription (needs uv; 72 Haiku runs, about $0.70 API-equivalent):
git clone https://github.com/bishtashish708/tokentrial && cd tokentrial && uv sync && uv run tokentrial install-arms && uv run tokentrial run --repeats 1 --out runs/mine && uv run tokentrial report --runs runs/mine
Only the pinned tool versions named below were tested. If an arm is set up wrong, open an issue; it will be rerun and published either way.
v0.3-sonnet: claude-sonnet-5-5
| Arm | Solved | Cost per solved task (95% CI) | vs baseline | vs matched control | Verdict |
|---|---|---|---|---|---|
baselineUnmodified Claude Code | 53/54 | $0.0461 ($0.0362–$0.0582) | — | — | reference |
noopControl: same install steps, changes nothing | 54/54 | $0.0459 ($0.0356–$0.0586) | −1% (−8% to +6%) | — | control |
noop-hookControl: a do-nothing SessionStart hook | 53/54 | $0.0451 ($0.0359–$0.0566) | −2% (−13% to +9%) | — | control |
headroom-passthroughControl: headroom proxy with optimization off | 54/54 | $0.0462 ($0.0363–$0.0585) | ±0% (−7% to +7%) | — | control |
rtk-v1.2.0rtk v1.2.0: compresses shell command output | 53/54 | $0.0483 ($0.0380–$0.0612) | +5% (−8% to +21%) | baseline +5% (−8% to +21%) | inconclusive (CI includes no change or overlaps the noise floor) |
caveman-v4.1.0caveman v4.1.0: terse-answer plugin | 52/54 | $0.0565 ($0.0445–$0.0716) | +22% (+13% to +32%) | noop-hook +25% (+12% to +44%) | more expensive than baseline, beyond the noise floor |
headroomheadroom 0.42.0: context-compression proxy | 54/54 | $0.0454 ($0.0372–$0.0549) | −1% (−10% to +8%) | headroom-passthrough −2% (−9% to +7%) | inconclusive (CI includes no change or overlaps the noise floor) |
Noise floor (noop vs baseline): −1%
(−8% to +6%).
Relative to baseline. Dots are point estimates, lines 95% CIs, the shaded band the noise floor. Data: summary.md · summary.json · raw records and transcripts (home path and username scrubbed).
Earlier and per-model results
v0.3-haiku: claude-haiku-5-5
| Arm | Solved | Cost per solved task (95% CI) | vs baseline | vs matched control | Verdict |
|---|---|---|---|---|---|
baselineUnmodified Claude Code | 90/90 | $0.0097 ($0.0067–$0.0133) | — | — | reference |
noopControl: same install steps, changes nothing | 89/90 | $0.0099 ($0.0069–$0.0137) | +3% (−9% to +16%) | — | control |
noop-hookControl: a do-nothing SessionStart hook | 89/90 | $0.0094 ($0.0061–$0.0136) | −3% (−17% to +12%) | — | control |
headroom-passthroughControl: headroom proxy with optimization off | 90/90 | $0.0109 ($0.0071–$0.0158) | +13% (−4% to +29%) | — | control |
rtkrtk v1.1.0: compresses shell command output | 90/90 | $0.0101 ($0.0072–$0.0133) | +4% (−10% to +22%) | baseline +4% (−10% to +22%) | inconclusive (CI includes no change or overlaps the noise floor) |
rtk-v1.2.0rtk v1.2.0: compresses shell command output | 90/90 | $0.0101 ($0.0072–$0.0134) | +5% (−6% to +18%) | baseline +5% (−6% to +18%) | inconclusive (CI includes no change or overlaps the noise floor) |
cavemancaveman v4.0.1: terse-answer plugin | 89/90 | $0.0085 ($0.0056–$0.0121) | −12% (−22% to −2%) | noop-hook −10% (−21% to +4%) | cheaper than baseline, beyond the noise floor |
caveman-v4.1.0caveman v4.1.0: terse-answer plugin | 90/90 | $0.0086 ($0.0058–$0.0122) | −11% (−20% to ±0%) | noop-hook −8% (−19% to +5%) | cheaper than baseline, beyond the noise floor |
headroomheadroom 0.42.0: context-compression proxy | 89/90 | $0.0103 ($0.0066–$0.0147) | +6% (−9% to +23%) | headroom-passthrough −6% (−19% to +8%) | inconclusive (CI includes no change or overlaps the noise floor) |
Noise floor (noop vs baseline): +3%
(−9% to +16%).
Relative to baseline. Dots are point estimates, lines 95% CIs, the shaded band the noise floor. Data: summary.md · summary.json · raw records and transcripts (home path and username scrubbed).
v0.2: claude-haiku-5-5
| Arm | Solved | Cost per solved task (95% CI) | vs baseline | vs matched control | Verdict |
|---|---|---|---|---|---|
baselineUnmodified Claude Code | 80/80 | $0.0068 ($0.0045–$0.0100) | — | — | reference |
noopControl: same install steps, changes nothing | 80/80 | $0.0076 ($0.0047–$0.0116) | +11% (−2% to +24%) | — | control |
noop-hookControl: a do-nothing SessionStart hook | 79/80 | $0.0062 ($0.0035–$0.0103) | −9% (−24% to +7%) | — | control |
rtkrtk v1.1.0: compresses shell command output | 80/80 | $0.0093 ($0.0057–$0.0138) | +36% (+17% to +53%) | — | more expensive than baseline, beyond the noise floor |
cavemancaveman v4.0.1: terse-answer plugin | 77/80 | $0.0062 ($0.0036–$0.0101) | −9% (−21% to +5%) | — | inconclusive (CI includes no change or overlaps the noise floor) |
Noise floor (noop vs baseline): +11%
(−2% to +24%).
Relative to baseline. Dots are point estimates, lines 95% CIs, the shaded band the noise floor. Data: summary.md · summary.json · raw records and transcripts (home path and username scrubbed).
Limitations
- Synthetic small-to-medium tasks; both models solved nearly all of them, so the comparison rests on cost.
- Claude Code changed version during the Haiku run; arms were affected roughly equally (36–45 of each arm's 90 runs on 2.1.322).
- Default tool configurations and pinned versions; one agent (Claude Code).
- Costs are API-equivalent: runs used a Claude Code subscription, priced at verified list prices (price table).
Method and reproduction
- CIs: task-then-run hierarchical bootstrap, 10,000 resamples, paired by task.
- Reproduce v0.3 (after
uv sync && uv run tokentrial install-arms):
Haiku:uv run tokentrial run --model claude-haiku-5-5 --repeats 5 --seed 3 --out runs/v0.3-haiku --arm baseline --arm noop --arm noop-hook --arm headroom-passthrough --arm rtk --arm rtk-v1.2.0 --arm caveman --arm caveman-v4.1.0 --arm headroom
Sonnet:uv run tokentrial run --model claude-sonnet-5-5 --repeats 3 --seed 3 --out runs/v0.3-sonnet --arm baseline --arm noop --arm noop-hook --arm headroom-passthrough --arm rtk-v1.2.0 --arm caveman-v4.1.0 --arm headroom
thenuv run tokentrial report --runs runs/v0.3-haiku(and the same forruns/v0.3-sonnet). - v0.2 write-up: FINDINGS.