From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 28 of its 31 references that are in the map. Submitted 16 Nov 2026.
Builds on
28 of 31 references.
Closest ancestors · 6
Same direction, newest first
- 2026ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents9 Oct
- 2026MindForge: Teaching Small Language Models Whole-Life-Cycle Software Engineering via Source-Free Program Synthesis29 Jul
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb
- 2025NL2Repo-Bench: Towards Long-Horizon Repository Generation Evaluation of Coding Agents14 Dec
- 2025Training Versatile Coding Agents in Synthetic Environments13 Dec
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
Other references · 22
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 595
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 198
- 2026EnvScaler: Scaling Tool-Interactive Environments for LLM Agent via Programmatic Synthesiscited by 83
- 2026Endless Terminals: Scaling RL Environments for Terminal Agentscited by 62
- 2026ScaleEnv: Scaling Environment Synthesis from Scratch for Generalist Interactive Tool-Use Agent Trainingcited by 43
- 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 29
- 2026Autodata: An agentic data scientist to create high quality synthetic datacited by 25
- 2026MM-Zero: Self-Evolving Multi-Model Vision Language Models From Zero Datacited by 24
10 more
- 2026AutoLab: Can Frontier Models Solve Long-Horizon Auto Research and Engineering Tasks?cited by 21
- 2026CLI-Universe: Towards Verifiable Task Synthesis Engine for Terminal Agentscited by 18
- 2026SETA: Scaling Environments for Terminal Agentscited by 18
- 2026A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compressioncited by 17
- 2026Beyond Function Calling: Benchmarking Tool-Using Agents under Tool-Environment Unreliabilitycited by 13
- 2026LiteCoder-Terminal: Scaling Long-Horizon Terminal Environments for Learning Language Agentscited by 12
- 2026DeNovoSWE: Scaling Long-Horizon Environments for Generating Entire Repositories from Scratchcited by 12
- 2026IQuest-Q1: Advancing Foundation Capabilities for Agentic CLI Systemscited by 2
- 2026TrajLong: Co-Designing Agentic and Long-Context Supervision for Mid-Trainingcited by 1
- 2026Software Engineering LLMs: Why We Need Them and How Software Engineering Helps Build Themcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
- 2026RepoMod-Bench: A Benchmark for Code Repository Modernization via Implementation-Agnostic Testing
- 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
- 2026Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents
- 2026Teaching Agents to Code Reliably
- 2026Zero2Repo: Can Coding Agents Build Repositories from Scratch?
- 2026AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
- 2026RuBench: A Repository-Level Agentic Coding Benchmark with Natively Authored Russian Task Specifications