Every test so far
Each entry is one recipe: the same task given to Claude Code several ways, a few runs each, scored by checks the agent never saw. The numbers are read from the raw run results when the site is built.
How to read this
"Key result" counts runs that passed the check that answers the recipe's question. That is the recipe's hidden tests, the checks the agent never saw, unless the entry names a different key check. "All checks" adds the rest, such as leaving generated files alone or rerunning tests after the last edit, and "About these checks" says which of those were missed. Under each table, the key-result line names the variant with the most runs passing the key result, "No difference" means a tie, and it is left out when a recipe has neither a hidden test nor a key check. "Cheapest" is the lowest average cost per run. Costs and times are averages per run, as Claude Code reports them. The line under each title is the recipe's own headline number, so read the recipe for the full story. Guides written from experience aren't listed, because they weren't run.
One long chat or a fresh session per feature? Same pass rate, 37% cheaper in one chat
$0.326 → $0.204 per five-feature build: a fresh session per feature vs one continued session
Variant Key result All checks Cost / run Time / run One long session 2 of 3 2 of 3 $0.204 76s Session per feature 2 of 3 2 of 3 $0.326 106s Key resultNo differenceCheapestOne long session
About these checks
Key result: all 11 checks, including four hidden tests.
Opus writes the tests, Sonnet implements: 5 of 5 on the hidden edge cases, but 0 of 5 passed the lint check, at 2.8x the cost
5 of 5 vs 4 of 5 runs passing the hidden edge-case test: Opus-written locked tests ($0.219 a run) vs plain Sonnet 5.5 ($0.079 a run)
Variant Key result All checks Cost / run Time / run Plain sonnet 4 of 5 3 of 5 $0.079 26s Sonnet tests first 4 of 5 3 of 5 $0.098 35s Opus tests locked 5 of 5 0 of 5 $0.219 54s Key resultOpus tests lockedCheapestPlain sonnet
About these checks
Key result: the hidden edge-case test. “All checks” is lower because Plain sonnet run 5 missed “ran tests after last edit”; Sonnet tests first run 1 missed “ran tests after last edit”; Opus tests locked runs 1, 2, 3, 4 and 5 missed “npm run check passes”. All 5 Opus-tests runs failed npm run check on a lint rule (money must be rounded with roundCents(), not Math.round/Math.floor). In the plain and tests-first arms, 1 run in each did not run the tests after its last edit.
Sonnet on high effort vs Opus on low: Sonnet passed 5 of 5 for 16% less, Opus finished sooner
5 of 5 vs 4 of 5 runs passing the hidden tests: Sonnet 5.5 high effort ($0.386 a run) vs Opus 5.5 low effort ($0.461 a run)
Variant Key result All checks Cost / run Time / run Sonnet high 5 of 5 5 of 5 $0.386 160s Opus low 4 of 5 4 of 5 $0.461 131s Key resultSonnet highCheapestSonnet high
About these checks
Key result: the hidden tests (CSV export and currency follow-up).
Does Claude Code cache your startup context? Yes, but fresh sessions pay for CLAUDE.md again
$0.148 → $0.082 per 3-task sequence: full CLAUDE.md in fresh sessions vs trimmed CLAUDE.md in one continued session
Variant Key result All checks Cost / run Time / run Full fresh 3 of 3 3 of 3 $0.148 34s Trimmed fresh 3 of 3 3 of 3 $0.115 30s Full continue 3 of 3 3 of 3 $0.102 29s Trimmed continue 3 of 3 3 of 3 $0.082 25s Key resultNo differenceCheapestTrimmed continue
About these checks
Key result: all 7 checks, including the hidden tests.
Fable 5.2 is 20% cheaper per token. On our bug fix it averaged $2.64 a run, under Fable 5.1's $3.28
$2.64 vs $3.28 average cost per run, Fable 5.2 (Claude Code 2.1.321 rerun) vs Fable 5.1 (both fixed the bug in every scored run)
Variant Key result All checks Cost / run Time / run Fable 5.2 3 of 3 2 of 3 $2.64 559s Fable 5.1 2 of 2 2 of 2 $3.28 556s Opus 5.5 2 of 3 1 of 3 $0.771 402s Key resultFable 5.2CheapestOpus 5.5
About these checks
Key result: the hidden test and the trace. “All checks” is lower because Fable 5.2 run 3 missed “ran the tests after the last code edit (TRACE.md edits don't count)”; Opus 5.5 runs 2 and 3 missed “ran the tests after the last code edit (TRACE.md edits don't count)”; Opus 5.5 run 3 missed “existing test/max-response-size.js passes”. Fable 5.2 (rerun) fixed the bug in 3 of 3 and passed all six checks in 2 of 3. Fable 5.1 passed all three listed checks in 2 of 2. Opus passed them in 2 of 3; its third run hit the 15-minute limit with its fix temporarily reverted.
Test cleanup is the job everyone wants to hand off. Can the cheap model do it without quietly deleting coverage?
3 of 3 each runs kept SAVE10 coverage and caught a 9% mutation; $0.013 a run for Haiku 5.5, $0.117 for Sonnet 5.5
Variant Key result All checks Cost / run Time / run Sonnet 3 of 3 3 of 3 $0.117 39s Haiku 3 of 3 3 of 3 $0.013 55s Key resultNo differenceCheapestHaiku
About these checks
Key result: the mutation check and the hidden behavioral suite.
We gave Opus a 902-file repo and a search-heavy bug. It started 0 subagents in 15 runs
0 of 15 runs that started a subagent, on a 902-file repo (all 15 fixed the bug)
Variant Key result All checks Cost / run Time / run Sonnet alone 5 of 5 3 of 5 $0.248 153s Opus no subagents 5 of 5 5 of 5 $0.951 541s Opus subagents default 5 of 5 5 of 5 $0.776 392s Key resultNo differenceCheapestSonnet alone
About these checks
Key result: the hidden test and the trace. “All checks” is lower because Sonnet alone runs 3 and 4 missed “ran the tests after the last code edit (TRACE.md edits don't count)”. Every run in every setup passed these three. Two Sonnet runs missed one other check: they edited the code again after their last test run.
Should your CLAUDE.md describe the code, or just the decisions? We tested 3 versions
$0.051 vs $0.073 per run, a 9-line decisions-only CLAUDE.md vs an 84-line full description (all 9 runs avoided the trap)
Variant Key result All checks Cost / run Time / run No CLAUDE.md 3 of 3 3 of 3 $0.057 19s Decisions only 3 of 3 3 of 3 $0.051 15s Full description 3 of 3 3 of 3 $0.073 23s Key resultNo differenceCheapestDecisions only
About these checks
Key result: the trap check and the hidden test.
We had Claude Code build a cost tracker. It took 2 prompts and $0.30.
$0.30 API cost for Claude Code to build it: 2 prompts, 126 seconds
This one was a build, not a comparison, so there are no variants to line up. The recipe has the numbers.
Opus plans, Sonnet builds, Haiku searches: the mix cost 2.3x Sonnet alone
$0.649 vs $0.283 per run, the full Opus + Sonnet + Haiku setup vs Sonnet alone (2 of 3 vs 3 of 3 passing)
Variant Key result All checks Cost / run Time / run Sonnet only 3 of 3 3 of 3 $0.283 105s Mirku tree 2 of 3 2 of 3 $0.649 41s Opusplan haiku 3 of 3 3 of 3 $0.416 105s Key resultSonnet only, Opusplan haikuCheapestSonnet only
About these checks
Key result: all nine checks.
Claude Code forks subagents by default now. In 9 runs, it never forked
0 forks in 9 runs with forking on by default; Claude did all the work itself
Variant Key result All checks Cost / run Time / run Forks on default 3 of 3 3 of 3 $0.218 79s Forks off 2 of 3 2 of 3 $0.245 88s No subagents 3 of 3 3 of 3 $0.305 102s Key resultForks on default, No subagentsCheapestForks on default
About these checks
Key result: all eight checks.
/clear on a bigger repo: one session was still cheaper
14% cheaper to stay in one session on a 197-file repo; every hidden test passed both ways
Variant Key result All checks Cost / run Time / run One session 3 of 3 3 of 3 $0.137 46s Clear between 3 of 3 3 of 3 $0.159 47s Key resultNo differenceCheapestOne session
About these checks
Key result: all three hidden task tests.
Kimi K3.1 Pro vs Sonnet 5.5 in Claude Code: same score, Kimi cost 2.4x as much and took 8x as long
5 of 5 each runs passed every hidden test; $0.054 and 18s a run for Sonnet 5.5, $0.127 and 148s for Kimi K3.1 Pro
Variant Key result All checks Cost / run Time / run Sonnet 5 of 5 0 of 5 $0.054 18s Kimi 5 of 5 0 of 5 $0.127 148s Key resultNo differenceCheapestSonnet
About these checks
Key result: all four hidden spec tests. “All checks” is lower because Sonnet runs 1, 2, 3, 4 and 5 missed “added tests for billingDates”; Sonnet runs 1, 2, 3, 4 and 5 missed “ran tests after last edit”; Kimi runs 1, 2, 3, 4 and 5 missed “added tests for billingDates”; Kimi runs 4 and 5 missed “ran tests after last edit”. Kimi's costs are worked out from its token usage at Moonshot's published kimi-k3.1-pro prices, not Claude Code's cost figure, which assumes Anthropic prices. No run in either column added tests to the repo.
Does 'think hard' actually help? Same pass rate, but it tested its own work
3 of 3 runs passed every hidden test either way; only 'think hard' runs added and ran tests (3 of 3 vs 0 of 3)
Variant Key result All checks Cost / run Time / run Plain 3 of 3 0 of 3 $0.057 22s Think hard 3 of 3 3 of 3 $0.091 34s Key resultNo differenceCheapestPlain
About these checks
Key result: all four hidden spec tests. “All checks” is lower because Plain runs 1, 2 and 3 missed “added tests for billingDates”; Plain runs 1, 2 and 3 missed “ran tests after last edit”. Every plain run did try to check its code, with a scratch script in /tmp that our sandbox doesn't allow running. None of them added a test to the repo.
Paste the error, or describe it? Both found the bug; only pasted errors caught the second crash
2 of 3 runs fully fixed the bug with the stack trace pasted (0 of 3 with a description)
Variant Key result All checks Cost / run Time / run Describe 0 of 3 0 of 3 $0.044 16s Paste error 2 of 3 0 of 3 $0.049 16s Key resultPaste errorCheapestDescribe
About these checks
Key result: all three hidden fix tests. “All checks” is lower because Describe runs 1, 2 and 3 missed “added a regression test”; Describe runs 1, 2 and 3 missed “ran tests after last edit”; Paste error runs 1, 2 and 3 missed “added a regression test”; Paste error runs 2 and 3 missed “ran tests after last edit”. No run in either column added a regression test (the prompt didn't ask for one), and only 1 of 6 ran the tests after its last edit.
We had Claude Code audit a bloated setup. It cut 88% of what the setup loaded.
4,271 → 522 tokens the setup added to every session, before and after the audit
Variant Key result All checks Cost / run Time / run Nothing 0 of 3 0 of 3 $0.074 22s Short 3 of 3 3 of 3 $0.064 18s Messy 3 of 3 3 of 3 $0.089 22s Audited 3 of 3 3 of 3 $0.221 61s Audit applied 3 of 3 3 of 3 $0.095 25s Key resultShort, Messy, Audited, Audit appliedCheapestShort
About these checks
Key result: the generated-file check and the hidden test. “All checks” is lower because Nothing run 2 missed “CHANGES.md updated”.
Plan mode first, or just start? Both passed; planning cost 73% more
73% more cost per run with plan mode first (6 of 6 passed either way)
Variant Key result All checks Cost / run Time / run Just start 3 of 3 3 of 3 $0.160 55s Plan first 3 of 3 3 of 3 $0.276 61s Key resultNo differenceCheapestJust start
Ask for tests first: 3 runs with, 3 without
3 of 3 runs passed the hidden edge-case test with tests first (2 of 3 without)
Variant Key result All checks Cost / run Time / run Just ask 2 of 3 2 of 3 $0.074 24s Tests first 3 of 3 1 of 3 $0.097 35s Key resultTests firstCheapestJust ask
About these checks
Key result: the hidden edge-case test. “All checks” is lower because Tests first runs 2 and 3 missed “ran tests after last edit”. In both tests-first misses, the last edit was a CHANGES.md line written after the tests had already passed.
What a short CLAUDE.md actually changes: 3 runs with, 3 without
0 of 3 runs edited the generated file with a CLAUDE.md (2 of 3 without)
Variant Key result All checks Cost / run Time / run No CLAUDE.md 1 of 3 1 of 3 $0.078 20s Short CLAUDE.md 3 of 3 3 of 3 $0.057 12s Key resultShort CLAUDE.mdCheapestShort CLAUDE.md
About these checks
Key result: the generated-file check and the hidden test.
Unrelated tasks, same answer on /clear
17% cheaper to stay in one session, even with unrelated tasks
Variant Key result All checks Cost / run Time / run One session 2 of 3 2 of 3 $0.145 42s Clear between 3 of 3 3 of 3 $0.176 41s Key resultClear betweenCheapestOne session
Is /clear worth it? Not for small, related tasks
28% cheaper to stay in one session than to clear between tasks
Variant Key result All checks Cost / run Time / run One session 3 of 3 3 of 3 $0.095 27s Clear between 3 of 3 3 of 3 $0.131 29s Key resultNo differenceCheapestOne session
Hook, skill or CLAUDE.md line? We ran all three (and nothing)
4 of 4 ways got the rule followed; one CLAUDE.md line was cheapest
Variant Key result All checks Cost / run Time / run Nothing 3 of 3 3 of 3 $0.110 27s CLAUDE.md 3 of 3 3 of 3 $0.083 20s Skill 3 of 3 3 of 3 $0.084 19s Hook 3 of 3 0 of 3 $0.101 25s Key resultNo differenceCheapestCLAUDE.md
About these checks
Key result: the rule checks (every file stamped, tests pass). “All checks” is lower because Hook runs 1, 2 and 3 missed “Claude ran npm run format itself after its last edit”. The hook ran the formatter after every edit, so Claude didn't run it itself. The rule was still followed in every run.
Subagents for codebase searches cost more and saved nothing
24% more with a subagent for searches, and no context saved
Variant Key result All checks Cost / run Time / run No guidance 3 of 3 3 of 3 $0.167 44s Delegate in CLAUDE.md 3 of 3 3 of 3 $0.207 45s Key resultNo differenceCheapestNo guidance
Haiku was enough
$0.009 vs $0.221 per run, Haiku vs Opus, same 9 of 9 passes
Variant Key result All checks Cost / run Time / run Haiku 3 of 3 3 of 3 $0.009 28s Sonnet 3 of 3 3 of 3 $0.105 27s Opus 3 of 3 3 of 3 $0.221 42s Key resultNo differenceCheapestHaiku