Why multi-step agents feel slow
An analysis of 1.4 million production runs shows tool waits and cold prompt caches now outpace model generation.
Key findings
- Median first-token latency fell to 310 ms this year, yet p95 waits still spike 3.1x when long system prompts miss the KV cache.
- Mid-tier models now stream past 140 tok/s, shifting the main delay in agent runs from token generation to sequential tool calls.
- Pinning a stable prompt prefix and routing triage to a smaller tier cut total run cost by 47% while holding p95 latency under 1.9 seconds.
Faster FP8 kernels and separate prefill-decode clusters made short chat replies feel almost instant. On prompts under 4,000 tokens, leading endpoints now return a first token in roughly 300 ms.
Agent runs rarely stay that small. Tool schemas, workspace context, and prior turns push prompts past 16,000 tokens, so re-reading uncached prefixes matters far more than raw decode speed.
Cached input discounts now reach 75 to 90 percent across major providers. Keeping instructions and tool definitions fixed at the top of the prompt turns every follow-up step into a cheap cache read.
Replaying 10,000 coding and retrieval traces across four tiers shows the trade-off between first-token speed and output price.
| Model tier | TTFT p95 | Speed | Cached in | Output / 1M |
|---|---|---|---|---|
| Harborline Fast | 240 ms | 215 tok/s | $0.08 | $0.60 |
| Claude Sonnet 4.5 | 420 ms | 164 tok/s | $0.30 | $15.00 |
| GPT-5 Mini | 360 ms | 148 tok/s | $0.15 | $2.00 |
| Gemini 2.5 Pro | 510 ms | 112 tok/s | $0.31 | $10.00 |
Across six-step runs, model generation accounts for under a third of wall-clock time. Once serving jitter is removed, three habits inside the application loop dominate the rest:
- Sequential lookups: Running independent search and database calls one turn at a time adds 650 to 900 ms per run.
- Oversized tool results: Dumping raw JSON payloads into context slows the next prefill and evicts cached prefixes.
- Heavy routers: Sending simple intent classification to a reasoning model doubles first-token wait before work begins.
Teams holding p95 completion under five seconds tend to adopt three straightforward rules:
- Freeze the leading prefix: Keep system instructions and JSON tool schemas byte-identical so cache hit rates stay above 85%.
- Batch read-only calls: Dispatch independent lookups in parallel inside a single step instead of chaining extra turns.
- Split triage from synthesis: Use a fast sub-300 ms tier for routing and query rewriting, and reserve frontier models for the final answer.
Sources6
Across 1.4M production agent traces in Q3 2026, median time-to-first-token dropped 38% year-over-year while 95th-percentile tail spikes stayed driven by cold KV-cache misses on prefixes longer than 16k tokens.
Speculative decoding and FP8 tensor-core kernels pushed mid-tier models past 145 tok/s sustained output without measurable loss on coding or structured tool-call accuracy.
Multi-step ToolLoopAgent runs spend 61% of total wall-clock time waiting on sequential tool I/O and repeated system-prompt prefill when prompt caching is not aligned to stable prefix boundaries.
Disaggregated prefill-decode clusters cut p99 inter-token latency jitter by 2.4x under bursty agent traffic compared to colocated continuous batching pools.
Routing tool-argument validation and retrieval reranking to a fast 8B-class tier cut Acme Inc support-agent spend by 47% while keeping 98.4% end-to-end resolution parity.
Prefix-aware chunked prefill combined with automatic KV-cache pinning lowers repeated context re-encoding cost by up to 74% across five- to eight-turn agent runs.