# BootstrapAgent: Turning Repository Setup into Reusable Agent Knowledge

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

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151994) · [OpenReview](https://openreview.net/forum?id=WIItfKBPZm) · [alphaXiv](https://www.alphaxiv.org/abs/2605.15815) · [Open on the map](../papers.html#p151994)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Verified Code Synthesis and Testing](../pgroup/302.md) · Type: new method · Keywords: repository bootstrapping, code agents, multi-agent framework, reusable knowledge, CI evidence extraction, Docker verification

Areas: [Code & Coding Agents](../areas/codegen.md) › Code Verification › Code benchmarks; [AI Agents](../areas/agents.md) › Agent Benchmarking › Repository agents

## Summary
BootstrapAgent is a multi-agent framework that turns repository bootstrapping knowledge into a reusable .bootstrap contract, improving setup success and reducing token usage and build time.

## Explained to a 5-year-old
When you get a new game to play, you first need to set it up so it works. Code agents try to do this, but they have to guess a lot. BootstrapAgent helps them remember what they learned so they can reuse it later. It creates a little contract that says how to set up the game. This makes setting up easier and faster for everyone.

## Explained to a 5-year-old, longer
When you get a new game to play, you often have to install it, find the right files, and make sure everything works. Code agents do the same thing for software projects, but they have to try many things and can make mistakes. The knowledge they learn is usually lost after the task is done. BootstrapAgent solves this by letting the agents store their learning in a special contract. This contract records how to set up the environment, what checks to run, and how to fix problems. It also lets the agents reuse this knowledge quickly, so they don’t have to start from scratch each time. By using Docker and careful verification, the contract ensures that the setup works reliably. This helps developers get new projects up and running faster, saving time and effort.

## For a technical reader
BootstrapAgent is a multi-agent system that captures the trial-and-error knowledge from setting up code repositories and stores it in a reusable .bootstrap contract. It uses CI evidence extraction, structured planning, deterministic Docker verification, and trace-driven repair to generate this contract, which includes environment setup, diagnostics, and repair strategies. Warm repair with clean replay speeds up iterative debugging while preserving reproducibility, and a two-level verification prevents reward hacking. Experiments on three benchmarks show a 92.9% success rate, a >10% improvement over baselines, and reductions in token usage and build time.

## Problem
Setting up unfamiliar code repositories for development is a time-consuming trial-and-error process, and the knowledge gained from this bootstrapping is not reusable for other agents or developers.

## Method
The approach extracts CI evidence, performs structured planning, runs deterministic Docker-based verification, and uses trace-driven repair to produce a .bootstrap contract that records environment setup, diagnostics, verification, and repair knowledge. It also employs warm repair with clean replay and a two-level verification to avoid reward hacking.

## Results
The approach achieves a 92.9% success rate on the benchmarks, beating the baseline by over 10% and cutting downstream agent token usage by 25.9% and build time by 22.3%.

## Contributions
It frames repository bootstrapping as a reusable knowledge problem, proposes a multi-agent framework that distills exploration into a persistent .bootstrap contract, and introduces warm repair and two-level verification to improve efficiency and reliability.

## Practical relevance
BootstrapAgent enables developers and code agents to set up unfamiliar repositories reliably and efficiently, reducing manual effort and accelerating development workflows.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151994)
