Marquis03 commited on
Commit
cbab547
Β·
verified Β·
1 Parent(s): 2bd3f49

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +83 -30
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
- # programgym-1648
12
 
13
- [Paper](https://huggingface.co/papers/2610.13395) | [Project page](https://programgym.github.io/) | [Code](https://github.com/Acm1011/ProgramGym)
14
 
15
- programgym-1648 is a collection of 1,648 Harbor tasks that evaluate an agent's ability to reproduce software from observed behavior. For each task, the agent receives a reference executable and documentation. It must create an original codebase and a `compile.sh` script that builds a new `./executable` with matching behavior. Copying, wrapping, or decompiling the reference executable is not allowed.
 
 
 
16
 
17
- ## Task structure
18
 
19
- Each task contains:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- | Path | Purpose |
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
- ## Run with Harbor
 
 
30
 
31
- Requires Docker, a configured model provider, and **Harbor 0.20.0 or newer**. These tasks use Harbor task schema 1.3 and phase-scoped network policies. Run it by Harbor:
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
- Replace the model ID and provide the corresponding API credentials. The command runs the full dataset with four concurrent trials; use `-l 1` for a one-task smoke test. Results are written under `jobs/` by default.
44
 
45
- ## Citation
 
 
 
 
 
46
 
47
- If you find our work helpful, feel free to give us a cite.
48
 
49
- ```
 
 
 
 
 
 
 
 
50
  @misc{yang2026programgym,
51
- title={ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents},
52
- 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},
53
- year={2026},
54
- eprint={2610.13395},
55
- archivePrefix={arXiv},
56
- primaryClass={cs.SE},
57
- url={https://arxiv.org/abs/2610.13395},
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
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
16
+ ![Tasks](https://img.shields.io/badge/Tasks-1%2C648-brightgreen)
17
+ ![Harbor](https://img.shields.io/badge/Harbor-%E2%89%A5%200.20.0-orange)
18
+ ![Task Schema](https://img.shields.io/badge/Task_Schema-1.3-purple)
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)**.