Retrieved article excerpt
Open article · Retrieved 2026-11-05T12:22:14.050980+00:00
ReportThe Impact of AI on Code Quality, 2026**01** · Overview**02** · Key takeaways**03** · Introduction**04** · Finding 1 · Denser code**05** · Finding 2 · Complexity since 2025**06** · Finding 3 · Output per engineer**07** · Finding 4 · Rework**08** · Finding 5 · Testing and bug fixes**09** · Finding 6 · By tool**10** · Where this is heading**11** · What teams can do**12** · About the research**13** · Free audit**14** · AppendixShow all sections
Contents14 sections
1. [**01**Overview](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#overview)
2. [**02**Key takeaways](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#takeaways)
3. [**03**Introduction](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#introduction)
4. [**04**Finding 1 · Denser code](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#complexity)
5. [**05**Finding 2 · Complexity since 2025](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#amplification)
6. [**06**Finding 3 · Output per engineer](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#output)
7. [**07**Finding 4 · Rework](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#rework)
8. [**08**Finding 5 · Testing and bug fixes](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#testing)
9. [**09**Finding 6 · By tool](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#tools)
10. [**10**Where this is heading](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#outlook)
11. [**11**What teams can do](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#actions)
12. [**12**About the research](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#research)
13. [**13**Free audit](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#audit)
14. [**14**Appendix](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#appendix)
ReportFirst edition · October 2026
# The Impact of AI on Code Quality, 2026
AI is helping developers ship more code, but it is also accelerating complexity that compounds fast. Left unchecked, that complexity will build up silently, in code that is becoming slower and riskier to change.
[Download the PDF](https://kerno.io/reports/the-impact-of-ai-on-code-quality-2026.pdf)[Benchmark your codebase](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#audit)
[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fkerno.io%2Fthe-impact-of-ai-on-code-quality-2026%2F)[X](https://x.com/intent/tweet?text=Since%20AI%20adoption%2C%20new%20code%20carries%2050%25%20more%20complexity.%20Kerno's%202026%20report%20analyzed%20201%2C576%20commits%20across%2046%20open-source%20codebases.&url=https%3A%2F%2Fkerno.io%2Fthe-impact-of-ai-on-code-quality-2026%2F)EmailCopy link
Ask AI about this report
**DWG R-03**Kerno resources · report
Rev2026.10
Scale1 : 1
Sheet3 of 3
Complexity after AI adoptionMedian codebase
+50%more complexity in new code since AI adoption
Commits
: 201,576
Codebases
: 46
Authors
: 6,847
Lines of code
: 16M+
Kerno Codebase AnalysisOct 2024 to Oct 2026
## Key takeaways
1. 01+50%decision points per 100 new lines
### New code is denser.
Since AI adoption, every 100 new lines carry 8.1 decision points (`if` statements, loops and similar), up from 5.2. That is 50% more paths to understand and test.
2. 02+71%production code per engineer
### Each engineer ships 71% more code.
In the median codebase, each engineer now writes 424 production lines a week, up from 293. The 71% is the median of each codebase's own change; the change between those two medians is 45%. Team size hasn't changed in any consistent way.
3. 03+43%follow-ups on AI-marked commits
### Less code is thrown away, but AI commits are revisited more.
The share of new code rewritten within 90 days fell from 18% to 12%. AI-marked commits are revisited 43% more often than other commits and are 17% more likely to add a hard-to-test function.
4. 048.3%of commits change tests, up from 4.7%
### More testing hasn't reduced bug fixes.
Test commits rose from 4.7% to 8.3% of all commits, but bug fixes still make up a quarter. One possible reason, which the data can't confirm, is that testing has kept up with the volume of code and fallen behind its complexity.
5. 0510.3decision points per 100 new lines in October 2026, from about 5
### Complexity was flat until 2025, then rose.
It held near 5 decision points per 100 lines from 2022 through 2024 and reached about 10 by October 2026. Codebases where AI use isn't marked also rose, but codebases that adopted AI rose faster.
6. 0669%of AI-marked commits signed by Claude
### Claude-marked commits are bigger.
Claude signs 69% of AI-marked commits, largely because Claude Code marks commits by default and most other tools don't. In the same codebases, Claude's commits are 54% larger than unmarked ones and are revisited 55% more often.
7. 07+42%decision points per 100 new lines by late 2028, on the current trend
### Complexity keeps rising.
On the current trend, new code will carry 42% more decision points by late 2028, rising from 9.0 to 12.8 per 100 lines. If growth keeps compounding at 3.5% a month, the increase would be 128%, to 20 per 100 lines. Every extra branch is another path to reason through, test and maintain.
### What this means for engineering leaders
Each engineer now owns more code, and that code is denser. The cost is building up in code that is slower and riskier to change. We expect delivery metrics such as DORA to be the last to show it.
Share this report
Introduction
## Since AI arrived, new code carries more complexity, and it's compounding faster
This is the first edition of The Impact of AI on Code Quality, Kerno's study of how AI is changing the code teams ship. In under two years, AI coding assistants and agents have gone from experiment to the default way much software is written. To see what this means for the codebases themselves, we analyzed 201,576 commits across 46 open-source projects between October 2024 and October 2026, and traced complexity back to October 2022.
New code got denser, and its complexity grows faster each month.
- 8.1Decision points per 100 new lines, up from 5.2. About 50% more paths to understand and test, in pull requests that are already larger than before
- −0.4%Monthly change in complexity from 2022 to 2024, when it was flat and even eased slightly
- +3.1%Monthly growth in the complexity of new code since January 2025, or about 44% a year
- +14%Excess complexity across whole codebases after AI adoption. The build-up is slower, but still real
Most teams won't see this, because the industry measures delivery, not structure. DORA metrics track how fast teams ship, not how each change reshapes the codebase. That gap was manageable when engineers understood all the code they shipped. With agents writing more of it, we expect the problem to stay hidden until it shows up as incidents and stalled features.
### None of this is inevitable
The fundamentals of code quality haven't changed. What has to change is where and when teams apply them.
That is Kerno's view, which this data doesn't test. Teams that invest in agent-native Local Code QA can keep complexity in check by moving quality checks into the agent loop. That means running static analysis (SAST), runtime analysis and verbosity checks locally while code is generated, rather than after a pull request is opened, when the feedback loop is already strained.
Contents
1. [Finding 1Since AI adoption, new code carries 50% more decision points per 100 lines, and complexity growth has gone from −0.4% to +3.1% a month](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#complexity)
2. [Finding 2Complexity began rising in 2025 across the board, including in unmarked codebases, but it rose faster where AI use is marked](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#amplification)
3. [Finding 3After AI adoption, each engineer ships 71% more production code a week, with no clear change in team size](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#output)
4. [Finding 4Less new code is rewritten after AI adoption, but AI-marked commits are revisited 43% more often than other commits](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#rework)
5. [Finding 5Test changes rose from 4.7% to 8.3% of commits, while bug fixes held at a quarter of commits, as they did before AI adoption](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#testing)
6. [Finding 6Claude signs 69% of AI-marked commits, which are 54% bigger than unmarked commits, though newer Claude models make smaller ones](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#tools)
7. [OutlookWhere this is heading](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#outlook)
8. [ActionsWhat engineering teams can do](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#actions)
9. [MethodAbout the research](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#research)
10. [AppendixDefinitions, every metric, method notes](https://kerno.io/the-impact-of-ai-on-code-quality-2026/#appendix)
Finding 1
## Since AI adoption, new code carries 50% more decision points per 100 lines, and complexity growth has gone from −0.4% to +3.1% a month
A decision point is any place where code can take one of two paths, such as an `if`, a loop or a `case` in a `switch` (McCabe, 1976). Each one is another path an engineer has to understand and a test has to cover.
The rise is recent. From October 2022 to December 2024, complexity held steady at about 5 decision points per 100 new lines. From January 2025 it began to climb, slowly at first and then sharply in 2026, reaching 10.3 in October 2026 (Exhibit 1). The median across all codebases grew about 3.5% a month. The typical codebase's own growth was 3.1%, the figure in this section's heading (Appendix C).
Exhibit 1
### Complexity held near 5 for two years, then climbed to about 10
Decision points per 100 new lines, median codebase each month, October 2022 to October 2026
048122023202420252026Period covered by the rest of this reportOctober 2022: 5.7 (middle half 4.46 to 7.4, 29 codebases)November 2022: 5.57 (middle half 2.4 to 6.52, 31 codebases)December 2022: 4.38 (middle half 2.82 to 6.39, 36 codebases)January 2023: 5.19 (middle half 3.76 to 7.12, 35 codebases)February 2023: 3.96 (middle half 2.62 to 5.96, 39 codebases)March 2023: 4.9 (middle half 3.48 to 6.43, 35 codebases)April 2023: 5.3 (middle half 3.45 to 7.15, 41 codebases)May 2023: 4.86 (middle half 3.62 to 7.62, 35 codebases)June 2023: 4.44 (middle half 3.16 to 6.88, 39 codebases)July 2023: 4.52 (middle half 3.01 to 5.81, 38 codebases)August 2023: 5.85 (middle half 4 to 7.32, 38 codebases)September 2023: 4.72 (middle half 3.46 to 6, 37 codebases)October 2023: 4.73 (middle half 2.65 to 6.58, 39 codebases)November 2023: 4.12 (middle half 3.37 to 6.63, 37 codebases)December 2023: 4.53 (middle half 2.92 to 6.86, 39 codebases)January 2024: 5.21 (middle half 3.14 to 6.08, 36 codebases)February 2024: 4.34 (middle half 3.46 to 5.83, 37 codebases)March 2024: 4.29 (middle half 2.33 to 6.38, 38 codebases)April 2024: 5.11 (middle half 3.52 to 6.99, 38 codebases)May 2024: 3.98 (middle half 1.59 to 5.34, 40 codebases)June 2024: 4.63 (middle half 3.19 to 7.88, 39 codebases)July 2024: 5.22 (middle half 3.23 to 7.16, 39 codebases)August 2024: 5.3 (middle half 3.62 to 6.27, 35 codebases)September 2024: 4.88 (middle half 3.58 to 7.47, 37 codebases)October 2024: 5.76 (middle half 3.32 to 6.98, 38 codebases)November 2024: 4.64 (middle half 3.52 to 6.51, 36 codebases)December 2024: 5.03 (middle half 2.6 to 6.93, 30 codebases)January 2025: 4.51 (middle half 2.82 to 5.77, 36 codebases)February 2025: 4.9 (middle half 3.03 to 6.68, 38 codebases)March 2025: 5.81 (middle half 3.86 to 6.34, 36 codebases)April 2025: 4.8 (middle half 3.49 to 7.32, 37 codebases)May 2025: 5.51 (middle half 3.95 to 6.61, 36 codebases)June 2