arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10999cs.AI
收藏

CLI-Gym: 通过代理环境反向工程实现可扩展的CLI任务生成

CLI-Gym: Scalable CLI Task Generation via Agentic Environment Inversion

Huawei Technologies Co., Ltd(华为技术有限公司);Beijing Institute of Technology(北京理工大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)

Yusong Lin, Haiyang Wang, Shuzhe Wu, Lue Fan, Feiyang Pan, Sanyuan Zhao, Dandan Tu

AI总结:

CLI-Gym通过代理环境反向工程生成大规模环境密集型任务,LiberCoder在Terminal-Bench上实现46.1%的提升。

摘要:

代理编码要求代理有效地与运行时环境交互,例如命令行界面(CLI),以完成如解决依赖问题、修复系统问题等任务。但如何大规模获得此类环境密集型任务以增强代理能力仍不为人知。为此,基于Dockerfile与代理任务之间的类比,我们提出利用代理模拟和探索环境历史,受执行反馈引导。通过追踪健康环境的历史,可以将状态反向到早期状态,其中包含运行时故障,从而通过打包故障状态和相应错误信息生成任务。我们的方法名为CLI-Gym,共生成了1,655个环境密集型任务,是此类最大集合。此外,通过精心挑选的成功轨迹,我们的微调模型LiberCoder在Terminal-Bench上实现了显著的绝对提升,达到46.1%,优于各种强大的基线。据我们所知,这是首个公开的可扩展环境密集型任务生成管道。

英文摘要:

Agentic coding requires agents to effectively interact with runtime environments, e.g., command line interfaces (CLI), so as to complete tasks like resolving dependency issues, fixing system problems, etc. But it remains underexplored how such environment-intensive tasks can be obtained at scale to enhance agents' capabilities. To address this, based on an analogy between the Dockerfile and the agentic task, we propose to employ agents to simulate and explore environment histories, guided by execution feedback. By tracing histories of a healthy environment, its state can be inverted to an earlier one with runtime failures, from which a task can be derived by packing the buggy state and the corresponding error messages. With our method, named CLI-Gym, a total of 1,655 environment-intensive tasks are derived, being the largest collection of its kind. Moreover, with curated successful trajectories, our fine-tuned model, named LiberCoder, achieves substantial absolute improvements of +21.1% (to 46.1%) on Terminal-Bench, outperforming various strong baselines. To our knowledge, this is the first public pipeline for scalable derivation of environment-intensive tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑