From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop

Yang Tian, Tianyu Zheng, Xiyuan Yang, Yaxin Du, Chengran Yang, Bo Zhao, Jian Yang, Bryan Dai

Beihang University · Shanghai Jiao Tong University · IQuest Research

Published November 17, 2026 · on the feed November 18, 2026 · ▲ 15 · arXiv 2611.21152

The abstract

Training coding agents for long-horizon tasks requires environments with verifiable feedback. Existing pipelines often follow a linear process that ends with validation, establishing usability but providing little guidance on improving training value. Recursive self-improvement (RSI) often requires model rollouts or model training followed by downstream evaluation, with costs and feedback delays amplified on long-horizon tasks. How can we use timely, reliable proxy signals to improve training value and synthesize environments at scale? We present RepoFactory, an automated pipeline that converts real repositories into verifiable environments where agents build complete projects from scratch given a language specification. Its Environment Evolution Loop optimizes a multiplicative objective combining validity, structural coupling, and implementation scope through proxy feedback. RepoFactory produces 10,159 environments across 17 software domains. Training Qwen3.5-35B-A3B on these environments yields RepoHorizen-35B-A3B, which achieves gains of 22.6 percentage points on NL2Repo-Bench and 8.5 points on average across five benchmarks covering long-horizon coding and agentic tasks in real-world production settings, compared with 17.5 and 6.4 points without environment evolution. These results highlight the training value of RepoFactory environments and the additional gains from the Environment Evolution Loop.

The Brief

2:22

A short podcast summary of the paper. Written and voiced by AI.

Transcript

From Repositories to Training Environments. Scaling Long-Horizon Coding Agents with Environment Evolution Loop. By Yang Tian and seven others, from Beihang University, Shanghai Jiao Tong University, and one other institution. Published on the seventeenth of November.

Training coding agents for long-horizon tasks requires environments that give verifiable feedback. Existing pipelines for building them tend to run in a straight line that ends with validation. That establishes whether an environment is usable, but says little about how to make it more valuable for training. Recursive self-improvement is one way to get that guidance, but it usually needs model rollouts or model training followed by downstream evaluation, and on long-horizon tasks those costs and feedback delays grow. The question the authors pose is whether timely, reliable proxy signals can take their place, both to raise training value and to synthesize environments at scale.

RepoFactory is an automated pipeline that converts real repositories into verifiable environments. In each one, an agent is given a language specification and has to build the complete project from scratch. The pipeline does not stop at validation. Its Environment Evolution Loop keeps improving the environments using proxy feedback rather than waiting on training runs. That is the contrast with the linear pipelines described a moment ago. Validation there is the final step, the point at which an environment is declared usable. Here it is one input to a loop whose aim is training value, guided by signals that arrive without the delay of a training run.

The loop optimizes a multiplicative objective with three factors: validity, structural coupling, and implementation scope, all of it driven by proxy feedback. Run at scale, RepoFactory produces ten thousand one hundred and fifty-nine environments across seventeen software domains.

Training Qwen3.5-35B-A3B on these environments produces a model called RepoHorizen-35B-A3B. It gains twenty-two point six percentage points on NL2Repo-Bench, and eight point five points on average across five benchmarks covering long-horizon coding and agentic tasks in real-world production settings. Without environment evolution, the same gains are seventeen point five and six point four points. The comparison isolates the loop: same pipeline, same base model, with and without environment evolution.

Those two pairs of numbers carry the argument. The environments alone already give a large improvement, and the evolution loop, steered by timely proxy signals instead of slow rollouts and training runs, adds a further margin on top.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.