# NL2Repo-Pro: Coding Agents vs Production Libraries

> Source: <https://explainx.ai/blog/nl2repo-pro-agent-library-benchmark-far-december-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog>
> Published: 2026-12-02 00:00:00+00:00

**Recommendation:** Grade coding-agent output feature by feature, accepting a feature only when every test that calls its code passes, since whole-task pass rates hid a 16.2-point FAR gap between two agents.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

**NL2Repo-Pro asks whether a coding agent can build a production library from specifications alone—and scores the answer feature by feature, not with a single pass-fail bit.** [Tokenwave.AI](https://huggingface.co/papers/2611.38050?ref=explainx) published the benchmark in December 2026 on [Hugging Face papers](https://huggingface.co/papers/2611.38050?ref=explainx) (arXiv **2611.38050**) with dataset **[Tokenwave-AI/NL2Repo-Pro](https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro?ref=explainx)** and code on **[GitHub](https://github.com/TokenWave-AI/NL2Repo-Pro?ref=explainx)**. **Claude Opus 5.5** in **Claude Code** leads with **61.7% Feature Acceptance Rate (FAR)** while passing **87.2%** of tests—gaps that matter for anyone selling “autonomous repo creation.”

## Why whole-repo benchmarks needed an upgrade

[SWE-bench](https://explainx.ai/blog/mobile-agent-testers-claude-code-github-actions-parallel-qa-november-2026) popularized **issue fixing** in existing repos. [DeepSWE](https://explainx.ai/blog/qwen38-27b-swe-bench-pro-63-pi-harness-claimed-vs-verified-2026) and vendor tables pushed toward **larger changes**. NL2Repo-Pro targets the next claim: **synthesize an entire library** from natural-language requirements at **production scale** (median **~74K LOC**, **~51 features** in **nine dependency layers**).

Two failure modes motivated FAR:

1. **Dependent requirements** — features unlock other features; agents must plan order.
2. **Whole-task grades lie** — a high**test pass rate** can mask broken public APIs if tests are shallow.

FAR accepts a feature only when **every test that directly calls its code passes**. The headline number is the **share of features accepted**, not aggregate test greenness.

In practice, this means a vendor claim of "most tests pass" tells you little about whether each public feature works. When you read any agent benchmark, ask which unit is graded: the whole task, the test file, or the individual feature. FAR grades the feature, so it is the strictest of the three views.

## Task design

Each of **150** tasks mirrors a real library:

| Element | Detail | 
|---|---|
| Languages | Python, Go, Rust, Java, JavaScript | 
| Spec | Overview doc plus per-feature specs in dependency layers | 
| Agent constraints | No network; no peek at original tests | 
| Grading | Original repo tests, feature-by-feature | 
| Median scale | ~74K lines of code, 51 features, 9 layers | 

Agents must **implement from scratch** from the spec pack. That is harder than patching a failing test in a checkout—closer to how startups describe “build v1 from a PRD” workflows, and closer to risks we flagged in [Obvious Autobuild liability coverage](https://explainx.ai/blog/obvious-autobuild-1m-liability-ai-code-merges-december-2026).

## Results on four frontier stacks

From the [Hugging Face paper summary](https://huggingface.co/papers/2611.38050?ref=explainx):

| System | Harness | FAR | Notes | 
|---|---|---|---|
| **Claude Opus 5.5** | Claude Code | **61.7%** | 87.2% tests pass; **7/150** full libraries | 
| **GPT-6.1 Sol** | Codex | **47.1%** | Second place on FAR | 
| **DeepSeek V4.1 Flash** | Claude Code | **37.7%** |  | 
| **Grok 4.7** | Claude Code | **22.5%** |  | 

**600 runs** total across systems. Only **seven runs**—all Opus 5.5—accepted **every feature** on a library. Even the leader **rarely ships a complete library** under NL2Repo-Pro’s strict feature definition.

### Pass rate versus FAR

On **32 tasks** where Opus 5.5 and GPT-6.1 Sol both pass **≥95%** of tests:

- Test pass rates differ by **1.7** points.
- **FAR differs by 16.2** points.

That is the benchmark’s thesis in one table: **dashboard pass rate ≈ marketing**; **FAR ≈ product completeness**. Teams comparing [Naive N0.5 Flash](https://explainx.ai/blog/naive-n05-flash-naiveai-coding-speed-latent-space-test-2026) or [Qwen SWE numbers](https://explainx.ai/blog/qwen38-27b-swe-bench-pro-63-pi-harness-claimed-vs-verified-2026) should ask vendors for **feature-level** grades, not only top-line SWE or NL2Repo rows without FAR.

NL2Repo-Pro human eval style tests pass versus feature acceptance for coding agents

## Anti-leakage checks

Authors highlight **44 libraries created in 2026** where **no system writes even 1% of hidden test names** during generation. Ranking stability on that subset is their argument that NL2Repo-Pro is not a **memorization leaderboard**.

That matters as [frontier labs](https://explainx.ai/blog/openai-codex-cloud-browser-desktop-computer-use-december-2026) train on more public code: benchmarks need **held-out naming** and **feature isolation**, not only private forks.

## How builders should use NL2Repo-Pro

1. **Baseline your agent** — pick one language slice (e.g., Python-only tasks) before burning GPU on all 150.
2. **Report FAR and pass rate together** — if FAR lags pass rate by double digits, you have stub features.
3. **Wire CI to feature layers** — mirror NL2Repo’s dependency layers in your own epic graph; graders become acceptance tests per epic.
4. **Pair with security** — whole-repo agents need[Claude Security scans](https://explainx.ai/blog/claude-security-github-action-pull-request-scan-december-2026) and human review; FAR does not measure vulnerabilities.
5. **Train teams** — explain FAR to PMs so they do not interpret**87% tests green** as**87% features shippable** .

For structured team training on agent evaluation, see [Claude Code workshops](https://explainx.ai/workshops/claude-for-work) and our [coding agent harness guides](https://explainx.ai/blog/learnharness-open-source-agent-harness-for-learning-knowledge-graph-2026).

## What NL2Repo-Pro does not measure

- **Runtime performance** or**memory** of generated libraries.
- **Security** or**license compliance** of synthesized code.
- **Cost per feature** (token dollars to reach 61.7% FAR).
- **Human UX** of the library API—only automated tests tied to features.

Those gaps are where internal evals still win. [UK AISI cheating evaluations](https://explainx.ai/blog/uk-aisi-frontier-models-cheating-evaluations-december-2026) and [Gray Swan reward hacking](https://explainx.ai/blog/gray-swan-frontier-hazard-tracker-reward-hacking-december-2026) show why **one public leaderboard** never sufficed; NL2Repo-Pro is another **necessary** ruler, not the only one.

## Language and project-type coverage

The benchmark spans **five languages** and **fourteen project types** on real repositories—not synthetic micro-apps. That matters because agents behave differently when **idioms, packaging, and test harnesses** change. A team strong on **Python FastAPI libraries** may collapse on **Rust async crates** when feature wiring crosses modules with strict visibility rules.

Tokenwave’s project page (`tokenwave-ai.github.io/NL2Repo-Pro/`) is the place to watch for **per-language FAR tables** beyond the Hugging Face summary excerpt. When you vendor-shop coding agents, ask for **language-stratified FAR**, not a single leaderboard cell copied from marketing decks.

## Failure modes FAR catches

**Stub exports:** A feature’s public API exists but returns `NotImplementedError`; tests that mock internals may still pass while **direct-call tests** fail—FAR rejects the feature. **Partial error handling:** Happy-path tests green; edge-case callers in later layers break—FAR rejects because a downstream feature’s direct tests exercise those paths. **Dependency inversion mistakes:** Feature B ships before Feature A’s contracts stabilize; layered specs force order but agents often “skip ahead” when pass rate optimizers reward any green CI.

These patterns show up in internal pilots long before NL2Repo-Pro names them. If your org measures only **PR merge rate**, you are optimizing the wrong proxy.

## Running a fair internal replay

1. **Freeze harness version** — TokenWave GitHub tags matter; do not compare November and December graders mixed.
2. **Log dollars per accepted feature** — divide token spend by accepted feature count, not by job wall time.
3. **Blind human review on 5% of features** — academics are not your UX bar; a staff engineer should mark “would ship.”
4. **Track regression when models update** — Opus 5.5 at 61.7% FAR is not a guarantee the next point release holds.
5. **Publish negatives** — If FAR drops on your private fork, document why; NL2Repo’s value is honest failure visibility.

## Enterprise procurement questions

Ask vendors:

- Do you report **feature-level** acceptance on customer repos, or only issue-close rate?
- Can we run **your harness** on air-gapped mirrors of our SDK?
- What happens when **FAR** and**pass rate** diverge by more than ten points on our pilot?

If answers stay vague, pilot with [Claude Code workshop](https://explainx.ai/workshops/claude-for-work) skills inside your own sandbox before signing annual agent contracts.

## Connecting FAR to your existing CI

Most enterprises already run **unit tests** and **lint** on pull requests. FAR-like thinking means adding **feature tags** in test metadata—`@feature_checkout`, `@feature_auth`—so CI can report **acceptance per feature epic**, not only **aggregate green**. Agents then optimize against the same graph NL2Repo-Pro uses, reducing surprise when **87% pass rate** still ships a broken checkout path.

Start with one **internal library** that mirrors NL2Repo’s layered spec style: write an **overview.md** with dependency layers, split acceptance tests per layer, and measure **human vs agent FAR** monthly. That internal chart becomes the slide that survives vendor benchmark debates.

## Worked example: reading one FAR gap

Imagine **Feature 7 – authentication middleware** fails while **Features 1–6** pass. NL2Repo’s grader rejects Feature 7 and any feature whose tests **directly call** middleware hooks—even if **aggregate pass rate** stays above ninety percent because **unrelated unit tests** never touch auth. That is how **16.2 FAR points** can separate models with **nearly identical pass rates** on the Hugging Face summary table.

In production, the same failure looks like **“the agent finished the sprint”** with **login broken**. FAR naming makes the failure **auditable** instead of **discoverable in prod**.

## Paper metadata for citations

When you cite NL2Repo-Pro in internal docs, use **arXiv 2611.38050**, **Tokenwave-AI** org on Hugging Face, and the **dataset card** for versioning. Paper **upvotes** on Hugging Face are **community signal**, not **peer review**. For procurement, prefer **reproduced FAR** on a **private fork** over **screenshot leaderboard cells**.

## Historical context: from functions to libraries

**HumanEval** tested functions; **SWE-bench** tested patches; **NL2Repo-Pro** tests **synthetic product delivery**. Each step raised **dollar cost per eval run** and **honesty of metrics**. Teams that skip straight to **“we automate your entire codebase”** without **feature-layer grading** repeat the **pass-rate overstatement** cycle NL2Repo was built to puncture.

## Token economics (what the paper does not price)

NL2Repo-Pro does not standardize **token dollars per accepted feature**. Internally, multiply **agent spend per task** by **(1 / FAR)** for a rough **cost to ship a full library**. If Opus 5.5 accepts **61.7%** of features, the **tail 38.3%** often consumes disproportionate **retry tokens**—the hidden tax in **autonomous codegen** RFPs. Finance and engineering should co-own that math before **headcount reduction** plans cite **SWE-bench** alone. **Leadership reviews** should cite **FAR** alongside **velocity** in the same slide footer.
