EXPLORINEER
en

arXiv 2611.21152

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

AI11 upvotes

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

Overview

The authors present RepoFactory, an automated pipeline that turns real repositories into verifiable environments where agents build complete projects from scratch from a language specification. Its Environment Evolution Loop improves training value using proxy feedback that optimizes a multiplicative objective of validity, structural coupling, and implementation scope.

Introduction

Training coding agents for long-horizon tasks needs verifiable environments, but existing linear pipelines stop at validation and offer little guidance on how to make environments more useful for training. Recursive self-improvement would address this, but it requires costly model rollouts or training followed by downstream evaluation, with delayed feedback on long-horizon tasks.

Results

Training Qwen3.5-35B-A3B on RepoFactory environments produces RepoHorizen-35B-A3B, which gains 22.6 percentage points on NL2Repo-Bench, versus 17.5 points without environment evolution. Across five benchmarks, the average gain is 8.5 points, compared with 6.4 points without environment evolution.

Conclusion

Because RepoFactory yields 10,159 verifiable environments across 17 software domains and the Environment Evolution Loop adds further gains, it offers a practical, scalable way to build training data for long-horizon coding agents.

Source: Read the paper on arXiv ↗

This explainer was rewritten in plain language by AI from the original article. Check the original for the facts.

Same story, different eyes