Abstract
Recent advances in large language models (LLMs) have enabled software engineering agents to tackle complex code modification tasks. Most existing approaches rely on execution feedback from containerized environments, which require dependency-complete setup and physical execution of programs and tests. While effective, this paradigm is resource-intensive and difficult to maintain, substantially complicating agent training and limiting scalability. We propose SWE-World, a Docker-free framework that replaces physical execution environments with a learned surrogate for training and evaluating software engineering agents. SWE-World leverages LLM-based models trained on real agent-environment interaction data to predict intermediate execution outcomes and final test feedback, enabling agents to learn without interacting with physical containerized environments. This design preserves the standard agent-environment interaction loop while eliminating the need for costly environment construction and maintenance during agent optimization and evaluation. Furthermore, because SWE-World can simulate the final evaluation outcomes of candidate trajectories without real submission, it enables selecting the best solution among multiple test-time attempts, thereby facilitating effective test-time scaling (TTS) in software engineering tasks. Experiments on SWE-bench Verified demonstrate that SWE-World raises Qwen2.5-Coder-32B from 6.2% to 52.0% via Docker-free SFT, 55.0% with Docker-free RL, and 68.2% with further TTS. The code is available at https://github.com/RUCAIBox/SWE-World
Introduction
Building AI agents capable of solving real-world software engineering (SWE) tasks is a significant challenge. Current state-of-the-art agents rely heavily on interactive environments, typically containerized via Docker, to navigate codebases, execute scripts, and verify patches through unit tests. However, this dependency on physical execution environments introduces substantial bottlenecks. Maintaining dependency-complete Docker images for thousands of diverse repositories is complex and resource-intensive. Furthermore, many repositories are excluded from training data because they fail to build in containers, and the computational cost of running thousands of containers for Reinforcement Learning (RL) or test-time scaling is prohibitive.
The SWE-World Framework
To address these limitations, we introduce SWE-World, a framework that replaces physical execution environments with learned LLM surrogates. SWE-World decouples agent training from physical execution by splitting actions into two distinct tracks:
- Lightweight Sandbox: Deterministic file system operations (e.g.,
ls,grep,vim) are handled by a basic sandbox, ensuring reliability for simple navigation and editing. - SWE-World Transition Model (SWT): For repository-specific commands (e.g.,
python reproduce.py), the SWT model simulates execution, predictingstdout,stderr, and exit codes based on the current code state. - SWE-World Reward Model (SWR): Upon patch submission, the SWR acts as a virtual test runner, generating a structured test report and a binary reward.
The SWT and SWR models are trained using real agent-Docker interaction traces. We employ Reverse-Reasoning Distillation, where a teacher model generates Chain-of-Thought (CoT) reasoning to explain known ground-truth execution outputs, thereby enhancing the quality of the training data.
Dataset Construction
By removing the requirement for successful Docker builds, SWE-World enables the use of a much broader range of open-source data. We curated the SWE-World Dataset, which comprises 16.6k high-quality issue-PR pairs across 3,763 GitHub repositories. This dataset is significantly larger and more diverse than previous benchmarks constrained by containerization requirements.
Experimental Results
We evaluated SWE-World on the SWE-bench Verified benchmark using the Qwen2.5-Coder-32B model. The results demonstrate the transformative impact of Docker-free training:
- Base Performance: The initial model achieved a 6.2% resolve rate.
- Docker-Free SFT: Training on SWE-World simulated trajectories raised the resolve rate to 52.0%.
- Docker-Free RL: Applying RL via GRPO++ further improved performance to 55.0%.
- Test-Time Scaling (TTS): By using the SWR model to evaluate multiple candidate trajectories at inference time (TTS@8), the model reached a state-of-the-art resolve rate of 68.2%.
Notably, agents trained purely on SWE-World simulations performed slightly better (52.2%) than those trained on equivalent real Docker trajectories (51.4%), confirming the high fidelity of our surrogate environment.
Discussion and Limitations
While SWE-World significantly lowers the barrier to entry for SWE agent research, it is not without limitations. LLM-based simulation can occasionally suffer from hallucinations, and the "simulation gap" between the surrogate and reality remains a factor. Additionally, simulating complex execution requires large context windows (up to 128K tokens), which increases inference costs.
Despite these challenges, SWE-World democratizes large-scale SWE agent research by eliminating the need for industrial-grade container orchestration, allowing academic labs to iterate rapidly on advanced training and scaling techniques.
Summary updated