Introduction
In the current landscape of AI-assisted software engineering, agents are typically evaluated within "pre-baked" environments. Benchmarks like SWE-bench provide agents with pre-configured Docker images where libraries, databases, and tools are already installed. However, in real-world scenarios, a developer's first hurdle is often "bootstrapping"—the process of getting code to run from scratch. This involves dependency resolution, environment variable configuration, and service orchestration.
SetupBench addresses this evaluation gap by forcing agents to start in a bare Linux sandbox. The benchmark tests a critical but often ignored skill: the ability to perform the messy, system-level work required to make a project functional. If an agent cannot bootstrap its own environment, it cannot provide truly end-to-end autonomous assistance.
The SetupBench Framework
SetupBench consists of 93 environment-bootstrap tasks designed to be rigorous and reproducible. Key features include:
- Bare Sandboxes: Agents begin in a minimal Linux environment with no pre-installed project dependencies.
- Deterministic Validation: Success is judged by a "success command"—a shell script that checks for specific side effects (e.g., a running service or a passing build) and prints a literal "Setup successful" or "Setup failed."
- Task Diversity: The benchmark covers four categories: Repository Setup (54 tasks across 7 languages), Dependency Resolution (16 tasks involving real-world version conflicts), Database Setup (15 tasks across engines like Postgres and MongoDB), and Background-Service Orchestration (8 tasks involving NGINX, Celery, etc.).
Experimental Results
Performance was evaluated using the OpenHands agent framework across several state-of-the-art models. The results reveal a significant performance gap compared to standard code-editing benchmarks. While models like Claude 4 achieved the highest overall success rate at 62.4%, even the best models failed nearly 40% of the time.
Local database configuration proved to be the most challenging category, with success rates dropping as low as 20% for some models. Furthermore, there is a clear trade-off between accuracy and resource consumption; while Claude 4 was the most successful, it required significantly more tokens and steps than more efficient models like Claude 3.5 Sonnet.
Qualitative Insights and Inefficiency
The study identified several recurring failure modes that highlight the limitations of current agents in systems administration:
- The Persistence Trap: Agents often installed tools in a single shell session but failed to make changes persistent (e.g., neglecting to update
.bashrc), leading to broken environments in subsequent steps. - Hallucinated Constraints: When faced with ambiguity, agents frequently "invented" requirements, such as assuming specific ports or flags were mandatory, leading them down unproductive configuration paths.
- The Inefficiency Tax: Agents are remarkably inefficient compared to optimal human trajectories. Analysis showed that between 38% and 69% of agent actions were unnecessary.
As shown in Table 2, models like Claude 4 Sonnet wasted over 68% of their steps, often performing redundant file reads rather than strategically scanning the repository.
Conclusion
SetupBench highlights that while AI agents are becoming proficient at writing code, they still lack the practical systems administration knowledge required for full autonomy. Future work will involve scaling the benchmark and testing agents in more restrictive security contexts. Bridging the "first mile" of development—from a bare repository to a running environment—remains a vital frontier for autonomous software engineering agents.
Summary updated