Agentic Coding in the Wild: Characterizing GitHub Copilot Traces at Production Scale
Banruo Liu, Haoran Qiu, Íñigo Goiri, Rodrigo Fonseca, Ricardo Bianchini, Esha Choukse · 2026 · 28 citationsRead the paper
AI coding agents like GitHub Copilot, Claude Code, and Codex interleave multi-step LLM inference with tool execution, creating a workload different from chatbots. We present the first production-scale characterization of this workload using sampled GitHub Copilot traces from June 2026, comprising 3.2M users, 13M sessions, 761M LLM calls, and 95T tokens. Our analysis reveals distinctive workload properties with important systems implications. For example, agentic coding sessions consist of sparse user-initiated turns, each unfolding into an autonomous agent loop of LLM calls almost always coupled with tool execution. This structure yields KV cache hit rates averaging 90% within a turn, but falling to 55\% across turn boundaries and drastically invalidated after events like model switches or context compaction. Diverse workflows and user behaviors are observed with variable and long-tailed token consumption, time span, and tool calls. We highlight the difference between quick agentic turnaround times and the minutes-long user idle periods at turn boundaries, and design a lightweight idle-time predictor that captures 86-90\% of total idle time, enabling proactive decisions for efficient resource orchestration. These findings challenge assumptions underlying current LLM-serving systems and provide an empirical foundation for agent-native infrastructure.
What the full text shows
Tested in real conditions- Agent-initiated LLM invocations dominate the workload. — 87% of LLM invocations (GitHub Copilot production traces)
- KV cache hit rates are high within a turn but drop significantly across turn boundaries. — 90% within a turn vs. 55% across turn boundaries (GitHub Copilot production traces)
- Model switches severely invalidate the KV cache. — only 8% cached after switch (GitHub Copilot production traces)
- Tool failures lead to significant compute overhead via retry loops. — 9% of turns result in 4x compute (GitHub Copilot production traces)
- A lightweight idle-time predictor can accurately capture user inactivity at turn boundaries. — 86-90% of total idle time (Using session-level features)
- User token consumption is highly heterogeneous across different user archetypes. — 50x token range (Across 5 archetypes)
- Setup
- Sampled GitHub Copilot traces from June 2026: 3.2M users, 13M sessions, 761M LLM calls, 95T tokens, and 775M tool invocations.
- How
- The researchers performed a production-scale characterization of GitHub Copilot traces, analyzing the relationship between LLM calls and tool execution. They developed a lightweight idle-time predictor based on session-level features to optimize resource reclamation.
- Limitations
- Lack of quality signals (prompt/response content) to correlate efficiency with task success. · Client-side traces only; lacks server-side metrics like GPU utilization and queue depth. · Rapidly evolving workload may cause drift in characteristics like LLM call parallelism.
Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it