ProgramGen turns real repositories into training environments for long-horizon coding agents
The pipeline builds tasks where agents implement or reverse-engineer whole codebases, with repository tests grading results. Its authors report gains for Qwen3.8-27B across several benchmarks.
In plain words
A research team built a pipeline that converts real software repositories into training exercises for coding agents. In one mode the agent writes a program from a specification; in the other it rebuilds a program it cannot see, with automated tests checking both. Training on these tasks improved one model's reported scores on several coding benchmarks.
What was announced
The authors argue that environments for training agents on long-horizon development work, meaning tasks spanning many steps on realistic projects, remain scarce despite growing demand. ProgramGen addresses this by converting real repositories into environments with defined goals, runnable workspaces, and automated evaluation. Forward mode asks an agent to implement a repository from a specification, graded by that repository's tests. Reverse mode asks the agent to reimplement a reference program without access to its source, graded by tests the pipeline itself generates. Construction runs in three steps: building the repository, generating the task, and validating the result. To limit cost, the system regenerates only task components that fail validation and relies on rule-based programs for dependency installation, interface extraction, and running checks.
In reported experiments, training on 2,585 trajectories raised Qwen3.8-27B's mean pass rates from 39.3% to 46.6% on NL2Repo and from 48.0% to 61.0% on ProgramBench. The authors also report generalization to SWE-related benchmarks: 41.6% to 60.2% on DeepSWE, 60.7% to 70.8% on Terminal-Bench 2.1, and 76.5% to 84.3% on SWE-bench Pro V2 Hard. The tasks, trajectories, model, and code are open sourced for community research.
What it does not show
- All figures come from the paper's own abstract; no independent evaluation or confirmation is available.
- The source is an abstract only, so details on methodology, baselines, and evaluation conditions are not covered.
- The reported gains apply to Qwen3.8-27B; results for other models are not described.
For security and IT teams
- Scope
- The released artifacts cover tasks, trajectories, the trained model, and code, per the authors.
Sources
Source-support review completed 3 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 3 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.