arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17581cs.SEcs.AI
收藏

AI代码代理如何修改代码:对GitHub拉取请求的大型研究

How AI Coding Agents Modify Code: A Large-Scale Study of GitHub Pull Requests

University of Nevada Las Vegas(内华达大学拉斯维加斯分校)

Daniel Ogenrwot, John Businge

AI总结:

研究通过分析GitHub拉取请求中的代码修改,探讨AI代理与人类贡献在提交数量、文件修改和描述一致性上的差异。

摘要:

AI coding agents 正在以自主贡献者身份生成并提交拉取请求 (PRs)。然而,我们缺乏关于这些代理生成的 PRs 如何与人类贡献不同的实证证据,特别是在如何修改代码和描述更改方面。通过MSR 2026 Mining Challenge版本的AIDev数据集,我们分析了24,014个合并的代理PR(440,295个提交)和5,081个合并的人类PR(23,242个提交)。我们检查了添加、删除、提交和触及的文件,并通过词汇和语义相似性评估PR描述与其差异的一致性。代理PR在提交数量(Cliff's δ=0.5429)上与人类PR有显著差异,并在触及的文件和删除的行数上表现出中等差异。它们在所有指标上表现出略高的描述到差异相似性。这些发现为大规模实证地描述了AI代码代理如何贡献于开源开发提供了依据。

英文摘要:

AI coding agents are increasingly acting as autonomous contributors by generating and submitting pull requests (PRs). However, we lack empirical evidence on how these agent-generated PRs differ from human contributions, particularly in how they modify code and describe their changes. Understanding these differences is essential for assessing their reliability and impact on development workflows. Using the MSR 2026 Mining Challenge version of the AIDev dataset, we analyze 24,014 merged Agentic PRs (440,295 commits) and 5,081 merged Human PRs (23,242 commits). We examine additions, deletions, commits, and files touched, and evaluate the consistency between PR descriptions and their diffs using lexical and semantic similarity. Agentic PRs differ substantially from Human PRs in commit count (Cliff's $δ= 0.5429$) and show moderate differences in files touched and deleted lines. They also exhibit slightly higher description-to-diff similarity across all measures. These findings provide a large-scale empirical characterization of how AI coding agents contribute to open source development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑