arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.15815cs.SEcs.CLcs.MA
收藏

BootstrapAgent: 将仓库设置提炼为可重用的代理知识

BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledge

Zhejiang University(浙江大学);The Australian National University(澳大利亚国立大学);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所)

Sihan Fu, Oucheng Liu, Shiyuan Wang, Jin Shi, Chengkun Wei

AI总结:

BootstrapAgent通过提炼仓库初始化过程中的启发式知识,生成可验证的代理合同,提升代码代理在 unfamiliar repositories 的任务成功率和效率。

摘要:

代码代理越来越多地帮助开发者处理不熟悉的仓库,但每次任务都依赖于昂贵的前置条件:将仓库初始化为可使用的开发状态。这一过程需要大量的试错探索,但由此产生的知识——解决依赖关系、修复策略——被困在单次对话中,无法为未来的代理所用。因此,我们将仓库初始化视为一个可重用的启动知识问题,并引入BootstrapAgent,一个多代理框架,将初始化探索中发现的启发式方法提炼成持久、可验证的代理可消费的.bootstrap合同。通过证据提取、结构化规划、确定性Docker验证和基于跟踪的修复,BootstrapAgent生成涵盖环境设置、诊断检查、最小验证和累积修复知识的合同。我们进一步提出 warm repair with clean replay 来加速迭代调试而不牺牲冷启动可重现性,并提出 delta repair with sanity check 来防止奖励黑客。在三个基准测试中的实验表明,BootstrapAgent实现了92.9%的成功率,比基线高出超过10%,同时减少了下游代理的token使用量25.9%和构建时间22.3%。我们的代码可在https://github.com/Vossera/BootstrapAgent上获得。

英文摘要:

Code agents increasingly help developers work with unfamiliar repositories, but every such task depends on a costly prerequisite: bootstrapping the repository into a usable development state. This process requires substantial trial-and-error exploration, yet the resulting knowledge--resolved dependencies, repair strategies--stays trapped in a single conversation, unavailable to future agents. We therefore formulate repository bootstrapping as a reusable startup knowledge problem and introduce BootstrapAgent, a multi-agent framework that distills the heuristics discovered during bootstrap exploration into a persistent, verifiable, agent-consumable .bootstrap contract. Through evidence extraction, structured planning, deterministic Docker-based verification, and trace-driven repair, BootstrapAgent generates a contract covering environment setup, diagnostic checks, minimal verification, and accumulated repair knowledge. We further propose warm repair with clean replay to accelerate iterative debugging without sacrificing cold-start reproducibility, and a delta repair with sanity check to prevent reward hacking. Experiments on three benchmarks show that BootstrapAgent achieves a 92.9% success rate, outperforming the baseline by over 10% while reducing downstream agent token usage by 25.9% and build time by 22.3%. Our code is available at https://github.com/Vossera/BootstrapAgent.

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

↑