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.

  1. 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

    VariantKey resultAll checksCost / runTime / run
    One long session2 of 32 of 3$0.20476s
    Session per feature2 of 32 of 3$0.326106s

    Key resultNo differenceCheapestOne long session

    About these checks

    Key result: all 11 checks, including four hidden tests.

  2. 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)

    VariantKey resultAll checksCost / runTime / run
    Plain sonnet4 of 53 of 5$0.07926s
    Sonnet tests first4 of 53 of 5$0.09835s
    Opus tests locked5 of 50 of 5$0.21954s

    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.

  3. 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)

    VariantKey resultAll checksCost / runTime / run
    Sonnet high5 of 55 of 5$0.386160s
    Opus low4 of 54 of 5$0.461131s

    Key resultSonnet highCheapestSonnet high

    About these checks

    Key result: the hidden tests (CSV export and currency follow-up).

  4. 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

    VariantKey resultAll checksCost / runTime / run
    Full fresh3 of 33 of 3$0.14834s
    Trimmed fresh3 of 33 of 3$0.11530s
    Full continue3 of 33 of 3$0.10229s
    Trimmed continue3 of 33 of 3$0.08225s

    Key resultNo differenceCheapestTrimmed continue

    About these checks

    Key result: all 7 checks, including the hidden tests.

  5. 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)

    VariantKey resultAll checksCost / runTime / run
    Fable 5.23 of 32 of 3$2.64559s
    Fable 5.12 of 22 of 2$3.28556s
    Opus 5.52 of 31 of 3$0.771402s

    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.

  6. 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

    VariantKey resultAll checksCost / runTime / run
    Sonnet3 of 33 of 3$0.11739s
    Haiku3 of 33 of 3$0.01355s

    Key resultNo differenceCheapestHaiku

    About these checks

    Key result: the mutation check and the hidden behavioral suite.

  7. 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)

    VariantKey resultAll checksCost / runTime / run
    Sonnet alone5 of 53 of 5$0.248153s
    Opus no subagents5 of 55 of 5$0.951541s
    Opus subagents default5 of 55 of 5$0.776392s

    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.

  8. 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)

    VariantKey resultAll checksCost / runTime / run
    No CLAUDE.md3 of 33 of 3$0.05719s
    Decisions only3 of 33 of 3$0.05115s
    Full description3 of 33 of 3$0.07323s

    Key resultNo differenceCheapestDecisions only

    About these checks

    Key result: the trap check and the hidden test.

  9. 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.

  10. 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)

    VariantKey resultAll checksCost / runTime / run
    Sonnet only3 of 33 of 3$0.283105s
    Mirku tree2 of 32 of 3$0.64941s
    Opusplan haiku3 of 33 of 3$0.416105s

    Key resultSonnet only, Opusplan haikuCheapestSonnet only

    About these checks

    Key result: all nine checks.

  11. 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

    VariantKey resultAll checksCost / runTime / run
    Forks on default3 of 33 of 3$0.21879s
    Forks off2 of 32 of 3$0.24588s
    No subagents3 of 33 of 3$0.305102s

    Key resultForks on default, No subagentsCheapestForks on default

    About these checks

    Key result: all eight checks.

  12. /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

    VariantKey resultAll checksCost / runTime / run
    One session3 of 33 of 3$0.13746s
    Clear between3 of 33 of 3$0.15947s

    Key resultNo differenceCheapestOne session

    About these checks

    Key result: all three hidden task tests.

  13. 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

    VariantKey resultAll checksCost / runTime / run
    Sonnet5 of 50 of 5$0.05418s
    Kimi5 of 50 of 5$0.127148s

    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.

  14. 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)

    VariantKey resultAll checksCost / runTime / run
    Plain3 of 30 of 3$0.05722s
    Think hard3 of 33 of 3$0.09134s

    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.

  15. 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)

    VariantKey resultAll checksCost / runTime / run
    Describe0 of 30 of 3$0.04416s
    Paste error2 of 30 of 3$0.04916s

    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.

  16. 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

    VariantKey resultAll checksCost / runTime / run
    Nothing0 of 30 of 3$0.07422s
    Short3 of 33 of 3$0.06418s
    Messy3 of 33 of 3$0.08922s
    Audited3 of 33 of 3$0.22161s
    Audit applied3 of 33 of 3$0.09525s

    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”.

  17. 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)

    VariantKey resultAll checksCost / runTime / run
    Just start3 of 33 of 3$0.16055s
    Plan first3 of 33 of 3$0.27661s

    Key resultNo differenceCheapestJust start

  18. 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)

    VariantKey resultAll checksCost / runTime / run
    Just ask2 of 32 of 3$0.07424s
    Tests first3 of 31 of 3$0.09735s

    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.

  19. 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)

    VariantKey resultAll checksCost / runTime / run
    No CLAUDE.md1 of 31 of 3$0.07820s
    Short CLAUDE.md3 of 33 of 3$0.05712s

    Key resultShort CLAUDE.mdCheapestShort CLAUDE.md

    About these checks

    Key result: the generated-file check and the hidden test.

  20. Unrelated tasks, same answer on /clear

    17% cheaper to stay in one session, even with unrelated tasks

    VariantKey resultAll checksCost / runTime / run
    One session2 of 32 of 3$0.14542s
    Clear between3 of 33 of 3$0.17641s

    Key resultClear betweenCheapestOne session

  21. Is /clear worth it? Not for small, related tasks

    28% cheaper to stay in one session than to clear between tasks

    VariantKey resultAll checksCost / runTime / run
    One session3 of 33 of 3$0.09527s
    Clear between3 of 33 of 3$0.13129s

    Key resultNo differenceCheapestOne session

  22. 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

    VariantKey resultAll checksCost / runTime / run
    Nothing3 of 33 of 3$0.11027s
    CLAUDE.md3 of 33 of 3$0.08320s
    Skill3 of 33 of 3$0.08419s
    Hook3 of 30 of 3$0.10125s

    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.

  23. Subagents for codebase searches cost more and saved nothing

    24% more with a subagent for searches, and no context saved

    VariantKey resultAll checksCost / runTime / run
    No guidance3 of 33 of 3$0.16744s
    Delegate in CLAUDE.md3 of 33 of 3$0.20745s

    Key resultNo differenceCheapestNo guidance

  24. Haiku was enough

    $0.009 vs $0.221 per run, Haiku vs Opus, same 9 of 9 passes

    VariantKey resultAll checksCost / runTime / run
    Haiku3 of 33 of 3$0.00928s
    Sonnet3 of 33 of 3$0.10527s
    Opus3 of 33 of 3$0.22142s

    Key resultNo differenceCheapestHaiku