Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,38 +1,74 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
task_categories:
|
| 4 |
-
- text-generation
|
| 5 |
tags:
|
| 6 |
-
- code
|
| 7 |
-
- agents
|
| 8 |
-
- program-reproduction
|
| 9 |
---
|
| 10 |
|
| 11 |
-
#
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
| ---------------- | ----------------------------------------------- |
|
| 23 |
-
| `task.toml` | Harbor task metadata and runtime settings. |
|
| 24 |
-
| `instruction.md` | The task requirements and rules. |
|
| 25 |
-
| `environment/` | The agent environment and reference executable. |
|
| 26 |
-
| `tests/` | The verifier and test fixtures. |
|
| 27 |
-
| `solution/` | Harbor's solution entry point for validation. |
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
```bash
|
| 34 |
uv tool install 'harbor>=0.20.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
|
|
|
| 36 |
harbor run \
|
| 37 |
-d ProgramGym/programgym-1648 \
|
| 38 |
-a claude-code \
|
|
@@ -40,20 +76,37 @@ harbor run \
|
|
| 40 |
-n 4
|
| 41 |
```
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
@misc{yang2026programgym,
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
}
|
| 59 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
tags:
|
| 6 |
+
- code
|
| 7 |
+
- agents
|
| 8 |
+
- program-reproduction
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# π§© ProgramGym-1648
|
| 12 |
|
| 13 |
+
**A dataset of 1,648 tasks for long-horizon program reproduction agents.**
|
| 14 |
|
| 15 |
+
[](https://opensource.org/licenses/MIT)
|
| 16 |
+

|
| 17 |
+

|
| 18 |
+

|
| 19 |
|
| 20 |
+
π **[Paper](https://huggingface.co/papers/2610.13395)** Β· π **[Project Page](https://programgym.github.io/)** Β· π» **[GitHub](https://github.com/Acm1011/ProgramGym)**
|
| 21 |
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## π Overview
|
| 25 |
+
|
| 26 |
+
**ProgramGym-1648** is a collection of **1,648 Harbor tasks** designed to train an AI agent's ability to reproduce software programs from their observed behavior.
|
| 27 |
+
|
| 28 |
+
In each task, the agent is given a **reference executable** and accompanying **documentation**. The objective is to independently reconstruct the program's functionality by developing a new codebase that matches the reference program's behavior.
|
| 29 |
+
|
| 30 |
+
The agent must deliver:
|
| 31 |
+
|
| 32 |
+
- π **Source Code** β An original implementation of the target program.
|
| 33 |
+
- π§ **Build Script** β A `compile.sh` script that compiles the implementation.
|
| 34 |
+
|
| 35 |
+
> π« **Important:** Copying, wrapping, or decompiling the reference executable is strictly prohibited. Agents must reproduce the program's functionality through their own implementations.
|
| 36 |
+
|
| 37 |
+
## π Task Structure
|
| 38 |
+
|
| 39 |
+
Each task follows a standardized Harbor-compatible directory structure:
|
| 40 |
+
|
| 41 |
+
| Path | Description |
|
| 42 |
+
|---|---|
|
| 43 |
+
| π `task.toml` | Harbor task metadata and runtime configuration |
|
| 44 |
+
| π `instruction.md` | Task requirements, instructions, and constraints |
|
| 45 |
+
| π₯οΈ `environment/` | Agent execution environment and reference executable |
|
| 46 |
+
| π§ͺ `tests/` | Verification logic and test fixtures |
|
| 47 |
+
| β
`solution/` | Harbor solution entry point for validation |
|
| 48 |
+
|
| 49 |
+
## π Quick Start
|
| 50 |
+
|
| 51 |
+
ProgramGym-1648 can be evaluated directly using [Harbor](https://github.com/harbor-framework/harbor).
|
| 52 |
+
|
| 53 |
+
### 1. Prerequisites
|
| 54 |
|
| 55 |
+
Before running the benchmark, make sure you have:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
- π³ **Docker** installed and running.
|
| 58 |
+
- π A configured model provider with valid API credentials.
|
| 59 |
+
- π οΈ **Harbor β₯ 0.20.0**, supporting task schema 1.3 and phase-scoped network policies.
|
| 60 |
|
| 61 |
+
Install Harbor using `uv`:
|
| 62 |
|
| 63 |
```bash
|
| 64 |
uv tool install 'harbor>=0.20.0'
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
### 2. Run the Benchmark
|
| 68 |
+
|
| 69 |
+
Launch the full benchmark with the following command:
|
| 70 |
|
| 71 |
+
```bash
|
| 72 |
harbor run \
|
| 73 |
-d ProgramGym/programgym-1648 \
|
| 74 |
-a claude-code \
|
|
|
|
| 76 |
-n 4
|
| 77 |
```
|
| 78 |
|
| 79 |
+
**Configuration:**
|
| 80 |
|
| 81 |
+
| Argument | Description |
|
| 82 |
+
|---|---|
|
| 83 |
+
| `-d` | Dataset identifier |
|
| 84 |
+
| `-a` | Agent implementation (e.g., `claude-code`) |
|
| 85 |
+
| `-m` | Model provider and model identifier |
|
| 86 |
+
| `-n` | Number of concurrent trials (`4` in this example) |
|
| 87 |
|
| 88 |
+
Replace `your-provider/your-model` with your target model and configure the corresponding API credentials.
|
| 89 |
|
| 90 |
+
### 3. Results
|
| 91 |
+
|
| 92 |
+
π By default, Harbor writes execution logs and results to the `jobs/` directory.
|
| 93 |
+
|
| 94 |
+
## π Citation
|
| 95 |
+
|
| 96 |
+
If you find **ProgramGym** useful in your research, please consider citing our paper:
|
| 97 |
+
|
| 98 |
+
```bibtex
|
| 99 |
@misc{yang2026programgym,
|
| 100 |
+
title = {ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents},
|
| 101 |
+
author = {Chengyi Yang and Renxu Bao and Jue Hou and Zongpei Teng and Ziheng Wang and Yujie Lin and Chengsong Huang and Junnan Zhu and Delai Qiu and Yining Wang and Shengping Liu and Fei Long and Jinsong Su},
|
| 102 |
+
year = {2026},
|
| 103 |
+
eprint = {2610.13395},
|
| 104 |
+
archivePrefix = {arXiv},
|
| 105 |
+
primaryClass = {cs.SE},
|
| 106 |
+
url = {https://arxiv.org/abs/2610.13395}
|
| 107 |
}
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
## π License
|
| 111 |
+
|
| 112 |
+
This dataset is released under the **[MIT License](https://opensource.org/licenses/MIT)**.
|