评测编码智能体构建完整代码库的长期能力,发现现有模型仍难胜任。
NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents
- 用自然语言需求生成完整可安装的Python库,全程自主规划与执行。
- 最强模型平均通过率不足40%,多数无法完整完成任务。
- 揭示了长期任务中常见的失败模式,适合评估下一代编程智能体。
近期编码智能体进展迅速,但现有基准未能严格评估其构建完整软件系统所需的长期能力。多数先前评估聚焦于局部代码生成、模板补全或短期修复,未检验智能体在真实代码库构建中持续推理、规划与执行的能力。为此,我们提出NL2Repo Bench,一个专为评估编码智能体长期仓库生成能力而设计的基准。给定单一自然语言需求文档和空工作区,智能体需自主设计架构、管理依赖、实现多模块逻辑,并生成可安装的Python库。对主流开源与闭源模型的实验表明,长期仓库生成问题仍未解决:即使最强模型平均测试通过率也低于40%,极少能正确完成整个仓库。详细分析揭示了根本性失败模式,包括过早终止、全局一致性丧失、脆弱的跨文件依赖及数百步交互中的规划不足。NL2Repo Bench建立了严谨可验证的测试平台,以衡量持续智能体能力,并凸显长期推理是下一代自主编程智能体的核心瓶颈。
原文摘要 · Abstract (English)
Recent advances in coding agents suggest rapid progress toward autonomous software development, yet existing benchmarks fail to rigorously evaluate the long-horizon capabilities required to build complete software systems. Most prior evaluations focus on localized code generation, scaffolded completion, or short-term repair tasks, leaving open the question of whether agents can sustain coherent reasoning, planning, and execution over the extended horizons demanded by real-world repository construction. To address this gap, we present NL2Repo Bench, a benchmark explicitly designed to evaluate the long-horizon repository generation ability of coding agents. Given only a single natural-language requirements document and an empty workspace, agents must autonomously design the architecture, manage dependencies, implement multi-module logic, and produce a fully installable Python library. Our experiments across state-of-the-art open- and closed-source models reveal that long-horizon repository generation remains largely unsolved: even the strongest agents achieve below 40% average test pass rates and rarely complete an entire repository correctly. Detailed analysis uncovers fundamental long-horizon failure modes, including premature termination, loss of global coherence, fragile cross-file dependencies, and inadequate planning over hundreds of interaction steps. NL2Repo Bench establishes a rigorous, verifiable testbed for measuring sustained agentic competence and highlights long-horizon reasoning as a central bottleneck for the next generation of autonomous coding agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。