AgentSWE:编码代理能构建你真正想要的代理吗?

·

研究论文 · 2026/10/13

随着软件生产逐渐由软件自身完成,编码智能体越来越多地被委托构建适应用户工作流的智能体。这种委托隐含一个假设:交付的智能体会忠实服务于其构建需求,而非仅仅表面如此。现有基准测试均未检验这一假设。我们提出AgentSWE,一个涵盖智能体开发生命周期三个阶段的智能体软件工程基准:从自然语言需求创建完整智能体、编辑生产级智能体代码库、以及面向可度量目标的优化。其25个任务均以委托而非考试的形式呈现:构建者针对少量示例进行迭代,而验收则在设计覆盖完整需求的留出案例上运行冻结的提交,根据需求衍生的评分标准在硬性通过/失败门槛下评分,或在优化任务中依据源基准自身的目标评分。评估多种模型和框架下的编码智能体后,我们发现没有一个能接近满足需求:构建者演示的内容与交付的内容之间的差距是常态,而非特例。伴随的失败轨迹实证分析识别出反复出现的失败模式,包括对可见案例的过拟合、看似完整代码背后的空洞运行时、以及无依据的完成声明,每个信号都可帮助编码智能体学习构建所要求的智能体。

该研究首次系统评估编码智能体构建智能体的能力,揭示了演示与交付之间的普遍差距,并识别出关键失败模式,对智能体开发和评估具有重要指导意义。

As the production of software passes into the hands of software itself, coding agents are increasingly commissioned to build agents fitted to their users' own workflows. This delegation carries a quiet assumption, that the delivered agent will faithfully serve the requirement it was built for, rather than merely appear to. No existing benchmark tests that assumption. We introduce AgentSWE, a benchmark for agent software engineering spanning three stages of the agent development lifecycle: Creation of a complete agent from a natural-language requirement, Editing of production agent codebases, and Optimization toward a measurable target. Each of its 25 tasks is framed as a commission rather than an exam: the builder iterates against a handful of illustrative cases, while acceptance exercises the frozen submission on held-out cases designed to span the full requirement, grading behavior against requirement-derived rubrics under hard pass/fail gates or, for Optimization, against the source benchmark's own objective. Evaluating a range of coding agents across models and harnesses, we find that none comes close to delivering what a requirement asks for: the gap between what a builder demonstrates and what it delivers is the norm, not the corner case. An accompanying empirical analysis of the failure trajectories identifies recurring failure modes, among them overfitting to the visible cases, hollow runtimes behind code that looks complete, and unsupported claims of completion, each a signal by which coding agents can learn to build the agents they are asked for.

阅读原文

参与讨论