This paper evaluates multi-agent AI systems for automating software bug detection and code refactoring. We design a cooperative architecture in which specialized agents—static-analysis, test-generation, root-cause, and refactoring—coordinate via a planning agent to propose, verify, and apply patches. The system integrates LLM-based reasoning with conventional program analysis to reduce false positives and preserve behavioral equivalence. We implement a reference pipeline on opensource Python/Java projects and compare against single-agent and non-LLM baselines. Results indicate higher fix precision and refactoring quality, with reduced developer review time, especially on multi-file defects and design-smell cleanups. We report ablations on agent roles, verification depth, and communication cost, and discuss failure modes (spec ambiguities, overrefactoring, flaky tests). A reproducible workflow, dataflow diagram, and flowcharts are provided to support replication. Our findings suggest that disciplined, verifiable agent orchestration is a practical path to safer, more scalable automated maintenance in modern codebases.
Aamina et al. (Sat,) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: