Skip to content
IAM Insights

Briefing · Paper · source · published · Boston Identity

Researchers found Claude Code's pull requests by a line the tool writes; maintainers merged 83.8% of them

Six researchers at Nara Institute of Science and Technology and Queen's University compared 567 pull requests that Anthropic's Claude Code opened on GitHub between February and April 2025 with 567 the same developers wrote themselves. Most of the agent's pull requests were merged, and most of the rejected ones were closed without comment. The agent's pull requests were found by a line of text the tool writes, and agent work that lacks that line is outside the study.

arXiv · Miku Watanabe, Yutaro Kashiwa, Brittany Reid, Hajimu Iida, Hao Li, Ahmed E. Hassan · September 18, 2025 · read

share
12,209 words. With Miku Watanabe, author, Nara Institute of Science and Technology; Hao Li, author, Queen's University; Yutaro Kashiwa, author, Nara Institute of Science and Technology; Brittany Reid, author, Nara Institute of Science and Technology; Hajimu Iida, author, Nara Institute of Science and Technology; Ahmed E. Hassan, author, Queen's University.
01

What's happening

Finding3
BI-FIND-2025-0302Lead finding

The authors found Claude Code pull requests by a line the tool writes into their descriptions, so agent work without that mark is outside their sample.

The authors found their agent pull requests by searching GitHub for the line "Generated with Claude Code", which the tool writes into the pull-request descriptions it generates. They paired each one with pull requests by the same author in the same repository that carried no AI-assisted mark (the paper's Fig. 3), so in this sample the agent's work and the developer's own came from one author. The authors concede that a developer can push agent-written code without asking the tool to make the commit, and they kept only pull requests carrying the tool's mark, so agent work without it is outside their sample. We read this as showing that, for the Claude Code pull requests in this sample, the agent's authorship was recorded as text the tool added, under a developer's identity.

medium confidencebest source: independent researchobserved Sep 2025EvidenceSetup: collecting Claude Code pull requestsThreats to validity and conclusion
flag a problem with BI-FIND-2025-0302
BI-FIND-2025-0303

Maintainers merged 475 of 567 Claude Code pull requests (83.8%), against 91.0% for the same developers' own, a gap the authors find statistically significant.

Maintainers merged 475 of the 567 Claude Code pull requests (83.8%), against 516 of 567 (91.0%) for pull requests the same developers wrote in the same repositories, a gap the authors find statistically significant. Median time to merge, 1.23 hours against 1.04, did not differ significantly. Most rejections came with no explanation: of the 91 rejected agent pull requests the authors classified, 58 were closed with no comment or discussion. The reasons they could code were led by project and process causes, such as the team solving the problem another way or a pull request made only to run automated checks. The paper does not report who merged each pull request; in its own example (Fig. 2) the repository owner merged a pull request filed under the owner's own account.

medium confidencebest source: independent researchobserved Sep 2025EvidenceSection 3Setup: collecting Claude Code pull requests
flag a problem with BI-FIND-2025-0303
BI-FIND-2025-0304

Just over half of merged agent pull requests (261 of 475) went in as a single commit, against 58.5% of the developers' own pull requests.

Just over half of the merged agent pull requests (261 of 475) went in as a single commit, against 58.5% of the developers' own, and where more commits followed, their number and size did not differ significantly from human pull requests. The authors count a single-commit pull request as merged without revision, a measure of commits that says nothing about how closely anyone read the code. Bug fixes were the most common kind of revision, ahead of documentation, refactoring and style: 102 of the 226 revised pull requests in the paper's revision table. Its text counts 214 revised pull requests, and Claude co-authored follow-up commits in 88 of them, so the agent often had a hand in its own revisions.

medium confidencebest source: independent researchobserved Sep 2025EvidenceSection 4
flag a problem with BI-FIND-2025-0304
02

Section by section

6

showing 6 of 6

[1]

Setup: collecting Claude Code pull requests

Miku Watanabe, Nara Institute of Science and Technology · Hao Li, Queen's University · Yutaro Kashiwa, Nara Institute of Science and Technology · Brittany Reid, Nara Institute of Science and Technology · Hajimu Iida, Nara Institute of Science and Technology · Ahmed E. Hassan, Queen's University

AI trust

The authors searched GitHub for pull requests (PRs) whose description contains "Generated with Claude Code", opened 24 February to 30 April 2025 in repositories with at least 10 stars: 797 PRs, 743 once open ones were dropped. Pairing each with human PRs by the same author in the same repository, over a window widened to a year, left 567 across 157 repositories. The sample rests on the tool's own tag. Fig. 2 shows one such PR under the repository owner's account.

technical artifactfrom published text + figures

[2]

RQ1: what agent PRs are for, compared with human PRs

Miku Watanabe, Nara Institute of Science and Technology · Hao Li, Queen's University · Yutaro Kashiwa, Nara Institute of Science and Technology · Brittany Reid, Nara Institute of Science and Technology · Hajimu Iida, Nara Institute of Science and Technology · Ahmed E. Hassan, Queen's University

The authors hand-labelled 213 merged agent PRs and 221 merged human PRs by purpose, with 75.8% agreement and several labels allowed per PR. Both kinds mostly fix bugs (31.0% and 30.8%) and add features (26.8% and 27.6%). Agent PRs more often refactor (24.9% against 14.9%), touch documentation (22.1% against 14.0%) and add tests (18.8% against 4.5%), and 85 of 213 serve several purposes, against 27 of 221. Only the gap in description length, a median of 355 words against 56, comes with a significance test.

technical artifactfrom published text + figures

[3]

RQ2: acceptance rate and why agent PRs are rejected

Miku Watanabe, Nara Institute of Science and Technology · Hao Li, Queen's University · Yutaro Kashiwa, Nara Institute of Science and Technology · Brittany Reid, Nara Institute of Science and Technology · Hajimu Iida, Nara Institute of Science and Technology · Ahmed E. Hassan, Queen's University

AI trust

Maintainers merged 475 of 567 agent PRs (83.8%) and 516 of 567 matched human PRs (91.0%), a significant gap by chi-squared test. Median time to merge was 1.23 hours against 1.04, not a significant difference. Of the 91 rejected agent PRs the authors classified, 58 were closed with no comment, so the coded reasons cover about a third: another solution (12.1%), PRs made only for automated checks (5.5%), and PRs too large (3.3%) or obsolete (3.3%). Annotators agreed 68.5% of the time (kappa 0.4865).

technical artifactfrom published text + figures

[4]

RQ3 and RQ4: how much and what kind of revision merged agent PRs need

Miku Watanabe, Nara Institute of Science and Technology · Hao Li, Queen's University · Yutaro Kashiwa, Nara Institute of Science and Technology · Brittany Reid, Nara Institute of Science and Technology · Hajimu Iida, Nara Institute of Science and Technology · Ahmed E. Hassan, Queen's University

Of the 475 merged agent PRs, 261 (54.9%) were a single commit, against 58.5% of human PRs, and where later commits followed, their count and size showed no significant difference. Two authors hand-labelled the revised agent PRs (64.9% agreement). Bug fixes led with 102 PRs, ahead of documentation, refactoring and style; the text counts 214 revised PRs and the table 226. Claude co-authored commits in 88 of the 214. The claim that agent code handles errors too optimistically rests on two examples.

technical artifactfrom published text + figures

[5]

Implications for researchers, developers and agent builders

Miku Watanabe, Nara Institute of Science and Technology · Hao Li, Queen's University · Yutaro Kashiwa, Nara Institute of Science and Technology · Brittany Reid, Nara Institute of Science and Technology · Hajimu Iida, Nara Institute of Science and Technology · Ahmed E. Hassan, Queen's University

AI trust

The authors turn their results into advice. Researchers should build benchmarks around PRs and keep datasets with full traces; developers should keep PRs small and maintain a guideline file such as CLAUDE.md; agent builders should attach a "confidence card" to each PR (plan, assumptions, alternatives, edge cases), rebase automatically, and connect linters through Model Context Protocol (MCP) servers. None of this is tested, and some numbers here disagree with earlier sections.

opinionfrom published text

[6]

Threats to validity and conclusion

Miku Watanabe, Nara Institute of Science and Technology · Hao Li, Queen's University · Yutaro Kashiwa, Nara Institute of Science and Technology · Brittany Reid, Nara Institute of Science and Technology · Hajimu Iida, Nara Institute of Science and Technology · Ahmed E. Hassan, Queen's University

AI trust

The authors grant that developers may edit agent code before committing it, or push it without the tool's own commit; they handle this by counting only PRs tagged "Generated with Claude Code". They do not separate the effects of agentic features from those of MCP, and they say 567 PRs from a tool released in February 2025 may not generalise to other tools, while they "believe" the findings may point to broader trends. They call the paper the first empirical study of agentic coding tools in open-source projects.

technical artifactfrom published text

Terms used

CLAUDE.md
A project file that Claude Code reads for formatting rules, design principles and architectural constraints before it works on a repository.
Model Context Protocol
Model Context Protocol: an open standard, originated by Anthropic, for connecting AI assistants to tools and data.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity