Long-Horizon Coding Agents Are Scaled from Repositories to Training Environments Through an Environment Evolution Loop.
10,159 coding environments are built from repositories, using feedback-driven evolution to improve agents and cut costly downstream feedback.
Key Takeaways
- RepoFactory builds complete project development environments from real software repositories to support training for longer-horizon coding agents.
- It uses feedback-driven environment evolution, guided by reasonableness, implementation scope, and structural coupling, to improve tasks during construction rather than after expensive model training or rollout.
- Validation execution and code analysis provide low-cost, immediate proxy feedback, allowing the pipeline to refine task instructions, implementations, and tests without relying on costly downstream evaluation.
- The pipeline produced 10,159 environments across 17 domains, helping RepoHorizen-35B-A3B outperform Qwen3.5-35B-A3B by 22.6 percentage points on NL2Repo-Bench and 8.5 points on average across five benchmarks.
- Environment evolution itself contributed additional gains of 5.1 percentage points on NL2Repo-Bench and 2.1 points on the five-benchmark average, with an initial batch of 200 non-evolved environments and Docker images released.
RepoFactory Builds 10,159 Environments to Train Longer-Horizon Coding Agents

Why Coding Agent Training Needed a Better Environment Pipeline
Coding agent training environments are becoming more important as coding agents take on longer-horizon and more complex development tasks. RepoFactory addresses that need by building complete project development environments from real software repositories. The resulting environments were used to train RepoHorizen-35B-A3B, which improves over Qwen3.5-35B-A3B by 22.6 percentage points on NL2Repo-Bench and by 8.5 percentage points on average across five benchmarks. The project matters because it aims to make environment construction less dependent on expensive downstream feedback.
Existing environment construction pipelines often stop after execution and validation. They can show whether a task runs, but they do not fully optimize how much training value the task provides or how the task could be improved. That gap becomes larger for coding agents because training also needs to cover the complete project development process.
Other methods often judge whether a change is useful through model rollouts, meaning the solving model must attempt a complete task, or through downstream evaluations after model training. For long-horizon coding tasks, one complete solution can involve a large amount of implementation and debugging. That makes feedback slower and more expensive, raising computational cost and lengthening feedback cycles. The central question is whether reliable, low-cost, immediate proxy metrics can guide environment improvement instead.
From Execution Checks to Feedback-Driven Environment Evolution
RepoFactory introduces feedback-driven iteration from recursive self-improvement into environment construction. The goal is for tasks to increase their training value while they are being built, rather than waiting until a trained model is tested.
The pipeline builds environments from real software repositories and uses the product of three factors as its environment evolution objective: reasonableness, implementation scope, and structural coupling. These factors are intended to guide changes that make tasks more useful for training without breaking the environment.
Validation execution and code analysis provide timely, low-cost proxy feedback. Instead of relying on high-cost downstream feedback, the agent uses these signals to jointly modify task instructions, reference implementations, and tests. The changes aim to ensure environment validity while increasing the implementation work and component collaboration required by the task. Each round of modification produces new feedback, which guides the next iteration without waiting for a complete rollout of the solving model or downstream training.
Results, Released Environments, and Current Stage
The final result is a set of 10,159 environments covering 17 software domains. RepoHorizen-35B-A3B, trained on these environments, improves by 22.6 percentage points on NL2Repo-Bench compared with Qwen3.5-35B-A3B, and by 8.5 percentage points on average across five benchmarks.
The reported gains include an additional contribution from environment evolution: 5.1 percentage points on NL2Repo-Bench and 2.1 percentage points on the five-benchmark average.
An initial batch of 200 non-evolved environments and corresponding Docker images is being released. Those working on coding agents, training data, and environment construction are welcome to get in touch. The current stage is a release of a smaller initial subset, while the larger 10,159-environment result shows the direction of the pipeline: more complex coding tasks can be improved through low-cost, immediate feedback before expensive model training or rollout is needed.
Comments
No comments yet. Be the first to comment.