arXiv:2610.32313cs.SEOct 2026

Manuscript Offprint

arXiv:2610.32313

Large-Scale Study of GitHub Copilot Trajectories

Izah Sohail, Yerdanat Kurmantayev, May Mahmoud, Sarah Nadi

Izah Sohail, Yerdanat Kurmantayev, May Mahmoud, and Sarah Nadi

New York University Abu Dhabi

Abu Dhabi, United Arab Emirates

{is2587, yk3194, m.mahmoud, sarah.nadi}@nyu.edu

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.

I. INTRODUCTION

Autonomous coding agents are now able to read through entire repositories, generate code, create documentation, test cases, and submit pull requests on GitHub [1], [2]. To understand how agents succeed or fail, much recent work explores their trajectories, i.e., the steps, tools, and iterations an agent takes [3], [4]. However, most of the work that examines agent trajectories [3]–[5] analyzes agent performance on issue benchmarks such as SWE-bench [6] and SWE-bench Pro [7]. These benchmarks are curated from real, publicly posted GitHub issues and scored based on whether the agent can resolve the issue by ensuring its code passes the provided tests. To solve the issues, agents must autonomously determine the required steps, use the necessary tools, and iterate until they succeed or exhaust a predefined budget (e.g., maximum number of steps, time limit, or token limit).

While test benchmarks are informative for advancing AI agent research, they do not necessarily reflect how these agents are used in practice [8]. Such benchmarks assume a non-interactive evaluation setting in which agents complete tasks autonomously without human intervention. Once a task is assigned, no additional feedback is provided throughout the process. This assumption differs from real-world development workflows, where developers frequently interact with agents, seek clarification from them, or clarify requirements, and the agent iteratively refines the solution based on that feedback.

The goal of our work is to study agent trajectories in the wild, on issues explicitly assigned to them by a developer, with a particular emphasis on Human-AI collaboration. We study the trajectories of real agent-authored GitHub Pull Requests (PRs) from a diverse set of repositories. For feasibility of collecting publicly available trajectories, we limit our work to PRs authored by GitHub Copilot Agent [2].

To encode Copilot’s trajectories, we adapt Bouzenia and Pradel’s Thought-Action-Result trajectory encoding [4], extending it to interactive agent settings. Specifically, we allow multiple action-result pairs per thought based on our observations of how Copilot behaves. However, unlike a single trajectory per task in coding benchmarks, agents in the wild can start new trajectories based on human interventions (e.g., comments asking the agent to change their design or fix something in their solution). Accordingly, we also pair human interventions with the follow-up trajectories they result in. We refer to these as Human-AI loops. We use PR lifecycle to refer to our full encoding of what happens in a given agentic PR, with an example shown in Figure 1. We collect trajectories for 7,581 Copilot PRs spanning 1,602 unique GitHub repositories, and use this data to answer the following research questions:

• RQ1: How much Human–AI interaction occurs during a PR lifecycle? We analyze the number of Human-AI loops that appear in Copilot PRs.

• RQ2: How much agent effort occurs during a PR lifecycle? We measure the number of iterations and duration the agent takes during the PR.

• RQ3: How do human interventions shape agent work? We quantify how trajectory characteristics (iterations and duration) change following an intervention.

• RQ4: How does Human-AI collaboration look like in practice? We perform a small-scale detailed qualitative analysis of 20 PRs sampled to reflect the quantitative findings from RQ1-3, allowing us to understand the nature of Human-AI collaboration.

Our results show that 58% of Copilot PRs have no human intervention and that 62% of non-intervened merged PRs are truly autonomous, with the developer adding no extra commits themselves. On the other hand, we find that human intervention is associated with a higher merge rate across most PR types, but that when developers do intervene, collaboration is brief (median of 2 Human-AI loops). Additionally, merged

PRs have fewer initial trajectory iterations than unmerged ones. We also find that the trajectory following the first human intervention exhibit a significant drop of 20.8 iterations and 8.4 min in duration. However, trajectories following subsequent interventions show minimal iteration drops and no significant duration change. Our qualitative analysis sheds light on why this happens. Specifically, we observe that the most common types of interventions relate to suggesting implementation alternatives, refining requirements, pointing out bugs for the agent to fix, or pointing out a misunderstanding of the task specification. Such requests are typically more focused and the agent can complete them in less iterations. When qualitatively analyzing PRs with typical Human-AI loops (1-2) vs. those with more (> 2), we observe cases where the developer iteratively “hand-holds” Copilot towards understanding the task requirements through multiple loops, while in other cases, the developer would jump in and make the changes themselves. This showcases different collaboration styles: delegation vs. execution. Finally, our qualitative analysis also reveals that developers use Copilot for exploration, often re-assigning the same issue to Copilot several times and having it open additional PRs for the same task.

Overall, our work provides quantitative insights on how human-in-the-loop trajectories look like in practice, focusing on interventions that lead to additional agent work. Our qualitative insights reveal interesting developer work patterns that open up future research directions on understanding Human-AI collaboration. To summarize, our contributions are:

• A new format for encoding human-in-the-loop agent trajectories, combined with a validated reusable pipeline for encoding Copilot PR lifecycles.

• A data set of encoded trajectory data for 7,581, spanning 1,602 unique repositories.

• To the best of our knowledge, the first large-scale empirical study of trajectories of real agent-authored PRs that directly considers human interventions.

References (27)