SWE-Chain: Benchmarking Coding Agents on Chained Release-Level Package Upgrades

Man Ho Lam, Chaozheng Wang, Hange Liu, Jingyu Xiao, Haau-sing Li, Jen-tse Huang, Terry Yue Zhuo, Michael R. LyuarXiv 2026

TL;DR

SWE-CHAIN is a novel benchmark designed to evaluate LLM coding agents on continuous, release-level software package upgrades. Unlike existing benchmarks that focus on isolated bug fixes, SWE-CHAIN evaluates an agent's ability to maintain a codebase sequentially across multiple consecutive versions, revealing that managing compounding errors over a long horizon remains a significant challenge for state-of-the-art models.

What Problem Does This Paper Address?

While LLM-powered coding agents have become adept at solving isolated repository-level issues, real-world software engineering involves continuous maintenance. Software evolves through bundled, official releases where changes are inherited by subsequent versions.

Prior benchmarks evaluate agents on single-step transitions or isolated tasks. They fail to capture the realistic "maintenance cycle" where an agent must carry its own modified codebase forward. If an agent introduces a subtle bug or architectural flaw in version 1.1, can it successfully upgrade the package to version 1.2? SWE-CHAIN addresses this gap by evaluating agents on chained, multi-version package upgrades.

Methods

The authors introduce a sequential evaluation framework alongside a novel specification generation pipeline:

  1. DecompSynth Pipeline: To prevent agents from drowning in the noisy, unstructured text of raw GitHub issues and pull requests, the authors developed DecompSynth. This divide-and-conquer pipeline uses an LLM to align maintainer-authored release notes with actual code diffs (hunks). It then synthesizes clean, grounded, and structured upgrade specifications.
  2. Version-Upgrade Protocol: Evaluation is strictly sequential. For a chain of releases ($V_1 \rightarrow V_2 \rightarrow \dots \rightarrow V_N$), the agent's output codebase from the previous step serves as the starting point for the next upgrade step.
  3. Build+Fix Regularization: To avoid unfairly penalizing agents for brittle environment setup or import mismatches, the evaluation protocol includes a "Fix" phase. If execution-level errors occur after the initial build, the agent receives an error report and is granted one controlled attempt to repair the interface.
Figure 1: Overview of the SWE-CHAIN pipeline. For each version upgrade, we collect release notes, extract diffs, and prepare environments. An agent matches hunks to tasks and synthesizes specifications, which are used to evaluate agents sequentially, with an extra fixing step for errors.

Datasets

The SWE-CHAIN benchmark consists of 12 upgrade chains sourced from 9 popular open-source Python packages (including Flask, Jinja2, pytest, poetry, and xarray).

In total, the dataset spans:

  • 155 version transitions
  • 1,660 grounded upgrade tasks

The scale of these chains varies significantly, providing a rigorous test of scalability, as detailed in the paper's dataset summary:

Scale of the chains in SWE-CHAIN

Key Insights and Ideas

  • The Compounding Error Problem: Continuous maintenance acts as a capability filter. Agents that seem competent in single-step tasks degrade over long horizons because unaddressed requirements and minor regressions accumulate over successive releases.
  • Specification Granularity Matters: The authors experimented with five levels of specification detail (L1 to L5). They discovered that raw issue/PR artifacts (L1) make poor upgrade specifications. Providing structured conceptual expectations and constraints (L3) dramatically improves agent precision and prevents regressions without leaking exact implementation recipes.
  • CLI-Model Alignment: The benchmark reveals that an agent's performance depends heavily on the synergy between the underlying LLM and its agentic framework (CLI). For instance, GPT-5.4 performed noticeably better when paired with the Codex CLI than with the OpenCode CLI.

Key Results

The authors evaluated 9 frontier agent-model configurations. The overall performance highlights that continuous package upgrading is highly discriminative and difficult:

  • Low Overall Success: Across all configurations, agents achieved an average resolving rate of only 44.8% under the Build+Fix regime, leaving more than half of the upgrade requirements unfulfilled.
  • The Frontrunner: Claude-Opus-4.7 (running via Claude Code) achieved the highest performance, leading the pack with a 60.8% resolving rate, 80.6% precision, and an 68.5% F1-score. GPT-5.5 (via Codex) followed closely behind.
  • Impact of Build+Fix: Allowing a single fix turn for execution errors boosted average precision from 54.0% to 65.4%, proving highly effective at mitigating brittle setup failures while leaving core logic capability gaps intact.
Average performance across 12 chains

Performance varied sharply by repository. Simpler packages like PyJWT saw resolving rates near 80%, while complex, data-heavy libraries like xarray and large tools like conan caused agent performance to plummet below 30%:

Figure 2: Build+Fix resolving rate by agent and chain, order left-to-right by increasing difficulty.

Limitations and Future Work

  • Language and Ecosystem Lock-in: SWE-CHAIN is currently limited to the Python ecosystem and its specific build tools. Future iterations need to explore compiled languages (like Go or Rust) and multi-language ecosystems.
  • Lack of Human Validation: Due to the massive scale (1,660 tasks), the synthesized specifications were not fully verified by human experts, though stability checks show the pipeline is highly robust.
  • High Evaluation Cost: Running long-horizon evaluations sequentially is expensive. Evaluating a single strong model across a full chain can cost up to $150 in API tokens, limiting the feasibility of cheap, repeated sampling runs.

Summary updated

BibTeX
@misc{lam2026swe,
  author = {Man Ho Lam and Chaozheng Wang and Hange Liu and Jingyu Xiao and Haau-sing Li and Jen-tse Huang and Terry Yue Zhuo and Michael R. Lyu},
  title = {{SWE-Chain: Benchmarking Coding Agents on Chained Release-Level Package Upgrades}},
  year = {2026},
  eprint = {2605.14415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.14415},
}
Figure