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

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

Date 2026-11-13 Agent Claude Code 2.1.322, headless Design 18 tasks × 7 arms × 3 repeats = 378 runs Solved 373/378 Total cost $17.76 API-equivalent
ArmSolvedCost per solved task (95% CI) vs baselinevs matched controlVerdict
baseline
Unmodified Claude Code
53/54$0.0461 ($0.0362–$0.0582)——reference
noop
Control: same install steps, changes nothing
54/54$0.0459 ($0.0356–$0.0586)−1% (−8% to +6%)—control
noop-hook
Control: a do-nothing SessionStart hook
53/54$0.0451 ($0.0359–$0.0566)−2% (−13% to +9%)—control
headroom-passthrough
Control: headroom proxy with optimization off
54/54$0.0462 ($0.0363–$0.0585)±0% (−7% to +7%)—control
rtk-v1.2.0
rtk 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.0
caveman 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
headroom
headroom 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%).

Cost per solved task relative to baseline, with 95% confidence intervals Noise floor: noop vs baseline CI −40% −20% ±0% +20% +40% +60% noop noop: −1% (−8% to +6%) noop-hook noop-hook: −2% (−13% to +9%) headroom-passthrough headroom-passthrough: ±0% (−7% to +7%) rtk-v1.2.0 rtk-v1.2.0: +5% (−8% to +21%) caveman-v4.1.0 caveman-v4.1.0: +22% (+13% to +32%) headroom headroom: −1% (−10% to +8%)

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

Date 2026-11-12, 2026-11-13 Agent Claude Code 2.1.252, 2.1.322, headless Design 18 tasks × 9 arms × 5 repeats = 810 runs Solved 806/810 Total cost $7.85 API-equivalent
ArmSolvedCost per solved task (95% CI) vs baselinevs matched controlVerdict
baseline
Unmodified Claude Code
90/90$0.0097 ($0.0067–$0.0133)——reference
noop
Control: same install steps, changes nothing
89/90$0.0099 ($0.0069–$0.0137)+3% (−9% to +16%)—control
noop-hook
Control: a do-nothing SessionStart hook
89/90$0.0094 ($0.0061–$0.0136)−3% (−17% to +12%)—control
headroom-passthrough
Control: headroom proxy with optimization off
90/90$0.0109 ($0.0071–$0.0158)+13% (−4% to +29%)—control
rtk
rtk 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.0
rtk 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)
caveman
caveman 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.0
caveman 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
headroom
headroom 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%).

Cost per solved task relative to baseline, with 95% confidence intervals Noise floor: noop vs baseline CI −40% −20% ±0% +20% +40% +60% noop noop: +3% (−9% to +16%) noop-hook noop-hook: −3% (−17% to +12%) headroom-passthrough headroom-passthrough: +13% (−4% to +29%) rtk rtk: +4% (−10% to +22%) rtk-v1.2.0 rtk-v1.2.0: +5% (−6% to +18%) caveman caveman: −12% (−22% to −2%) caveman-v4.1.0 caveman-v4.1.0: −11% (−20% to ±0%) headroom headroom: +6% (−9% to +23%)

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

Date 2026-11-12 Agent Claude Code 2.1.252, headless Design 10 tasks × 5 arms × 8 repeats = 400 runs Solved 396/400 Total cost $2.87 API-equivalent
ArmSolvedCost per solved task (95% CI) vs baselinevs matched controlVerdict
baseline
Unmodified Claude Code
80/80$0.0068 ($0.0045–$0.0100)——reference
noop
Control: same install steps, changes nothing
80/80$0.0076 ($0.0047–$0.0116)+11% (−2% to +24%)—control
noop-hook
Control: a do-nothing SessionStart hook
79/80$0.0062 ($0.0035–$0.0103)−9% (−24% to +7%)—control
rtk
rtk 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
caveman
caveman 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%).

Cost per solved task relative to baseline, with 95% confidence intervals Noise floor: noop vs baseline CI −40% −20% ±0% +20% +40% +60% noop noop: +11% (−2% to +24%) noop-hook noop-hook: −9% (−24% to +7%) rtk rtk: +36% (+17% to +53%) caveman caveman: −9% (−21% to +5%)

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

Method and reproduction