WideSWE:编码智能体能否跨仓库协调变更?
研究论文 · 2026/09/29
编码智能体评估已从解决单个问题发展到执行长周期开发,但任务完成情况仍主要在单一代码库内评估。在软件生态系统中,许多功能和缺陷修复需要跨多个代码库协同修改。我们提出 WideSWE,用于评估编码智能体在这类跨代码库任务上的表现。通过挖掘和审查 103 个软件生态系统中的变更,我们得到 120 个真实任务,在 60 个缺陷修复和 60 个功能之间保持平衡。提示词源自相关 issue 和 pull request。我们系统性地审查并调整隐藏测试,以支持多种正确实现,同时保留必需的行为和回归检查。在七种智能体配置中,完整任务成功率从 10.83% 到 42.50% 不等,其中 Codex CLI 与 GPT-5.6-sol 配对的配置成功率最高。轨迹显示,智能体失败的原因包括未能识别必要变更、识别出变更但未完成,或修改了所需代码库但未完全满足请求。为考察一次只处理一个代码库是否能缓解这些困难,我们在相同提示词下将其与联合执行进行比较。独立执行主要能恢复被遗漏的工作,在纠正此前尝试过但未成功的实现方面效果较差。联合执行可以利用相关代码库的信息来指导实现和验证。代码见 https://github.com/ZJU-ACES-ISE/WideSWE。
该工作将编码智能体评估从单一代码库扩展到跨代码库协同修改,提供了真实任务、隐藏测试和多种智能体配置下的实证结果,并分析了失败模式与执行策略的影响,对软件工程智能体研究具有参考价值。
Coding-agent evaluation has progressed from resolving individual issues to carrying out long-horizon development, yet task completion is still largely assessed within a single codebase. In software ecosystems, many features and bug fixes require coordinated changes across multiple repositories. We introduce WideSWE to evaluate coding agents on such cross-repository tasks. Mining and reviewing changes across 103 software ecosystems yields 120 real-world tasks, balanced between 60 bug fixes and 60 features. We derive prompts from related issues and pull requests. We systematically review and adapt hidden tests to support diverse correct implementations while preserving required behavior and regression checks. Across seven agent configurations, full task success ranges from 10.83% to 42.50%, with the configuration pairing Codex CLI with GPT-5.6-sol achieving the highest rate. Trajectories show agents failing to identify necessary changes, recognizing changes but leaving them unfinished, or modifying the required repositories without fully satisfying the request. To examine whether working on one repository at a time can alleviate these difficulties, we compare it with joint execution under identical prompts. Independent execution mainly recovers omitted work and is less effective at correcting previously attempted but unsuccessful implementations. Joint execution can use information from related repositories to guide implementation and verification. Code is available at https://github.com/ZJU-ACES-ISE/WideSWE.