Large-Scale Study of GitHub Copilot Trajectories
Abstract
AI coding agents are increasingly integrated into software development workflows. However, most coding agent studies rely on benchmarks similar to SWE-bench, which assume autonomous agents operating in a single trajectory. This assumption does not mirror real-world usage, where developers interactively collaborate with agents. We address this gap by studying human-in-the-loop agent trajectories in the wild, focusing on 7,581 Copilot-authored PRs with publicly accessible session data. We find that 58% of Copilot PRs have no human intervention, and that when developers do intervene, collaboration is brief (median of 2 Human-AI loops). Merged PRs also tend to have fewer initial trajectory iterations than unmerged ones. We also find that the trajectory following the first human intervention exhibits a significant drop of 20.8 iterations and 8.4 min in duration. However, trajectories following later interventions show minimal iteration drops and no significant duration change, signifying that most of the work happens in the initial trajectory. Our qualitative analysis of illustrative PRs explains this pattern: many developer interventions are small, focused requests that Copilot completes in shorter later trajectories. We also illustrate that developers collaborate with Copilot in multiple ways, including delegated work through feedback as well as adding their own commits. However, we find that developers may need to guide Copilot through multiple (sometimes repeated) interventions in the PR, or even across multiple editions of the PR.
Create a lesson
Related papers
Barriers to GenAI Integration During Large-Scale Agile Transformation: An Exploratory Case Study
Shared title terminologycs.SENils Brede Moe, Marthe Berntzen, Astri Barbala et al.
Testing with Coding Agents: A Large-Scale Comparison of Agent-Supported and Human-Authored Pull Requests
Shared title terminologycs.SERoberto Milanese, Francesco Salzano, Hovhannes Muradyan et al.
Code Cloning and Procedural Abstraction in Scratch: A Large-Scale Study of Co-Existing Reuse Practices
Shared title terminologycs.SERicardo Hidalgo-Aragon, Jesús Moreno-León, Alejandro Echaniz et al.
How Developers Configure LLM Inference: A Large-Scale Study of Real-World Practices
Shared title terminologycs.SENada Zine, Matias Martinez, Romain Rouvoy et al.
ReqSeek: Transformer-Based Automatic Requirements Identification for Building Large Requirements Datasets
Shared title terminologycs.SEMohammad Kasra Habib, Umm-e-Habiba, Daniel Graziotin et al.
Jailbreaks Are Global or Regional? A Controlled Study of Scale and Geolocation Effects on LLM Safety Verification
Shared title terminologycs.SEAnidipta Pal