Do These Violent Delights Have Violent Ends? Measuring the Post-Merge Fate of Agentic Code
Summary
A longitudinal empirical study across 182 open-source repositories, tracking contributions from May 2025 to May 2026, reveals the post-merge fate of agentic code compared to human code. While overall maintenance rates are similar, agentic contributions require a 46% higher corrective maintenance rate and a 45% higher bug-fixing rate. They also introduce 1.14 times more Semgrep security findings and 1.10 times more OSV-Scanner dependency vulnerabilities. The study found that a 10 percentage-point increase in a project's no-review rate is associated with roughly a 6% increase in agentic maintenance burden. This highlights the critical need to evaluate agentic tools for long-term security and maintainability, not just pre-merge success.
Key takeaway
For software engineering teams adopting Generative AI coding tools, recognize that pre-merge metrics like pull request volume are insufficient. Your focus must shift to post-merge code quality, as agentic code demonstrably increases corrective maintenance and introduces more security vulnerabilities. Implement rigorous, human-led code review processes, especially for agentic contributions, and advocate for tools designed to produce maintainable and secure code throughout its lifecycle, not just mergeable changes.
Key insights
Agentic code, despite similar overall maintenance, incurs significantly higher corrective burden and introduces more vulnerabilities post-merge.
Principles
- Generation-review velocity asymmetry creates post-merge costs.
- Lifecycle-spanning evaluation is crucial for agentic code quality.
- Project characteristics influence agentic maintenance burden.
Method
The study employed a longitudinal empirical analysis, tracking line-level survival, classifying commit maintenance intent, and using static analysis tools (Semgrep, OSV-Scanner, SonarQube) on 182 repositories from May 2025 to May 2026.
In practice
- Expand evaluation metrics beyond pre-merge benchmarks.
- Prioritize robust code review processes for agentic contributions.
- Design agentic tools to reduce post-merge maintenance costs.
Topics
- Agentic Coding Tools
- Software Maintenance
- Code Quality
- Security Vulnerabilities
- Code Review
- Generative AI
Code references
Best for: CTO, AI Architect, Research Scientist, AI Scientist, Machine Learning Engineer, Software Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.