RepoFactory Turns Code Repositories into Verifiable Training Environments
A research paper on arXiv, presented by Yang Tian and seven coauthors, introduces RepoFactory, an automated pipeline that converts real code repositories into verifiable environments where coding agents build complete projects from language specifications. The system generates 10,159 environments across 17 software domains and uses an Environment Evolution Loop to optimize validity, structural coupling, and implementation scope through proxy feedback. Training Qwen3.5-35B-A3B on these environments produces RepoHorizen-35B-A3B, which the authors report improves NL2Repo-Bench by 22.6 percentage points and five long-horizon coding and agentic benchmarks by an average of 8.5 points, compared with 17.5 and 6.4 points without environment evolution.
The work presents a concrete approach to scaling training for long-horizon coding agents by turning repositories into scalable, verifiable environments rather than relying only on end-of-pipeline validation.
Computer Science > Computation and Language
arXiv:2611.21152 (cs)
[Submitted on 16 Nov 2026 (v1), last revised 17 Nov 2026 (this version, v2)]
Title:From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop
Authors:Yang Tian, Tianyu Zheng, Xiyuan Yang, Yaxin Du, Chengran Yang, Bo Zhao, Jian Yang, Bryan Dai
View a PDF of the paper titled From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop, by Yang Tian and 7 other authors
#RepoFactory#RepoHorizen-35B-A3B#Qwen3.5-35B-A3B#Environment Evolution Loop#NL2Repo-Bench