SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration

Jialong Chen, Xander Xu, Hu Wei, Chuan Chen, Bing ZhaoarXiv 2026

TL;DR

SWE-CI is a novel repository-level benchmark that shifts the evaluation of LLM coding agents from static, "one-shot" bug fixing to dynamic, long-term codebase maintenance within a Continuous Integration (CI) loop. By tracking how code changes over successive iterations, it introduces EvoScore to measure true software maintainability and technical debt. The findings reveal a striking divergence: while current LLMs excel at writing superficially clean code, they struggle to prevent regressions and maintain structural health over time.

What Problem Does This Paper Address?

Existing code generation benchmarks (like HumanEval or SWE-bench) typically use a "snapshot" paradigm. An agent receives a single problem description, generates a one-shot patch, and is judged purely on whether it passes the current test suite.

However, in the real world, software development is an iterative marathon. A clever hack and a beautifully engineered, modular solution might both pass the same initial tests. But when new requirements arrive or interfaces change, the hacky solution accumulates technical debt, making future modifications increasingly difficult or prone to breaking existing features (regressions).

This paper addresses the lack of benchmarks capable of evaluating an agent's ability to write maintainable code that can withstand long-term codebase evolution.

Figure 1: Unlike previous benchmarks, SWE-CI proposes an evolution-based evaluation. The red and blue arrows represent the actions of functions require and code, respectively. Dashed lines indicate processes that are unknown to the user.

Methods

To capture the dynamics of long-term software maintenance, the authors introduce three core components:

  1. Evolution-Based Evaluation Paradigm: Instead of a static prompt, requirements are derived dynamically based on the delta between the agent's current codebase and a target "golden" codebase.
  2. Architect-Programmer Dual-Agent Protocol: To mimic real-world development teams, the evaluation uses two distinct agent roles executing a CI loop:
  3. Architect Agent: Analyzes test failures, locates root causes, and designs a high-level, natural language requirements document (limited to 5 urgent items to prevent over-designing).
  4. Programmer Agent: Comprehends the requirements, plans the implementation, and modifies the source code without direct access to the raw test gap.
  5. EvoScore: A new metric that aggregates a codebase's functional correctness over $N$ iterations using a future-weighted mean ($\gamma \ge 1$). This heavily rewards agents whose early design decisions make subsequent modifications easier, while penalizing those that accumulate technical debt.
Figure 3: SWE-CI uses an architect-programmer dual-agent workflow to model the continuous integration cycle of professional software teams in the real world.

Datasets

The authors introduced SWE-CI, a benchmark consisting of 100 tasks sourced from 68 distinct real-world Python repositories on GitHub.

To ensure the tasks represent genuine, long-term software evolution rather than trivial tweaks, the data curation pipeline enforced strict filters:

  • Repositories must be active for $\ge 3$ years with $\ge 500$ stars.
  • Each task maps a historical "base commit" to a "target commit" separated by an average of 233 days and 71 consecutive commits.
  • The transition requires at least 500 lines of modified source code (excluding tests) and a test gap of at least 5 test cases.
  • Docker environments are automatically constructed with a dynamic self-repair mechanism to handle missing dependencies.
Figure 2: Data curation process of SWE-CI.

Key Insights and Ideas

  • Superficial Cleanliness vs. Structural Complexity: In a fascinating side-by-side comparison with human code, 15 out of 20 LLMs beat human developers on Pylint scores (surface-level style conventions like line length and naming rules). However, all 20 LLMs underperformed humans on the Maintainability Index (MI) score, which tracks structural attributes like cyclomatic complexity. LLMs write code that looks clean to a linter but is structurally tangled under the hood.
  • The Cost of Conciseness: LLMs consistently generate much more concise patches than humans. While this seems efficient, the authors show it comes at the cost of maintainability. Humans write more verbose code because they proactively invest in abstraction, encapsulation, and modularity—practices LLMs ignore in favor of the absolute minimum edit required to pass the immediate test.
  • The Regression Bottleneck: As maintenance iterations progress, the regression rate (breaking previously working tests) increases for most models. LLMs resort to localized trial-and-error on harder problems later in the cycle, fixing one thing while inadvertently breaking another.

Key Results

The authors conducted extensive evaluations across 20 state-of-the-art models from 8 providers, consuming over 10 billion tokens.

  • SOTA Performance: LLM capabilities are advancing rapidly. Models released later generally score much higher on EvoScore. The Claude Opus series demonstrated a commanding lead throughout the evaluation period, followed closely by GLM-5.
  • Low Zero-Regression Rates: Most models achieved a zero-regression rate (the proportion of tasks completed without a single regression) below 0.25. Only the Claude Opus models managed to exceed 0.5.
  • Low Overall Solved Rates: Long-term maintenance is incredibly difficult for AI; most evaluated models successfully resolved fewer than half of all requirements by the end of the 20-turn limit.
Figure 4: The EvoScore variation of state-of-the-art models from 8 providers on SWE-CI.

Limitations and Future Work

  • Token Consumption: Running multi-turn, repository-level CI loops over dozens of iterations is incredibly resource-intensive, making widespread benchmarking expensive.
  • Regression Control: Current LLMs lack the long-horizon planning necessary to reliably avoid regressions over extended evolution cycles.

The authors hope SWE-CI will serve as a catalyst for the next generation of coding agents—shifting the focus from models that merely write code that works, to models that write code that lasts.

Summary updated

BibTeX
@misc{chen2026swe,
  author = {Jialong Chen and Xander Xu and Hu Wei and Chuan Chen and Bing Zhao},
  title = {{SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration}},
  year = {2026},
  eprint = {2603.03823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.03823},
}
Figure