TL;DR
SW-$A^2$-Bench is the first comprehensive benchmark designed to evaluate the automated transformation of static code repositories into autonomous, interoperable software agents for the Agentic Web. By testing frontier coding agents across 522 tasks, the paper exposes critical bottlenecks in environment synthesis, tool construction, and capability specification that currently hinder fully automated agent ecosystems.
What Problem Does This Paper Address?
The "Agentic Web" envisions a decentralized ecosystem where autonomous AI agents collaborate, communicate, and solve complex real-world tasks using standardized protocols like the Agent-to-Agent (A2A) protocol or Anthropic's Model Context Protocol (MCP). However, building this web requires a massive population of specialized software agents.
Currently, creating these agents is a slow, manual, and non-standardized process. While the world already possesses millions of open-source code repositories containing domain-specific capabilities, we lack a systematic way to automatically turn these static codebases into active, web-accessible agents. More importantly, until now, there has been no standardized benchmark to evaluate how well LLM-based coding agents can handle this repository-to-agent conversion process.
Methods
The authors formalize the automated software agent generation task into three distinct phases:
- Environment Synthesis: The coding agent must autonomously configure the software's execution environment (resolving system-level dependency conflicts rather than just running a basic package manager).
- Semantic Skill Extraction: The agent analyzes the codebase to extract atomic, reusable functional units (skills) from the original software.
- Agent Composition: The agent generates an Agent Card (a semantic profile describing its capabilities to peer agents) and configures an Inner Agent capable of executing those skills via standardized APIs.
To evaluate the generated agents, the benchmark deploys them into a sandbox environment and tests them using a centralized orchestrator that routes tasks based solely on the generated Agent Cards.
Datasets
The paper introduces SW-$A^2$-Bench, a curated dataset consisting of:
- 35 diverse GitHub repositories spanning 9 application domains, including NLP, chemistry, finance, security, and vision processing.
- 522 expert-verified evaluation instances split into two granularities:
- 336 Single-Repo Tasks: Testing fidelity—whether the generated agent can correctly inherit and execute capabilities from its source repository.
- 186 Multi-Repo Tasks: Testing interoperability—whether multiple generated agents can be successfully discovered and chained together by an orchestrator to solve multi-step workflows.
Key Insights and Ideas
- The Environment Bottleneck: Setting up the runtime environment is a massive hurdle. When environment synthesis fails, agents are forced into costly runtime troubleshooting or raw terminal usage, drastically inflating token consumption. For instance, one agent spent 6.5 minutes executing 22 distinct package operations just to resolve a single dependency.
- Fragile Skill Construction: Coding agents frequently hallucinate APIs or create mismatched type signatures. When a generated tool fails due to an implementation defect, agents tend to completely bypass their designed abstractions and resort to unstable, raw code generation.
- The "OpenHands Paradox": In multi-agent testing, the OpenHands framework achieved the lowest orchestration success rate due to poorly specified Agent Cards, yet it achieved the highest final execution success rate. This highlights that a highly robust underlying execution engine can act as a vital safety net when semantic routing fails.
- Ambiguity Breeds Failure: If two different agents expose identical, generic profiles (e.g., "Generic software agent"), orchestrators are forced to abandon deterministic role matching and resort to error-prone heuristic guessing.
Key Results
The authors evaluated four state-of-the-art coding frameworks: Claude Code, Codex CLI, OpenHands, and EnvX.
- Agent Generation Success: Claude Code and EnvX reliably generated valid, schema-compliant agents on the first try (100% Pass@1), while Codex was more token-efficient but required more attempts.
- Fidelity (Single-Repo Execution): Claude Code achieved the highest overall execution success rate (36.9%), though Codex performed surprisingly well on medium and hard difficulty tiers (14.2% success on hard tasks).
- Interoperability (Multi-Repo Orchestration): There was a direct correlation between an agent's skill specification quality and its orchestration success. EnvX, which specializes in environment configuration, achieved the highest average recall (74.0%) for skill definitions, translating to robust multi-agent dispatching.
Limitations and Future Work
While SW-$A^2$-Bench covers 35 diverse repositories, it represents only a small slice of the open-source ecosystem. It does not yet capture the nuances of closed-source projects, enterprise-scale systems, highly interactive web services, or repositories with complex deployment constraints (like hardware-specific dependencies).
Additionally, the current evaluation relies on a specific centralized orchestration setup and a single communication protocol (A2A). Future iterations of the benchmark will need to explore decentralized coordination strategies and alternative interoperability standards like MCP to fully reflect the evolving landscape of the Agentic Web.
Summary updated