arXiv:2604.23190cs.SEcs.AI2026-04

让代码仓库自动配置运行环境,跨语言通用且成功率提升36.1%。

RAT: RunAnyThing via Fully Automated Environment Configuration

  • 分阶段自动化配置,支持任意编程语言的仓库
  • 在真实仓库上环境搭建成功率比基线高36.1%
  • 适合开发自动化工具或构建智能编码助手的研究者

自动化代码仓库级软件工程任务是自主代码代理的基础挑战,主要源于可执行环境配置的难度。然而,手动配置仍是耗时瓶颈,亟需向完全自动化过渡。现有方法常依赖预定义资源或局限于特定编程语言,难以覆盖多样化的实际仓库。本文提出RAT(RunAnyThing),一种模块化、可扩展的代理框架,实现跨语言、任意仓库的全自动环境配置。RAT采用多阶段流程,融合语言感知抽象、镜像初始化、专用配置工具集与健壮沙盒。为支持严谨评估,我们还构建了RATBench基准,全面覆盖真实仓库场景。大量实验表明,RAT在环境搭建成功率(ESSR)上相较强基线平均提升36.1%,达到当前最优水平。

原文摘要 · Abstract (English)

Automating repository-level software engineering tasks is a foundational challenge for autonomous code agents, largely due to the difficulty of configuring executable environments. However, manual configuration remains a labor-intensive bottleneck, necessitating a transition toward fully automated environment configuration. Existing approaches often rely on pre-defined artifacts or are restricted to specific programming languages, limiting their applicability to diverse real-world repositories. In this paper, we first propose RAT (RunAnyThing), a modular and extensible agent framework for fully automated configuration across programming languages on arbitrary repositories. RAT adopts a multi-stage pipeline that integrates language-aware abstraction, image initialization, specialized configuration toolset, and robust sandbox. Furthermore, to enable rigorous evaluation, we propose RATBench, a benchmark reflects the comprehensive coverage of real-world repositories. Extensive experiments demonstrate that RAT achieves state-of-the-art performance, improving Environment Setup Success Rate (ESSR) by an average of 36.1% over strong baselines.

自动化代码生成环境配置AI研发

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