AI驱动的编码助手的快速普及正在改变软件开发实践,但对其在不同任务类型和时间上的系统比较仍有限。本文通过分析AIDev数据集中的7156个拉取请求,比较了五个流行的代理(OpenAI Codex、GitHub Copilot、Devin、Cursor和Claude Code)。时间趋势分析揭示了异质性进化模式:Devin在32周内接受率持续上升(+0.77% per week),而其他代理基本稳定。分析表明,拉取请求任务类型是影响接受率的主要因素:文档任务接受率为82.1%,而新功能任务为66.1%,差距超过大多数任务的典型代理差异。OpenAI Codex在所有九种任务类别中均表现出高接受率(59.6%-88.6%),分层卡方检验证实其在某些任务类别中显著优于其他代理。然而,没有单一代理在所有任务类型中表现最佳:Claude Code在文档任务(92.3%)和功能任务(72.6%)中领先,而Cursor在修复任务(80.4%)中表现突出。
英文摘要:
The rapid adoption of AI-powered coding assistants is transforming software development practices, yet systematic comparisons of their effectiveness across different task types and over time remain limited. This paper presents an empirical study comparing five popular agents (OpenAI Codex, GitHub Copilot, Devin, Cursor, and Claude Code), analyzing 7,156 pull requests (PRs) from the AIDev dataset. Temporal trend analysis reveals heterogeneous evolution patterns: Devin exhibits the only consistent positive trend in acceptance rate (+0.77% per week over 32 weeks), whereas other agents remain largely stable. Our analysis suggests that the PR task type is a dominant factor influencing acceptance rates: documentation tasks achieve 82.1% acceptance compared to 66.1% for new features - a 16 percentage point gap that exceeds typical inter-agent variance for most tasks. OpenAI Codex achieves consistently high acceptance rates across all nine task categories (59.6%-88.6%), with stratified Chi-square tests confirming statistically significant advantages over other agents in several task categories. However, no single agent performs best across all task types: Claude Code leads in documentation (92.3%) and features (72.6%), while Cursor excels in fix tasks (80.4%).
Replication Can Improve Prior Results: A GitHub Study of Pull Request Acceptance
众包和数据采掘可以用来有效地减少与部分复制和增强定性研究相关的工作。例如,在一项初步研究中,其他研究人员通过对20个拉取请求进行广泛的定性分析,探讨了影响GitHub拉取请求命运的因素。在他们的研究结果的指导下,我们将他们的一些定性见解映射到定量问题上。为了确定他们的研究结果的普遍性,我们收集了更多的数据(来自142个GitHub项目的170个额外的pull请求)。使用众包,这些数据被主观定性的人类意见所增强,这些意见是关于拉取请求如何扩展原始问题的。然后将人群的回答与定量特征结合起来,并使用数据采掘来构建一个预测器,以预测代码是否会被合并。该预测因子比从主要研究的定性因素(F1=90 vs 68\%)建立的预测因子更准确,说明了混合方法方法和复制对改善先前结果的价值。为了测试这种方法的通用性,未来工作的下一步是进行其他研究,扩展与众包和数据采掘的定性研究。
Merged, Not Measured: An Empirical Study of Performance Issues Fixed by Coding Agents
University of Arizona(亚利桑那大学);Wuhan University(武汉大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);California State University, Long Beach(加州州立大学长滩分校);Rochester Institute of Technology(罗切斯特理工学院)