Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

Hugging Face Paper Unveils ProgramGym to Train Long-Horizon Coding Agents

AI By Crimson AI Hugging Face Papers 12 October 2026 · 00:00 41 views
Share: X Telegram

ProgramGym introduces Program-Env and Program-Agent, a framework that builds 1,648 verifiable training environments across C, C++, Go, and Rust to train agents that reproduce programs from scratch, boosting Qwen3.8-27B from 34.87% to 42.84% on ProgramBench.

Hugging Face Paper Unveils ProgramGym to Train Long-Horizon Coding Agents

Key points

Coding agents are moving beyond fixing bugs inside existing repositories or generating code from a requirements document. A new class of agents is being asked to build programs from scratch, the way a software engineer would. Yet scalable, verifiable training environments for this kind of work remain scarce, and existing agent workflows struggle to sustain the long-horizon development needed to explore a reference program before implementing it.

To address this gap, researchers introduce ProgramGym, a framework composed of two parts: Program-Env and Program-Agent. Program-Env constructs verifiable training environments from repositories using a feedback-driven loop that repairs runtime sandbox builds and improves the quality of black-box tests.

Using this pipeline, the team obtained 1,648 training environments spanning C, C++, Go, and Rust. Program-Agent, meanwhile, combines a role-isolated workflow of analysis, implementation, and review with revision management for compilation checks and failure recovery.

Experiments on ProgramBench show that both components improve program reproduction. Fine-tuning on trajectories built with these environments raised the performance of Qwen3.8-27B from 34.87% to 42.84%. Program-Agent pushed the base and SFT models further, to 55.71% and 56.25% respectively — both exceeding some flagship models.

The authors say they will release ProgramGym to support further research on coding agents that build programs from scratch.

Model / SettingProgramBench Performance
Qwen3.8-27B (baseline)34.87%
Qwen3.8-27B (SFT on ProgramGym trajectories)42.84%
Base model + Program-Agent55.71%
SFT model + Program-Agent56.25%
Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 15 Oct 2026

New Survey Maps How Multimodal AI Agents Remember and Evolve

A Hugging Face survey proposes a two-axis framework for multimodal agent memory, separating how information is formed and represen...

112
Research paper
Hugging Face 15 Oct 2026

CriticOPD Fixes On-Policy Distillation by Letting Teachers Critique Student Errors

Hugging Face researchers introduce CriticOPD, a method that restores the teacher's ability to recover from student mistakes during...

96
Research paper
Hugging Face 15 Oct 2026

ActionOPD: Distilling Agent Decisions, Not Tokens

A new Hugging Face paper proposes ActionOPD, an action-level on-policy distillation method that aligns a student agent's decisions...

100