← Back to the recipe

Run data

Hook, skill or CLAUDE.md line? We ran all three (and nothing)

Claude Code 2.1.296 · 13 Oct 2026 · 12 runs · costs as Claude Code reports them. Raw summary (JSON)

Prompt

Add a new module src/lib/coupons.js exporting validateCode(code), which returns true for codes made of 4-12 uppercase letters or digits. Then add a discount(items, percent) function to src/lib/cart.js that returns the total including tax after taking the percentage off the subtotal. Add tests for both.

Runs

RunModelCostTurnsTimetests passevery .js file correctly stampedClaude ran npm run format itself after its last editDiff
Nothing #1sonnet-5-5$0.1131529spasspasspassdiff
Nothing #2sonnet-5-5$0.1111528spasspasspassdiff
Nothing #3sonnet-5-5$0.1061225spasspasspassdiff
CLAUDE.md #1sonnet-5-5$0.0821022spasspasspassdiff
CLAUDE.md #2sonnet-5-5$0.0821018spasspasspassdiff
CLAUDE.md #3sonnet-5-5$0.0861120spasspasspassdiff
Skill #1sonnet-5-5$0.0741317spasspasspassdiff
Skill #2sonnet-5-5$0.0891221spasspasspassdiff
Skill #3sonnet-5-5$0.0891321spasspasspassdiff
Hook #1sonnet-5-5$0.0981423spasspassfaildiff
Hook #2sonnet-5-5$0.1041425spasspassfaildiff
Hook #3sonnet-5-5$0.1001426spasspassfaildiff