DOCKSMITH: Scaling Reliable Coding Environments via an Agentic Docker Builder
Jiaran Zhang, Lu Ma, Yanhao Li, Fanqi Wan, DI QI, Xin Wu, Zhewei Huang, Liangyu Chen
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 merely 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 the broader agentic benefits of environment construction. Our model and Docker-building trajectories are publicly available at https://huggingface.co/collections/8sj7df9k8m5x8/docksmith.
BibTeX
@inproceedings{
zhang2026docksmith,
title={{DOCKSMITH}: Scaling Reliable Coding Environments via an Agentic Docker Builder},
author={Jiaran Zhang and Lu Ma and Yanhao Li and Fanqi Wan and DI QI and Xin Wu and Zhewei Huang and Liangyu Chen and YINGWEI MA and Qi Han and Xiangyu Zhang},
booktitle={Forty-third International Conference on Machine Learning},
year={2026},
url={https://openreview.net/forum?id=tRbgtWwmHB}
}