AIAny
Icon for item

ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents

Converts real repositories into verifiable, sandboxed training environments with black-box tests to train coding agents on long-horizon program reproduction. Provides Program-Env for automated environment construction and Program-Agent for a role-isolated development workflow, yielding 1,648 C/C++/Go/Rust tasks and improving benchmark performance.

Introduction

Why this matters

Training coding agents to build programs from scratch requires environments that mirror real software engineering: multiple files, dependencies, runtime sandboxes, and behavioral tests. ProgramGym addresses this gap by automating the conversion of real GitHub repositories into verifiable training environments and by providing an agent workflow designed for long-horizon development.

Key Findings
  • Program-Env: a feedback-driven pipeline that separates online dependency preparation from offline compilation, repairs sandbox builds, and generates black-box behavioral tests across modules to produce reference executables and validated test suites.
  • Scale: constructs 1,648 executable training environments spanning C, C++, Go, and Rust, each including runtime sandboxes, usage documentation, and black-box tests suitable for supervised and reinforcement-style training.
  • Program-Agent: a role-isolated iterative workflow (analysis → implementation → review) with persistent evidence records, offline build checks, and revision management to support long-horizon development and failure recovery.
  • Empirical impact: fine-tuning on ProgramGym trajectories raises Qwen3.8-27B from 34.87% to 42.84% Tests Passed; using Program-Agent further increases base and SFT models to 55.71% and 56.25%, demonstrating substantial gains on program reproduction benchmarks.
Who it's for and trade-offs

Great fit if you need realistic, verifiable training environments for coding agents, want to train or evaluate long-horizon program synthesis workflows, or require a repeatable pipeline to convert real projects into sandboxed tasks. It is especially relevant for researchers building, fine-tuning, or benchmarking coding agents on multi-file, dependency-heavy codebases.

Look elsewhere if you only need short, isolated algorithmic problems or simple single-file code generation: ProgramGym focuses on engineering-scale tasks and the overhead of building sandboxes, tests, and offline compilation may be unnecessary for toy or micro-benchmarking scenarios.

Where it fits

ProgramGym sits between synthetic programming benchmarks and full software engineering practice: it provides scaled, verifiable environments that preserve repository complexity while adding automated test and sandbox scaffolding to enable supervised trajectories and agent-in-the-loop development research.

Information

  • Websitearxiv.org
  • OrganizationsAffiliation: Xiamen University, Affiliation: Washington University in St. Louis, Affiliation: Institute of Automation, Chinese Academy of Sciences, Affiliation: Unisound
  • AuthorsChengyi Yang, Renxu Bao, Jue Hou, Zongpei Teng, Ziheng Wang, Yujie Lin, Chengsong Huang, Junnan Zhu, Delai Qiu, Yining Wang …
  • Published date2026/10/09

More Items

GitHub
AI Agent2026

Runs a local-first AI agent runtime that drives your desktop and automates workflows — browsing, file edits, approved shell commands, document extraction, and scheduled tasks — while integrating local or cloud LLMs (llama.cpp/TurboQuant) and embedding as an HTTP service or Tauri sidecar.

GitHub
AI Agent2026

Browser-based agent workspace and sandboxed app platform that lets organizations run AI agents to perform tasks and build shareable 'Gadgets'. Uses Gatekeepers for fine-grained, zero-trust access control and runs on Cloudflare Workers with multi-LLM support.

GitHub
AI Infra2026

Provides a unified tool catalog and proxy for AI agents: one team token lets agents call thousands of third-party endpoints (and your team’s keys) with per-call pricing. Injects credentials server‑side so agents never hold provider secrets, and exposes CLI/skill recipes and OAuth tools for team-wide use.