arXiv:2602.01244cs.CL2026-02中稿 · ICML被引 19

构建可执行的终端智能体轨迹数据集,提升代码生成模型在真实场景下的表现。

Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environments

  • 基于Docker化环境自动筛选高质量仓库,生成可运行的任务实例。
  • 产出5万条经验证的终端轨迹,训练模型在基准测试中性能提升最高20%。
  • 适合研究终端智能体、自动化任务生成与代码模型训练的开发者使用。

训练基于终端的智能体模型高度依赖高质量的终端轨迹数据,以捕捉跨多样化领域的长时程真实交互。然而,大规模构建此类数据仍面临两大挑战: extbf{可执行性},因每个实例需适配特定且多样的Docker环境; extbf{可验证性},由于任务输出异构,难以实现统一标准化验证。为此,我们提出 extbf{TerminalTraj},一个可扩展的数据生成流水线,包括:(i) 筛选高质量仓库以构建Docker化执行环境;(ii) 生成与Docker对齐的任务实例;(iii) 合成带可执行验证代码的智能体轨迹。利用该流程,我们构建了32,000个Docker镜像,并在8个领域生成50,733条已验证终端轨迹。以Qwen2.5-Coder为骨干模型,在TerminalBench(TB)上训练后,性能较基线提升最高达20%(TB~1.0)和10%(TB~2.0)。特别地, extbf{TerminalTraj-32B}在参数量少于100B的模型中表现优异,达35.30%(TB~1.0)和22.00%(TB~2.0),并展现出更优的测试时缩放能力。所有代码与数据公开于https://github.com/Wusiwei0410/TerminalTraj。

原文摘要 · Abstract (English)

Training agentic models for terminal-based tasks critically depends on high-quality terminal trajectories that capture realistic long-horizon interactions across diverse domains. However, constructing such data at scale remains challenging due to two key requirements: \textbf{\emph{Executability}}, since each instance requires a suitable and often distinct Docker environment; and \textbf{\emph{Verifiability}}, because heterogeneous task outputs preclude unified, standardized verification. To address these challenges, we propose \textbf{TerminalTraj}, a scalable pipeline that (i) filters high-quality repositories to construct Dockerized execution environments, (ii) generates Docker-aligned task instances, and (iii) synthesizes agent trajectories with executable validation code. Using TerminalTraj, we curate 32K Docker images and generate 50,733 verified terminal trajectories across eight domains. Models trained on this data with the Qwen2.5-Coder backbone achieve consistent performance improvements on TerminalBench (TB), with gains of up to 20\% on TB~1.0 and 10\% on TB~2.0 over their respective backbones. Notably, \textbf{TerminalTraj-32B} achieves strong performance among models with fewer than 100B parameters, reaching 35.30\% on TB~1.0 and 22.00\% on TB~2.0, and demonstrates improved test-time scaling behavior. All code and data are available at https://github.com/Wusiwei0410/TerminalTraj.

终端智能体Docker轨迹生成代码模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。