NL2Repo-Pro / README.md
qiheli1998's picture
Link the paper on arXiv (2611.38050) and add the BibTeX entry, in both READMEs
b20804a verified
|
Raw History Blame Contribute Delete
9.05 kB
metadata
license: other
license_name: mixed
license_link: LICENSE
pretty_name: NL2Repo-Pro
viewer: false
size_categories:
  - n<1K
tags:
  - code
  - benchmark
  - agents
  - software-engineering
  - repository-generation

English · 中文

TokenWave

NL2Repo-Pro

Blog · Paper · Code · 中文

NL2Repo-Pro is a benchmark for coding agents: given a natural-language specification, build a whole library from scratch. Each of its 150 tasks comes from a real repository at a fixed commit. The agent gets an overview document and one specification per feature, ordered by dependency, and writes the implementation. The repository's own tests, held out from the agent, grade the result feature by feature.

Python Go Rust Java JavaScript Total
Tasks 70 20 20 20 20 150

Every task is a standard Harbor task directory and runs with harbor run.

Results

Mean reward, one answer per task, all 150 tasks.

Model Agent harness All Python Go Rust Java JavaScript
claude-opus-5-5 Claude Code 2.1.311, effort xhigh 0.617 0.589 0.576 0.592 0.610 0.786
gpt-6.1-sol Codex CLI 0.164.0, effort xhigh 0.471 0.396 0.497 0.499 0.432 0.717
deepseek-v4.1-flash Claude Code 2.1.311, effort xhigh 0.377 0.315 0.434 0.350 0.329 0.615
grok-4.7 Claude Code 2.1.311, effort xhigh 0.225 0.155 0.251 0.185 0.233 0.474

All runs used the task settings below, with web search and web fetch turned off. Every answer was reviewed for reward hacking.

Contents

README.md
README.zh-CN.md                      this card in Chinese
assets/                              the logo and icons of this card
LICENSE                              Apache-2.0, for the parts we wrote (see Licensing)
SHA256SUMS                           sha256 of every file below
tasks/<lang>/<instance_id>.tar.zst   the task directory (4.3 GB for all 150)
images/<lang>/<instance_id>.tar      the task's two Docker images (83 GB for all 150; the largest is 4.7 GB)

<lang> is python, go, rust, java or javascript; <instance_id> is <owner>__<repo>__<commit prefix>. A task directory holds:

<instance_id>/
├── task.toml              images, resources, limits, source repository and license
├── instruction.md         the overview document
├── environment/           empty (Harbor expects it; keep it empty)
├── image_build/           how the agent image was made; docs/ is what the agent sees at /docs
├── solution/              the reference solution (the original source)
└── tests/                 grading scripts, scoring tables and the original tests

Quick start

Requirements: Docker, Python 3.12 and Harbor 0.23.0 (pip install harbor==0.23.0), the version our runs used.

# 1. Download one task (name no files to get everything)
hf download Tokenwave-AI/NL2Repo-Pro SHA256SUMS tasks/python/<instance_id>.tar.zst images/python/<instance_id>.tar \
  --repo-type dataset --revision v1.0 --local-dir NL2Repo-Pro
cd NL2Repo-Pro
sha256sum -c SHA256SUMS --ignore-missing

# 2. Unpack the task and load its images
mkdir -p run && tar -I zstd -xf tasks/python/<instance_id>.tar.zst -C run
docker load -i images/python/<instance_id>.tar

# 3. Check the task: the reference solution scores 1.0, an empty answer 0
harbor run -p run/<instance_id> -a oracle -y -o jobs
harbor run -p run/<instance_id> -a nop -y -o jobs

The images are not in any registry: docker load gives them the local names task.toml uses, and docker pull on those names fails. Keep the names and task.toml as they are; a renamed image or an edited task.toml is a different task from the one scored here.

Running an agent

# Claude Code, as in our runs. M: the model (Opus 5.5: 'claude-opus-5-5[1m]'); W: its context window in tokens
harbor run -p run/<instance_id> -a claude-code -m "$M" \
  --ak version=2.1.311 --ak reasoning_effort=xhigh --ak disallowed_tools=WebSearch,WebFetch \
  --ae ANTHROPIC_API_KEY=<key> --ae ANTHROPIC_BASE_URL=https://<endpoint host> \
  --ae CLAUDE_CODE_MAX_CONTEXT_TOKENS=$W --ae CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 \
  --ae ANTHROPIC_DEFAULT_FABLE_MODEL="$M" --ae ANTHROPIC_SMALL_FAST_MODEL="$M" \
  --allow-agent-host <endpoint host> \
  --agent-setup-timeout-multiplier 10 -n 1 -y -o jobs

-p run runs every unpacked task and -n sets how many at a time. The score of a run is reward in jobs/<job>/<trial>/verifier/reward.json.

  • The agent has no network while answering; --allow-agent-host lets it reach its model endpoint and nothing else.
  • Some model gateways run tools such as Claude Code's WebSearch on the server, outside the container's network rule. Our runs turned off WebSearch and WebFetch; do the same for comparable results.
  • Claude Code assumes a 200K window for a model it does not know; CLAUDE_CODE_MAX_CONTEXT_TOKENS gives the real one (not needed with a [1m] model name). The wait ceiling lets background subagents finish before the run ends. Harbor points the opus, sonnet, haiku and subagent aliases at -m when a base URL is set; the two --ae model variables cover the rest. For a model other than Claude, add --ae CLAUDE_CODE_NO_MODEL_FALLBACK=1 so no Claude model stands in for it.

Environment

Answering (agent) Grading (verifier)
CPU / memory / disk 4 cores / 32 GB / 64 GB 4 cores / 32 GB / 64 GB
Time limit 10 hours 6.5 hours (tests stop at 6 hours; tests not reached count as failed)
Network none (model endpoint only) public

A few tasks come close to the 32 GB limit when grading.

Scoring

The documents of each task split the library into features. A test counts for every feature whose code it calls directly, and a feature is accepted only when all of its graded tests pass. The reward is the share of features accepted, from 0 to 1.

Licensing

Our parts are under Apache-2.0 (LICENSE); each task's source code and text keep the source repository's license, named in task.toml. Three tasks restrict commercial use (mmr, Draftpaper_loop, drusniel-gods-end), and six come from repositories without a license (cg, Zetta-Embodiment, scansci-harness, Chunklate, benson.github.io, lire-compter-samuser), included for evaluation only and removed on request.

Removal requests

If you are an author of a source repository and want a task changed or removed, write to heli.qi@akane.waseda.jp or open a discussion on this dataset.

Citation

If you use NL2Repo-Pro, please cite the paper:

@article{qi2026nl2repopro,
  title   = {NL2Repo-Pro: Benchmarking Multilingual Production-Scale Library Development Feature by Feature},
  author  = {Qi, Heli and Liu, Minghao and Liu, Jiarui and Ding, Jingzhe and Zeng, Qingcheng and Zhang, Weijia and Xiao, Yunze and Wu, Yuchen and Zhao, Bing and Huang, Jen-Tse and Huang, Stephen and Jin, Zhijing and Cheung, Eli and Diab, Mona and Xuan, Weihao},
  journal = {arXiv preprint arXiv:2611.38050},
  year    = {2026}
}