iRaven

Paper · Open source and society · Version v3

Will It Survive? Deciphering the Fate of AI Agent-Authored Code in Open Source

First published: arXiv, . Original

Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.

This page holds the text of the paper, converted to HTML; figures may be left out.

A survival analysis of agent-written code that was merged into 215 open-source projects. It measures how long such code lasts and why it is changed, to help maintainers decide how much review it needs.

Abstract

AI coding agents such as GitHub Copilot, OpenAI Codex and Devin now open pull requests (PRs) that are merged into open-source projects. Industry reports suggest that code written with AI assistance is revised or reverted soon after it is written, which raises the concern that agent code is “disposable”. However, very little is known about what happens to the code of coding agents after it is merged. Understanding how long this code survives, and why it is changed, can help maintainers decide how much review such code needs. To address this gap, we performed a survival analysis of the 648,959 lines that 2,794 merged PRs added outside vendored and generated paths in 215 open-source repositories from the AIDev dataset, comparing agent-attributed and human code within the same repositories. We find that agent-attributed code is not modified sooner than human code. When each PR is weighted equally, agent-attributed lines are modified later (HR = 0.83, 95% CI [0.75, 0.93]). This difference comes from the supervised assistants, mainly Copilot and Codex (HR = 0.76). Code from Devin does not differ from human code over the whole period (HR = 0.95), but among PRs merged after mid-May 2025, code from both the supervised assistants and Devin is modified later. However, without PR weighting, the difference is not statistically significant. When agent-attributed code is modified, the intent of the change is similar to that of human code (Cramér’s V = 0.080). Finally, a file’s size and recent changes predict whether agent-attributed code will be modified better than its code tokens do (AUC-ROC 0.78 vs. 0.70). Process features predict when it will be modified only weakly (Macro F1 of 0.31 against 0.25 for a random guess). Our findings suggest that agent code is not disposable, but whether it survives longer than human code depends on the agent, on when the code was merged and on how the comparison is computed.

Keywords:

AI Coding Agents, Software Evolution, Survival Analysis, Mining Software Repositories, Empirical Software Engineering

1. Introduction

Nowadays, AI coding agents such as GitHub Copilot, OpenAI Codex, Cursor, Claude Code and Devin write code in real-world software projects. They open pull requests (PRs) that are reviewed and merged like any other contribution. For example, the AIDev dataset contains 932,791 PRs opened by five agents on GitHub (Li et al., 2026), and 76% of the respondents of the 2024 Stack Overflow Developer Survey use or plan to use AI tools in their development process (Stack Overflow, 2024).

However, these tools are evaluated almost exclusively at generation time, with metrics such as Pass@k, CodeBLEU or compilation rates (Chen et al., 2021; Ren et al., 2020). These metrics tell us whether an agent can produce correct code, but not what happens to that code after it is merged. This is important because maintenance accounts for a large share of the total cost of software (Boehm, 1984). Therefore, if agent code passes review but is modified or rewritten soon after the merge, the time saved while writing it may be spent again on maintaining it.

GitClear analyzed about 153 million changed lines from 2020 to 2023 and reported that code churn, the share of lines that are reverted or updated less than two weeks after they are written, rises as AI coding assistants spread (Harding and Kloster, 2024). If this also holds for code written by coding agents, agent code is effectively “disposable”: merged quickly, but modified or deleted soon after. In this study, we refer to this concern as the disposable code hypothesis. However, very little is known about what happens to the code of coding agents after it is merged into real projects.

In this study, the term agent-attributed code refers to the code added by a merged PR that the AIDev dataset attributes to a coding agent, and human code refers to the code added by a merged PR that AIDev lists as written by a human. We use “attributed” because a PR-level signal shows why a PR was collected, but not who wrote each line, and we audit this attribution on a sample of PRs (Section 2.1.5).

To test the disposable code hypothesis, we use survival analysis, which models the time until an event while handling units whose event has not yet happened (Kleinbaum and Klein, 1996). Survival analysis has been used in software engineering for a long time (Section 8), for example to estimate how long lines of code live (Spinellis et al., 2021), and recent studies apply it to code from coding agents (Xia and Miller, 2026). We follow the lines added by 2,802 merged PRs, 1,470 agent-attributed and 1,332 human, in 215 open-source repositories from AIDev, from the merge until the line is first modified or until December 31, 2025. Agent and human PRs are spread unevenly across repositories, so we compare agent-attributed and human code within the same repository. Furthermore, a few very large PRs contribute most of the lines, so our primary analysis gives each PR the same weight. We also separate the supervised assistants (Copilot, Codex, Cursor and Claude Code), which work on tasks that a developer starts and reviews, from Devin, an autonomous software engineer. We ask three research questions:

RQ1 (Survival): Is agent-attributed code modified sooner than human code? Agent-attributed code is not modified sooner than human code in the same repositories in any of the analysis variants we examined (e.g., with or without weighting, at the line, hunk or file level). In our primary analysis, which gives every PR the same weight regardless of how many lines it adds, lines from supervised assistants, mainly Copilot and Codex, are modified later than human lines (hazard ratio, HR = 0.76 [0.65, 0.87], where an HR below 1 means that agent-attributed code is modified later). Devin code does not differ from human code in the full cohort (HR = 0.95), although among PRs merged after mid-May 2025, when Codex was released, Devin code is also modified later. When every line counts equally instead, so that a few very large PRs dominate, neither difference is significant.

RQ2 (Intent): When agent-attributed code is modified, what is the intent of the modification? The commits that modify agent-attributed code have almost the same intent profile as those that modify human code (Cramér’s V = 0.080). The shares of the maintenance categories of Swanson (Swanson, 1976), perfective (improvements and new features, 38.3% vs. 35.4%), corrective (bug fixes, 35.6% vs. 32.5%), adaptive (changes to the environment, 11.7% vs. 12.7%) and preventive (testing and security, 3.9% vs. 3.5%), are close, and only unclassifiable commits are less common for agent-attributed code (10.6% vs. 15.9%).

RQ3 (Forecasting): Can we predict at merge time whether, and when, agent-attributed code will be modified? Code tokens predict whether an agent-attributed file will be modified with modest accuracy (AUC-ROC 0.70), but a baseline on the size and recent changes of the file predicts it better (AUC-ROC 0.78), and the tokens that the model relies on do not point to the lines that are later modified. Process features, such as the recent changes to the file and its age, predict in which of four time bins (from within a day to more than a month) the code will be modified only weakly (Macro F1 0.31 against 0.25 for chance).

In summary, this paper makes the following contributions:

  • We find that agent-attributed code is not modified sooner than human code in the same repositories, and that the lower rate of modification of supervised-assistant code holds only when every PR gets the same weight.

  • We find that the commits that modify agent-attributed code have almost the same intent as those that modify human code, and that matching keywords inside other words (e.g., auth inside the Co-authored-by trailer) creates a spurious difference.

  • We find that the size and recent history of a file predict whether agent-attributed code will be modified better than its code tokens do, and that the code tokens the model relies on do not point to the lines that are later modified. Process features predict the timing of a modification only weakly.

  • We release our data, attribution audit and scripts to support replication (see the Data Availability section).

2. Methodology

2.1. Dataset

2.1.1. Source Dataset

We use the AIDev dataset (Li et al., 2026), which collects PRs opened by five AI coding agents in public GitHub repositories up to August 1, 2025. Of its 932,791 agent PRs, 814,522 come from OpenAI Codex, 50,447 from GitHub Copilot, 32,941 from Cursor, 29,744 from Devin and 5,137 from Claude Code, in 116,211 repositories. In the AIDev data, agent PRs carry PR-level signals of the agent, such as the prefix of the head branch (codex/, copilot/ and cursor/), the bot account that opens the PR (devin-ai-integration[bot] and Copilot) or a Co-Authored-By: Claude line in the PR description. AIDev also contains 6,618 human PRs in 818 repositories, created between January and June 2025. We keep only repositories that contain both agent and human PRs, so that agent-attributed and human code can be compared under the same project conditions, such as coding standards and review practices.

2.1.2. Repository Filtering

We apply the filtering criteria of Xiao et al. (Xiao et al., 2026), which select engineered software projects (Munaiah et al., 2017) (Table 1). We (1) keep repositories with both agent and human PRs, (2) remove repositories without a software license, (3) remove archived repositories, repositories without releases or tags and repositories with fewer than two contributors, (4) remove, per language, repositories in the bottom quartile of PR count, open issue count or size, and (5) remove repositories whose share of code lines among code and comment lines lies outside the central 97% of that share among repositories of the same language. We keep the 97% interval of Xiao et al. so that our cohort follows a published definition of engineered projects.

Table 1. Repository filtering funnel and mined cohort

StepReposAgent PRsHuman PRs
AIDev, all repositories116,211932,7916,618
(1) Repositories with agent and human PRs8169,7976,598
(2) Software license6667,6255,054
(3) Not archived, has release or tag, ≥2 contributors5666,8914,559
(4) Bottom-quartile removal per language2664,6493,196
(5) Code ratio within the 97% interval2564,5633,132
Repositories with at least one merged PR2462,3022,386
Repository history available (Section 2.1.3)2442,2662,351
Not listed as both agent and human PR2442,2612,346
Merge commit located on the default branch2412,0922,156
Adds at least one tracked source line (mined cohort)2151,4701,332

AIDev’s 6,618 human PRs include 20 in two repositories without agent PRs. Step 2 also removes three repositories whose GitHub metadata could not be retrieved, and a minimum of 500 stars, applied before step 2, removes no repository. Steps 1 to 5 count all PRs, merged or not. The rows below the line count merged PRs only. A tracked source file is a file with a source-code extension, excluding configuration and documentation files.

2.1.3. Final Cohort

Of the 256 filtered repositories, 246 have at least one merged PR. We mine every merged PR whose merge commit we can locate on the default branch and that adds at least one line to a tracked source file. Table 1 shows the attrition. Two repositories cannot be mined, because dust-tt/dust is no longer public and elizaos/eliza rewrote its history after our observation window. We also exclude five PRs that AIDev lists as both agent and human PRs, we could not locate the merge commit of 359 PRs, and 1,446 PRs change no tracked source file (e.g., documentation only). The mined cohort contains 2,802 merged PRs in 215 repositories: 1,470 agent-attributed PRs (492 from Copilot, 491 from Codex, 412 from Devin, 44 from Cursor and 31 from Claude Code) and 1,332 human PRs. Eight PRs add only vendored or generated lines, that is, third-party code or build output that is committed to the repository but not written by hand (Section 2.2.4), so our main analysis uses 2,794 PRs.

2.1.4. Agent Tiers

The agents differ in how a developer works with them. Copilot’s coding agent works on an issue that a developer assigns to it and reviews (Dohmke, 2025), Codex works on a task that a developer starts and reviews before opening the PR (OpenAI, 2025), and Cursor and Claude Code run in the developer’s editor or terminal, or as background agents that the developer starts (Cursor, ; Anthropic, ). We call these four agents supervised assistants. In contrast, Devin is offered primarily as an autonomous software engineer that takes tasks from a team (Cognition, ), and its PRs in AIDev are opened by its own bot account (devin-ai-integration[bot]). We refer to these two groups, the supervised assistants and Devin, as agent tiers. We describe the primary workflow of each product in 2025, although some products now also accept tasks from other tools. We acknowledge that the tiers describe how the agents are offered, not how each PR was supervised. For this reason, we also report RQ1 for each agent.

2.1.5. Attribution Validation

AIDev’s signals do not prove that the agent wrote the code of a PR. For example, a developer may push commits to an agent PR. Therefore, we audited a random sample of agent PRs. From the 2,092 merged agent PRs whose merge commit we located (Table 1), we drew 325 PRs, which is the sample size for a proportion at 95% confidence and a ±5% margin with the finite-population correction (Cochran, 1977), stratified proportionally by agent. For each PR, the first author inspected the commits that change source files and labeled the PR agent (every substantive code change comes from the agent), mixed (the agent and a human both made substantive changes), human (all substantive changes come from a human) or unclear (the history cannot be inspected or its signals conflict), following a written guide that is part of our replication package. A change is non-substantive only if it belongs to one of the non-essential change categories of Kawrykow and Robillard (Kawrykow and Robillard, 2011), such as whitespace changes or reference updates caused by a rename. A second rater independently labeled 100 of the 325 PRs (31%) with the same guide, as Ehsani et al. (Ehsani et al., 2026) did for agent PRs. This exceeds the 10 to 25% that is typical for estimating agreement (O’Connor and Joffe, 2020) and the 62 PRs needed to distinguish κ=0.8 from 0.5 with four labels (Bujang and Baharum, 2017). The raters agree almost perfectly (Cohen’s κ = 0.85) (Cohen, 1960; Landis and Koch, 1977) and resolved the disagreements by discussion. We report 95% Wilson score intervals (Brown et al., 2001).

Of the 325 audited PRs, 218 (67.1% [61.8, 72.0]) are labeled agent, 71 (21.8%) mixed, 20 (6.2%) human and 16 (4.9%) unclear, so the agent made substantive changes in 88.9% of them. Not every audited PR is in our mined cohort, because many change no tracked source file. Within the cohort, the agent made substantive changes in 87.3% [82.3, 91.1] of the audited PRs (98.4% of the 64 Devin PRs and 82.8% [76.1, 87.9] of the 157 supervised-assistant PRs, so the attribution is noisier for the supervised assistants), and 16 PRs are labeled human. As a sensitivity analysis, RQ1 repeats the analysis without these 16 PRs.

2.2. Measuring Survival

We frame the modification of code as a survival problem: a unit of code survives until it is modified, and the modification event ends its survival time. Survival analysis suits this problem because it handles right-censored units, that is, code that is still unmodified when the observation window ends (Kleinbaum and Klein, 1996).

2.2.1. Definitions

  • Birth: a unit is born when its PR is merged into the default branch (t=0).

  • Modification event: a unit is modified when a later commit on the default branch changes or deletes it (t>0).

  • Censoring: units that are still unmodified on December 31, 2025 are right-censored. Because AIDev contains PRs up to August 1, 2025, every unit is observed for at least five months, which covers the two-week window of the churn metric that motivates the disposable code hypothesis (Harding and Kloster, 2024) many times over.

A modification event is neutral. It does not imply a defect, since code is also modified to add functionality or to adapt to its environment, which RQ2 examines. Each unit is followed from its own merge date, so agent-attributed and human code merged in the same period are exposed for the same time.

2.2.2. Units of Analysis

Line (primary unit)

Every line that a PR adds to a source file. We follow all of these lines rather than a sample of them. We follow each line with git blame --reverse from the merge commit to the last commit on the default branch on or before December 31, 2025. The blame reports the last commit in which the line still exists, and the line is modified by the next commit that touches its file after that commit. Because each line is attributed to its own PR, a change to a human line elsewhere in the same file does not count against an agent line.

Hunk

A contiguous block of lines that the PR adds in one diff hunk. A hunk is modified at the first time any of its lines is modified.

File

A source file that the PR changes. A file is modified when any later commit touches it. A file usually mixes lines from many authors and PRs, so we report the file level only for comparison with file-level studies (Sawada et al., 2026).

2.2.3. Substantial Modification

Under the definitions above, even a one-character edit ends the survival of a unit. To separate minor edits from rewrites, we also define a substantial modification event for hunks and files: a unit is substantially modified at the first time a share θ of its added lines, that is, the lines that the PR added to it rather than all the lines of the file, has been modified or deleted. We are not aware of an established value for θ, so instead of choosing one, we report the whole range from a quarter of the lines to all of them, θ∈{25%,50%,75%,100%}.

2.2.4. Vendored and Generated Code

Repositories often commit code that is not written by hand, such as third-party libraries and build output, and regenerate it in bulk. A regenerated file shows up as a modification of all its lines, which measures how often a project rebuilds its output rather than how its code is maintained. Therefore, our primary analysis excludes lines in vendored and generated paths, which we identify by their path: directories named vendor, third_party, node_modules, dist, build, out, generated or __generated__, minified and bundled JavaScript files, and generated protocol buffer and designer files. Most of these patterns come from GitHub Linguist (GitHub, 2026), which GitHub uses to exclude such files from its language statistics, and we add common build output directories. The list is not exhaustive, so we also report the analysis with all lines.

2.2.5. Weighting

A few very large PRs contribute a large share of all lines. For example, the largest human PR in our cohort alone adds more than 34,000 lines outside vendored and generated paths. Let us take an arbitrary example to show why this matters. Suppose that a repository has 100 human PRs. One PR adds 10,000 lines, which are reformatted a week later, and each of the other 99 PRs adds 10 lines, which are never modified. If every line has the same weight, 91% of the human lines are modified (10,000 of 10,990), so human code looks short-lived. If every PR has the same weight, the code of only one PR in 100 (1%) is modified, so human code looks stable. In other words, a line-weighted comparison describes a few large PRs, whereas our question concerns the code that agent and human PRs typically contribute. Therefore, our primary analysis weights each unit by the inverse of the number of units in its PR, so that every PR has the same weight (PR-weighted). We report the unweighted analysis next to it in every table, so that the reader can see where the two differ. We call a combination of a unit of analysis, a set of paths and a weighting a design. Our primary design follows the lines outside vendored and generated paths with PR weighting, and we treat every other design as a sensitivity analysis (Section 3).

2.2.6. Implementation Details

We track source files by extension and exclude configuration and documentation files. We locate the merge commit of each PR on the default branch by matching GitHub’s merge time against its first-parent history, which contains the commits of the default branch but not those inside merged branches, and we use the PR number in the commit message to break ties, which also covers squash and rebase merges. Table 2 summarizes the units and their modification events.

Table 2. Units of analysis and modification events (primary design). Percentages are PR-weighted, with unweighted values in parentheses.

MetricLineHunkFile
Units648,95960,09518,120
Modified, human34.5% (30.1%)44.8% (39.3%)88.2% (85.2%)
Modified, supervised assistants24.1% (23.3%)34.5% (30.9%)81.3% (77.1%)
Modified, Devin38.0% (23.6%)52.5% (51.1%)91.5% (85.6%)
Median days to modification (modified units)40.1 (39.0)35.9 (40.1)10.0 (11.6)
Median follow-up of censored units (days)218.3236.5216.5

The 2,794 PRs of the primary design add 648,959 lines outside vendored and generated paths. Devin’s unweighted line rate is lower than its PR-weighted rate because its large PRs are modified less often than its small ones, and its largest PR adds 41.6% of its lines.

3. RQ1: Is Agent-Attributed Code Modified Sooner Than Human Code?

3.1. Motivation

The disposable code hypothesis is our own, derived from GitClear’s churn finding (Harding and Kloster, 2024) (Section 1). Under this hypothesis, code from coding agents is merged quickly but modified or deleted soon afterwards. If the hypothesis holds, agent-attributed code should reach a modification event sooner than human code merged into the same repositories. Testing this is the first step to know whether code from coding agents adds to the maintenance burden of a project.

3.2. Approach

Kaplan-Meier estimation and log-rank test

We estimate the survival function S(t), the probability that a unit is still unmodified t days after its merge, for each group with the Kaplan-Meier estimator (Kaplan and Meier, 1958), and compare the agent-attributed and human curves with the log-rank test (Mantel, 1966).

Within-repository Cox regression

Agent and human PRs are not spread evenly across repositories, and repositories differ in how often they change their code. Therefore, a model pooled across repositories would partly compare active and quiet projects rather than agent and human code. Our primary model is a Cox proportional hazards model (Cox, 1972) stratified by repository, so that each repository has its own baseline hazard and agent-attributed code is compared only with human code in the same repository:

\begin{split}h_{r}(t\mid X)=h_{0,r}(t)\cdot\exp\big(&\beta_{1}\cdot\texttt{is\_agent}+\beta_{2}\log(1+\texttt{added})\\
&+\beta_{3}\log(1+\texttt{files})\big),\end{split}    (1)

where r is the repository, and added and files are the lines added and the source files changed by the PR. Lines from the same PR are not independent, so we use robust standard errors clustered by PR (Lin and Wei, 1989). A hazard ratio (HR) exp(β1) below 1 means that agent-attributed code is modified later than human code in the same repository. A second model replaces is_agent with one indicator per tier, and a third with one indicator per agent. We test the proportional hazards assumption with the Schoenfeld residual test (Schoenfeld, 1982).

Restricted mean survival time

An HR is hard to read when the hazards are not proportional. Therefore, we also report the restricted mean survival time (RMST) (Royston and Parmar, 2013), the mean number of days within the first τ days that a unit stays unmodified, which needs no proportional hazards assumption. We use τ=90 days and τ=150 days, the minimum follow-up of every unit. We obtain 95% confidence intervals for the agent-human difference in RMST and in the share of modified units from a bootstrap that resamples repositories 1,000 times.

Sensitivity analyses

Our primary design rests on choices that other studies could make differently. To check that our conclusion does not depend on them, we repeat the primary analysis (i) without weighting, (ii) with vendored and generated paths, (iii) with a sampled design that follows at most 20 source files per PR and 100 random lines per file, which caps the influence of very large PRs in a second way, (iv) at the hunk and file levels, (v) with the substantial modification event, (vi) with covariates of each line’s file at merge time (changes in the previous three months, age, created by the PR, test file), because the history of a file may predict when it changes, (vii) without the PRs that the audit labeled human, or human and unclear, and with only the PRs labeled agent, (viii) within terciles of repository activity (the number of PRs of the repository in AIDev), and (ix) within repository and task type, because agent and human PRs may address different tasks. For (ix), we use the conventional-commit type (e.g., feat, fix, refactor) that AIDev assigns to each PR from its title and description (Li et al., 2026), and pool the rare types as other. These labels cover 2,781 of our 2,794 PRs. They describe PRs, not commits, so they cover only 8.5% of the 5,600 commits that modify our lines, which is why RQ2 classifies commit messages instead. We also fit a Cox model pooled across repositories, adjusted for PR size, stars and contributors, with PR-clustered standard errors.

3.3. Results

Primary analysis

Table 3 reports the results. In the primary analysis, agent-attributed lines are modified later than human lines in the same repository (HR = 0.83 [0.75, 0.93], p=0.001). This difference comes from the supervised assistants (HR = 0.76 [0.65, 0.87], p<0.001), whereas Devin does not differ from human code (HR = 0.95 [0.82, 1.11], p=0.53). In other words, the hazard of modification of a supervised-assistant line is 24% lower than that of a human line in the same repository. By the end of the window, 28.0% of agent-attributed lines and 34.5% of human lines are modified (PR-weighted), a difference of −6.5 percentage points (pp) [−10.7, −1.7].

Table 3. RQ1: Within-repository Cox HR [95% CI] of agent-attributed vs. human code. An HR below 1 means that agent-attributed code is modified later.

DesignUnitsMod. % A / HAgentSupervisedDevin
Line, primary648,95928.0 / 34.50.83 [0.75, 0.93]0.76 [0.65, 0.87]0.95 [0.82, 1.11]
Line, with vendored paths854,13928.1 / 34.80.83 [0.75, 0.93]0.76 [0.66, 0.87]0.95 [0.82, 1.10]
Line, unweighted648,95923.4 / 30.10.91 [0.69, 1.20]0.80 [0.60, 1.07]1.06 [0.65, 1.71]
Line, unweighted, with vendored854,13923.3 / 50.30.92 [0.68, 1.25]0.86 [0.58, 1.29]1.00 [0.68, 1.48]
Line, sampled277,28328.1 / 34.70.83 [0.75, 0.93]0.76 [0.66, 0.88]0.95 [0.81, 1.10]
Hunk, primary60,09539.5 / 44.80.93 [0.85, 1.02]0.82 [0.72, 0.92]1.11 [0.98, 1.26]
File, primary18,12084.2 / 88.20.97 [0.90, 1.04]0.95 [0.86, 1.04]1.01 [0.90, 1.13]

Primary: vendored and generated paths excluded, PR-weighted. Sampled: primary design, at most 20 files per PR and 100 lines per file. Bold: p<0.05. Mod. %: share of units modified by December 31, 2025 (PR-weighted in the weighted designs).

Figure

Figure 1. PR-weighted Kaplan-Meier curves of line survival (primary design). Each curve ends at the longest follow-up of its group. The earliest supervised-assistant PR was merged on March 26, 2025 (most in June and July), so no supervised-assistant line can be followed beyond day 281. The steps at day 223 (supervised assistants) and day 313 (Devin) each come from a single PR.

Weighting, vendored code and pooling

Figure 2 shows how the HR changes with the weighting, the follow-up period and the merge date. Including vendored paths gives the same HRs, although 34.1% of all human lines, but only 3.8% of supervised-assistant and 0.3% of Devin lines, lie in such paths. The sampled design, which caps the size of a PR in another way, also gives the same HRs. However, without weighting, no difference is significant. The lower hazard of supervised-assistant code thus holds when the analysis is PR-weighted, but not when a few very large PRs dominate. A Cox model pooled across repositories, with PR-clustered standard errors, gives HR = 0.89 [0.80, 1.00] for the primary design and 0.76 [0.52, 1.10] for unweighted lines with vendored paths. So a comparison across repositories is no substitute for one within them.

Proportional hazards and RMST

The Schoenfeld test rejects the proportional hazards assumption (p<0.001). When we split the follow-up, the agent HR is 1.01 [0.83, 1.23] in the first 14 days, 0.85 [0.72, 1.01] from day 14 to day 90 and 0.65 [0.53, 0.80] afterwards. Agent-attributed and human lines are thus modified at the same rate in the first two weeks, and the difference builds up later. The supervised assistants show the same pattern (1.10 [0.84, 1.44], 0.79 [0.64, 0.99] and 0.47 [0.36, 0.61]), whereas Devin does not differ from human code in any period. Consistently with the early period, within 90 days agent-attributed lines stay unmodified only 0.8 days longer on average than human lines [−2.3, 3.8], and 2.2 days longer within 150 days [−3.4, 7.9], neither of which is significant. Within 14 days, the window of GitClear’s churn (Harding and Kloster, 2024), 8.3% of supervised-assistant lines, 12.0% of Devin lines and 9.6% of human lines are modified (PR-weighted).

Calendar time

We acknowledge that supervised-assistant PRs were merged later (median June 18, 2025, vs. April 9 for human and Devin PRs), so their late follow-up falls in a different calendar period. When we keep only the PRs merged on or after May 16, 2025, the release of Codex (OpenAI, 2025), instead of the full cohort, the HR is 0.70 [0.57, 0.84] for agent-attributed code, 0.73 [0.58, 0.92] for the supervised assistants and 0.61 [0.44, 0.84] for Devin, although only 133 Devin PRs remain. Within this period, Devin code is therefore also modified later than human code, so the difference between the tiers in the full cohort may partly reflect when their PRs were merged. However, when we stratify by repository and merge month, the supervised-assistant HR is 0.96 [0.74, 1.24]. Only 128 of the 657 strata contain both agent and human PRs, so this estimate is imprecise.

Figure

Figure 2. Within-repository Cox HR [95% CI] of agent-attributed vs. human lines under the design choices of RQ1. All rows except Unweighted are PR-weighted. Filled markers: p<0.05. An HR below 1 means that agent-attributed code is modified later.

Hunks, files and substantial modification

Supervised-assistant hunks are modified later than human hunks (HR = 0.82), whereas the agent group as a whole and Devin do not differ significantly (Table 3). Without weighting, Devin hunks are modified sooner (HR = 1.24 [1.00, 1.53], p=0.049). At the file level, no group differs. For the substantial modification event, agent-attributed hunks and files reach substantial modification later than human ones at every θ (HR 0.80 to 0.86, all p<0.02). Again, this comes from the supervised assistants (0.72 to 0.77), whereas Devin does not differ at any θ (0.93 to 1.01). Separating minor edits from rewrites therefore does not change the conclusion.

Attribution, file history and repository activity

Excluding the 16 cohort PRs that the audit labeled human, or the 28 labeled human or unclear, leaves the primary estimate unchanged (0.84 and 0.83, against 0.83). The 136 audited PRs labeled agent give a similar but non-significant estimate (0.89 [0.64, 1.23]), because the sample is much smaller. Adjusting for the history of each line’s file moves the agent HR to 0.88 [0.79, 0.98] and the supervised-assistant HR to 0.81 [0.70, 0.93]. About a quarter of the difference is explained by the files that the PRs change, but the difference remains. Files with more recent changes are modified sooner (HR = 1.26 per unit of log(1+changes in the previous three months)), and lines in test files later (HR = 0.73). Within terciles of repository activity, the agent HR is 0.83 [0.44, 1.57], 0.63 [0.43, 0.94] and 0.86 [0.77, 0.97]. The direction is the same in every tercile, so the result does not depend on the most active repositories.

Task type

The groups address somewhat different tasks (Cramér’s V = 0.12). Fixes make up 41.3% of the supervised-assistant PRs and 35.0% of the human PRs, and new features 47.3% of the Devin PRs and 39.5% of the human PRs. Within the same repository and task type, the supervised-assistant HR is 0.77 [0.65, 0.91] and the agent HR 0.87 [0.78, 0.99], whereas Devin code still does not differ from human code (1.03 [0.87, 1.21]). Without weighting, the supervised-assistant difference is now significant (0.77 [0.61, 0.96]). Within the two largest task types, the supervised-assistant HR is 0.75 [0.57, 0.98] for fixes and 0.82 [0.63, 1.06] for features. The difference therefore does not come from the tasks that the supervised assistants are given.

Individual agents

Table 4 reports the results per agent. The lower hazard of the supervised assistants comes from Copilot (HR = 0.75) and Codex (HR = 0.69), which contribute 980 of their 1,055 PRs. Cursor and Claude Code point in the other direction, but with wide intervals, since they contribute only 44 and 31 PRs and a single PR adds 26% and 33% of their lines. We therefore do not interpret their estimates.

Table 4. RQ1: Line-level results per agent (primary design). Largest PR: share of the agent’s lines added by its largest PR.

AuthorPRsHR [95% CI]Modified (%)Largest PR
GitHub Copilot4890.75 [0.59, 0.94]22.5 [19.6, 25.3]9.7%
OpenAI Codex4910.69 [0.57, 0.84]24.4 [21.4, 27.8]5.7%
Cursor441.81 [0.91, 3.60]35.0 [24.6, 46.7]26.4%
Claude Code311.66 [0.81, 3.41]30.5 [18.0, 43.5]32.9%
Devin4120.96 [0.82, 1.11]38.0 [34.4, 41.5]41.6%
Human1,32734.5 [32.6, 36.6]9.0%

HR: within-repository Cox HR vs. human code. Bold: p<0.05. Modified: PR-weighted share of lines modified by December 31, 2025, with a 95% PR bootstrap CI.

4. RQ2: When Agent-Attributed Code Is Modified, What Is the Intent of the Modification?

4.1. Motivation

Survival alone does not show that agent-attributed code is sound. The code may stay unmodified because it works, or because its defects have not been found yet. If agent-attributed code survives only because its defects surface later, a larger share of the commits that modify it should be bug fixes. Therefore, we examine the intent of the commits that modify agent-attributed and human code.

4.2. Approach

Intent classification

We classify each modifying commit by its message into the maintenance categories of Swanson (Swanson, 1976), corrective, adaptive and perfective, extended with preventive maintenance as in the maintenance standard ISO/IEC/IEEE 14764 (, 2022). We use keyword rules, the approach of Mockus and Votta (Mockus and Votta, 2000) that is common in mining software repositories research (Hindle et al., 2009; Levin and Yehudai, 2017). Our rules first assign one of eight fine-grained categories, based on keywords from prior work on commit and change classification (Barreto Simedo Pacheco et al., 2024; Humbatova et al., 2020; Islam et al., 2019; AlOmar et al., 2019; Zhou et al., 2022; Zeng et al., 2025), and then map them to five classes:

  • Corrective: bug fixes (e.g., fix, bug, error, crash, regression).

  • Perfective: refactoring (e.g., refactor, clean, simplify), performance (e.g., perf, cache), documentation (e.g., doc, readme) and new functionality (e.g., feat, add, implement). Our perfective class therefore includes feature additions and documentation, as in ISO/IEC/IEEE 14764, which defines perfective maintenance as providing enhancements and improvements of information for users (, 2022).

  • Adaptive: maintenance of the environment (e.g., chore, bump, upgrade, dependency, ci, build, config).

  • Preventive: testing and security (e.g., test, coverage, mock, security, auth, sanitize).

  • Other: commits that match none of the keywords.

When several categories match, we choose the most specific intent with a fixed priority: security, bug fix, performance, new functionality, refactoring, testing, documentation and maintenance. For example, the message “fix bug in config update logic” matches both a bug fix (fix, bug) and maintenance (update, config). We classify it as corrective, because the message describes a defect, whereas config only names the location of the fix. Keywords match whole words only. Matching substrings would, for example, let auth match the Co-authored-by trailer that agents add to their commits, which would inflate the preventive class. We report substring matching as a sensitivity analysis. The complete keyword lists are in our replication package.

Unit of analysis

A modifying commit often changes many added lines at once, and a single large commit can change tens of thousands of lines, which would dominate a count of lines. We therefore take one observation per modifying commit and author group. A commit that modifies agent-attributed lines counts once for the agent group, and once more for the human group if it also modifies human lines. We use the modifications of the primary analysis of RQ1, that is, of lines outside vendored and generated paths. Because we follow the first-parent history, 416 of the modifying commits are merge commits. Their messages describe the merge rather than the change, and 280 of their 456 observations fall into the adaptive class through the keyword merge. We therefore repeat the test without merge commits.

Statistical analysis

We compare the intent distributions of agent-attributed and human code with a chi-square test of independence (Agresti, 1996), report Cramér’s V as the effect size (Cramér, 1999), and use standardized residuals to find the classes that drive a difference (Sharpe, 2015). A commit that modifies both groups appears in both columns, which violates the independence assumption of the test. Furthermore, we repeat the test on the commits that modify only one group.

4.3. Results

Intent distributions

Table 5 reports the intent of the 6,112 observations (2,347 for agent-attributed and 3,765 for human code). The distributions differ statistically (χ2=39.1, df=4, p<0.001), but the effect size is negligible (Cramér’s V = 0.080). Only the Other class deviates beyond |z|>2: commits that modify agent-attributed code are less often unclassifiable (10.6% vs. 15.9%, z=−4.28). Corrective commits are slightly more frequent for agent-attributed code (35.6% vs. 32.5%), but the residual stays below the threshold (z=+1.59). Perfective commits are the most common class for both groups (38.3% vs. 35.4%).

Table 5. RQ2: Intent of the commits that modify agent-attributed and human code (one observation per modifying commit and author group)

IntentAgent (%)Human (%)Δ (pp)z
Corrective35.632.5+3.1+1.59
Perfective38.335.4+2.9+1.46
Adaptive11.712.7−1.0−0.89
Preventive3.93.5+0.4+0.54
Other10.615.9−5.3−4.28

χ2=39.1, df=4, p<0.001, Cramér’s V =0.080. z: standardized residual for agent-attributed code.

Sensitivity analyses

Without merge commits, the result is the same (V = 0.081), and the adaptive share drops to 8.3% for agent-attributed and 8.4% for human code. On the commits that modify only one group, which satisfy the independence assumption, the result is also the same (V = 0.084, Corrective 36.2% vs. 32.4%). With one observation per modified file and commit instead, the distributions do not differ (χ2=7.0, p=0.13, V = 0.035). However, substring matching changes the result. It doubles the effect size (V = 0.155), and the preventive share becomes 29.7% for agent-attributed and 18.8% for human code, compared with 3.9% and 3.5% with whole-word matching. The reason is that auth matches the Co-authored-by trailer of agent commits. In other words, the preventive difference under substring matching comes from the classifier, not from the code.

5. RQ3: Can We Predict at Merge Time Whether, and When, Agent-Attributed Code Will Be Modified?

5.1. Motivation

If maintainers could tell at merge time which agent-attributed files will be modified, and how soon, they could, for example, ask for a second review of the files with the highest predicted risk. Such a flag is only useful if it is more precise than a simple rule. We ask whether agent-attributed files will be modified (RQ3a), whether the prediction points to the lines that will change, and when the modification will happen (RQ3b). The unit is the file, so that the model can use the content and history of the whole file at merge time. We use the files changed by agent PRs, outside vendored paths, and repeat the models on all files as a comparison.

5.2. Approach

Evaluation

Following the advice of Tantithamthavorn et al. (Tantithamthavorn et al., 2017) to repeat the validation, we use 30 repetitions of 10-fold cross-validation grouped by repository, so that patterns of a repository cannot leak from the training to the test folds (Pedregosa et al., 2011). We compare logistic regression, SVM, naive Bayes, KNN, random forest, XGBoost, CatBoost and an MLP with the default hyper-parameters of their libraries, and rank them with the Scott-Knott ESD test (Tantithamthavorn et al., 2017). We explain the best model with SHAP (Lundberg and Lee, 2017) and LIME (Ribeiro et al., 2016) out of sample: we split the repositories into five folds, train on four and explain the predictions for the fifth.

RQ3a

The label of a file is 1 if any later commit on the default branch touches it before December 31, 2025. We represent the content of the file at merge time, including lines that other authors wrote, as a bag of words (at most 1,000 features). Following Rahman et al. (Rahman et al., 2019), we remove syntax tokens such as separators, operators and keywords, which add noise, and use unigrams to trigrams, since the cross-entropy of n-gram models of code levels off at about this order (Hindle et al., 2016). Most files are modified, so the minority class is the files that are not. We oversample it with SMOTE (Chawla et al., 2002) in the training folds only, so that no synthetic file reaches a test fold.

As a baseline, we fit a logistic regression on the size of the file and its number of changes in the three months before the PR. To test whether the model points to the lines that will change, we score each added line by the sum of the out-of-sample SHAP values of its tokens, as in explainable defect prediction (Pornprasit et al., 2021; Tantithamthavorn and Jiarpakdee, 2021), and compare this ranking with ranking lines by their length, since a longer line has more tokens that can change.

RQ3b

For the modified files, we classify the time to modification into four bins: within one day, one day to one week, one week to one month, and more than one month. These bins are similar to those of Hasan et al. (Hasan et al., 2023). We chose them because they match how maintainers plan work, from the same day to the next release, and because no bin is rare in our data (the smallest bin holds 15% of the files). We report the Macro F1, so that each bin counts equally, and the macro AUC-ROC. The features are the process features of Khatoonabadi et al. (Khatoonabadi et al., 2024), measured at the merge time T: the commits of the project and the changes to the file in the previous three months, the age of the file, the number of open PRs in the repository at T, the earlier PRs of the PR author in the repository (created before T, excluding the PR itself) and the share of them merged before T, and the day and hour of the merge. We drop the files whose author history could not be retrieved (22 of the 6,300 modified agent files, 0.3%), and remove correlated features with AutoSpearman (Jiarpakdee et al., 2018).

5.3. Results

RQ3a: file-level prediction

After removing comments and syntax tokens, and the files in unsupported languages or left without tokens, the agent dataset contains 6,661 files from 155 repositories, of which 79.7% are modified. Random forest, CatBoost and XGBoost form the first Scott-Knott rank, with an AUC-ROC of about 0.70 and an AUC-PR of about 0.89, and the other five models reach an AUC-ROC of 0.51 to 0.66. The AUC-PR looks high mainly because about 80% of the files are modified anyway, which is the AUC-PR of a random classifier. However, the logistic regression baseline on the size of the file and its changes in the previous three months performs clearly better (AUC-ROC 0.78, AUC-PR 0.93). In other words, the tokens of the code add nothing beyond what the size and the recent history of a file already tell us. The same holds for all 15,946 files (83.8% modified): random forest, XGBoost and CatBoost reach an AUC-ROC of about 0.69, and the baseline reaches 0.75. The tokens with the largest SHAP values, such as key, model, config, error and state, point to configuration and integration code, and LIME agrees only partly (46.9% of its top tokens are among the 50 with the highest SHAP value). A LIME explanation takes about 0.2 seconds per file.

RQ3a: line localization

Of the agent files, 1,941 files from 109 repositories have both modified and unmodified added lines (163,409 lines, 22.8% modified). The ranking of lines by their SHAP scores barely beats chance (AUC-ROC 0.546, per-file mean 0.576), and ranking lines by their length does as well (0.552). Among the top 10% of the lines of each file, 36.7% are later modified, compared with 30.1% for a random choice and 39.7% for the longest lines. The random value exceeds the overall share of modified lines because it averages over files, and small files have a higher share.

RQ3b: time to modification

The agent dataset contains 6,278 modified files from 160 repositories, of which 15.1% are modified within one day, 25.0% within one week, 26.8% within one month and 33.1% later. AutoSpearman keeps all eight features. XGBoost, CatBoost and random forest form the first Scott-Knott rank, with a Macro F1 of about 0.31, against 0.25 for a random guess and 0.27 to 0.28 for the other models, and a macro AUC-ROC of about 0.60 (in the five-fold split used for the explanations, XGBoost reaches 0.32 and 0.61). For all files, CatBoost alone ranks first (Macro F1 0.32, AUC-ROC 0.62). SHAP ranks the changes to the file in the previous three months first, followed by the number of open PRs at merge time and the age of the file, and LIME agrees on the leading feature. The history of the PR author ranks fifth and sixth of the eight features.

6. Discussion

6.1. Is Agent-Attributed Code Disposable?

Within the same repositories, agent-attributed code is not modified sooner than human code in any design we examined. Therefore, the disposable code hypothesis is not supported for the agents and repositories in our cohort. However, the opposite claim, that agent-attributed code survives longer, holds only in part. Firstly, it holds in the PR-weighted analysis, but not when a few large PRs dominate. Secondly, it comes from Copilot and Codex, whereas Devin code is modified as soon as human code in the full cohort. Thirdly, it is absent in the first two weeks and largest after 90 days, and about a quarter of it is explained by the files that the PRs change. Survival also does not imply quality, since stable code may lie in rarely changed parts of the system. However, RQ2 shows that agent-attributed code is modified for much the same reasons as human code, so we see no sign that its defects surface later within our observation window.

6.2. Supervised Assistants and Devin

The lower hazard of the supervised assistants comes from Copilot and Codex, while Cursor and Claude Code contribute too few PRs to tell. In AIDev, Copilot’s PRs are also opened by its own account (Copilot), so the bot identity cannot explain the difference between Copilot and Devin. We see two explanations. Firstly, the tiers were used in different periods, and among PRs merged after mid-May 2025 Devin code is also modified later than human code (Section 3). Secondly, we conjecture that the difference lies in who takes responsibility for the code. A Copilot or Codex task is started by a developer of the repository, who then reviews the result, whereas Devin is offered primarily as an engineer that takes tasks from a team. Prior work found that components with clear owners have fewer defects (Bird et al., 2011; Greiler et al., 2015), and code that a developer feels responsible for may also need fewer follow-up changes. We did not measure ownership, so this explanation remains a hypothesis. The kind of code may also matter: 35.6% of supervised-assistant lines are in test files, compared with 24.1% of human lines, and test lines are modified later. However, adjusting for test paths and file history does not remove the difference.

6.3. Why Do Our Results Differ from Concurrent Studies?

Our conclusion agrees with Kraishan (Kraishan, 2026), who found that no agent churns more than humans, and with the null overall result of Xia and Miller (Xia and Miller, 2026). However, other studies found more corrective maintenance of agentic code (Xia and Miller, 2026), fewer fully surviving agent commits (Popescu et al., 2026) and more follow-up fix PRs (Takerngsaksiri et al., 2026). These studies differ from ours in the unit, the event, the window, the period and the intent classifier. For example, Popescu et al. follow the first commit of each PR for three weeks, the period in which we also find no lower hazard of agent-attributed code. These choices may explain part of the differences, which we did not test.

6.4. Forecasting

The tokens of agent-attributed code say something about whether a file will be modified, but less than its size and recent history do (Section 5). The model also does not point to the lines that will change, since ranking lines by their length does as well. This matters because localizing lines from explained file-level models is established in defect prediction (Pornprasit et al., 2021), but for code modification it does not transfer when evaluated out of sample. When a file will be modified is even harder to predict, and the best predictor is again the recent history of the file, not who wrote it. Consistent with prior work (Graves et al., 2000), a flag at merge time is better built on the history of a file than on its content or its author.

6.5. Implications

For practitioners. Firstly, code merged from Copilot and Codex in our cohort is modified no sooner than human code in the same repositories, so teams need not treat it as throwaway code. Secondly, Devin code is modified somewhat more often within two weeks (12.0% vs. 9.6% of lines), which may reflect when its PRs were merged.

For researchers. Firstly, agents differ, and grouping them as “AI” hides these differences, so studies should report results per agent or per way of working with the agent. Secondly, survival comparisons should compare code within repositories and report how they weight units, since the weighting can change the conclusion. The same holds for intent, where substring matching creates a spurious difference.

7. Threats to Validity

Construct validity. We acknowledge that AIDev attributes a PR to an agent from PR-level signals, and that a developer may have written part of its code. Our audit addresses this threat: the agent made substantive changes in 87.3% of the audited PRs in our cohort, and removing the PRs labeled human, or human and unclear, leaves the RQ1 estimate unchanged (Section 3). A second rater labeled 100 of these PRs, with almost perfect agreement (Cohen’s κ = 0.85). Conversely, human PRs may contain undisclosed AI-assisted code (Xiao et al., 2026), so we compare agent-attributed code with code that is not attributed to an agent.

We count any change to a line as a modification, including trivial edits, which the substantial modification event addresses for hunks and files. Furthermore, we run git blame --reverse without move and copy detection. It follows the lines of a renamed file, but it counts a moved block of lines as modified, and at the file level a renamed file counts as modified. We expect this to affect both groups alike, but we did not verify it. Finally, keyword classification of commit messages has moderate accuracy in prior work (Levin and Yehudai, 2017), and we did not validate our classifier against manual labels. Therefore, RQ2 compares coarse intent profiles, and its corrective shares should not be read as defect rates.

Internal validity. We acknowledge that agent and human PRs may address different tasks within the same repository. We stratify by repository and adjust for PR size, and in sensitivity analyses we adjust for file history and stratify by the task type that AIDev assigns to each PR, which leaves the supervised-assistant difference unchanged. However, these labels come from the PR title and description, and other differences between tasks, such as their difficulty, remain uncontrolled. We could not mine 359 merged PRs and two repositories (Section 2.1.3). Our cohort also contains merged PRs only, so our results describe the code that passed review, not all the code that agents write. Furthermore, supervised-assistant PRs were merged later than human and Devin PRs (median June 18 vs. April 9, 2025), so their late follow-up falls in a different calendar period. Among PRs merged after mid-May 2025, the supervised-assistant difference remains and Devin code is also modified later, but stratifying by repository and merge month cannot confirm it (Section 3). In RQ3, the features describe the whole file, including lines of other authors, and the models use default hyper-parameters, so tuned models may do somewhat better.

Conclusion validity. Our many sensitivity analyses increase the chance of a spurious significant result. We therefore base our conclusions on the primary analysis and on the direction of the estimates across variants. Cursor and Claude Code contribute fewer than 50 PRs each, so their estimates are imprecise.

External validity. Our findings may not generalize beyond our 215 repositories, for example to small or closed-source projects, or to agents released after August 2025.

8. Related Work

AI-generated code and coding agents

Research on AI-generated code has mostly evaluated it at generation time, with metrics such as Pass@k (Chen et al., 2021) and benchmarks such as SWE-bench (Jimenez et al., 2024). Other studies found vulnerabilities and maintainability issues in generated code (Pearce et al., 2025; Sandoval et al., 2023; Yetiştiren et al., 2023). The AIDev dataset (Li et al., 2026) made it possible to study the PRs that coding agents open on GitHub. These studies concern code before or at the merge, whereas we follow it after the merge.

Post-merge fate of agent code

Popescu et al. (Popescu et al., 2026) measured how many lines of the first commits of agent and human PRs survive, change or are deleted after three days, one week and three weeks. They found that human commits more often survive in full, with small effect sizes. Kraishan (Kraishan, 2026) measured churn as the follow-up commits on the most-changed file of a PR within 90 days and found that no agent churns more than humans, although Devin PRs are reverted more often. Sawada et al. (Sawada et al., 2026) found that AI-generated files are most often modified to extend features, mostly by human developers. Xia and Miller (Xia and Miller, 2026) followed added lines in 182 repositories with repository-stratified Cox models. They found that agentic code is terminated at a rate similar to human code (HR = 1.11, not significant), but receives more corrective maintenance. Takerngsaksiri et al. (Takerngsaksiri et al., 2026) found that agent PRs are more often followed by a fix PR within 30 days (3.68% vs. 2.34%).

Unlike these studies, we compare every added line with human lines in the same repository, give each PR the same weight, report each agent separately and ask whether the fate of agent-attributed code can be predicted at merge time.

Survival analysis and time-to-event prediction in software engineering

Survival analysis has been used to estimate the lifetime of lines and tokens of code (Spinellis et al., 2021), to prioritize static analysis warnings (Aman et al., 2020) and to model how long open-source projects stay active (Samoladas et al., 2010), and related studies track how long vulnerabilities persist (Di Penta et al., 2009). When an event will happen has been predicted for bug fixes (Zhang et al., 2013), developer retention (Lin et al., 2017) and the first response to a PR (Khatoonabadi et al., 2024), whose process features we adapt in RQ3.

9. Conclusion

In this paper, we followed 648,959 lines added by 2,794 merged PRs in 215 repositories from AIDev to test whether agent-attributed code is modified sooner than human code in the same repositories. It is not, in any design we examined. In the PR-weighted analysis, lines from supervised assistants, mainly Copilot and Codex, are modified later than human lines, whereas Devin code does not differ in the full cohort but is also modified later among PRs merged after mid-May 2025. When agent-attributed code is modified, the intent is much the same as for human code. The size and recent history of a file predict whether agent-attributed code will be modified better than its code does, but neither which of its lines will change nor when it will be modified can be predicted well at merge time. Finally, the lower hazard of supervised-assistant code depends on weighting PRs equally, so studies of code survival should report how they weight the code they compare.

In the future, we plan to test the ownership explanation, for example by surveying developers, and to replicate the analysis in closed-source projects.

Data Availability

Our data, attribution audit and analysis scripts are available at https://anonymous.4open.science/r/will-it-survive-replication-AB78/.

Acknowledgement

We used AI-enabled tools (Claude and Grammarly) to assist with manuscript revisions. All AI-assisted content was reviewed and verified for accuracy by the authors.

References

  • Agresti (1996) A. Agresti. An introduction to categorical data analysis. Wiley, New York.
  • AlOmar et al. (2019) E. AlOmar, M. W. Mkaouer, and A. Ouni. Can refactoring be self-affirmed? an exploratory study on how developers document their refactoring activities in commit messages. In 2019 IEEE/ACM 3rd International Workshop on Refactoring (IWoR), pp. 51–58.
  • Aman et al. (2020) H. Aman, S. Amasaki, T. Yokogawa, and M. Kawahara. A survival analysis-based prioritization of code checker warning: a case study using PMD. In Big Data, Cloud Computing, and Data Science Engineering, R. Lee (Ed.), Studies in Computational Intelligence, Vol. 844, pp. 69–83. External Links: Document
  • [4] Anthropic. Claude Code overview. Note: Claude Code Docs, https://code.claude.com/docsAccessed 2026-11-05.
  • Barreto Simedo Pacheco et al. (2024) L. Barreto Simedo Pacheco, M. Rahman, F. Rabbi, P. Fathollahzadeh, A. Abdellatif, E. Shihab, T. Chen, J. Yang, and Y. Zou. DVC in open source ml-development: the action and the reaction. In Proceedings of the IEEE/ACM 3rd International Conference on AI Engineering-Software Engineering for AI, pp. 75–80.
  • Bird et al. (2011) C. Bird, N. Nagappan, B. Murphy, H. Gall, and P. Devanbu. Don’t touch my code! examining the effects of ownership on software quality. In Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on Foundations of software engineering, pp. 4–14.
  • Boehm (1984) B. W. Boehm. Software engineering economics. IEEE Transactions on Software Engineering SE-10 (1), pp. 4–21. External Links: Document
  • Brown et al. (2001) L. D. Brown, T. T. Cai, and A. DasGupta. Interval estimation for a binomial proportion. Statistical Science 16 (2), pp. 101–133. External Links: Document
  • Bujang and Baharum (2017) M. A. Bujang and N. Baharum. Guidelines of the minimum sample size requirements for Kappa agreement test. Epidemiology, Biostatistics and Public Health 14 (2). External Links: Document
  • Chawla et al. (2002) N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer. SMOTE: synthetic minority over-sampling technique. Journal of artificial intelligence research 16, pp. 321–357.
  • Chen et al. (2021) M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. d. O. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
  • Cochran (1977) W. G. Cochran. Sampling techniques. 3rd edition, John Wiley & Sons, New York.
  • [13] Cognition. Introducing Devin. Note: Devin Docs, https://docs.devin.ai/get-started/devin-introAccessed 2026-11-05.
  • Cohen (1960) J. Cohen. A coefficient of agreement for nominal scales. Educational and Psychological Measurement 20 (1), pp. 37–46. External Links: Document
  • Cox (1972) D. R. Cox. Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological) 34 (2), pp. 187–202.
  • Cramér (1999) H. Cramér. Mathematical methods of statistics. Vol. 9, Princeton university press.
  • [17] Cursor. What are background agents?. Note: Cursor Docs, https://cursor.com/help/ai-features/background-agentsAccessed 2026-11-05.
  • Di Penta et al. (2009) M. Di Penta, L. Cerulo, and L. Aversano. The life and death of statically detected vulnerabilities: an empirical study. Information and Software Technology 51 (10), pp. 1469–1484. External Links: Document
  • Dohmke (2025) T. Dohmke. GitHub Copilot: meet the new coding agent. Note: GitHub Blog, https://github.blog/news-insights/product-news/github-copilot-meet-the-new-coding-agent/Accessed 2026-11-05.
  • Ehsani et al. (2026) R. Ehsani, S. Pathak, S. Rawal, A. A. Mujahid, M. M. Imran, and P. Chatterjee. Where do ai coding agents fail? an empirical study of failed agentic pull requests in github. External Links: 2601.15195, Link
  • GitHub (2026) GitHub. Linguist: language savant. Note: https://github.com/github-linguist/linguistRules for vendored and generated files in vendor.yml and generated.rb. Accessed November 2026.
  • Graves et al. (2000) T. L. Graves, A. F. Karr, J. S. Marron, and H. P. Siy. Predicting fault incidence using software change history. IEEE Transactions on Software Engineering 26 (7), pp. 653–661. External Links: Document
  • Greiler et al. (2015) M. Greiler, K. Herzig, and J. Czerwonka. Code ownership and software quality: a replication study. In 2015 IEEE/ACM 12th Working Conference on Mining Software Repositories, pp. 2–12.
  • Harding and Kloster (2024) W. Harding and M. Kloster. Coding on Copilot: 2023 data suggests downward pressure on code quality. Note: GitClear, https://www.gitclear.com/coding_on_copilot_data_shows_ais_downward_pressure_on_code_qualityAccessed 2026-11-05.
  • Hasan et al. (2023) K. A. Hasan, M. Macedo, Y. Tian, B. Adams, and S. Ding. Understanding the time to first response in github pull requests. In 2023 IEEE/ACM 20th International Conference on Mining Software Repositories (MSR), pp. 1–11.
  • Hindle et al. (2016) A. Hindle, E. T. Barr, M. Gabel, Z. Su, and P. T. Devanbu. On the naturalness of software. Communications of the ACM 59 (5), pp. 122–131. External Links: Document
  • Hindle et al. (2009) A. Hindle, D. M. German, M. W. Godfrey, and R. C. Holt. Automatic classification of large changes into maintenance categories. In Proceedings of the 17th IEEE International Conference on Program Comprehension (ICPC), pp. 30–39.
  • Humbatova et al. (2020) N. Humbatova, G. Jahangirova, G. Bavota, V. Riccio, A. Stocco, and P. Tonella. Taxonomy of real faults in deep learning systems. In Proceedings of the ACM/IEEE 42nd international conference on software engineering, pp. 1110–1121.
  • Islam et al. (2019) M. J. Islam, G. Nguyen, R. Pan, and H. Rajan. A comprehensive study on deep learning bug characteristics. In Proceedings of the 2019 27th ACM joint meeting on european software engineering conference and symposium on the foundations of software engineering, pp. 510–520.
  • [30] (2022) ISO/IEC/IEEE 14764:2022 software engineering: software life cycle processes: maintenance. Third edition, International Organization for Standardization.
  • Jiarpakdee et al. (2018) J. Jiarpakdee, C. Tantithamthavorn, and C. Treude. AutoSpearman: automatically mitigating correlated software metrics for interpreting defect models. In Proceedings of the 2018 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 92–103. External Links: Document
  • Jimenez et al. (2024) C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan. SWE-bench: can language models resolve real-world GitHub issues?. In The Twelfth International Conference on Learning Representations (ICLR), External Links: Link
  • Kaplan and Meier (1958) E. L. Kaplan and P. Meier. Nonparametric estimation from incomplete observations. Journal of the American statistical association 53 (282), pp. 457–481.
  • Kawrykow and Robillard (2011) D. Kawrykow and M. P. Robillard. Non-essential changes in version histories. In Proceedings of the 33rd International Conference on Software Engineering (ICSE), pp. 351–360. External Links: Document
  • Khatoonabadi et al. (2024) S. Khatoonabadi, A. Abdellatif, D. E. Costa, and E. Shihab. Predicting the first response latency of maintainers and contributors in pull requests. IEEE Transactions on Software Engineering 50 (10), pp. 2529–2543.
  • Kleinbaum and Klein (1996) D. G. Kleinbaum and M. Klein. Survival analysis a self-learning text. Springer.
  • Kraishan (2026) O. Kraishan. Not all agents are equal: code quality and post-merge maintenance across five autonomous coding agents in the wild. arXiv preprint arXiv:2609.17598.
  • Landis and Koch (1977) J. R. Landis and G. G. Koch. The measurement of observer agreement for categorical data. Biometrics 33 (1), pp. 159–174. External Links: Document
  • Levin and Yehudai (2017) S. Levin and A. Yehudai. Boosting automatic commit classification into maintenance activities by utilizing source code changes. In Proceedings of the 13th International Conference on Predictive Models and Data Analytics in Software Engineering, pp. 97–106.
  • Li et al. (2026) H. Li, H. Zhang, and A. E. Hassan. AIDev: studying AI coding agents on GitHub. In Proceedings of the 23rd International Conference on Mining Software Repositories (MSR ’26), pp. 1029–1033. External Links: Document
  • Lin et al. (2017) B. Lin, G. Robles, and A. Serebrenik. Developer turnover in global, industrial open source projects: insights from applying survival analysis. In 2017 IEEE 12th International Conference on Global Software Engineering (ICGSE), pp. 66–75.
  • Lin and Wei (1989) D. Y. Lin and L. J. Wei. The robust inference for the Cox proportional hazards model. Journal of the American Statistical Association 84 (408), pp. 1074–1078. External Links: Document
  • Lundberg and Lee (2017) S. M. Lundberg and S. Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30 (NeurIPS), pp. 4765–4774.
  • Mantel (1966) N. Mantel. Evaluation of survival data and two new rank order statistics arising in its consideration. Cancer Chemotherapy Reports 50 (3), pp. 163–170.
  • Mockus and Votta (2000) A. Mockus and L. G. Votta. Identifying reasons for software changes using historic databases. In Proceedings of the International Conference on Software Maintenance (ICSM), pp. 120–130. External Links: Document
  • Munaiah et al. (2017) N. Munaiah, S. Kroh, C. Cabrey, and M. Nagappan. Curating github for engineered software projects. Empirical Software Engineering 22 (6), pp. 3219–3253.
  • OpenAI (2025) OpenAI. Introducing Codex. Note: https://openai.com/index/introducing-codex/Accessed 2026-11-05.
  • O’Connor and Joffe (2020) C. O’Connor and H. Joffe. Intercoder reliability in qualitative research: debates and practical guidelines. International Journal of Qualitative Methods 19, pp. 1–13. External Links: Document
  • Pearce et al. (2025) H. Pearce, B. Ahmad, B. Tan, B. Dolan-Gavitt, and R. Karri. Asleep at the keyboard? assessing the security of github copilot’s code contributions. Communications of the ACM 68 (2), pp. 96–105.
  • Pedregosa et al. (2011) F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, et al. Scikit-learn: machine learning in python. the Journal of machine Learning research 12, pp. 2825–2830.
  • Popescu et al. (2026) R. M. Popescu, D. Gros, A. Botocan, R. Pandita, P. Devanbu, and M. Izadi. Investigating autonomous agent contributions in the wild: activity patterns and code change over time. In Proceedings of the 23rd International Conference on Mining Software Repositories (MSR), pp. 236–248. External Links: Document
  • Pornprasit et al. (2021) C. Pornprasit, C. Tantithamthavorn, J. Jiarpakdee, M. Fu, and P. Thongtanunam. Pyexplainer: explaining the predictions of just-in-time defect models. In 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 407–418.
  • Rahman et al. (2019) M. Rahman, D. Palani, and P. C. Rigby. Natural software revisited. In 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE), pp. 37–48.
  • Ren et al. (2020) S. Ren, D. Guo, S. Lu, L. Zhou, S. Liu, D. Tang, N. Sundaresan, M. Zhou, A. Blanco, and S. Ma. Codebleu: a method for automatic evaluation of code synthesis. arXiv preprint arXiv:2009.10297.
  • Ribeiro et al. (2016) M. T. Ribeiro, S. Singh, and C. Guestrin. " Why should i trust you?" explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1135–1144.
  • Royston and Parmar (2013) P. Royston and M. K. B. Parmar. Restricted mean survival time: an alternative to the hazard ratio for the design and analysis of randomized trials with a time-to-event outcome. BMC Medical Research Methodology 13 (1), pp. 152. External Links: Document
  • Samoladas et al. (2010) I. Samoladas, L. Angelis, and I. Stamelos. Survival analysis on the duration of open source projects. Information and Software Technology 52 (9), pp. 902–922. External Links: Document
  • Sandoval et al. (2023) G. Sandoval, H. Pearce, T. Nys, R. Karri, S. Garg, and B. Dolan-Gavitt. Lost at c: a user study on the security implications of large language model code assistants. In 32nd USENIX Security Symposium (USENIX Security 23), pp. 2205–2222.
  • Sawada et al. (2026) S. Sawada, T. Shirai, Y. Kashiwa, K. Yamaguchi, H. Iwata, and H. Iida. To what extent does agent-generated code require maintenance? an empirical study. arXiv preprint arXiv:2605.06464.
  • Schoenfeld (1982) D. Schoenfeld. Partial residuals for the proportional hazards regression model. Biometrika 69 (1), pp. 239–241.
  • Sharpe (2015) D. Sharpe. Your chi-square test is statistically significant: now what?. Practical Assessment, Research, and Evaluation 20 (8).
  • Spinellis et al. (2021) D. Spinellis, P. Louridas, and M. Kechagia. Software evolution: the lifetime of fine-grained elements. PeerJ Computer Science 7, pp. e372. External Links: Document
  • Stack Overflow (2024) Stack Overflow. 2024 developer survey: AI. Note: https://survey.stackoverflow.co/2024/aiAccessed 2026-11-05.
  • Swanson (1976) E. B. Swanson. The dimensions of maintenance. In Proceedings of the 2nd International Conference on Software Engineering (ICSE), pp. 492–497.
  • Takerngsaksiri et al. (2026) W. Takerngsaksiri, N. Duong, and S. Barnett. Who finishes the job? a study of follow-up fixes and commit authorship on ai coding agent pull requests. arXiv preprint arXiv:2609.26847.
  • Tantithamthavorn and Jiarpakdee (2021) C. K. Tantithamthavorn and J. Jiarpakdee. Explainable ai for software engineering. In 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 1–2.
  • Tantithamthavorn et al. (2017) C. Tantithamthavorn, S. McIntosh, A. E. Hassan, and K. Matsumoto. An empirical comparison of model validation techniques for defect prediction models. IEEE Transactions on Software Engineering 43 (1), pp. 1–18. External Links: Document
  • Xia and Miller (2026) C. S. Xia and C. Miller. Do these violent delights have violent ends? measuring the post-merge fate of agentic code. arXiv preprint arXiv:2607.09902.
  • Xiao et al. (2026) T. Xiao, Y. Fan, F. Calefato, C. Treude, R. G. Kula, H. Hata, and S. Baltes. Self-admitted genai usage in open-source software. IEEE Transactions on Software Engineering.
  • Yetiştiren et al. (2023) B. Yetiştiren, I. Özsoy, M. Ayerdem, and E. Tüzün. Evaluating the code quality of ai-assisted code generation tools: an empirical study on github copilot, amazon codewhisperer, and chatgpt. arXiv preprint arXiv:2304.10778.
  • Zeng et al. (2025) Q. Zeng, Y. Zhang, Z. Qiu, and H. Liu. A first look at conventional commits classification. In Proceedings of the IEEE/ACM 47th International Conference on Software Engineering, pp. 2277–2289.
  • Zhang et al. (2013) H. Zhang, L. Gong, and S. Versteeg. Predicting bug-fixing time: an empirical study of commercial software projects. In 2013 35th International Conference on Software Engineering (ICSE), pp. 1042–1051.
  • Zhou et al. (2022) Y. Zhou, J. K. Siow, C. Wang, S. Liu, and Y. Liu. SPI: automated identification of security patches via commits. ACM Transactions on Software Engineering and Methodology 31 (1). External Links: Document