TL;DR
SWE-Cycle is a new benchmark designed to evaluate autonomous code agents across the entire software development lifecycle—from environment setup to code implementation and test generation. The authors also introduce SWE-Judge, an execution-capable evaluation agent that combines static analysis with dynamic testing to provide a more accurate, human-aligned assessment than traditional, brittle unit-test scripts.
What Problem Does This Paper Address?
Current benchmarks for code agents, such as the popular SWE-bench, often provide "scaffolding" that masks the true complexity of real-world engineering. They typically offer pre-configured Docker environments and fixed "gold" test suites. In reality, a developer must first reconstruct the environment and then write their own tests to verify a fix.
Furthermore, traditional evaluation relies on rigid static parsers or binary pass/fail unit tests. These are often brittle: they might fail a functionally correct alternative implementation (excessive strictness) or pass a "hacky" solution that exploits test loopholes (excessive leniency). This paper aims to bridge the gap between these "isolated" tasks and the messy, interconnected reality of end-to-end issue resolution.
Methods
The authors propose a two-part framework:
- SWE-Cycle Benchmark: It decomposes issue resolution into three isolated tasks—Environment Reconstruction (Env), Code Implementation (Impl), and Verification Test Generation (TestGen)—and a unified FullCycle task. In the FullCycle setting, an agent starts with only a bare repository and an issue description, requiring it to navigate all three phases autonomously.
- SWE-Judge: Instead of a simple script, the authors use an "Agent-as-a-Judge" (powered by Claude-Opus-4.5). SWE-Judge performs a hybrid evaluation:
- Static Judge: Reviews code diffs for logical correctness and structural quality.
- Dynamic Judge: Executes the code, analyzes raw logs, and uses "fault injection" to ensure generated tests actually catch the bug rather than passing by chance.
- Intervention Mechanism: In the FullCycle task, if an agent's generated tests are too poor to verify their code, SWE-Judge can intervene and provide refined tests to ensure the subsequent code implementation is evaluated fairly.
Datasets
The benchmark consists of 489 high-quality instances distilled from SWE-bench Verified, Pro, and Multilingual. The authors applied a rigorous three-stage filtering pipeline:
- Contamination Detection: Removing instances the models likely saw during training.
- Lifecycle Complexity: Ensuring tasks represent real engineering effort (e.g., requiring at least one code review comment and spanning at least one day in the original PR).
- Test Reliability: Executing "gold" tests to ensure they correctly transition from fail to pass.
The final set spans 9 programming languages, though it is dominated by Python (68.9%) and Go (18.0%).
Key Insights and Ideas
- The "Illusion of Capability": Models that perform well on isolated tasks often crumble when faced with the FullCycle task. The solve rates drop sharply, revealing that handling cross-phase dependencies is a major bottleneck for current LLMs.
- Structural Debt vs. Dynamic Correctness: In the FullCycle task, agents often enter a "write-run-fix" loop. While this improves their ability to pass tests (dynamic correctness), it often leads to messy, redundant, or overly broad code changes (accumulating structural debt), which SWE-Judge's static analysis catches.
- Cascading Errors: Failures are rarely isolated. A breakdown in environment setup or a poorly designed test suite highly correlates with failure in the final code implementation.
- Judge Reliability: SWE-Judge achieved a 98.6% agreement rate with human annotators, compared to a dismal 0.5% for traditional scripts in cases where the two methods disagreed.
Key Results
The authors evaluated six state-of-the-art LLMs (including GPT-5.4, Claude-Sonnet-4.6, and GLM-5.1).
- FullCycle Difficulty: No model achieved a solve rate higher than 13.5% (GLM-5.1) on the FullCycle task, highlighting the massive room for improvement in autonomous agents.
- Leaderboard: While Claude-Sonnet-4.6 and GLM-5.1 were top contenders, the results show that even the best models struggle with downstream tasks like TestGen when integrated into the full cycle.
- Failure Analysis: As shown in Figure 2, the vast majority of failures in the FullCycle task involve compound errors across all three phases, rather than failing just one isolated part.
Limitations and Future Work
- API Dependency: The current SWE-Judge relies on the Claude API. This makes the benchmark susceptible to external API fluctuations and version updates. The authors suggest that future work should focus on fine-tuning open-weight models to act as robust, independent verifiers.
- Language Balance: While multilingual, the dataset is still heavily skewed toward Python. Expanding the diversity of high-quality instances in other languages remains a goal.
- Cost: Running an agentic judge is significantly more computationally expensive than running a static script, though the authors argue the increased accuracy justifies the cost.
Summary updated