Step-by-step answer
Core 45–60 min7 stepsWatch prompt caching hit and miss
A runner that streams claude -p calls on your subscription and logs cache writes, cache reads, measured time to first token and API-equivalent cost, six experiments (a baseline, the four from the exercise and a layout check), and an analysis that subtracts Claude Code's own cached context from every read.
Back to the exercise