General-purpose code agents achieve strongest overall automated patching performance
General-purpose code agents outperform other LLM-based patching architectures on real-world vulnerability tasks
Software arXiv 1 Mar 2026 Measurement Simulation evidence
Published as “A Systematic Study of LLM-Based Architectures for Automated Patching”
Why it matters
Choosing a general-purpose coding agent can boost patch success rates for diverse vulnerabilities, but teams must budget for higher token usage and latency.
Summary
General-purpose coding agents (Claude Code) repaired 16 of 19 real-world Java vulnerabilities, outperforming the best patch-specific architecture (13/19). However, they consume significantly more tokens and cost, and multi-agent systems incur higher overhead and can suffer reasoning drift, sometimes not beating single-agent designs.
What they found 6
- General-purpose code agents achieve the strongest overall patching performance.
“Surprisingly, generalpurpose code agents achieve the strongest overall patching performance, benefiting from general-purpose tool interfaces that support effective adaptation across vulnerability types.”
- Claude Code repaired 16/19 vulnerabilities, the best among all evaluated systems.
“Claude Code successfully repairs 16/19 vulnerabilities, while the best patch-specific agent repairs at most 13/19 (multi-agent on GPT-5).”
- Fixed-workflow architectures are efficient but brittle.
“fixed workflows are efficient but brittle”
- Multi-agent designs improve generalization but incur higher overhead and reasoning drift.
“multi-agent designs improve generalization at the expense of substantially higher overhead and increased risk of reasoning drift on complex tasks.”
- Multi-agent systems do not consistently outperform well-designed single-agent systems.
“multi-agent designs do not consistently outperform well-designed single-agent systems, indicating that coordination overhead can offset the benefits of agent specialization in vulnerability repair.”
- General coding agents are more token-inefficient but more robust against infinite loops and long-running failures.
“We find that patch-specific agents are more token-efficient, while general coding agents show stronger robustness against infinite loops and long-running failures.”
Caveats 2
- General coding agents incur significantly higher token cost than patch-specific agents.
- Multi-agent designs add substantial overhead and can suffer reasoning drift, sometimes yielding lower performance than single-agent systems.
What’s new here 3
- Systematic, controlled comparison of four distinct LLM-based patching architectures on a unified benchmark.
- Demonstration that a general-purpose code agent can achieve the highest overall patch success rate across diverse vulnerabilities.
- In-depth analysis of trade-offs in token usage, execution time, and robustness among architectures.