Skip to content
Open access

SCAgent: An LLM‐Based Agent With State‐Aware Coordination for Automated Program Repair

Aug 2026 · Expert systems · Vol 43 · 0 citations · 27 references

TL;DR

This paper proposes SCAgent, an LLM‐based agent for APR with state‐aware coordination, which structures the repair process into coordinated stages, including bug understanding, information gathering and patch generation, and dynamically controls transitions between these stages based on the repair context.

Abstract

Automated program repair (APR) has emerged as a promising technique for improving software reliability by automatically fixing bugs. Recent advances in large language models (LLMs), particularly LLM‐based agents, have further enhanced repair capabilities by enabling flexible patch generation and iterative reasoning. However, existing LLM‐based agent frameworks still suffer from several limitations, including unstructured repair processes, unproductive trial‐and‐error loops and the lack of explicit coordination between reasoning and action, which lead to inefficient and unstable repair behaviours. In this paper, we propose SCAgent, an LLM‐based agent for APR with state‐aware coordination. SCAgent structures the repair process into coordinated stages, including bug understanding, information gathering and patch generation, and dynamically controls transitions between these stages based on the repair context. Experimental results on Defects4J show that SCAgent correctly repairs 173 bugs. We further conduct a preliminary evaluation on GitBug‐Java to assess its potential generalizability, with SCAgent correctly repairing 15 bugs in a sampled subset of 100 bugs.

Read PDF

Similar papers

Aug 2026

CGARF: a causality-guided framework for reliable automated program repair

Results suggest that causal-aware reasoning and stability-oriented design can improve the effectiveness of LLM-based APR, a causality-guided multi-agent repair framework that improves the repair stage of existing LLM-based localization pipelines.

Lei Yuan, Shaohua Liu, Yu Wang et al. · 0 citations
Review Open access Aug 2026

AgentCodeReview: Implementation and Comprehensive Benchmark Evaluation of a Multi-Agent Framework for Explainable Code Review and Automated Bug Repair

The AgentCodeReview system is presented, a multi-agent system that is able to conduct explainable code review and automated bug repair by leveraging software engineering agents with different code review tasks and its utility and extensibility to the field of explainable AI in software quality assurance are demonstrated.

B. N, T. L. Manasa · 0 citations
Review Open access Aug 2026

Agentcodereview: A Multi-Agent Framework For Explainable Code Review And Automated Bug Repair

Comparisons of AgentCodeReview against single-agent and non-agentic baselines indicate that role specialization and explicit verification improve review accuracy, repair effectiveness and the transparency of the generated rationales, offering a reproducible pathway toward trustworthy autonomous software maintenance.

B. N, T. L. Manas · 0 citations
#computer vision Review Aug 2026

REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring

This work introduces REFINE (Refactoring with Evidence-aware Flow for Integrated ageNtic Execution), a tool-agnostic, evidence-aware multi-agent approach for generating Java file-level refactoring candidates that achieves a higher median code-smell reduction with smaller edits and fewer public-method removals.

Muhammad Waseem, Aakash Ahmad, Pekka Abrahamsson · 0 citations
Preprint Aug 2026

Repair or Resample? Rethinking Failure Debugging in LLM Multi-Agent Systems

This study introduces SymTrace, a controlled evaluation framework that records the MAS execution trajectory and establishes intervention anchors and explores the effectiveness of MAS repair methods, revealing that existing unguided rerun methods are highly unreliable.

Zhong-Wen Luan, Xiaoyan Zhang, Ming Hu et al. · 2 citations
Preprint Aug 2026

Evaluating Agentic Code Repair Capabilities in Distributed Systems

DDBench is introduced, a code-repair benchmark of 60 historical bugs mined from 13 open-source distributed systems, partitioned into three difficulty tiers, isolating the effect of debugging context from model capability.

Yibo Yan, Huijuan Wang, Junzhou He et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.