atlas

Research map / Multi-agent systems and games / LLM agents

Repo2Run: Automated Building Executable Environment for Code Repository at Scale

NeurIPS 2025 · Multi-agent systems and games › LLM agents · approach: Software engineering agent benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces Repo2Run, a GPT-4o-based agent that iteratively builds Docker environments with rollback and a dual internal/external environment, then synthesizes a runnable Dockerfile, achieving 86.0% environment building success on 420 Python repositories.

Problem

Building executable test environments for code repositories at scale is labor-intensive and expert-dependent, which bottlenecks executable code data for training software engineering LLMs.

Approach

An LLM agent with a dual-environment architecture (internal Docker container for building and tests, external terminal for base image changes and rollback), a rollback action that snapshots the container via docker commit before each command, and a Dockerfile synthesizer that replays successful commands into a Dockerfile.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Repo2Run instead of the strongest baseline, LLM generator420 Python repositories · 420 Python repositoriesEBSR: 22.1% -> 86.0%Helped
use Repo2Run instead of the strongest baseline, LLM generator420 Python repositories · 420 Python repositoriesDGSR: 47.6% -> 100%Helped
add the dual-environment architecture (ablation)Repo2Run · 420 Python repositoriesDGSR: 92.4% -> 100%Helped
add the dual-environment architecture (ablation)Repo2Run · 420 Python repositoriesEBSR: 41.7% -> 86.0%Helped
add rollback (ablation)Repo2Run · 420 Python repositoriesDGSR: 96.9% -> 100%Helped
add rollback (ablation)Repo2Run · 420 Python repositoriesEBSR: 83.6% -> 86.0%Helped
add the Dockerfile synthesizer (ablation)Repo2Run · 420 Python repositoriesDGSR: 19.5% -> 100%Helped
add the Dockerfile synthesizer (ablation)Repo2Run · 420 Python repositoriesEBSR: 13.8% -> 86.0%Helped

Surprising findings

Limitations

Experimental setup

Datasets: GitHub Python repositories created in 2024 (420 with unit tests)

Benchmarks: Repo2Run benchmark (420 Python repositories)

Metrics: DGSR (Dockerfile Generation Success Rate) EBSR (Environment Building Success Rate) test pass rate thresholds hadolint warning count

Baselines: pipreqs LLM generator SWE-agent

Builds on: ReAct SWE-agent

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy