一句话:通过 3 万余个 PR 训练机器学习模型,发现 AI 代码合并结果取决于 PR 质量与仓库上下文,而非生成代理身份。
本文研究 AI 编码智能体的身份是否影响其提交 PR 的合并结果,还是代码内容与仓库上下文更关键。作者使用 AIDev 数据集(五个 AI 智能体提交的 31,284 个 PR),构建机器学习模型在提交时预测合并结果,达到 82% 准确率和 0.85 ROC-AUC。消融分析显示,PR 质量特征(大小、复杂度、内容类型) collectively 最重要,智能体身份预测价值可忽略;仓库上下文是最强单一信号,个人声誉特征则高度冗余。结果表明,AI 作者代码能否合并主要取决于技术价值与项目上下文,而非智能体来源;部署智能体时应优先提升 PR 质量和选择合适仓库。
As autonomous coding agents become active contributors in software engineering, a key question emerges: does it matter which agent produces the code, or only what the code contains? Using the AIDev dataset (31,284 PRs from five AI agents), we develop machine learning models to predict merge outcomes at submission time, achieving 82% accuracy (ROC-AUC: 0.85). Ablation analysis reveals that PR quality characteristics (size, complexity, and content type) are collectively the most important predictors, while agent identity has negligible predictive value. Repository context emerges as the strongest standalone signal, suggesting where a PR is submitted matters as much as what it contains. Although individual reputation features rank highly in importance, they prove largely redundant with each other. These findings suggest merge outcomes for agent-authored code depend on technical merit and project context rather than agent source, with practical implications: developers deploying agents should prioritize PR quality and repository selection over agent choice.