DockSmith: Scaling Reliable Coding Environments via an Agentic Docker Builder
Jiaran Zhang, Luck Ma, Yanhao Li, Fanqi Wan, Di Qi, Xu Zhao, Jieyi Hou, Zhe Xie, Mengqiang Ren, Xin Wu, Zhewei Huang, Liangyu Chen, Yingwei Ma, Qi Han, Xiangyu Zhang
TL;DR
DockSmith reframes Docker-based environment construction as a core agentic capability rather than a preprocessing step, addressing the brittleness that currently limits scalable execution-grounded training. By deploying a dedicated four-agent pipeline augmented with loop-detection and cross-task memory, and by training on a large corpus of execution-grounded Docker-building trajectories, DockSmith achieves open-source state-of-the-art performance on Multi-Docker-Eval with a 39.72% Fail-to-Pass rate and a 58.28% Commit Rate at 30B scale. The approach also demonstrates transfer to downstream agentic software engineering tasks (SWE-bench Verified, SWE-bench Multilingual, Terminal-Bench 2.0) through joint training with general coding trajectories and carefully designed data filtration and curriculum strategies. Overall, the work provides empirical evidence that environment construction can supply transferable supervision for scaling autonomous software engineering agents and yields a robust dataset of verified environments spanning thousands of repositories for future research.
Abstract
Reliable Docker-based environment construction is a dominant bottleneck for scaling execution-grounded training and evaluation of software engineering agents. We introduce DockSmith, a specialized agentic Docker builder designed to address this challenge. DockSmith treats environment construction not only as a preprocessing step, but as a core agentic capability that exercises long-horizon tool use, dependency reasoning, and failure recovery, yielding supervision that transfers beyond Docker building itself. DockSmith is trained on large-scale, execution-grounded Docker-building trajectories produced by a SWE-Factory-style pipeline augmented with a loop-detection controller and a cross-task success memory. Training a 30B-A3B model on these trajectories achieves open-source state-of-the-art performance on Multi-Docker-Eval, with 39.72% Fail-to-Pass and 58.28% Commit Rate. Moreover, DockSmith improves out-of-distribution performance on SWE-bench Verified, SWE-bench Multilingual, and Terminal-Bench 2.0, demonstrating broader agentic benefits of environment construction.
