TL;DR
This paper presents the first production-scale characterization of AI coding agents by analyzing massive telemetry datasets from GitHub Copilot. The authors reveal that agentic workloads are fundamentally different from traditional chatbots, characterized by a tight 1:1 coupling between LLM calls and tool executions, extreme user heterogeneity, and highly predictable "bimodal" idle periods. Leveraging these insights, they design a lightweight idle-time predictor that captures 86–90% of user idle time, opening new doors for proactive, agent-native resource orchestration.
What Problem Does This Paper Address?
Current Large Language Model (LLM) serving infrastructure (like vLLM or SGLang) was architected under the assumption of chatbot-style workloads: independent, short-lived, and stateless requests. However, modern AI coding agents (such as GitHub Copilot or Claude Code) operate under a completely different paradigm. They autonomously execute complex software engineering tasks by reading files, running builds, and fixing errors over multi-step loops that interleave LLM inference with tool execution.
Because existing systems are optimized for request-level scheduling and simple LRU cache eviction, they are structurally mismatched for these long-running, stateful agent sessions. Furthermore, prior research into agent optimization has relied almost entirely on small, synthetic benchmarks (like SWE-bench), leaving a massive gap in our understanding of how these systems behave at a true production scale.
Methods
The authors perform an in-depth empirical characterization of anonymized client-side telemetry data. To make sense of the massive diversity in user behavior and agent tasks, they cluster the data into six workflow archetypes (e.g., Deep-loop read, Multi-cycle edit) and five user behavioral archetypes (e.g., Readers, Coders, Deep-loop users).
Additionally, they address the problem of resource reclamation during user idle periods. Instead of relying on static timeouts, they train a lightweight LightGBM quantile regressor ensemble on 12 tabular features (such as turn duration, past success rates, and session indices). Rather than outputting a single point estimate, this model predicts a survival curve—the probability that a user will remain idle past a given duration $t$—allowing serving infrastructure to make fine-grained, proactive decisions about when to offload KV caches or hibernate execution containers.
Datasets
The study analyzes a massive, production-scale dataset sampled from GitHub Copilot (across both Visual Studio and VS Code) during the first week of June 2026. The dataset contains:
- 13.5 million sessions from over 3.2 million unique users.
- 760.5 million LLM calls and 774.7 million tool invocations.
- 44.9 trillion prompt tokens and 39.3 billion completion tokens.
- Traces spanning 27+ different LLM models and 45+ unique tools.
Key Insights and Ideas
- The 1:1 LLM↔Tool Coupling: Agentic workflows strictly follow an observe-reason-decide-act loop. Across the entire dataset, the ratio of LLM calls to tool invocations sits nearly perfectly at 1:1.
- High Autonomy: 87% of all LLM calls within a session are initiated automatically by the agent rather than the user. A single user prompt triggers a cascade of autonomous steps.
- Bimodal Idleness: Session idleness is split into two distinct scales: short, seconds-long pauses within a turn (while a tool executes) and long, minutes-long pauses between turns (while the human developer thinks or reviews code).
- Extreme Cache Fragility: While intra-turn prefix caching is highly effective (averaging a 90%+ hit rate), the KV cache is highly vulnerable to session events. Cache hit rates drop to 55% across turn boundaries due to time-based evictions, and collapse to just 8% after a model switch.
- The Cost of Context Compaction: When an agent hits a model's context window limit, it performs "context compaction" to summarize history. The authors found this event drops ~72.8% of prompt tokens and causes a massive 66.1% drop in cache hit rate, acting as a severe, system-induced cache cold start.
- Failure Amplification: When tools fail (e.g., a broken build), agents enter autonomous retry loops. These loops expand the context window with error logs, amplifying compute costs by up to 4× for that turn.
Key Results
- Workload Skew: While the median session is brief (3 turns, 15 LLM calls, 4.2 minutes), the workload is heavily right-skewed. The mean session duration is 62.6 minutes, and the top 10% of sessions exceed 3 hours, dominating resource consumption.
- Bimodal Gaps: The median intra-turn KV cache idle time is a mere 1.2 seconds, meaning caches must be held warm during active agent loops. Conversely, the median cross-turn user idle time is 25.2 minutes, providing a massive window for resource reclamation.
- Predictor Performance: The LightGBM idle-time predictor achieves an ROC-AUC of 0.73 for predicting whether an idle gap will exceed 60 seconds. Crucially, it successfully captures 86–90% of total idle time across various elapsed windows, allowing infrastructure to safely offload KV caches to DRAM/disk and hibernate sandbox containers without sacrificing user experience.
Limitations and Future Work
The authors identify three primary limitations of their study:
- No Quality Signals: Because the telemetry data was strictly anonymized to protect user privacy, the dataset lacks prompt/response content. Consequently, the authors could not correlate infrastructure efficiency optimizations with actual task completion quality.
- Client-Side Only View: The traces lack server-side metrics such as raw GPU utilization, hardware memory pressure, or execution queue depths, which limits the ability to perform true end-to-end hardware co-design.
- Rapidly Evolving Workloads: AI agents are changing weekly. While the workload characteristics were stable between January and June 2026, longitudinal tracking is required to monitor how emerging autonomy strategies and model architectures might shift these baseline patterns over time.
Summary updated