SWE-ReviewSWE-Review

Closing the Loop on Issue Resolution with Agentic Code Review

Ruoyu Wang*1, Jierun Chen*2, Shaowei Wang2, Chaofan Tao2, Sidi Yang3, Yuxin Jiang2, Kim-Hui Yap1, Lifeng Shang2, Xiaohui Li2, Haoli Bai†2
1NTU, 2Huawei Technologies, 3HKU
*Equal contribution  Corresponding author

▶ SWE-Review in action — resolving a real GitHub issue with the generate–review–revise loop in Claude Code.

SWE-Review Demo

AI coding agents can propose PRs, but often lack a reliable way to diagnose failures and guide revision. SWE-Review closes this loop — agentic code review turns one-shot generation into iterative improvement.

SWE-Review Pipeline

Figure 1: SWE-Review turns one-shot PR generation into closed-loop issue resolution. The generate–review–revise loop continuously raises resolve rate across three PR generators of varying capability.

Abstract

We introduce SWE-Review, a framework for closing the issue-resolution loop with agentic code review. A reviewer agent explores the repository, produces a structured diagnosis, and drives revision — turning one-shot PR generation into a generate–review–revise loop. Key results:

  • Closed-loop pipeline — The generate–review–revise loop continuously improves PRs, raising resolve rate by up to +29.4pp.
  • Test-time scaling — Review-guided iterative revision achieves 3.7× the TTS gain at 6.7× the efficiency of independent resampling.
  • Agentic > single-turn — Outperforms fixed-context review in both decision accuracy and revision usefulness, with the largest gains on harder tasks.
  • Training transfer — Mixed training improves direct resolve rate and enables a self-contained review-then-revise loop.

To support reproducible research, we release:

  • SWE-Review-Bench — 1,384 candidate PRs across three quality tiers with executable verification.
  • SWE-Review-Traj — 8,914 decision-correct agentic review trajectories for open reviewer training.

+29.4

pp Resolve Rate
closed-loop gain

3.7× / 6.7×

Gain / Efficiency
test-time scaling

1,384

Benchmark PRs
3 quality tiers

8,914

Trajectories
for open training

Review-Guided Test-Time Scaling for Issue Resolution

At test time, trained reviewers outperform dedicated verifiers in both effectiveness and efficiency. The approval decision gates sampling; the structured diagnosis is fed back for targeted revision. Structured diagnoses enable iterative refinement that scalar scorers cannot implement, achieving higher resolve rates at a fraction of the sample cost.

TTS resolve rate

Figure 2(a): Resolve rate vs sample budget.

TTS efficiency

Figure 2(b): Actual samples spent.

Agentic Beats Single-Turn Review

Holding the reviewer model fixed (Claude Opus 4.6), agentic review consistently outperforms single-turn review (diff-only and diff+context) in both DA and RRR. The main advantage is not merely having more context, but being able to adaptively gather the correct evidence for the specific PR under review. Interactive evidence gathering is especially valuable when candidate PRs are lower quality and more likely to contain partial or non-local fixes.

Review Mode GLM-5
(high)
Qwen3-Coder-30B-A3B
-Instruct (medium)
Qwen3-30B-A3B
-Instruct-2507 (low)
DA ↑RRR ↑ DA ↑RRR ↑ DA ↑RRR ↑
Single-turn (diff-only)71.371.472.056.780.841.2
Single-turn (diff+context)69.872.673.857.682.744.1
Agentic review75.675.280.567.389.452.6

Table 1: All settings use Claude Opus 4.6 as reviewer. Gains are largest on the hardest split: +6.7pp DA, +8.5pp RRR over best single-turn. DA (Decision Accuracy ↑) = fraction of correct approve/reject decisions. RRR (Resolve Rate after Revision ↑) = final resolve rate after the review-then-revise loop.

Review Trajectories Generalize to Issue Resolution

Review trajectories can be mixed with issue-resolution data to produce a single model that is better at both roles. Review and resolution share a transferable repository-reasoning skill: mixed training simultaneously improves one-shot issue resolution and enables a self-contained generate–review–revise loop.

Training Data RR ↑
one-shot resolve
CR ↑
review ability
DA ↑
review quality
RRR ↑
self-review + revise
Issue-resolution 1k27.69.450.027.6
+ Review 1k28.4 +0.867.667.434.6 +7.0
Issue-resolution 2k31.213.451.731.2
+ Review 2k36.8 +5.685.469.541.8 +10.6
Issue-resolution 3k34.033.551.634.0
+ Review 3k37.8 +3.887.472.341.2 +7.2

Table 2: Qwen3-8B fine-tuned with issue-resolution trajectories alone vs. paired with an equal volume of review trajectories. RR (Resolve Rate ↑) = one-shot resolve rate on SWE-bench Verified. CR (Completion Rate ↑) = fraction of instances with a parseable review.

SWE-Review-Bench

We construct SWE-Review-Bench from 500 SWE-bench Verified issues with executable test suites. Three models of varying capability generate 1,384 candidate PRs spanning high-, medium-, and low-quality distributions. We evaluate review with three complementary metrics: Completion Rate (CR) measures whether the reviewer produces a parseable final review; Decision Accuracy (DA) measures whether the approve/request-changes decision is correct; Resolve Rate after Revision (RRR) measures whether the review improves the final patch outcome.

PR GeneratorResolve Rate# PRs
GLM-5 (high)72.2%500
Qwen3-Coder-30B-A3B
-Instruct (medium)
50.9%462
Qwen3-30B-A3B
-Instruct-2507 (low)
27.5%422

Leaderboard

Reviewer Model CR (%) DA (%) RRR (%) Δ RR

Table 3: SWE-Review-Bench Leaderboard. SWE-Review-8B and SWE-Review-30B-A3B are Qwen3 models fine-tuned on SWE-Review-Traj. Click column headers to sort. Δ RR = improvement over no-review baseline.

SWE-Review-Traj

High-quality trajectories for agentic code review remain scarce in the open-source community. We construct SWE-Review-Traj, a dataset of 8,914 decision-correct agentic review trajectories to support training and evaluation of open reviewers:

  1. 1 Candidate PR Generation — Three models generate patches for ~6,000 SWE-rebench issues (excluding any repository in SWE-Review-Bench to prevent leakage), producing 14,156 candidate PRs.
  2. 2 Teacher Review — Open-weight GLM-5 with thinking enabled reviews each PR agentically via OpenHands-SDK. The prompt asks the teacher to first understand the issue and trace the root cause before inspecting the PR, avoiding confirmation bias.
  3. 3 Decision-Correct Filtering — We retain trajectories where the reviewer correctly approves a resolving patch or correctly requests changes on a non-resolving one, yielding 8,914 trajectories.
  4. 4 Quality ValidationSemantic: Two judges (Claude Opus 4.6, GPT-5.4) rate diagnosis quality (mean >3.0/5, Cohen's κ = 0.72). Functional: Diagnoses carry actionable information beyond the binary decision — revision RRR rises from 3% (no review) → 8% (decision only) → 21% (teacher review) → 32% (oracle).

Key Takeaways

Closing the Loop Works — The generate–review–revise loop continuously improves PRs, raising resolve rate by up to +29.4 percentage points on SWE-bench Verified.

Structured Diagnoses Enable Efficient Test-Time Scaling — Review-guided iterative revision achieves 3.7× the test-time scaling gain at 6.7× the efficiency of independent resampling.

Review Trajectories Transfer to Issue Resolution — Mixed training with review data improves one-shot resolve rate (+5.6pp) and enables self-contained review-revise loops within a single model (+10.6pp).

Citation

@article{wang2026swereview,
  title={SWE-Review: Closing the Loop on Issue Resolution with Agentic Code Review},
  author={Wang, Ruoyu and Chen, Jierun and Wang, Shaowei and Tao, Chaofan and Yang, Sidi and Jiang, Yuxin and Yap, Kim-Hui and Shang, Lifeng and Li, Xiaohui and Bai, Haoli},
  journal={arXiv preprint},
  year={2026}
}