一个编码智能体能否仅凭规范构建出生产级代码库?NL2Repo-Pro 在 Python、Go、Rust、Java 和 JavaScript 的 150 个真实代码库上对此进行了测试,每个代码库的中位数为 7.4 万行代码。
任务。每个任务通过一份概述文档来指定一个代码库,该文档将其功能按依赖层级排列,并为每个功能提供一份规范(中位数为 9 个层级中的 51 个功能)。智能体从零开始构建该代码库,无法访问网络,也看不到测试用例。
评分。原始代码库的测试按功能逐一评估交付成果。当所有直接调用其代码的测试均通过时,该功能即被视为接受;主要指标为功能接受率(FAR),即被接受的功能所占的比例。
结果。
在 Claude Code 中,Claude Opus 5.5 以 61.7 的 FAR 领先,其次是 Codex 中的 GPT-6.1 Sol,得分为 47.1,以及 Claude Code 中的 DeepSeek V4.1 Flash 和 Grok 4.7,得分分别为 37.7 和 22.5。
在 600 次运行中,仅有 7 次实现了所有功能的完全接受,且全部由 Claude Opus 5.5 完成。
在来自 2026 年创建的代码库的 44 个代码库上,这一排名依然成立,其中没有任何系统编写出哪怕 1% 的隐藏测试名称。
FAR 区分了那些测试通过率看起来相似的模型。在顶部两个系统均通过至少 95% 测试的 32 个任务中,它们的通过率相差 1.7 个百分点,而 FAR 相差 16.2。
任务、原始测试和评分脚本:https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro
Can a coding agent build a production library from its specification alone? NL2Repo-Pro tests this on 150 real libraries in Python, Go, Rust, Java and JavaScript, with a median of 74K lines of code each.
Task. Each task specifies a library through an overview document, which arranges its features in dependency layers, and one specification per feature (a median of 51 features in 9 layers). The agent builds the library from scratch, without network access and without seeing the tests.
Scoring. The original repository's tests grade the delivery feature by feature. A feature is accepted when every test that directly calls its code passes, and the main score, the Feature Acceptance Rate (FAR), is the share of features accepted.
Results.
Claude Opus 5.5 in Claude Code leads with a FAR of 61.7, followed by GPT-6.1 Sol in Codex at 47.1, and DeepSeek V4.1 Flash and Grok 4.7 in Claude Code at 37.7 and 22.5.
Only 7 of the 600 runs get every feature accepted, all of them by Claude Opus 5.5.
The ranking holds on the 44 libraries from repositories created in 2026, where no system writes even 1% of the hidden test names.
FAR separates systems that test pass rates make look alike. On the 32 tasks where the top two systems both pass at least 95% of the tests, their pass rates differ by 1.7 points and their FAR by 16.2.
Tasks, original tests and grading scripts: https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro
首次收录 · 2026-12-02 · 10.95 分