input $3.00 / MTok cache read $0.30 / MTok
Cache-miss exposure
Claude Code caches the front of your prompt so repeat tokens cost a
tenth of the price. When a session rebuilds that cache instead of
reusing it, you pay full input rate on tokens that should have been
nearly free. CostClaw measures the gap and prices it.
Read ×142 in one session
Reactive tool loops
A session that fires the same tool a hundred times is usually thrashing:
re-reading, re-grepping, circling a problem. It does not show up as a
line item, but it burns tokens and time. CostClaw counts the loops and
flags the sessions that run hot.
Opus $15 / MTok Sonnet $3 / MTok
Model misrouting
A short, simple session does not need the top model. When a quick task
runs on Opus that a cheaper model would have served, you pay the Opus
rate for Sonnet work. CostClaw flags those sessions and prices the
difference against the cheaper model.
cache 91% 34% by the last turns
Sessions that outgrow the cache
A session that runs for hours keeps adding context until the cache stops
paying off. The early turns hit it; the closing turns re-pay full price
for a prompt that only grew. CostClaw tracks the per-turn cache and flags
the sessions that should have been compacted.