NL2Repo-Pro: Benchmarking Multilingual Production-Scale Library Development Feature by Feature

Heli Qi, Minghao Liu, Jiarui Liu, Jingzhe Ding, Qingcheng Zeng, Weijia Zhang, Yunze Xiao, Yuchen Wu, Bing Zhao, Jen-Tse Huang, Stephen Huang, Zhijing Jin, Eli Cheung, Mona Diab, Weihao XuanarXiv 2026

TL;DR

AI coding agents have graduated from writing quick helper functions to fixing GitHub issues—so what happens when we ask them to build an entire 74,000-line production library from scratch? NL2Repo-Pro puts frontier agents to that exact test, grading their creations feature by feature rather than using blunt pass/fail metrics. The verdict: today’s top models can assemble a surprising majority of a complex library, yet almost never deliver a completely working product, revealing a fascinating gap between passing most unit tests and shipping reliable software.

What Problem Does This Paper Address?

Coding benchmarks and AI capabilities have been playing leapfrog for years. We started with single-function puzzles, moved to patching bugs in real repositories (like SWE-bench), and recently began asking agents to generate small codebases of a few thousand lines from scratch.

Scaling up to production-size libraries—tens of thousands of lines of interconnected logic—breaks existing benchmarks in two ways:

  1. Specification overload: You cannot cram the blueprint for a 75K-line library into a single prompt. Real software engineering separates high-level architecture from detailed, interdependent feature specs.
  2. Broken yardsticks: Standard metrics fail at this scale. A strict "whole-task verdict" (did every test pass?) marks almost every attempt a total zero. Conversely, a simple "test pass rate" flatters the agent: if one basic utility function has 1,000 tests and a core algorithm has 5, passing the easy tests makes a broken library look 99% finished.

Methods

To evaluate large-scale software construction fairly, the authors reorganize both the prompting and the grading around a natural unit of software: the feature.

Overview of a task in NL2Repo-Pro, from layered feature specifications to offline agent execution and feature-level grading.
  • Layered Specifications: Instead of one massive document, the agent gets an overview (instruction.md) that maps out the library's architecture in dependency layers (Layer 2 builds on Layer 1, and so on), alongside individual spec files for each feature containing requirements, binding code signatures, and concrete acceptance criteria.
  • Clean-Room Execution: Starting in an offline container with pinned dependencies, no internet access, and hidden tests, the main agent (assisted by subagents it spawns) has up to 10 hours to build and package the library from scratch.
  • Feature Acceptance Rate (FAR): When time is up, a separate verifier runs the original repository's hidden test suite. Using call-graph tracking, every test is attributed to the specific feature(s) whose code it calls directly. A feature is accepted only if 100% of its attributed tests pass. The main score, FAR, is simply the percentage of features accepted.
  • Hybrid Construction Pipeline: Tasks are built via a four-phase automated pipeline (using planning, specification, and judge agents alongside static analysis) checked by human software engineers at five strict review gates to ensure tasks are solvable and unambiguous.

Datasets

The paper introduces NL2Repo-Pro, a benchmark of 150 tasks derived from real, actively used open-source libraries.

  • Scale & Diversity: It spans 5 languages (Python, Go, Rust, Java, JavaScript) and 14 domains (from scientific computing to web networking). Original libraries have a median of 74,000 lines of code, 51 features across 9 dependency layers, and specifications totaling ~180K tokens per task.
  • Freshness: Unlike older benchmarks that mostly target Python repos under 10K lines, 145 of these tasks are pinned to 2026 commits, including 44 brand-new repositories created in 2026—providing a built-in defense against training-data memorization.

Key Insights and Ideas

  • Test pass rates are an illusion of completeness: Passing 87% of tests sounds like an A-minus, until you realize those failing 13% are scattered across more than a third of your library's features. On 32 tasks where the top two systems both passed $\ge 95\%$ of tests (differing by just 1.7 points), their actual working features (FAR) differed by a massive 16.2 points.
  • Different "management styles" emerge: Every agent was told to use subagents, yet they self-organized differently. Claude Opus 5.5 acted like an executive coordinator—writing a shared plan file, spawning a median of 25 subagents, and writing code itself in only 14% of runs. GPT-6.1 Sol worked in the trenches alongside 3 subagents, writing code itself 100% of the time.
  • Specs act as guidelines, not rigid schedules: Agents rarely read all docs upfront or finish Layer 1 before starting Layer 2 (overlapping in >80% of adjacent layers). Still, they respect gravity: features are built before their dependents 61%–70% of the time, well above random chance.
  • Memory fades on 2026 code, and the race tightens: On pre-2021 repos, Claude Opus 5.5 occasionally leaked hidden test names (in 20/59 tasks) and matched 50.4% of original formatted code lines. On 2026 repos, hidden test leakage dropped to zero across all models, and Claude’s lead over GPT-6.1 Sol shrank from 22.2 points down to 7.3.

Key Results

The authors evaluated four frontier agentic systems (models paired with harnesses like Claude Code or Codex CLI) across 600 total runs:

Feature Acceptance Rate (FAR) across all four evaluated frontier systems and five programming languages.
  • Claude Opus 5.5 led with 61.7% FAR (87.2% test pass rate), followed by GPT-6.1 Sol at 47.1% (81.8% tests), DeepSeek V4.1 Flash at 37.7% (73.5% tests), and Grok 4.7 at 22.5% (51.4% tests).
  • Complete libraries are rare: Out of 600 total runs, only 7 runs achieved 100% feature acceptance—all by Claude Opus 5.5.
  • Foundations hold up best: Across all models, feature acceptance drops steadily from the first dependency layer to the last (falling 13.2 points for Claude and 23.6 points for Grok).
  • Room for test-time scaling: Running GPT-6.1 Sol five times per task kept its average FAR steady (~48%), but 36.9% of features flipped between passing and failing across runs—pushing a best-of-five oracle score to 57.5%.

Limitations and Future Work

  • Model-harness coupling: Because models are evaluated inside specific harnesses (e.g., Codex CLI vs. Claude Code), scores reflect the combined system rather than the raw model in isolation.
  • Contamination vs. capability: Older repositories show clear signs of code recall, meaning static benchmarks quickly age; future benchmarks at this scale must continuously incorporate newly created repositories.
  • The "last mile" open challenge: Moving agents from building most of a production library to delivering every feature reliably—and exploiting the high variance across runs via test-time scaling—remains wide open for future research.

Summary updated

BibTeX
@misc{qi2026nl,
  author = {Heli Qi and Minghao Liu and Jiarui Liu and Jingzhe Ding and Qingcheng Zeng and Weijia Zhang and Yunze Xiao and Yuchen Wu and Bing Zhao and Jen-Tse Huang and Stephen Huang and Zhijing Jin and Eli Cheung and Mona Diab and Weihao Xuan},
  title = {{NL2Repo-Pro: Benchmarking Multilingual Production-Scale Library Development Feature by Feature}},
  year = {2026},
  eprint = {2611.38050},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38050},
}
Figure