ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents
TL;DR - ProgramGym is a framework for creating verifiable training environments and workflows for coding agents that reproduce complete programs through long-horizon exploration and implementation. It improves agent performance substantially, including raising fine-tuned Qwen3.8-27B accuracy from 34.87% to 42.84% on ProgramBench.
- Program-Env converts repositories into sandboxed tasks using feedback loops that repair runtime builds and improve black-box tests.
- The resulting dataset contains 1,648 training environments across C, C++, Go, and Rust.
- Program-Agent separates analysis, implementation, and review roles while managing revisions, compilation checks, and failure recovery.
- Program-Agent achieved 55.71% with the base model and 56.25% with the fine-tuned model, outperforming some flagship models.