Manuscript Offprint
arXiv:2610.36229Agent or Human? Detecting Commits by AI Coding Agents in the Absence of Authorship Signatures
KOSEI HORIKAWA, Nara Institute of Science and Technology, Japan
HAO LI, Queen's University, Canada
YUTARO KASHIWA, Nara Institute of Science and Technology, Japan
YOUSSEF ESSEDDIQ OUATITI, Queen's University, Canada
MOHAMMED SAYAGH, École de technologie supérieure - Québec University, Canada
BRAM ADAMS, Queen's University, Canada
HAJIMU IIDA, Nara Institute of Science and Technology, Japan
AHMED E. HASSAN, Queen's University, Canada
AI coding agents such as Claude Code, GitHub Copilot coding agent, and Cursor now commit directly to open-source repositories. Empirical studies of these agents identify their commits through authorship signatures, such as bot accounts and Co-authored-by trailers. These signatures are optional, can be removed, and are often attached to pull requests rather than to individual commits. Hence, it is unclear whether Agent commits can be told apart from Human commits once the signatures are gone. We investigate the signals and limits of signature-free detection using 7,837,946 commits from 1,226 repositories, covering five coding agents and Human commits. After signatures are masked, detectors rank Agent commits above Human commits with a ROC AUC of up to 0.859, and most of this signal comes from message verbosity and change size rather than from the code itself. On the shared sample, gpt-6-sol without fine-tuning reaches AUCs similar to XGBoost and TF-IDF. At the observed Agent share, however, the best detector on the full test set reaches a precision of only 0.332. Detection transfers poorly to held-out Claude Code and Copilot, with TF-IDF reaching an AUC of only 0.524 for Claude Code. Temporal changes also depend on the agent, e.g., Copilot AUC drops and later recovers, while more training history helps Claude Code but not Copilot. These results indicate that signature-free detection can prioritize commits for review but cannot replace recorded attribution, and that studies relying on signature-based labels should treat them as a lower bound on agent activity.
CCS Concepts: • Software and its engineering → Software evolution.
Additional Key Words and Phrases: AI coding agents, commit analysis, authorship identification, mining software repositories
ACM Reference Format:
Kosei Horikawa, Hao Li, Yutaro Kashiwa, Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Hajimu Iida, and Ahmed E. Hassan. 2027. Agent or Human? Detecting Commits by AI Coding Agents in the Absence of Authorship Signatures. 1, 1 (October 2027), 21 pages. https://doi.org/XXXXXXX.XXXXXXX
Authors' Contact Information: Kosei Horikawa, horikawa.kosei.hk1@naist.ac.jp, Nara Institute of Science and Technology, Ikoma, Japan; Hao Li, Queen's University, Kingston, Canada, hao.li@queensu.ca; Yutaro Kashiwa, Nara Institute of Science and Technology, Ikoma, Japan, yutaro.kashiwa@is.naist.jp; Youssef Esseddiq Ouatiti, Queen's University, Kingston, Canada, youssefesseddiq.ouatiti@queensu.ca; Mohammed Sayagh, École de technologie supérieure - Québec University, Montréal, Canada, mohammed.sayagh@etsmtl.ca; Bram Adams, Queen's University, Kingston, Canada, bram.adams@queensu.ca; Hajimu Iida, Nara Institute of Science and Technology, Ikoma, Japan, iida@itc.naist.jp; Ahmed E. Hassan, Queen's University, Kingston, Canada, ahmed@cs.queensu.ca.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
© 2027 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM XXXX-XXXX/2027/10-ART
https://doi.org/XXXXXXX.XXXXXXX
Horikawa, et al.
1 Introduction
AI coding agents combine large language models with development tools to inspect repositories, edit files, run tests, and revise changes based on feedback [2, 19, 50]. Unlike code completion, an agent can complete a task from an issue to a pull request with little human input. Agents such as Claude Code, GitHub Copilot, Cursor, Devin, and Google Jules contribute to thousands of open-source projects, and their pull requests are studied for acceptance, testing, and maintenance [22, 37, 43].
Studying agent contributions requires knowing which changes an agent made. Current work identifies agent contributions through authorship signatures: bot accounts, branch names, and attribution trailers such as Co-Authored-By: Claude [29, 39]. Whether a signature appears depends on tool settings. Claude Code lets users replace its commit attribution with any text [3], Cursor lets users and administrators turn its commit trailer off [8], and the default for adding Copilot as a co-author in Visual Studio Code changed in three consecutive releases [33]. Signatures also attach to pull requests rather than individual commits, and human developers revise agent-authored code after merging [27, 47]. In AIDev, 5.0% of human-labeled pull requests contain agent identifiers [16].
Recognizing Agent commits from their content could help researchers recover unsigned agent activity and check signature-based labels. Without reliable content-based attribution, studies that rely on signatures measure only the agent use that developers choose to disclose. Prior detection work classifies pull requests, either to identify the authoring agent [17] or to separate agent-authored from human-authored pull requests after removing agent identifiers [16]. A pull-request label, however, does not identify who wrote each commit, and commits reach the default branch without pull requests. It remains unknown how well individual commits can be attributed once signatures are removed, at the prevalence at which agent commits actually occur, for agents that a detector has not seen, and as agent behavior changes over time.
We investigate whether Agent commits can be distinguished from Human commits after explicit authorship signatures are removed. Starting from the AIDev dataset [29], we collect 7,837,946 default-branch commits from 1,226 GitHub repositories. We label commits from five agents by their signatures, and we compare them with Human commits from the same repositories in three eras: before LLM assistants, after LLM assistants, and after coding agents became available. We then mask the signatures and evaluate detectors that separate Agent from Human commits in repositories absent from training. Our study answers four research questions (RQs):
• RQ1: How do agent-authored commits differ from human commits? To identify which characteristics a detector could use, we compare Agent and Human commits within the same repositories and era. We find that Agent commits differ mainly in message length. The repository-level median Claude Code message has 73 words, compared with 10 for Human commits, and Human commits themselves grew longer across eras.
• RQ2: How well can we distinguish agent-authored from human commits after removing authorship signatures? We train detectors on masked commits and test them on unseen repositories at the observed Agent share of 0.059. Detectors rank Agent commits above Human commits with an ROC AUC of up to 0.859, but at thresholds selected on validation data their precision is at most 0.332. The signal comes mostly from the commit message and change size rather than from the code itself. The code change alone reaches an AUC of 0.716, and among commits of similar size the signal drops substantially, especially for Claude Code. On the shared sample, gpt-6-sol reaches AUCs comparable to XGBoost and TF-IDF without any fine-tuning.
• RQ3: How well does detection generalize to agents unseen during training? We hold out one agent at a time, together with the repositories in which it appears. Transfer is weakest for Claude Code and Copilot: XGBoost reaches AUCs of 0.702 and 0.706, respectively, and TF-IDF performs worse for both.
Table 1. Prior studies of AI coding agents and their methods for identifying agent contributions. The identification methods refer to dataset labels, and detector inputs may differ.
| Topics studied | Analysis unit | Agent identification |
|---|---|---|
| Agent use and contribution characteristics [28, 39] | Repositories, PRs, commits | Agent accounts, branch names, attribution messages, configuration files |
| PR acceptance and developer intervention [27, 37, 47] | PRs | Attribution messages in PR descriptions or AIDev labels |
| Test inclusion, timing, and security [22, 45] | PRs, commits | AIDev labels |
| Code changes after merging [43] | Files, commits | AIDev PRs and agent names in commit |
| Agent attribution and detection [16, 17] | PRs | AIDev labels |
- RQ4: How does detection performance change over time? We train on earlier months and test on later months of held-out repositories. Copilot AUC falls from 0.83 to 0.61 within ten months when fewer of its commits carry its squash-merge template. Training on more history helps Claude Code but not Copilot, and the TF-IDF signal fades unless the detector is retrained.
The results of our study show how incomplete attribution and limits in detection affect research datasets and development practice. Researchers who build datasets from signatures should treat signature-based Agent labels as a lower bound and Human labels as the absence of recognized agent evidence, and they should compare Agent commits with Agent-era Human commits. Researchers who evaluate authorship detectors should report precision at the observed prevalence and test on unseen agents and later months, because AUC alone overstates how useful a detector is. Detector scores can help prioritize commits for review, but only disclosure identifies which commits an agent wrote. To keep agent contributions traceable, coding agent builders should record attribution at commit time, since detection after the fact cannot recover removed signatures.
2.1 AI Coding Agents in Software Development
AI coding agents combine large language models with development tools to inspect repositories, edit files, run tests, and revise changes in response to feedback . This multi-step workflow extends beyond code completion, although developers can still guide and revise the agent's work. AIDev provides pull requests (PRs) labeled as agent-authored, together with repository metadata, reviews, and commits . Table 1 summarizes empirical studies of coding agents on GitHub, including their topics, units of analysis, and methods for identifying agent-authored changes.
Coding agents are used in projects of different sizes, maturity levels, and programming languages, and agent-assisted commits are larger than commits classified as human-authored and often involve feature development and bug fixing . PR acceptance rates vary by task type, with no single agent performing best on all tasks , and agent-authored PRs that include tests are larger and take longer to complete than those without, at similar merge rates . Task and change size therefore shape how agent and human contributions compare. We account for them by comparing Agent and Human commits within the same repositories and era and by testing detection among commits of similar size.
2.2 Challenges in Attributing Agent Contributions
The PR in Fig. 1 illustrates the uncertainty in attributing contributions when agent signatures are absent. The maintainer of this open-source media player closed the PR as likely AI-generated. The PR changed 95 files and added 8,770 lines, its commits carried no agent signature, and the
Horikawa, et al.
contributor stated that AI tools had been used only for autocompletion. Over 240 users endorsed the maintainer’s comment. A dataset that treats unsigned commits as Human would assign that label to these commits, but the available evidence does not resolve the differing accounts of how the code was produced.
This ambiguity reflects a limitation of signature-based attribution. Previous studies use agent accounts, branch names, and attribution messages to identify agent-authored PRs and commits [28, 39]. However, developers can disable or remove attribution messages [39]. A PR submitted from a developer account can still contain agent-generated code. In AIDev, 5.0% of 6,618 PRs labeled human-authored contained explicit agent identifiers [16]. Neither a human account nor a missing agent identifier establishes that a code change was written without AI assistance.
Developers also revise agent-generated code during code review and subsequent maintenance. In a study of Claude Code PRs, 45.1% of merged PRs underwent further changes, including bug fixes and adjustments to project conventions [47]. A study of agent-authored PRs found that guiding agents and enforcing project conventions were more common forms of human intervention than directly editing code [27]. A study of software maintenance also found that human developers made most subsequent changes to agent-generated files [43]. Consequently, labeling a PR as agent-authored does not establish who authored each commit in it or subsequent changes to the code.
2.3 Detecting Agent-Authored Commits
Previous studies address two prediction tasks: identifying which agent authored a PR and separating agent-authored from human-authored PRs. One study used PR-level features to identify the authoring agent among five known agents [17]. AgenTag combines PR text, commit messages, code changes, and behavioral features after removing direct agent identifiers [16]. In its balanced Agent-Human experiments, models using PR text and commit messages outperformed models using code diffs. The PR-text model also separated the two classes when training and test repositories were disjoint, although this evaluation was limited to repositories containing both classes [16]. These findings motivate our joint analysis of commit-message and code-change features. Detectors of LLM-generated code, such as GPTSniffer [34] and DetectCodeGPT [44], classify isolated snippets, whereas real agent commits mix generated, edited, and human-written changes.
Our study differs from this work in four ways: (1) We classify individual commits rather than PRs, since AgenTag concatenates the commit messages of a PR and a PR label does not identify who wrote each commit [16]. (2) We evaluate detectors at the observed Agent share, where precision determines whether flagged commits are useful, whereas AgenTag reports balanced Agent-Human experiments. (3) Our main protocol is repository-disjoint nested cross-validation, complemented by a month-by-month grid of training and test periods. AgenTag evaluates its Agent-Human task with stratified cross-validation, checks repository separation only within repositories that contain both classes, and uses a chronological split only for agent identification. (4) We test whether masking leaves merge-workflow artifacts that still identify agents.

Fig. 1. Maintainer comment closing a PR suspected of being generated by an AI agent (https://github.com/Fredolx/open-tv/pull/397).

Fig. 2. Overview of the study design.
3 Study Design
This section describes the repository and commit selection, labeling, features, and evaluation protocol shared by all research questions (Fig. 2).
3.1 Repository Selection
We identify 12,994 non-fork repositories in AIDev v5 [29], collected through March 31, 2026, with at least 100 stars and at least one PR by a studied agent. We keep repositories created before 2020-03-29 (5,550 candidates) with at least 400 default-branch commits in each 15-month era (Table 2), leaving 1,227 for collection. Activity counts include all authors and merge commits. The pre-LLM era ends at the technical preview of Copilot on June 29, 2021 [14]. The LLM era ends at the earliest PR by a studied agent in AIDev, opened by Devin on December 24, 2024 [29]. The Agent era runs from June 2025, the first full month after the public preview of the GitHub Copilot coding agent on May 19, 2025 [18] and the Google Jules public beta on May 20, 2025 [21], to August 2026.
3.2 Commit Selection
For each repository, we resolve its default branch (e.g., main) through the GitHub REST API [20], record the head SHA of that branch and the retrieval time, and list the commits reachable from that SHA whose UTC committer dates fall within each era. AIDev supplies only the candidate repositories, and our own collection covers Agent and Human commits, including those after its cutoff. We exclude merge commits with two or more parents, records missing required timestamps or parent information, and duplicate SHAs. We apply no filter on squash merges or commit size.
We identify Copilot, Cursor, Devin, and Google Jules through the author accounts Copilot, cursoragent, devin-ai-integration[bot], and google-labs-jules[bot], respectively, and Claude Code through a case-insensitive Co-Authored-By: Claude message signature. These rules apply in every era. We exclude OpenAI Codex because these rules do not identify its commits. We exclude all copies of the 243 SHAs matching multiple agents. Human commits carry no recognized AI-assistance signature and pass bot filtering based on Dey et al. [10] and known automation accounts. This label does not establish that no AI assistance was used. The final dataset contains 7,837,946 commits from 1,226 repositories (Table 2), because one selected repository retains no eligible commits. Of these repositories, 1,224 also have Human commits in both earlier eras.
Horikawa, et al.
Table 2. Repositories, commits, and changes for the Agent and Human classes across the three eras: Pre-LLM (2020-03-29 to 2021-06-28), LLM (2023-09-24 to 2024-12-23), and Agent (2025-06-01 to 2026-08-31). Medians pool commits within each row; the repository-level medians in RQ1 give each repository equal weight.
| Era | Group | # Repos | # Commits | Median words | # Files | # LOC | Median LOC |
|---|---|---|---|---|---|---|---|
| Pre-LLM | Human | 1,224 | 2,504,139 | 7 | 15,795,739 | 1,715,849,223 | 16 |
| LLM | Human | 1,224 | 2,509,950 | 8 | 18,206,607 | 1,559,030,746 | 16 |
| Agent | Copilot | 697 | 27,179 | 14 | 190,486 | 21,634,462 | 26 |
| Claude Code | 906 | 141,034 | 65 | 1,147,521 | 89,580,602 | 60 | |
| Cursor | 27 | 1,160 | 36 | 4,855 | 280,170 | 41 | |
| Devin | 10 | 75 | 60 | 156 | 6,755 | 47 | |
| Google Jules | 25 | 313 | 56 | 1,527 | 81,893 | 36 | |
| Human | 1,226 | 2,654,096 | 9 | 19,289,038 | 1,911,987,960 | 21 | |
| Total | - | 1,226 | 7,837,946 | - | 54,635,929 | 5,298,451,811 | - |
3.3 Features and Leakage Control
Table 3 summarizes the 39 detector features: 12 adapt prior-work measures to individual commits and 27 use exploratory definitions. Commit Message features follow prior work on commit message quality and conventions [46]. Full definitions and provenance accompany the replication package [1]. For , we also summarize changed files, added/deleted/total changed lines, and three timing measures (hour, weekday, weekend). Dates and timing are not detector inputs.
The first three feature families use commit metadata. Code Style and Code Vocabulary need the full patch, so we compute them only for patch-eligible commits, whose patches cover every changed file and line and match the recorded line counts. Before feature extraction, we remove lines containing agent attributions, generation notices, tool URLs, or vendor templates, then replace remaining tool names with a placeholder [16]. Unmasked inputs provide a sensitivity check.
Within each training fold, we drop constant or entirely missing features, impute remaining missing values with training medians, and apply AutoSpearman [24] to remove features with high correlation ( ) or multicollinearity (VIF ), so that SHAP values and ablation effects are not split across correlated features. The fitted preprocessing is then applied unchanged to the validation and test data. For comparison, we also evaluate the unreduced feature set.
3.4 Evaluation Protocol
Our main detector is XGBoost [6] on the selected numeric features. Human commits receive half of the training weight, and the other half is divided equally among the agents, so no commit is discarded. We compare it with LightGBM [25] and CatBoost [38] on the same features and with TF-IDF term weighting [42] over hashed tokens [48] of the masked message and diff, of the message alone, and of the diff alone, classified by -regularized logistic regression with the same weights. The TF-IDF input also excludes file paths, the mask token, Co-Authored-By trailers, and “Initial plan” lines, which act as residual signatures. We also ask LLM judges [51], without fine-tuning, to score the masked message and diff of a stratified sample of 2,000 Agent and 2,000 Human commits, and we evaluate XGBoost and TF-IDF on the same sample. We query gpt-6-luna [35] zero-shot and gpt-6-sol [36] zero-shot and few-shot with 16 fixed labeled examples from repositories outside the sample, and remove Co-Authored-By trailers and “Initial plan” lines from the gpt-6-sol prompts. The prompts are in the directory prompts/llm_judge of our replication package [1].
Table 3. Overview of detector features.
| Feature family | Features | Count |
|---|---|---|
| Commit Message | Length [16], formatting, Markdown structure, and writing conventions [7] | 10 |
| Changed Files | Extension diversity [10] and file-type fractions | 8 |
| Code Diff | Addition fraction, changes per file, single-file and large-change indicators | 4 |
| Code Style | Added-line count [44], layout [5], identifiers, and annotation proxies | 13 |
| Code Vocabulary | Token counts, Zipf and Heaps exponents [44] | 4 |
The LLM judges use a fixed decision threshold of 0.500. Their precision is re-weighted from the sample's true- and false-positive rates to the observed Agent share (0.059). On the same sample, we evaluate logistic regression on frozen CodeBERT [12] embeddings of the masked message and diff, of the message alone, and of the diff alone, trained on 100,000 commits from the training repositories of each outer fold.
Splits and thresholds. Training and test repositories are disjoint. uses five outer folds. additionally holds out one agent, and keeps the repository folds fixed and trains on months before those it tests. Hyperparameters maximize mean per-agent AUC on repository-disjoint inner validation data. Learned detectors use the threshold that maximizes F1 on validation data and fix it before testing. and restrict their validation data further.
Measures and uncertainty. Agent is the positive class. We report ROC AUC and the area under the precision-recall curve (PR-AUC, computed as non-interpolated average precision), together with precision, recall, and F1 at each test set's observed Agent share, because ROC AUC alone can overstate performance on imbalanced data [9, 41]. Unlike ROC AUC, PR-AUC depends on the Agent share, and a random detector reaches a PR-AUC equal to that share. To compare agents with different shares, we therefore also report lift, the ratio of PR-AUC to the Agent share. We also report the Matthews correlation coefficient (MCC), which uses all four cells of the confusion matrix, and weighted F1, the measure reported by AgenTag [16]. Results cover all agents pooled and each agent against the same Human commits. An agent is evaluable only with at least 20 test commits from at least two repositories in each class. We use 1,000 bootstrap samples [11] that resample whole repositories [13] for confidence intervals and we compare detectors on same test commits using the same bootstrap samples for both.
4 Results
For each research question we present the motivation, the approach, and the results.
4.1 : How do agent-authored commits differ from human commits?
4.1.1 Motivation. To detect Agent commits from their content, we first need to understand how they differ from Human commits. The differences may lie in the code, in the commit message, or in the conventions of a particular tool. Each has a different consequence for detection. A detector that relies on the code would keep working across tools, while one that relies on message templates would break when a tool changes its template. The choice of Human reference also matters. Human commits may have changed since LLM assistants became available, so a comparison with older Human commits could blame agents for a broader shift in practice. This RQ aims to study which features separate Agent commits from Human commits of the same repositories and era, and whether Human commits themselves drifted over the same period.
Horikawa, et al.
Table 4. Cliff's between Agent and Agent-era Human commits, as the median over repositories. Positive values mean higher values for Agent commits, and * marks an adjusted . Only features with for at least one agent are shown. Orange marks positive and blue negative effects.
| Family | Feature | Claude Code | Copilot | Cursor |
|---|---|---|---|---|
| Commit Message | Characters | 0.698* | 0.508* | 0.764* |
| Words | 0.693* | 0.422* | 0.692* | |
| Lines | 0.641* | 0.544* | 0.786* | |
| Conventional prefix | 0.021* | 0.000 | 0.144 | |
| Code Diff | Addition share | 0.150* | 0.123* | 0.153 |
| Changed lines per file | 0.193* | 0.063* | 0.089 | |
| Single-file commit | -0.084* | -0.102* | 0.016 | |
| Code Style | Added lines in patches | 0.218* | 0.108* | 0.094 |
| Identifiers | 0.241* | 0.119* | 0.100 | |
| camelCase share | 0.036* | 0.011 | 0.109 | |
| Indentation variance | 0.115* | 0.045* | 0.032 | |
| Code Vocabulary | Tokens | 0.237* | 0.110* | 0.092 |
| Distinct tokens | 0.264* | 0.101* | 0.087 |
4.1.2 Approach. We summarize each feature within each repository and group using medians for continuous features and proportions for binary features. For each agent, we keep repositories with at least 20 commits from that agent, 20 Agent-era Human commits, and 20 pre-LLM-era Human commits. We retain repositories with all three feature summaries and report median paired differences and median within-repository Cliff's [30, 40], where positive values indicate higher Agent values. We interpret below 0.147, 0.330, and 0.474 as negligible, small, and medium, and larger values as large [40]. For the Human-only comparison, we use repositories with observed summaries in all three eras. Each repository receives equal weight.
uses 500 repository-bootstrap draws for pointwise intervals and two-sided Wilcoxon signed-rank tests [49] of paired summaries when at least five repositories are available. Benjamini-Hochberg adjustment [4] treats the Human-era comparisons and the Agent-Human comparisons of all features as two separate families. Table 4 reports features with for at least one of Claude Code, Copilot, and Cursor (461, 202, and 13 matched repositories), retaining all three estimates in each selected row. This is a display cutoff, not a significance criterion. Devin and Google Jules have only one and four matched repositories, so their results, like the confidence intervals and detailed tests for all agents, are in the supplementary materials.
4.1.3 Results. Finding #1: Message-length features show the largest Agent-Human differences. Table 4 shows that character, word, and line counts have the largest effects for all three agents, and the word-count difference is significant for each of them. For Claude Code, the median over repositories of each repository's median message length is 73 words, compared with 10 for Agent-era Human commits, so a typical Claude Code message is about seven times as long as a typical Human message in the same repository. The difference lies in length rather than format, e.g., the share of messages with a conventional prefix differs little between groups with negligible effect size ( below 0.147) for all three agents.
Finding #2: Differences in the code change are smaller and vary by agent. Claude Code and Copilot have more distinct added tokens and more changed lines per file than Human commits, whereas the Cursor intervals for these features span zero. These effects are small or negligible,
Table 5. Changes in Human commits between eras in the same 1,224 repositories, as matched-pairs rank-biserial correlations [26]. Positive values mean higher values in the later era, and * marks an adjusted . Rows are the features of Table 4. The correlation measures how consistently repositories change in one direction, not the size of the change.
| Family | Feature | pre-LLM to LLM | LLM to Agent | pre-LLM to Agent |
|---|---|---|---|---|
| Commit Message | Characters | 0.399* | 0.563* | 0.663* |
| Words | 0.372* | 0.567* | 0.629* | |
| Lines | 0.509* | 0.575* | 0.689* | |
| Conventional prefix | 0.572* | 0.680* | 0.827* | |
| Code Diff | Addition share | 0.009 | 0.632* | 0.524* |
| Changed lines per file | 0.030 | 0.738* | 0.628* | |
| Single-file commit | -0.233* | -0.417* | -0.483* | |
| Code Style | Added lines in patches | 0.127* | 0.693* | 0.629* |
| Identifiers | 0.127* | 0.704* | 0.651* | |
| camelCase share | 0.086* | 0.097* | 0.119* | |
| Indentation variance | 0.029 | 0.407* | 0.318* | |
| Code Vocabulary | Tokens | 0.134* | 0.697* | 0.658* |
| Distinct tokens | 0.104* | 0.737* | 0.670* |
whereas the word-count effects are medium to large. No Changed Files feature reaches the display cutoff for any of the three agents. These observations describe the labeled commits, without establishing code quality or detection performance.
Finding #3: Human commits also changed across eras. Table 5 shows that Human messages became longer and Human changes touched more lines per file from the pre-LLM to the Agent era across 1,224 repositories. Commit Message features already rose from the pre-LLM to the LLM era, whereas Code Style and Code Diff measures such as added lines and changed lines per file shifted mainly from the LLM to the Agent era. A pre-LLM-era Human reference would therefore mix era changes with Agent–Human differences, which supports comparing Agent commits with Agent-era Human commits.
Answer to RQ1
Message-length features show the largest differences between the three displayed agents and Agent-era Human commits. Code-change differences are smaller and vary by agent. Human commits also change across eras, making Agent-era Human commits the primary reference for detection.
4.2 RQ2: How well can we distinguish agent-authored from human commits after removing authorship signatures?
4.2.1 Motivation. Signatures identify Agent commits only when an agent leaves one, otherwise, the commit content is the only available evidence. RQ1 showed that Agent and Human commits differ as groups, but a group difference does not guarantee that individual commits can be classified, especially in repositories the detector has never seen. The goal of this RQ is to understand how far a content-based detector can be trusted on commits without a signature, and which part of its evidence would survive a change in message conventions.
Horikawa, et al.
4.2.2 Approach. We train a binary detector to distinguish Agent commits from Agent-era Human commits. Commits from all five studied agents share the positive Agent label, Human is the negative label, and the detector does not predict which agent authored a commit. The main detector uses all five feature families on patch-eligible commits, with masked inputs and AutoSpearman. and use the same masking and correlation reduction. To measure what Code Style and Code Vocabulary add, we also train a metadata-only model on the Commit Message, Changed Files, and Code Diff features and compare the two models on the same patch-eligible commits with paired repository bootstrapping.
We compare masked and unmasked inputs on the same commits and evaluate both full and correlation-reduced feature sets. To examine feature contributions, we compute SHAP values for held-out XGBoost predictions and remove one feature family at a time. Each ablation repeats feature selection, hyperparameter tuning, and model fitting within the training folds. These ablations use masked inputs and the correlation-reduced model.
Size-matched evaluation. We evaluate the main detector without retraining on commits of similar size. We restrict its out-of-fold predictions to held-out Agent–Human pairs matched by the same repository, language, and month, and by predefined size ranges. The ranges are 0, 1–10, 11–50, 51–200, and more than 200 message words, 0, 1–10, 11–100, 101–1,000, and more than 1,000 changed lines, and 0, 1, 2–5, 6–20, and more than 20 changed files. Sizes are matched by range, not exactly.
Baselines and sensitivity checks. We fit a baseline using only message word count, changed lines, and changed files. LightGBM, CatBoost, and TF-IDF use the same commits and folds as XGBoost, while the LLM judge uses the sample described in Section 3.4. We also repeat the evaluation with Agent commits weighted equally, keeping the total weight of the Agent and Human classes equal.
Review budgets. We use review fractions of 1%, 5%, and 10% per test fold. Within each fold, we select the highest scores, round counts up, and resolve ties by SHA order. Precision and recall are calculated from the combined counts across folds.
4.2.3 Results. Finding #4: Masked detectors rank Agent commits above Human commits, but even the best reaches 0.332 precision. Table 6 compares the detectors on the same 2,704,768 commits, with an Agent share of 0.059. XGBoost on the 32 features reaches ROC AUC 0.792, and TF-IDF on masked messages and diffs reaches 0.859. At validation-selected thresholds, however, their precision is only 0.184 and 0.332, so most flagged commits are Human commits. Per agent, AUC ranges from 0.786 to 0.904 and lift from 3.123 to 15.121, yet precision falls from 0.156 for Claude Code to 0.002 or less for Cursor, Devin, and Google Jules, whose Agent shares are below 0.001 (Table 7). Even the top 1% of XGBoost scores in each fold reaches a precision of only 0.316, with larger budgets giving lower precision. Weighted F1, the measure reported by AgenTag [16], remains high in both settings. On the balanced sample, it reaches up to 0.780, close to the 0.769 that AgenTag reports for commit messages on balanced PRs. On the full test set, TF-IDF reaches 0.919 because the Human class dominates the average, although its precision is only 0.332.
Without fine-tuning, gpt-6-sol reaches AUCs similar to XGBoost and TF-IDF, and CodeBERT performs best on the sample when its input includes the message. On the sample of 4,000 commits, gpt-6-sol with 16 examples reaches AUC 0.802, compared with 0.783 for XGBoost, and the paired interval of the difference includes zero. CodeBERT embeddings of the message and diff reach AUC 0.846, above XGBoost with a paired interval that excludes zero, but only 0.589 on the diff alone. The learned representation thus mirrors the message-code split of the handcrafted features.
Finding #5: Other classifiers and training weights reach similar AUCs, and correlation reduction lowers AUC. LightGBM and CatBoost reach AUCs of 0.792 and 0.790, and equal weights for all Agent commits give 0.813. Without correlation reduction, XGBoost reaches 0.853, so the main model trades some AUC for interpretable feature contributions. Signatures left in the input
Table 6. Detector performance on masked commits, using the full test set (2,704,768 commits) or a balanced sample (4,000 commits). Detectors within each set use the same commits. Lift is PR-AUC divided by the Agent share. Weighted F1 averages Agent and Human F1 by class size. The sample's PR-AUC, lift, and weighted F1 are not comparable with those of the full test set. Its precision and MCC are re-weighted to the observed Agent share of 0.059. CodeBERT is trained on 100,000 commits per fold.
| Test set | Detector | ROC AUC | PR-AUC | Lift | Precision | Recall | MCC | Weighted F1 |
|---|---|---|---|---|---|---|---|---|
| Full | XGBoost, 32 features | 0.792 | 0.187 | 3.152 | 0.184 | 0.473 | 0.224 | 0.875 |
| LightGBM, 32 features | 0.792 | 0.187 | 3.161 | 0.182 | 0.476 | 0.223 | 0.874 | |
| CatBoost, 32 features | 0.790 | 0.188 | 3.175 | 0.186 | 0.461 | 0.223 | 0.877 | |
| TF-IDF, message and diff | 0.859 | 0.305 | 5.151 | 0.332 | 0.497 | 0.361 | 0.919 | |
| TF-IDF, message only | 0.859 | 0.314 | 5.306 | 0.320 | 0.534 | 0.366 | 0.916 | |
| TF-IDF, diff only | 0.716 | 0.136 | 2.299 | 0.146 | 0.388 | 0.158 | 0.863 | |
| Sample | XGBoost, 32 features | 0.783 | 0.740 | 1.480 | 0.160 | 0.510 | 0.206 | 0.662 |
| LightGBM, 32 features | 0.786 | 0.751 | 1.502 | 0.157 | 0.512 | 0.203 | 0.661 | |
| CatBoost, 32 features | 0.783 | 0.745 | 1.489 | 0.162 | 0.506 | 0.207 | 0.662 | |
| TF-IDF, message and diff | 0.799 | 0.786 | 1.573 | 0.246 | 0.463 | 0.280 | 0.670 | |
| TF-IDF, message only | 0.807 | 0.794 | 1.588 | 0.220 | 0.501 | 0.269 | 0.683 | |
| TF-IDF, diff only | 0.621 | 0.607 | 1.215 | 0.095 | 0.359 | 0.082 | 0.552 | |
| CodeBERT, message and diff | 0.846 | 0.822 | 1.644 | 0.169 | 0.797 | 0.289 | 0.775 | |
| CodeBERT, message only | 0.852 | 0.829 | 1.658 | 0.169 | 0.809 | 0.293 | 0.780 | |
| CodeBERT, diff only | 0.589 | 0.571 | 1.142 | 0.063 | 0.906 | 0.042 | 0.455 | |
| LLM zero-shot (gpt-6-luna) | 0.664 | 0.650 | 1.300 | 0.106 | 0.564 | 0.135 | 0.631 | |
| LLM zero-shot (gpt-6-sol) | 0.797 | 0.757 | 1.513 | 0.154 | 0.710 | 0.247 | 0.732 | |
| LLM few-shot (gpt-6-sol) | 0.802 | 0.761 | 1.522 | 0.143 | 0.792 | 0.247 | 0.746 |
Table 7. XGBoost detection of each agent against the same 2,544,682 Human commits. Lift is PR-AUC divided by the Agent share. The last column is ROC AUC on size-matched test pairs, which pair each Agent commit with a Human commit from the same repository, language, month, and size range.
| Agent subset | Full test set | Size-matched | ||||||
|---|---|---|---|---|---|---|---|---|
| Agent share | ROC AUC | PR-AUC | Lift | Precision | Recall | MCC | ROC AUC | |
| Claude Code | 0.050 | 0.786 | 0.157 | 3.123 | 0.156 | 0.458 | 0.201 | 0.543 |
| Copilot | 0.009 | 0.824 | 0.040 | 4.390 | 0.037 | 0.549 | 0.116 | 0.692 |
| Cursor | <0.001 | 0.879 | 0.004 | 8.292 | 0.002 | 0.648 | 0.032 | 0.655 |
| Devin | <0.001 | 0.904 | <0.001 | 15.121 | <0.001 | 0.730 | 0.010 | 0.703 |
| Google Jules | <0.001 | 0.853 | 0.001 | 5.429 | 0.001 | 0.623 | 0.016 | 0.675 |
raise these values. Without masking, XGBoost reaches 0.859, and TF-IDF reaches 0.884 when file paths, the mask token, and workflow lines are kept. A detector trained against LLM-era Human commits reaches 0.841, consistent with the changes in Human commits across eras in RQ1.
Finding #6: The signal lies mainly in the commit message, with change size as the second source. Without the message, detection weakens sharply. Table 6 shows that TF-IDF on the diff alone reaches AUC 0.716 and CodeBERT on the diff alone reaches 0.589, so the learned representation shows the same split between message and code as the handcrafted features. Fig. 3 shows that removing the Commit Message features lowers XGBoost from 0.792 to 0.645, whereas removing any other feature family barely changes it. Message length in lines has the largest held-out SHAP importance in every outer fold, and adding Code Style and Code Vocabulary features raises AUC by only 0.013 on the same commits.
Horikawa, et al.

Fig. 3. XGBoost ROC AUC when one feature family is removed, with 95% repository-bootstrap intervals. The dashed line marks the model with all five families.
Finding #7: Among commits of similar size, both detectors lose most of their signal. Table 7 shows that on test pairs matched by repository, language, month, and size range, Claude Code AUC falls from 0.786 to 0.543 for XGBoost and from 0.860 to 0.600 for TF-IDF. Copilot keeps more of its signal, with 0.692 and 0.737, and TF-IDF on the diff alone reaches only 0.533 for Claude Code and 0.545 for Copilot, close to chance. A baseline using only message word count, changed lines, and changed files reaches AUC 0.789 on the full test set, and for Claude Code the full XGBoost detector does not outperform it. Most of the signal therefore comes from message length and change size, consistent with the drop without Commit Message features in Fig. 3.
Merge-workflow lines inflate this result if they are left in the message. When Co-Authored-By trailers and Copilot’s “Initial plan” lines are kept, TF-IDF reaches 0.907 for Copilot on the matched pairs. The share of sampled Copilot messages with a Co-Authored-By trailer is 0.852, compared with 0.060 for Human messages, so these lines act as residual signatures after masking.
Answer to RQ
After signatures are masked, detectability comes mostly from message verbosity and change size. The code change alone reaches an AUC of 0.716, and among commits of similar size the signal drops substantially, especially for Claude Code. Detectors still rank Agent commits above Human commits with an AUC of up to 0.859, and gpt-6-sol without fine-tuning reaches AUCs similar to XGBoost and TF-IDF on the shared sample. Even the best detector on the full test set reaches a precision of only 0.332 at the observed Agent share of 0.059, so detector scores support prioritizing commits for review rather than labeling them.
4.3 RQ : How well does detection generalize to agents unseen during training?
4.3.1 Motivation. A deployed detector will encounter agents it was not trained on, including agents using new tools and tools whose commits carry no signature that we could label. Good performance on the training agents does not tell us whether the detector learned characteristics shared by all agents or exclusively the habits of the agents it observed. If it learned only those habits, applying it broadly could miss unrepresented agents and skew the resulting datasets. This aims to understand how well a detector ranks commits from an agent it has never seen.
4.3.2 Approach. We use the masked XGBoost model with correlation reduction in leave-one-agent-out evaluation. This evaluation uses all eligible commits from the Agent era, including those without complete patches. For each held-out agent, the test set contains its commits and Human commits
Table 8. Commits in each unseen-agent experiment. Training and test repositories are disjoint.
| Unseen agent | Training Other agents | Training Human | Test Unseen agent | Test Human |
|---|---|---|---|---|
| Claude Code | 6,527 | 446,694 | 141,034 | 2,207,402 |
| Copilot | 53,251 | 1,139,036 | 27,179 | 1,515,060 |
| Cursor | 146,865 | 2,543,735 | 1,160 | 110,361 |
| Devin | 168,366 | 2,630,883 | 75 | 23,213 |
| Google Jules | 166,019 | 2,526,866 | 313 | 127,230 |
from repositories in which that agent appears. We exclude all commits from these repositories from training, regardless of their labels. The remaining Human commits and commits from the other four agents form the training set.
Each row in Table 8 represents a separate experiment. The training Agent count covers the other four agents, whereas the test Agent count covers only the agent named in that row. For example, the Claude Code row trains on 6,527 commits from other agents and tests on 141,034 Claude Code commits, alongside the Human commits in the respective columns. Training counts vary because each held-out agent appears in a different set of repositories, all of which must be excluded from its training set.
Hyperparameters and the decision threshold are selected on repository-disjoint validation within this training set, so they are chosen using known agents only. The tuning objective balances the agents present in each training fold. Boxplots summarize the repository-bootstrap AUC draws of each fitted model, not independent model fits. We also report a diagnostic at a threshold of 0.500.
To check whether differences in training volume explain performance across agents, we repeat the evaluation with 6,527 Agent and 446,694 Human training commits, the smallest available class-specific training pools. We retain each training agent and allocate the Agent budget proportionally to its available commits. We use three sampling seeds and report their median AUC, keeping the test commits and the full model's hyperparameters unchanged.
We perform two additional sensitivity checks. One allows training commits from other agents in the test repositories, while still excluding the held-out agent and all test commits, and tunes these models separately. The other restricts training to patch-eligible commits and compares both models on common patch-eligible test commits under the original repository split.
4.3.3 Results. Finding #8: For the two largest agents, detection drops to AUC 0.702 and 0.706 when the agent is absent from training. All confidence intervals in Fig. 4 lie above 0.500, so each held-out agent is still ranked above Human commits. The gap is not a training-volume effect, because the AUCs remain almost unchanged with training counts fixed. Cursor, Devin, and Google Jules reach AUCs of 0.893 or higher, but these estimates rest on few test commits and repositories, and they may partly reflect the verbosity of Claude Code commits in their training data rather than a signal specific to those agents.
Finding #9: The vocabulary signal transfers weakly to held-out Claude Code and Copilot. Table 9 shows that the best detector (i.e., TF-IDF) on the full test set in , ranks unseen-agent commits worse than XGBoost on the same test commits. Its AUC is only 0.524 for Claude Code and 0.630 for Copilot, and its paired intervals lie below XGBoost for these two agents and for Cursor. For these two agents, the vocabulary signal is weak, while the 32 features, which rely mostly on message length and change size, keep more of their ranking.
Horikawa, et al.

Fig. 4. ROC AUC on unseen agents. Boxes and whiskers summarize repository-bootstrap draws (median, interquartile range, and 95% interval), and diamonds show the test-set AUC.
Table 9. Detection of unseen agents, with both detectors on the same test commits and thresholds selected on known agents.
| Unseen agent | Agent share | Detector | ROC AUC | PR-AUC | Lift | Precision | Recall | MCC |
|---|---|---|---|---|---|---|---|---|
| Claude Code | 0.060 | XGBoost | 0.702 | 0.109 | 1.809 | 0.069 | 0.005 | 0.003 |
| TF-IDF | 0.524 | 0.068 | 1.131 | 0.086 | 0.024 | 0.014 | ||
| Copilot | 0.018 | XGBoost | 0.706 | 0.039 | 2.209 | 0.047 | 0.250 | 0.072 |
| TF-IDF | 0.630 | 0.028 | 1.608 | 0.034 | 0.143 | 0.036 | ||
| Cursor | 0.010 | XGBoost | 0.898 | 0.067 | 6.396 | 0.069 | 0.552 | 0.174 |
| TF-IDF | 0.739 | 0.023 | 2.224 | 0.029 | 0.293 | 0.064 | ||
| Devin | 0.003 | XGBoost | 0.893 | 0.028 | 8.549 | 0.016 | 0.707 | 0.094 |
| TF-IDF | 0.889 | 0.030 | 9.173 | 0.032 | 0.560 | 0.123 | ||
| Google Jules | 0.002 | XGBoost | 0.921 | 0.022 | 9.021 | 0.021 | 0.546 | 0.097 |
| TF-IDF | 0.835 | 0.012 | 4.861 | 0.015 | 0.137 | 0.039 |
Finding #10: Thresholds selected on known agents transfer poorly to unseen agents. Table 9 also reports performance at the threshold selected on known agents. For Claude Code, this threshold gives a recall of only 0.005, compared with 0.123 at a threshold of 0.500. For Google Jules, an AUC of 0.921 comes with a precision of 0.021, so most flagged commits are Human commits. The gap is not a training-volume effect, because the AUCs remain almost unchanged with training counts fixed at 6,527 Agent and 446,694 Human commits. Allowing other-agent training commits from the test repositories raises Claude Code AUC to 0.772 and barely changes the other agents. Restricting training to patch-eligible commits also barely changes AUC for every agent.
Answer to
Detection transfers poorly to held-out Claude Code and Copilot, with AUCs of 0.702 and 0.706, whereas Cursor, Devin, and Google Jules reach XGBoost AUCs of at least 0.893 on smaller test sets. TF-IDF falls further for Claude Code and Copilot, showing weak vocabulary transfer. XGBoost's threshold tuned on known agents recalls only 0.005 of unseen Claude Code commits, with precision below 0.070 for every held-out agent.
4.4 RQ4: How does detection performance change over time?
4.4.1 Motivation. A detector used in practice must classify commits written after its training data were collected. For example, agents may change their behavior and message templates and repositories may change their workflows. If detector performance drifts over time, an estimate of agent activity based on the detector could rise or fall even when the actual level of activity remains unchanged. This RQ aims to measure how detector performance changes in the months following training and whether a longer training history slows this change.
4.4.2 Approach. We split the Agent era into its 15 calendar months. uses the patch-eligible commits and the main detector of . Because the relation between features and labels can change over time [15], we use an expanding training window, a strategy studied in long-lived defect prediction [32]. For each monthly cutoff, we train on all commits from the start of the era through that month, excluding the held-out repositories, then freeze the model and its preprocessing and evaluate each later month on commits from the held-out repositories. For example, a model trained on June is evaluated on July and later months, while a model trained on June and July is evaluated on August and later months. We do not evaluate the training month or earlier months.
Each repository is assigned to one of five outer folds for the whole era. For each outer fold, hyperparameters are selected on the training repositories' first-month commits and the decision threshold on inner validation in June 2025, and both stay fixed for all later training cutoffs and test months. Threshold results therefore show how a threshold chosen once transfers to later months. For each training window and test month, we pool out-of-fold predictions across folds. We report Claude Code and Copilot, the only agents meeting the support rule in every training-test month pair. Each test month uses the same commits for every training cutoff.
We present a heatmap with cumulative training windows as rows and future test months as columns. Each row shows the future performance of a fixed model, while each column compares models trained on different amounts of history against the same test commits. For the final test month, August 2026, we compare the earliest and latest training cutoffs on identical test commits using 1,000 paired repository-bootstrap draws, and we also report PR-AUC, precision, recall, and F1 for these two training histories.
4.4.3 Results. Finding #11: Detection performance falls and recovers across test periods, even without retraining. Fig. 5 shows all 105 training-test month pairs, and its first row keeps training fixed to June 2025. For this frozen model, Copilot AUC falls from 0.83 in July 2025 to 0.61 in May 2026, then recovers to 0.78 in August 2026 without any update to the model. Claude Code AUC stays between 0.67 and 0.78. The Copilot dip also appears in the same test months across training cutoffs, including models trained on more recent commits. These patterns suggest that the performance changes come from differences between test periods rather than from elapsed time since training alone. One possible explanation for this dip is a change in Copilot's workflow templates. During the period of lower AUC, fewer Copilot commits carried the squash-merge template of its PR workflow. The share of Copilot messages with an "Initial plan" line fell from 26.3% in February 2026 to 8.8% in April 2026 and then recovered, and the share with squash-merge bullet lists followed the same path.
Finding #12: Expanding the training history improves Claude Code detection but yields no clear AUC gain for Copilot. Table 10 shows that on the same August 2026 commits, training through July 2026 instead of June 2025 alone raises Claude Code AUC from 0.705 to 0.752, with a paired interval that excludes zero. Recall more than doubles at a similar precision. For Copilot, the paired interval of the AUC difference includes zero, and its precision falls.
Horikawa, et al.

Fig. 5. ROC AUC of Claude Code and Copilot by training cutoff (rows) and test month (columns). White cells are not evaluated.
Table 10. Detection in August 2026 by training cutoff. Training starts in June 2025. Test commits: 22,545 Claude Code (Agent share 0.108) and 1,101 Copilot (0.006), each against the same 185,832 Human commits.
| Agent | Training cutoff | ROC AUC | PR-AUC | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| Claude Code | June 2025 | 0.705 | 0.222 | 0.320 | 0.075 | 0.121 |
| July 2026 | 0.752 | 0.249 | 0.312 | 0.185 | 0.233 | |
| Copilot | June 2025 | 0.779 | 0.019 | 0.027 | 0.092 | 0.042 |
| July 2026 | 0.768 | 0.015 | 0.016 | 0.138 | 0.029 |
We notice that updating the training data helps the Claude Code vocabulary detector more. For Claude Code, TF-IDF trained on June 2025 falls from AUC 0.733 in July 2025 to 0.631 in August 2026, and it is below XGBoost in 11 of the 14 later months. Trained through July 2026, it instead reaches 0.801, above XGBoost with a paired interval that excludes zero. For Copilot, TF-IDF has a lower AUC than XGBoost with either training history, although the paired intervals of these differences include zero. Expanding the training history can therefore recover detection performance, most clearly for Claude Code's vocabulary signal, but the gain depends on the agent and the detector.
Finding #13: Above-chance ranking persists, but a fixed threshold misses most Claude Code commits. With the model and thresholds fixed in June 2025, Claude Code AUC remains between 0.67 and 0.78, yet recall never exceeds 0.091 in any later month. Its precision rises from 0.028 to 0.320 as the Claude Code share of test commits grows from 0.003 to 0.108. Higher prevalence can increase precision without improving ranking, so this rise in precision does not by itself show better detection. For Copilot, precision falls after March 2026 together with its AUC. Table 10 shows that even with the expanded training history, recall stays low for both agents at the original thresholds, and most flagged commits are Human commits. These results show why later-month evaluations need precision and recall alongside AUC, especially when detector predictions are used to estimate agent activity.
Answer to RQ4
Detector performance is not stable over time. Copilot AUC falls and recovers even without retraining, with the dip coinciding with fewer workflow templates in its messages. Expanding the training history improves Claude Code detection, especially with TF-IDF, but yields no clear XGBoost AUC gain for Copilot.
5 Implications
5.1 Implications for Researchers
Detectors capture how specific agents describe changes, not what they change. The code change alone gives an AUC of 0.716 with TF-IDF and 0.589 with CodeBERT embeddings, and among commits of similar size its signal falls close to chance, whereas the commit message carries most of the signal (RQ2). This signal is also specific to agents and time. TF-IDF separates known agents with an AUC of 0.859 but reaches only 0.524 for an unseen Claude Code (RQ3), and its AUC falls from 0.733 to 0.631 unless it is retrained (RQ4). Because the code representations we evaluated separate agent and human changes only weakly, attribution research should study how changes are described, and evaluations should report unseen-agent and later-month results.
Detection performance depends on the evaluation setting. Class-weighted measures can look strong while precision stays low. Weighted F1 reaches up to 0.780 on a balanced sample and 0.919 on the full test set, whereas at the validation-selected thresholds precision at the observed Agent share is at most 0.332 (RQ2). Keeping Co-Authored-By trailers and “Initial plan” lines in the input raises the TF-IDF AUC for Copilot on size-matched pairs from 0.737 to 0.907 (RQ2). Even the strongest detector on the 4,000-commit sample, CodeBERT on the message alone, reaches an AUC of 0.852 with a precision of only 0.169 at the observed Agent share, so the detectors we evaluated do not substitute for missing signatures. Detection studies can complement balanced results with precision and PR-AUC at the observed Agent share and with masking of workflow artifacts, and studies built on signature-based labels can treat Agent labels as a lower bound.
5.2 Implications for Developers
Detector scores can prioritize review but cannot establish authorship. Reviewing the highest-scoring 1% of commits gives a precision of 0.316 at a recall of 0.053, and even the best detector on the full test set reaches a precision of 0.332 at the observed Agent share (RQ2). Maintainers who need to know which commits an agent wrote should require disclosure, for example a trailer checked in continuous integration, rather than infer it afterward.
Human commits are moving toward agent-like commits. Human commits grew longer between the pre-LLM and Agent eras (RQ1), and detection against Agent-era Human commits is harder than against LLM-era Human commits (RQ2). If this trend reduces the message-length contrast, post-hoc detection may become harder, so projects that rely on attribution for licensing, security review, or contribution credit need it recorded at commit time.
5.3 Implications for Coding Agent Builders
Optional attribution is hard to recover once it is removed. Agent signatures are tool settings that users can change or disable, and the detectors we evaluated do not close the resulting gap from commit content. Agent tools that aim to keep contributions traceable should record attribution in a
Horikawa, et al.
form that survives edits and squash-merges, such as signed commit metadata, rather than in an optional message trailer.
Message verbosity is a visible and changeable fingerprint. The repository-level median Claude Code commit message has 73 words, compared with 10 for Agent-era Human commits (RQ1), and message length drives most detection. Builders should be aware that their default message style identifies their tool today, and that changes to it can make earlier detectors obsolete.
6 Threats to Validity
6.1 Construct Validity
Agent labels identify recognized accounts or authorship signatures, while Human denotes their absence after bot filtering. Neither establishes exclusive authorship, because undisclosed AI use and squashed Human–Agent contributions can cross these boundaries. The direction of resulting performance bias is unknown. Features also reflect tasks and repository conventions, so differences characterize the labeled groups rather than authorship alone. Detecting commits whose signatures were masked is not the same as detecting undisclosed agent use. Historical Human commits may also include AI-assisted changes. The LLM judges may have seen some public commits during pretraining, which could inflate their scores, although they did not exceed the trained detectors.
6.2 Internal Validity
Comparisons are observational, for example, eras differ in contributors and practices, size matching changes the test population, and training histories change volume, recency, and agent composition together. Equal training counts do not equalize tasks or repositories. Separately tuned models also differ in preprocessing, training populations, and thresholds. Performance depends on these choices, including correlation reduction. Feature ablations and SHAP values describe predictions, not causal effects. Additional metrics, detectors, historical comparisons, count controls, paired-test families, and review-budget analyses were specified after initial results and were not preregistered. Bootstrap intervals hold the fitted models fixed, so they exclude the uncertainty of retraining and tuning. Repeated samples that share test commits are not independent replications. Intervals are pointwise, and intervals spanning zero do not establish equivalence. Signed-rank tests and false-discovery correction also rely on symmetry and dependence assumptions.
6.3 External Validity
Selection from AIDev favors mature, active public repositories and does not represent private or recently created projects. Collecting from the recorded default-branch head misses commits that were earlier removed from its history, and retrieval failures and incomplete patches can further affect which commits enter each evaluation. Devin and Google Jules have few labeled commits, limiting the stability of their estimates. Only Claude Code and Copilot have enough commits in every month for the temporal analysis. Transfer conclusions therefore concern the evaluated repositories, agents, periods, and label definitions.
7 Conclusion
Empirical studies of AI coding agents identify agent commits through signatures that developers can remove, and it has been unclear whether agent commits can be recognized without them. We studied 7,837,946 commits from 1,226 repositories to answer this question at the commit level.
Agent commits differ from Agent-era Human commits mainly in the length of their messages, and Human commits themselves grew longer across eras (RQ1). After signatures are masked, detectors rank Agent commits above Human commits with an AUC of up to 0.859, but most of this signal comes from message verbosity and change size, and even the best detector reaches a precision of only 0.332 at the observed Agent share (RQ2). Without fine-tuning, gpt-6-sol reaches AUCs similar to XGBoost and TF-IDF on the shared sample. Detection transfers poorly to agents absent from training, with the vocabulary signal falling to an AUC of 0.524 (RQ3), and it is unstable over time, partly because the form in which agent commits reach the default branch changes (RQ4).
These results show that signature-free detection can prioritize commits for review but cannot replace recorded attribution. Studies that rely on signature-based labels should treat them as a lower bound on agent activity, report precision at the observed prevalence, and check that masking also removes merge-workflow artifacts. In future work, we plan to validate the Human labels by manually inspecting high-scoring Human commits, to evaluate detectors that learn stronger representations of code changes, and to study how agent workflows shape the commits that reach the default branch.
Data Availability
Our replication package [1] contains the scripts we used to collect the data and run every analysis. It includes the identifiers, labels, and 39 features of all 7,837,946 commits, with and without masking, along with the detectors' out-of-fold predictions and the LLM prompts and raw responses. A single script regenerates the result tables and figures from these files.
References
[1] Anonymous. 2026. Replication Package for “Agent or Human? An Empirical Study of Detecting AI Coding Agent Commits without Authorship Signatures”. https://anonymous.4open.science/r/agent-or-human-commits-7093 Created: September 30th, 2026.
[2] Anthropic. 2026. Claude Code Overview. https://code.claude.com/docs/en/overview Accessed: September 28th, 2026.
[3] Anthropic. 2026. Claude Code Settings Reference. https://code.claude.com/docs/en/settings-reference Accessed: September 30th, 2026.
[4] Yoav Benjamini and Yosef Hochberg. 1995. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society: Series B (Methodological) 57, 1 (1995), 289–300. doi:10.1111/j.2517-6161.1995.tb02031.x
[5] Aylin Caliskan-Islam, Richard Harang, Andrew Liu, Arvind Narayanan, Clare Voss, Fabian Yamaguchi, and Rachel Greenstadt. 2015. De-anonymizing Programmers via Code Stylometry. In Proceedings of the 24th USENIX Security Symposium (USENIX Security'15). 255–270.
[6] Tianqi Chen and Carlos Guestrin. 2016. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD'16). 785–794. doi:10.1145/2939672.2939785
[7] Conventional Commits. 2019. Conventional Commits 1.0.0. https://www.conventionalcommits.org/en/v1.0.0/
[8] Cursor. 2026. Cursor Help: Git. https://cursor.com/help/integrations/git Accessed: September 30th, 2026.
[9] Jesse Davis and Mark Goadrich. 2006. The relationship between Precision-Recall and ROC curves. In Proceedings of the 23rd International Conference on Machine Learning (ICML'06). 233–240. doi:10.1145/1143844.1143874
[10] Tapajit Dey, Sara Mousavi, Eduardo Ponce, Tanner Fry, Bogdan Vasilescu, Anna Filippova, and Audris Mockus. 2020. Detecting and Characterizing Bots that Commit Code. In Proceedings of the 17th International Conference on Mining Software Repositories (MSR'20). 209–219. doi:10.1145/3379597.3387478
[11] B. Efron. 1979. Bootstrap Methods: Another Look at the Jackknife. The Annals of Statistics 7, 1 (1979), 1–26. doi:10.1214/aos/1176344552
[12] Zhangyin Feng, Daya Guo, Duyu Tang, Nan Duan, Xiaocheng Feng, Ming Gong, Linjun Shou, Bing Qin, Ting Liu, Daxin Jiang, and Ming Zhou. 2020. CodeBERT: A Pre-Trained Model for Programming and Natural Languages. In Findings of the Association for Computational Linguistics: EMNLP 2020. 1536–1547. doi:10.18653/v1/2020.findings-emnlp.139
[13] C. A. Field and A. H. Welsh. 2007. Bootstrapping Clustered Data. Journal of the Royal Statistical Society Series B: Statistical Methodology 69, 3 (2007), 369–390. doi:10.1111/j.1467-9868.2007.00593.x
[14] Nat Friedman. 2021. Introducing GitHub Copilot: Your AI Pair Programmer. https://github.blog/news-insights/product-news/introducing-github-copilot-ai-pair-programmer/ Accessed: September 29th, 2026.
[15] João Gama, Indrundefined Zliobaitundefined, Albert Bifet, Mykola Pechenizkiy, and Abdelhamid Bouchachia. 2014. A survey on concept drift adaptation. Comput. Surveys 46, 4 (2014), 1–37. doi:10.1145/2523813
Horikawa, et al.
[16] Taher A. Ghaleb. 2026. AgenTag: Attribution of AI Coding Agents from Behavioral Fingerprints. arXiv preprint arXiv:2608.00966 (2026). doi:10.48550/arXiv.2608.00966
[17] Taher A. Ghaleb. 2026. Fingerprinting AI Coding Agents on GitHub. In Proceedings of the 23rd International Conference on Mining Software Repositories (MSR'26). 822–826. doi:10.1145/3793302.3793582
[18] GitHub. 2025. GitHub Copilot Coding Agent in Public Preview. https://github.blog/changelog/2025-05-19-github-copilot-coding-agent-in-public-preview/ Accessed: September 29th, 2026.
[19] GitHub. 2026. About GitHub Copilot Cloud Agent. https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent Accessed: September 28th, 2026.
[20] GitHub. 2026. REST API Endpoints for Commits. https://docs.github.com/en/rest/commits/commits Accessed: September 29th, 2026.
[21] Google. 2025. Build with Jules, Your Asynchronous Coding Agent. https://blog.google/technology/google-labs/jules/Accessed: September 29th, 2026.
[22] Sabrina Haque, Sarvesh Ingale, and Christoph Csallner. 2026. An Empirical Study of Tests in Agentic Pull Requests. In Proceedings of the 23rd International Conference on Mining Software Repositories (MSR'26). 929–933. doi:10.1145/3793302.3793604
[23] Ahmed E. Hassan, Hao Li, Dayi Lin, Bram Adams, Tse-Hsun Chen, Yutaro Kashiwa, and Dong Qiu. 2025. Agentic Software Engineering: Foundational Pillars and a Research Roadmap. arXiv preprint arXiv:2509.06216 (2025). doi:10.48550/arXiv.2509.06216
[24] Jirayus Jiarpakdee, Chakkrit Tantithamthavorn, and Christoph Treude. 2018. AutoSpearman: Automatically Mitigating Correlated Software Metrics for Interpreting Defect Models. In Proceedings of the IEEE International Conference on Software Maintenance and Evolution (ICSME'18). 92–103. doi:10.1109/icsme.2018.00018
[25] Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. 2017. LightGBM: A Highly Efficient Gradient Boosting Decision Tree. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NeurIPS'17). 3149–3157.
[26] Dave S. Kerby. 2014. The Simple Difference Formula: An Approach to Teaching Nonparametric Correlation. Comprehensive Psychology 3 (2014), 11.IT.3.1. doi:10.2466/11.IT.3.1
[27] Syrine Khelifi, Ali Ouni, and Maha Khemaja. 2026. Behind Agentic Pull Requests: An Empirical Study on Developer Interventions in AI Agent-Authored Pull Requests. In Proceedings of the 23rd International Conference on Mining Software Repositories (MSR'26). 842–846. doi:10.1145/3793302.3793586
[28] Hao Li, Haoxiang Zhang, and Ahmed E. Hassan. 2025. The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineering. arXiv preprint arXiv:2507.15003 (2025). doi:10.48550/arXiv.2507.15003
[29] Hao Li, Haoxiang Zhang, and Ahmed E. Hassan. 2026. AIDev: Studying AI Coding Agents on GitHub. arXiv preprint arXiv:2602.09185 (2026). doi:10.48550/arXiv.2602.09185
[30] Jeffrey D. Long, Du Feng, and Norman Cliff. 2003. Ordinal Analysis of Behavioral Data. In Handbook of Psychology. John Wiley & Sons, Ltd, 635–661. doi:10.1002/0471264385.wei0225
[31] Scott M. Lundberg and Su-In Lee. 2017. A Unified Approach to Interpreting Model Predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NeurIPS'17). 4768–4777.
[32] Shane McIntosh and Yasutaka Kamei. 2018. Are Fix-Inducing Changes a Moving Target? A Longitudinal Case Study of Just-In-Time Defect Prediction. IEEE Transactions on Software Engineering 44, 5 (2018), 412–428. doi:10.1109/tse.2017.2693980
[33] Microsoft. 2026. Update on “Co-authored-by: Copilot” in Commit Messages. https://github.com/microsoft/vscode/issues/314311 Accessed: September 30th, 2026.
[34] Phuong T. Nguyen, Juri Di Rocco, Claudio Di Sipio, Riccardo Rubei, Davide Di Ruscio, and Massimiliano Di Penta. 2024. GPTSniffer: A CodeBERT-based classifier to detect source code written by ChatGPT. Journal of Systems and Software 214 (2024), 112059. doi:10.1016/j.jss.2024.112059
[35] OpenAI. 2026. GPT-6 Luna. https://developers.openai.com/api/docs/models/gpt-6-luna Accessed: September 30th, 2026.
[36] OpenAI. 2026. GPT-6 Sol. https://developers.openai.com/api/docs/models/gpt-6-sol Accessed: September 30th, 2026.
[37] Giovanni Pinna, Jingzhi Gong, David Williams, and Federica Sarro. 2026. Comparing AI Coding Agents: A Task-Stratified Analysis of Pull Request Acceptance. In Proceedings of the 23rd International Conference on Mining Software Repositories (MSR'26). 792–796. doi:10.1145/3793302.3793576
[38] Liudmila Prokhorenkova, Gleb Gusev, Aleksandr Vorobev, Anna Veronika Dorogush, and Andrey Gulin. 2018. CatBoost: Unbiased Boosting with Categorical Features. In Proceedings of the 32nd International Conference on Neural Information Processing Systems (NeurIPS'18). 6639–6649.
[39] Romain Robbes, Théo Matricon, Thomas Degueule, Andre Hora, and Stefano Zacchiroli. 2026. Agentic Much? Adoption of Coding Agents on GitHub. ACM Transactions on Software Engineering and Methodology (TOSEM) (2026).
doi:10.1145/3822180
[40] Jeanine Romano, Jeffrey D Kromrey, Jesse Coraggio, Jeff Skowronek, and Linda Devine. 2006. Exploring methods for evaluating group differences on the NSSE and other surveys: Are the t-test and Cohen'sd indices the most appropriate choices. In Proceedings of the Annual Meeting of the Southern Association for Institutional Research (SAIR'06). 1–51.
[41] Takaya Saito and Marc Rehmsmeier. 2015. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE 10, 3 (2015), 1–21. doi:10.1371/journal.pone.0118432
[42] Gerard Salton and Christopher Buckley. 1988. Term-weighting approaches in automatic text retrieval. Information Processing & Management 24, 5 (1988), 513–523. doi:10.1016/0306-4573(88)90021-0
[43] Shota Sawada, Tatsuya Shirai, Yutaro Kashiwa, Ken'ichi Yamaguchi, Hiroshi Iwata, and Hajimu Iida. 2026. To What Extent Does Agent-generated Code Require Maintenance? An Empirical Study. CoRR abs/2605.06464 (2026). doi:10.48550/arXiv.2605.06464
[44] Yuling Shi, Hongyu Zhang, Chengcheng Wan, and Xiaodong Gu. 2025. Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmers. In Proceedings of the 47th IEEE/ACM International Conference on Software Engineering (ICSE'25). 1628–1639. doi:10.1109/icse55347.2025.00005
[45] Mohammed Latif Siddiq, Xinye Zhao, Vinicius Carvalho Lopes, Beatrice Casey, and Joanna C. S. Santos. 2026. Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHub. Information and Software Technology (2026), 108333. doi:10.1016/j.infsof.2026.108333
[46] Yingchen Tian, Yuxia Zhang, Klaas-Jan Stol, Lin Jiang, and Hui Liu. 2022. What makes a good commit message?. In Proceedings of the 44th IEEE/ACM International Conference on Software Engineering (ICSE'22). 2389–2401. doi:10.1145/3510003.3510205
[47] Miku Watanabe, Hao Li, Yutaro Kashiwa, Brittany Reid, Hajimu Iida, and Ahmed E. Hassan. 2026. On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub. ACM transactions on software engineering and methodology (TOSEM) 35, 10 (2026). doi:10.1145/3798166
[48] Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. 2009. Feature hashing for large scale multitask learning. In Proceedings of the 26th Annual International Conference on Machine Learning (ICML'09). 1113–1120. doi:10.1145/1553374.1553516
[49] Frank Wilcoxon. 1945. Individual Comparisons by Ranking Methods. Biometrics Bulletin 1, 6 (1945), 80–83. doi:10.2307/3001968
[50] John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. In Proceedings of the 38th International Conference on Neural Information Processing Systems (NeurIPS'24). 50528–50652. doi:10.52202/079017-1601
[51] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. In Proceedings of the 37th International Conference on Neural Information Processing Systems (NeurIPS'23). 46595–46623. doi:10.52202/075280-2020