SW-$A^2$-Bench: Benchmarking Autonomous Software Agent Generation for Agentic Web

Linyao Chen, Bo Huang, Qinlao Zhao, Shuai Shao, Zhi Han, Zicai Cui, Ziheng Zhang, Guangtao Zeng, Wenzheng Tang, Yikun Wang, Yuanjian Zhou, Zimian Peng, Yong Yu, Weiwen Liu, Hiroki Kobayashi, Weinan ZhangarXiv 2026

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.

Figure 1: Conceptual illustration of software agent gen- eration for Agentic Web. Through agent generation, code repositories are transformed into software agents that can be integrated into the Agentic Web, enabling interactions and collaborations for real-world tasks.

Methods

The authors formalize the automated software agent generation task into three distinct phases:

  1. 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).
  2. Semantic Skill Extraction: The agent analyzes the codebase to extract atomic, reusable functional units (skills) from the original software.
  3. 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.
Figure 2: Execution task diversity analysis. Single-repo tasks are distributed across 9 application domains, il- lustrating broad coverage of domain-specific execution scenarios. Multi-repo tasks are grouped by the number of distinct domains involved in each workflow (cross-k domains), predominantly highlighting the prevalence of cross-domain interactions and increasing interoperability requirements.

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.
Table 3: Skill Specification Quality: Avg-Precision and Avg-Recall (in %).

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

BibTeX
@misc{chen2026sw,
  author = {Linyao Chen and Bo Huang and Qinlao Zhao and Shuai Shao and Zhi Han and Zicai Cui and Ziheng Zhang and Guangtao Zeng and Wenzheng Tang and Yikun Wang and Yuanjian Zhou and Zimian Peng and Yong Yu and Weiwen Liu and Hiroki Kobayashi and Weinan Zhang},
  title = {{SW-$A^2$-Bench: Benchmarking Autonomous Software Agent Generation for Agentic Web}},
  year = {2026},
  eprint = {2604.04226},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.04226},
}
Figure