Recent analysis from GitClear shows that teams using AI‑assisted coding environments such as Claude Code and Cursor are delivering 25% more code than they did before AI adoption, but the quality signals have shifted dramatically. Block‑level duplication rose 81% between 2023 and 2026, while refactoring activity fell from 21% to under 4% of changed lines. The raw output increase does not automatically translate into business value, and the growing duplication threatens long‑term maintainability.
What changed?
GitClear examined 623 million code‑change operations from 2023‑2026. Heavy AI users out‑produced non‑AI users by a factor of 4‑10×, yet most of that advantage existed before AI tools were introduced. The AI boost itself added roughly a quarter‑of‑a‑step to existing velocity. Simultaneously, the dataset recorded a jump in block duplication from 40.3 to 73.0 instances per million changed lines and a collapse in refactoring‑related changes from 21% to 3.8% of all modifications.
Why engineers should care
For AI engineers, platform teams, SREs, and security specialists, the data surface two practical concerns:
- Maintainability risk: Higher duplication means more code locations to patch, test, and monitor, increasing the likelihood of regressions and security gaps.
- Operational cost drift: The modest 25% speed gain may not offset the hidden cost of future rework, as duplicated logic often requires manual reconciliation later.
Both factors erode the ROI that organizations expect from AI coding spend.
Architectural and implementation implications
When AI tools are integrated into the development pipeline, teams should consider the following architectural safeguards:
- Enforce static analysis rules that flag high‑frequency duplication patterns. Tools that surface
duplicate blockwarnings can be wired into CI pipelines. - Maintain a refactoring budget or policy that requires a minimum percentage of changed lines to be classified as refactoring. This can be measured with the same GitClear metrics used in the study.
- Isolate AI‑generated code in feature branches or dedicated directories to simplify later audits and targeted clean‑up.
- Document AI‑prompt configurations and model versions so that any regression in output quality can be traced back to a specific tool setting.
Operational and security considerations
From an operations perspective, the rise in duplication has downstream effects on incident response and security scanning:
- Duplicated code paths can hide vulnerabilities; a flaw in one copy may be missed in others. Regular security scans should be scoped to cover all duplicate instances.
- Increased code churn without refactoring can inflate build times and CI resource consumption, affecting SRE capacity planning.
- Budget tracking tools, like the anti‑token‑maxxing console mentioned by Rippling, become essential to correlate spend with the actual quality outcomes measured above.
Related CloudNinjas coverage: AI engineering.
What This Means For Practitioners
Practitioners should treat AI coding assistants as productivity aids, not as replacements for disciplined engineering practices. Immediate actions include:
- Instrument CI pipelines to capture duplication and refactoring metrics; set alerts when duplication exceeds a defined threshold.
- Allocate time in sprint planning for dedicated refactoring work, especially on AI‑generated changes.
- Review AI tool spend against the 25% velocity gain and the observed quality degradation; adjust budgets or usage limits accordingly.
- Integrate security scanning that specifically checks duplicated blocks for consistent vulnerability remediation.
By coupling AI‑driven speed with rigorous quality gates, teams can avoid the hidden cost of an 81% rise in duplication and keep their codebases maintainable, secure, and truly valuable.

