Skip to content
Reality Graph

Economics

AI Code Churn

Last updated: 2026-08-154 min read

AI code churn - the share of merged code reworked within two weeks - drifted from a ~3.1% baseline toward 5.7% as AI assistance spread, per GitClear’s analysis of 211 million changed lines: roughly a doubling of the near-term rework share. Churn is the cheapest verification-debt signal you can compute, the lagging confirmation that code shipped before it was checked - and, priced honestly, the visible tip of a larger bill.

Contents

What the metric measures - and why two weeks

Churn counts merged lines that get modified or reverted within a window; the 14-day window is what makes it diagnostic. Rework that fast rarely means requirements changed - it means the change was wrong or incomplete when it merged and nobody caught it. That is why two-week churn functions as the lagging confirmation of verification debt: the leading indicators (unverified merges, falling review depth) predict it, and churn arrives two weeks later as the receipt.

What 211 million lines show

Findings and their boundary

These figures are starting points for your own measurement, not inputs to a combined impact formula.
Two-week churnCopy/pasteMoved codePR volume
Reported~3.1% toward 5.7%GitClear vendor research · 2026-078.3% → 12.3%; cloning 4×GitClear vendor research · 2026-07~25% → below 10%GitClear vendor research · 2026-07~98% more merged PRsFaros AI telemetry · 2026-07
Interpretation boundaryTrend, not a universal multiplierEditorial interpretation · 2026-07Observation, not a quality causeEditorial interpretation · 2026-07Trend, not an architecture diagnosisEditorial interpretation · 2026-07Context from a separate datasetEditorial interpretation · 2026-07
These figures are starting points for your own measurement, not inputs to a combined impact formula.

The last row matters for the money math: a doubled churn rate on a doubled change volume is roughly four times the churned lines. And the defect supply feeding it is measured elsewhere too - ~45% of AI-generated samples failing security tests is the same phenomenon viewed from the security angle.

The honest caveats

  • Not all churn is waste. Fast iteration churns healthily; the debt signal is the delta above your own baseline and its trend, not the absolute number.
  • Vendor-adjacent research. GitClear sells git analytics; the dataset is the largest public one and the method is documented, but the secondary-source caution applies. Which is why the consistent direction across independent signals (review telemetry, security rates) carries the argument.
  • Working titles inflate. Figures like “39% more churn” circulate without a traceable source; we use the numbers the dataset actually supports. Directional honesty beats dramatic precision.

Measuring and reducing your own

Your churn is a git script away: for each merged change, count lines modified again within 14 days - weekly, per repository, trend over absolute. The full recipe sits in measuring verification debt, and the levers that move it are the verification loop itself: written tasks, checks before merge, validation the model did not author. Because the metric is cheap and weekly, it doubles as the before/after gauge for any pilot - and its euro translation lives in the cost calculation.

What the rework costs, once you have measured it

Churn measured, then priced

Churn is a share of lines, so it never becomes a cost on its own. Once your own tickets give you a rework rate for changes, this puts a number on it alongside the reconstruction time that is paid whether anything churned or not.

10
20
Share of merges that are AI-assisted
€75

Estimated cost of verification debt

Example – illustrative arithmetic, not a benchmark

€67,000

per year · €5,580 per month

Modelled on about 120 AI-assisted merges a month.

At these inputs the model puts verification debt at €67,000 a year, or €5,580 a month: 74.4 hours of engineering time, 60 of them spent working out what a change was meant to do before it can be judged.

Past break-even.The amber band marks 30 to 40 AI-assisted changes a month, on a logarithmic scale so the whole range fits. Below it the example crosses into marginal territory: little debt left to remove, and the practice roughly pays for itself rather than returning more.
Cost linePer monthHours a month
Review reconstruction€4,50060 h
Rework on churned code€1,08014.4 h
Incident allowancenone assumed0 h
Rework and review reconstruction priced from a locally reason-coded rate. Churn is the warning signal, not the input. Illustrative arithmetic, not a benchmark.

What the model assumed for you· Assumption set as of 2026-08-15

0.5 hours of review reconstruction per AI-assisted change · 2 % of AI-assisted changes reworked for a defect within 14 days, an illustrative rate to replace with your own · 6 hours to rework one churned change

Where Reality Graph fits

Reality Graph addresses one preventable contributor to churn: changes merging unchecked against their task. Verification per run can move defects to the pre-merge side, and the evidence reports give churn investigations a starting point - which change, what was checked, what was skipped. We quote no reduction percentages; churn is cheap to measure, so measure it around your own pilot.

This analysis provides

  • Source-bound trend values
  • An explicit causality boundary
  • A team metric measurable each week
  • A bridge to the cost model

It does not provide

  • A universal churn multiplier
  • A claim that all churn is waste
  • Certainty from one vendor dataset
  • A promised reduction
Measure the same definition before and after a process change; do not borrow another dataset's rate.

FAQ

How much does code churn rise with AI coding tools?
The best public dataset is GitClear's analysis of 211 million changed lines: code reworked within two weeks of merge drifted from a ~3.1% baseline (2020) toward 5.7% as AI assistance spread - roughly a doubling of the near-term rework share. A precise universal multiplier does not exist and codebases differ; the direction and the magnitude class are what the data supports.
What exactly does the two-week churn metric measure?
The share of merged lines that are modified or reverted within 14 days. The window is the point: rework that fast usually means the change was wrong or incomplete when it merged - too soon for changed requirements to be the normal explanation. That makes two-week churn a proxy for 'shipped before it was verified', which is why it serves as the lagging confirmation of verification debt.
Is all churn bad?
No, and honest analysis prices only part of it as debt. Some churn is fast iteration working as intended - prototypes hardening, feedback landing. The signal is in the delta and the trend: a codebase whose churn doubles as AI volume grows is not iterating twice as healthily. GitClear's accompanying findings point the same direction - duplicated code rising sharply while moved (refactored) code declines, a copy-paste-over-refactor shift that is hard to read as health.
How reliable is the GitClear research?
It is one large public vendor dataset on the question and its method is documented. Because GitClear sells git analytics and the time trend does not isolate AI as a cause, we treat it as directional evidence rather than a universal baseline. The strongest move remains measuring your own churn with the same definition over time.
What does churn cost in money?
Churn is the bridge from quality talk to budget talk: each churned change costs the hours of its rework plus the review it consumed twice. In our worked example at 120 AI-assisted changes per month, the churn delta above baseline prices out at roughly €1,000-1,500 per month. Real, but notably smaller than the review-reconstruction line, which is why churn is the visible tip rather than the whole bill.
How do we reduce AI code churn specifically?
Start with one actionable contributor: changes merging before anyone checked them against what was actually asked. Written tasks with acceptance criteria, verification before merge, and independent validation can move some defects from post-merge rework to pre-merge fixes. Two-week churn is cheap to compute weekly, so use it as a before/after gauge rather than assuming a reduction.

Keep reading

Sources

Want to see what your last agent run would have looked like?

Request access