Step-by-step answer
Core 75–90 min8 stepsInstrument and speed up a real agent turn
A three-step agent turn (plan, tool round, answer) timed from the token stream of claude -p, or of any OpenAI-compatible endpoint, with three levers you switch on one at a time. Before/after tables at p50 and p95 show which lever moves which term, and why prefetching saves nothing once tools run in parallel.
Back to the exercise