
TL;DR
A Microsoft Research analysis of 3.2M users and 761M LLM calls shows coding agent traffic is 87% agent-initiated, burns KV cache at turn boundaries, and punishes every tool failure with up to 4x compute.
Every claim you have heard about how coding agents behave under load has been inferred from synthetic benchmarks and small pilots. A new paper from UIUC and Microsoft Azure Research replaces those inferences with production telemetry: 13.5M sessions from 3.2M GitHub Copilot users over one week in June 2026, covering 761M LLM calls, 775M tool invocations, and 95T tokens across 27 models and 45 tools.
The title says it plainly: Agentic Coding in the Wild (arXiv 2608.00101). It is the first production-scale characterization of coding agent workloads, and its findings cut directly against how LLM serving systems are built today.
The paper is organized around a single structural fact: a coding agent session is not a stream of independent requests. It is a chain of tightly coupled LLM calls and tool executions, and every serving assumption built for chat workloads sits uneasily against it.
Agents initiate almost everything. 87% of LLM calls are agent-initiated, not user-initiated. The average turn unfolds 6.6 autonomous LLM calls after a single user prompt. LLM calls and tool invocations run at a near-1:1 ratio (median session: 15 LLM calls, 13 tool calls), because most calls produce a tool action and most tool results immediately trigger another call.
Sessions are violently heavy-tailed. The median session is 3 user turns, 15 LLM calls, and 4.2 minutes. The mean is 6.1 turns, 40.6 calls, and 62.6 minutes. The P90 session exceeds 100 LLM calls and 3 hours, and session duration has a 14.9x mean-to-median skew. A small fraction of long sessions dominate serving load, which matters because those are exactly the sessions whose KV cache you are holding in GPU memory.
Calls are input-heavy and output-light. Median prompt: 68K tokens. Median completion: 247 tokens. A 275:1 input-to-output ratio. Conversation history is 48% of prompt tokens and tool-call results another 28%, so the model spends its context re-reading its own actions. This flips the serving bottleneck from generation throughput to KV cache efficiency.
Prefix caching works beautifully inside a turn. Median cache hit rate is 98%, and the trajectory is predictable: 45% on the cold-start call, 86% by the second call, 92-94% plateau from the third onward.
Then the structure breaks it:
Tool failures are the hidden compute multiplier. 9% of turns hit tool failures, and the agent does not give up - it retries. Failure-driven turns average 36 LLM calls versus a median of 4.5, with growing context windows as error output accumulates, amplifying compute up to 4x. In chat, a failed request returns an error. In an agent, it starts a retry loop that cascades into dozens of calls.
From the archive
Aug 3, 2026 • 7 min read
Aug 3, 2026 • 7 min read
Aug 3, 2026 • 6 min read
Aug 3, 2026 • 6 min read
Your cost model is wrong if it treats calls as independent. The dominant cost of agentic coding is not generation, it is re-prefilling context that was evicted. The paper quantifies the spread: a cache miss costs a Deep-loop user a median re-prefill of 1.1M tokens versus 23K for a chat-only user, a 50x disparity under a uniform eviction policy. That connects directly to our analysis of why agent API bills balloon: the billing line item you see is mostly re-computed tokens, not new ones.
Turn boundaries are the actionable signal. The paper's practical contribution is a 2MB LightGBM ensemble that predicts, at each turn boundary, how long a session will stay idle. It captures 86-90% of total idle time and evaluates in under 3ms, and it works at the API level: when predicted idle straddles a provider's cache retention window (Claude's default is 300 seconds), issue a cheap keep-alive request before the deadline to avoid a full recompute. Our guide to cache-first coding agent design argued the cache is the product; this paper shows it is the infrastructure too.
Tool reliability is serving efficiency. The 4x compute amplification from retry loops means the cheapest serving optimization is not a better scheduler, it is more reliable tools and agents that verify before acting. If you run agent fleets, instrument tool failure rates before you optimize prompt tokens.
Uniform policies tax your heaviest users. Five user archetypes span a 50x token range, from chat-only users at 23K tokens per turn to Deep-loop users at 1.1M. Readers (41.7% of users) are stateless and cheap to cold-start. Deep-loop users (9.2%) run 20 tools per turn at 1.1M tokens and should never be evicted mid-turn. Serving systems, sandboxes, and billing tiers that treat everyone the same waste money on one end and add latency on the other.
The paper is the empirical foundation for what agent-native backend design has been claiming: serving systems built for chat - request-level scheduling, LRU eviction, independent batching - are structurally mismatched to agentic coding. The fix is not a patch on vLLM or SGLang; it is session-aware scheduling, retention windows tuned to turn structure, and cache state that survives model routing.
The most useful practical number: 90% of intra-turn traffic is cache hits, and the entire value of that caching evaporates at turn boundaries and model switches. Anything you do to keep sessions on one model, keep idle gaps under two minutes, or keep-alive a cache entry before eviction directly cuts serving cost. The inverse is also true: every tool that fails costs up to 4x more than the equivalent successful call.
We already knew benchmarks lie about production behavior. This is the first time the production behavior itself is the dataset, and it validates the direction more than any SWE-bench run could: the future of LLM serving is agent-shaped, or it is expensive.
Read next
Reasonix hit Hacker News with a DeepSeek-native pitch: keep long coding sessions cheap by designing the agent loop around prefix caching. The interesting question is when cache efficiency helps quality, and when it fights the harness.
7 min readThe latest Claude Code cache-burn debate is not just a quota complaint. It is a reminder that coding agents need cache-hit telemetry, spend ceilings, and repro-grade usage logs.
8 min readFive managed-agent providers, five pricing models, zero unified cost attribution. If you're running agents overnight, you need FinOps you don't have yet.
13 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
The original AI coding assistant. 77M+ developers. Inline completions in VS Code and JetBrains. Copilot Workspace genera...
View ToolMulti-agent orchestration framework built on the OpenAI Agents SDK. Define agent roles, typed tools, and directional com...
View ToolAnthropic's recommended default for complex work, released May 28, 2026. 1M context, 128K output, $5/$25 per million tok...
View ToolAnthropic's agentic coding CLI. Runs in your terminal, edits files autonomously, spawns sub-agents, and maintains memory...
View ToolSpec out AI agents, run them overnight, wake up to a verified GitHub repo.
View AppEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppSee exactly what your agent did, locally. No cloud, no signup.
View AppWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsDeep comparison of the top AI agent frameworks - LangGraph, CrewAI, Mastra, CopilotKit, AutoGen, and Claude Code.
AI AgentsA practical walk-through of how to design, write, and ship a Claude Code skill - from choosing when to trigger, through allowed-tools, to the steps the agent will actually follow.
Getting Started
Check out Trae here! https://tinyurl.com/2f8rw4vm In this video, we dive into @Trae_ai a newly launched AI IDE packed with innovative features. I provide a comprehensive demonstration...

Buzz by Block: Open-Source Slack-Style Collaboration for Humans + AI Agents (Demo & Setup) Check out Arcade: https://arcade.dev.plug.dev/xiDRwlA Repo: https://github.com/block/buzz The video introd...

Build Anything with Vercel, the Agentic Infrastructure Stack Check out Vercel: https://vercel.plug.dev/cwBLgfW The video shows a behind-the-scenes walkthrough of how the creator rapidly builds and d...

Reasonix hit Hacker News with a DeepSeek-native pitch: keep long coding sessions cheap by designing the agent loop aroun...

The latest Claude Code cache-burn debate is not just a quota complaint. It is a reminder that coding agents need cache-h...

Five managed-agent providers, five pricing models, zero unified cost attribution. If you're running agents overnight, yo...

InsForge is trending because coding agents can scaffold UI faster than they can safely operate databases, auth, storage,...

A wave of audits in the last two days measured the noise floor of agent benchmarks: misaligned ground truth, lenient mod...

A placebo-controlled study on MBPP+ finds that when small code models fail, resampling from scratch beats repair loops t...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.