Where Do the Costs of AI-Generated Code Land?
Faros AI's 2025 report, drawn from 10,000 developers on 1,255 teams, found that engineers with high AI adoption merged 98% more pull requests. Their review time rose 91%. Company-level delivery metrics stayed flat. Output went up at one end of the pipeline, and the extra work went somewhere between the author and the customer.
This post tests the fourth claim in my series on AI usage as an engineering metric. Of the six, it carries the most vendor data and the least causal evidence, so the sorting of designs matters more here than anywhere else.
The claim
AI coding tools raise code volume. The costs land downstream of where usage dashboards look: review time, defects, incidents, churn, duplication, and instability. Dashboards in the AI era mostly report generation: suggestions accepted, tokens used, pull requests opened. The claim is that the bill for that generation arrives later and in other teams' queues.
How I tested it
The claim has two parts with different standards of proof. That volume rises is easy to establish and appears in every dataset. That quality costs follow requires outcomes measured after merge, normalized for the fact that bigger and more numerous changes mechanically produce more defects. I graded each source by whether it randomized, matched or used fixed effects, or only correlated. I read the primary reports for DORA, Faros 2025, GitClear, CodeRabbit, GitHub, and the academic papers where they were accessible. Then I looked for the best evidence that quality does not suffer, and for any study in the field where review time, defects, or incidents did not rise.
Evidence for the claim
DORA, 2024 and 2025
DORA's 2025 report (Google Cloud, about 5,000 respondents, survey with Bayesian modelling) found that AI adoption now improves delivery throughput, a reversal of 2024, and "still increases delivery instability." The authors tested whether AI weakens the harm instability does and "found no evidence of such a moderating effect." Instability still hurts product performance and burnout. The 2025 report gives standardized effects with 89% credible intervals and no percentages. Its footnotes call the results "comparisons" and the data a snapshot.
The 2024 report, per DORA's own page, estimated about 7.2% lower delivery stability and 1.5% lower throughput for every 25% increase in AI adoption. Between 2024 and 2025 throughput moved from negative to positive and instability stayed where it was.
The one causal-style study on post-merge quality
He and colleagues (arXiv 2511.04427, accepted at MSR 2026) used a staggered difference-in-differences design on 807 open-source repositories that adopted Cursor between January 2024 and March 2025, compared with 1,380 propensity-matched controls. Adoption was identified by .cursorrules files. They found a significant but transient rise in velocity and a persistent rise in SonarQube static-analysis warnings and code complexity. A panel model links the added warnings and complexity to later velocity slowdown. Search summaries quote +30% warnings and +41% complexity, which I could not find in the abstract and leave out.
Faros AI
The 2025 report: 98% more merged PRs, 91% longer review time, flat company metrics. The 2026 "Acceleration Whiplash" report covers two years of telemetry from 22,000 developers on 4,000 teams, comparing high and low AI adoption inside the same organizations:
| Measure at high versus low adoption | Change |
|---|---|
| Epics completed | +66.2% |
| Task throughput | +33.7% |
| PR merge rate | +16.2% |
| Deployments per week | -11.7% |
| PR size | +51% |
| Bugs per PR | +28.7% |
| Bugs per developer | +54% |
| Incidents per PR | +242.7% |
| Median review time | about 5 times |
| Code churn | +861% |
Faros sells AI spend governance and routing, and the comparisons are correlational. The full figures sit behind a registration form.
GitClear
GitClear's 2026 report covers 623 million code changes from 2023 to 2026. Block duplication rose from 40.3 to 73.0 per million changed lines. Moved lines, GitClear's proxy for refactoring, fell from 21% of changes in 2022 to 13% in 2023 and 3.8% in 2026 to date. Copy and paste rose from 9.4% in 2022 to 15.7% in the first half of 2026. Long-term legacy updates fell 74%, and error-masking constructs rose 47%. GitClear's own framing: "The headline is not 'AI writes bad code.'" Its claim is that the default workflow rewards the happy path and taxes deferred maintenance.
CodeRabbit, Uplevel, and developer sentiment
CodeRabbit's December 2025 study of 470 open-source PRs (320 AI co-authored and 150 human-only) found 10.83 issues per AI PR against 6.45, with logic and correctness issues up 75% and security issues up to 2.74 times. CodeRabbit sells AI code review. Uplevel's study of about 800 developers found no change in cycle time or PR throughput and 41% more bugs, though it measured Copilot access and not usage, and its page gives no period.
The 2025 Stack Overflow survey found 46% of respondents distrust AI output accuracy against 33% who trust it, with 3.1% highly trusting it. Sixty-six percent cite "almost right, but not quite" as a frustration, and 45.2% say debugging AI code takes longer. Those are perceptions and carry no measurement.
Evidence against the claim
DORA's 2025 respondents report better quality more often than worse. Fifty-nine percent say AI improved code quality (31% slightly, 21% moderately, 7% extremely), 30% report no impact, and 10% report a decline. It is self-reported and Google Cloud sponsors the study.
GitHub ran a randomized trial with 202 valid submissions (104 Copilot, 98 control) from Python developers with five or more years of experience. Copilot users were 53.2% more likely to pass all 10 unit tests (p<0.01). GitHub's definition of "code error" excludes functional errors, so its headline readability gain measures style. The task was one CRUD web server, and GitHub sells Copilot. The Register carried a published critique.
An ANZ Bank crossover experiment (arXiv 2402.05636) with about 100 engineers over four weeks found 42.36% less time on small Python tasks, with fewer SonarQube bugs (p=0.033) and fewer code smells (p=0.007). The quality tests rest on only 17 paired data points, unit-test success rose by a non-significant 12.86%, and time was self-reported by volunteers. An ANZ CTO is an author.
The Cui field experiments (4,867 developers, +26.08% completed tasks) report no quality outcome in their abstract. Google's migration report (arXiv 2501.06972) says 80% of code modifications in landed changes were AI-authored and engineers estimated 50% less time, and calls itself "not a research study." It reports no defect or incident rates.
In the NBER study I cover in the spend-and-shipments post, the authors tested whether a decline in commit quality or more verbose AI code explains why commits rose far more than releases. Neither did. Their quality measure stops short of a defect rate.
Faros 2025 reported company-level delivery metrics as flat. Flat is a milder finding than worse.
The gap in this evidence is specific. I found no field study that measured review time, defects, or incidents after merge and found they did not rise. One search for such a study returned nothing usable. That absence is thin evidence, and it sits against a body of evidence with its own design problems.
Confounds and limits
The attribution problem is the largest. GitClear's headline trends for 2023 to 2026 are calendar-period, all-developer figures. Its own live index counts about 8.6 million AI-attributed lines out of 1.1 billion, roughly 0.8%, since December 2024, using "LLM fingerprints" from commit authorship and AI API statistics. The public text never states a measured AI share of the 623 million changes. The trends are real, and nothing in the public record ties them to AI.
Denominators change the story. CodeRabbit counts issues per 100 PRs, and larger PRs raise that count by construction. Faros shows PR size up 51% and bugs per PR up 28.7%, against bugs per developer up 54%. CodeRabbit also treats any PR with no AI signal as human-written, and says so.
DORA's instability metric is itself a dashboard measure, which leaves the "where dashboards look" half of the claim untested. No source examined what dashboards display.
Uplevel measures access and not use. GitHub and ANZ test small tasks, and DORA and Stack Overflow measure perception. Veracode's 2025 report, which says 45% of tests produced risky flaws, I could read only at its landing page, so it stays out.
Randomization appears in GitHub, ANZ, and Cui. Matching or fixed effects appear in the Cursor study, the NBER paper, and a Microsoft dose-response preprint with 16,223 engineers and a +40.5% PR gain and no quality outcome. DORA is adjusted observational. Faros, GitClear, CodeRabbit, and Uplevel are uncontrolled or unspecified. Most agent data covers about a year, mostly in open source, and early-2025 tools differ from current ones.
The Faros 2025 figure carries one loose end. A snippet in one search result showed +47% PRs per day against the +98% I cite from the primary page, and I did not resolve the difference.
What survives
The volume half is established. Every dataset that measures output shows it rising, and the only open question is how far.
The downstream half is consistent in direction across six designs: an adjusted survey (DORA), a difference-in-differences study on public repositories, three vendor telemetry sets, and a repository-wide analysis. Together they point toward review load, complexity, and instability rising alongside output. None of them is a field experiment on proprietary code with post-merge defect and incident outcomes normalized per change.
Costs show up downstream in every dataset that looks there, and the datasets are weaker than the pattern they form.
Confidence and what would change my mind
Medium confidence. Volume is high confidence. The downstream-cost half rests on one causal-style study on open-source repositories with static-analysis proxies, plus consistent but vendor-heavy correlational data.
A field experiment or staggered difference-in-differences on proprietary repositories, with post-merge defects, incidents, and review time normalized per change and per line, would move this to high or low. A replication of the Cursor study on enterprise repositories finding no persistent rise in warnings would weaken it. GitClear or Faros publishing AI-tagged against untagged cohorts within the same team, with intervals, would address attribution. DORA panel data showing instability falling with adoption would reverse the finding. And telemetry from a vendor with the opposite incentive showing flat incidents at high adoption would count against the pattern.
Sources: DORA 2025 State of AI-assisted Software Development; Google Cloud blog on DORA 2025; He et al., arXiv 2511.04427; Faros, AI Productivity Paradox; Faros, Acceleration Whiplash; GitClear, write-only mode; GitClear, AI code quality signal graphs; CodeRabbit, AI versus human code report; Uplevel; Stack Overflow 2025 survey, AI; GitHub, does Copilot improve code quality; The Register on the GitHub claims; ANZ experiment, arXiv 2402.05636; Cui et al., SSRN 4945566; Google migration report, arXiv 2501.06972; Demirer, Musolff, Yang, NBER w35275; Veracode GenAI code security report.