Fixed or Deleted? External Feedback Lets Cheaper AI Coding Agents Repair Rule Violations
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Many defects violate project rules that the code itself does not reveal, such as layering constraints or required tests. We study whether LLM coding agents repair such violations better when an external checker reports them, with their location and a repair goal. Three models, a small, medium and large model, driven by an AI agent, worked on 25 pull requests with 31 planted defects in ten open-source projects, plus 5 correct controls, five times alone and five times with findings from CodeAssure (CA), a commercial checker. We also compare with GitHub Copilot code review, and compare CodeAssure's detection with nine free static-analysis tools run out of the box, including Semgrep and SonarQube Community. Counting a run as repaired only when the repaired code also compiles and keeps its feature, CA findings raised the repair rate from 26% to 69% for the smallest model, from 46% to 90% for the medium model and from 45% to 93% for the largest model (pull-request-level p < 0.001), and from 39% to 84% over all runs. Every Java, TypeScript and Python repair compiled. We found that agents often cleared a defect by deleting a newly added file. Metrics based on whether the defect is gone count feature deletion as a success. The largest model alone did so in 44 of 125 runs. CA includes a check for deleted files that largely prevents this. In an ablation with the check turned off, removals rose from 9 to 65 out of 375 runs and the repair rate fell to 54% (small), 70% (medium) and 85% (large model). The CA workflow also outperformed Copilot code review (p < 0.001). Together, the free tools detected 8 of the 31 defects, and CA detected all 31. With CA, the medium model repaired 90% of runs, against 45% for the largest model alone, at about one fifth of the mean cost per run (0.17 against 0.91).
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 20 of its 29 references that are in the map. Submitted 22 Nov 2026, announced 24 Nov 2026.
Builds on
20 of 29 references.
Closest ancestors · 4
Same direction, newest first
- 2026Exploration Structure in LLM Agents for Multi-File Change Localization10 Jun
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?12 Feb
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 16
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,872
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,170
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 222
- 2025ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Casescited by 101
- 2025EvilGenie: A Reward Hacking Benchmarkcited by 35
- 2025Static Analysis as a Feedback Loop: Enhancing LLM-Generated Code Beyond Correctnesscited by 10
- 2024Efficiently Distilling LLMs for Edge Applicationscited by 6
- 2025CodeCureAgent: Automatic Classification and Repair of Static Analysis Warningscited by 5
- 2024Flexible and Effective Mixing of Large Language Models into a Mixture of Domain Expertscited by 3
- 2026Evaluating Large Language Models for Detecting Architectural Decision Violationscited by 3
4 more
- 2026Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflowscited by 3
- 2024Collaboratively adding new knowledge to an LLMcited by 2
- 2022Neural-Progressive Hedging: Enforcing Constraints in Reinforcement Learning with Stochastic Programmingcited by 1
- 2026Quantum-Inspired Trace-Augmented Evidence Selection for Reasoning over Structured Hypothesis Spacescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Agentic Program Repair from Test Failures at Scale: A Neuro-symbolic approach with static analysis and test execution feedback
- 2026What Makes a Good Bug Report for an AI Agent?
- 2026Why Are AI Agent Involved Pull Requests (Fix-Related) Remain Unmerged? An Empirical Study
- 2026PROBE: Frontier Coding Agents Find Different Bugs Than Maintainers Fix
- 2026Coding Agents Don't Know When to Act
- 2025Evaluating Agent-based Program Repair at Google
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repair
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study