File size: 9,045 Bytes
bf4b519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1d85cc3
 
 
 
 
1096055
1d85cc3
 
 
bf4b519
 
1d85cc3
8e871b0
b20804a
1096055
1d85cc3
 
 
8e871b0
bf4b519
 
 
 
 
 
 
 
 
 
 
 
 
 
1d85cc3
bf4b519
1d85cc3
bf4b519
 
 
 
 
 
 
1d85cc3
 
bf4b519
 
 
 
 
 
 
 
 
 
 
8e871b0
bf4b519
 
 
 
 
 
 
 
 
 
 
4fa76bd
 
 
bf4b519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4fa76bd
 
 
bf4b519
4fa76bd
 
bf4b519
 
 
 
 
 
 
 
4fa76bd
bf4b519
 
 
 
 
 
 
 
 
 
 
 
 
8e871b0
bf4b519
 
 
 
 
 
 
db53883
bf4b519
 
 
b20804a
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
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
---

<p align="right"><b>English</b> · <a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/blob/main/README.zh-CN.md">中文</a></p>

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/brand/tokenwave-dark.png">
    <img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/brand/tokenwave.png" alt="TokenWave" width="185" style="display: inline-block; margin: 0; border: 0; border-radius: 0; background: none;">
  </picture>
</p>

# NL2Repo-Pro

<p align="center">
  <picture style="display: inline; margin: 0;"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> <a href="https://tokenwave-ai.github.io/NL2Repo-Pro/">Blog</a> ·
  <picture style="display: inline; margin: 0;"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> <a href="https://arxiv.org/abs/2611.38050">Paper</a> ·
  <a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture style="display: inline; margin: 0;"><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> Code</a> ·
  <a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/blob/main/README.zh-CN.md">中文</a>
</p>

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](https://github.com/laude-institute/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.

```bash
# 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

```bash
# 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:

```bibtex
@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}
}
```