Manuscript Offprint

arXiv:2610.36229

Agent or Human? Detecting Commits by AI Coding Agents in the Absence of Authorship Signatures

Kosei Horikawa, Hao Li, Yutaro Kashiwa, Youssef Esseddiq Ouatiti, Mohammed Sayagh, Bram Adams, Hajimu Iida, Ahmed E. Hassan

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 studiedAnalysis unitAgent identification
Agent use and contribution characteristics [28, 39] Repositories, PRs, commitsAgent accounts, branch names, attribution messages, configuration files
PR acceptance and developer intervention [27, 37, 47]PRsAttribution messages in PR descriptions or AIDev labels
Test inclusion, timing, and security [22, 45]PRs, commitsAIDev labels
Code changes after merging [43]Files, commitsAIDev PRs and agent names in commit
Agent attribution and detection [16, 17]PRsAIDev 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.

References (32)