Skip to content
Is AI Code Automation Contributing to Code Complexity? artwork

Is AI Code Automation Contributing to Code Complexity?

Software Architecture Insights

October 27, 2026

In March 2024, Lee wrote about a GitClear report that had analyzed 153 million lines of changed code, and said the early numbers on AI-assisted code were worrying. GitClear kept counting. The newest report covers 623 million changes through the first half of 2026.

Speakers Lee Atchison

TopicsTechnologyBusinessManagement

Lee Atchison (0:00)

This episode is brought to you by the Software Architecture Insights newsletter. One practical idea every Tuesday morning, and it's free. Sign up at softwarearchitectureinsights.com/join.

Hello and welcome to Software Architecture Insights, your go-to resource for empowering software architects and aspiring professionals with the knowledge and tools they require to navigate the complex landscape of modern software design.

In March of 2024, I wrote about a report from a company called GitClear. They had analyzed 153 million lines of changed code. Looking at what happened to code quality as AI assistants went mainstream.

In that article, I said the early numbers were worrying and that AI-generated code needed human moderation. That was two and a half years ago. GitClear kept counting. Their newest report covers 623 million changes running through the first half of this year. So today, I check on my own words, what I got right, what I got wrong, and the thing I missed completely. Here is what the 2024 article I wrote argued. There is a link to the original article in the show notes.

GitHub had published research saying developers write code 55% faster with Copilot. My question was whether faster also meant better. The report gave two answers, and neither one of them was good. First, code churn was climbing. Churn, meaning code that gets changed or reverted within two weeks of being written. GitClear projected it would double in 2024 against the 2021 baseline. Second, code was getting less dry. More copy and paste, less reuse. My conclusion was that AI code generation works when it's balanced against the humans who have to maintain what it produces. Use AI in moderation. I'd give that a passing grade, barely and not for the reasons I expected. Start with the part I got wrong, since I led the original article with this point. Churn. I put it first because doubling is a dramatic number and it was easy to explain. Well, it didn't double. The newer data has two-week churn up about 15% against 2022 Now, that's real and it's worth watching, but it was nowhere near the story that I made of it at the time. Projections do that sometimes. A curve that's steep for two years gets drawn out to four and then ends up being something completely different. So, the metric I led with turned out to be the least alarming one in the entire report. But the dry concern held up. It held up harder than I wanted it to. Duplicated blocks are up 81% from the 2023 baseline. Copy and paste has gone from about 9% of changed lines in 2022 to nearly 16% in the first half of this year alone. And there's a number in the new report I had no way to see back then. Calls to functions and other files are down 35% since 2023 Now the last one is to clear a signal in the whole report. A crossfire function call is what reuse looks like in a codebase. Somebody needs something, found it already written and called it.

Down one-third in three years. Which means people are finding it easier to have an AI model write a new function rather than find an existing one that does the same work. Now the thing I didn't see coming at all back then.

Refactoring has collapsed.

In 2022, about 21% of changed lines of code were moved code. Moving code is the signature of a cleanup operation. Pulling something into a shared place, splitting a file, reorganizing what's already there. That's what refactoring looks like. This year, it's under 4%.

21% now down to 4%.

Copy and paste is now about four times more common than refactoring. Four years ago, it was the other way around. Refactoring ran more than twice the copy and paste rate. There's a matching number. Updates to code that hasn't been touched in a year or more are down 74% since 2023 Whatever landed in your codebase last year is mostly still just sitting there. I spent the 2024 article asking whether AI writes good code. And almost everyone in the industry is asking that question as well. But that's actually the wrong question. The code AI writes is fine. It compiles. It passes reviews. It does its thing. What stopped happening is everything that goes around the code.

Your cloud bill went up again and finance wants to know why. Finance can't fix it. Your architecture caused it and only architecture decisions can change it. That's what my course Architecting for Cost is all about. Find it at softwarearchitectureinsights.com/cost.

The mechanism is a mysterious once you look at it as a price change. AI made writing new code nearly free. It did not make refactoring any cheaper because refactoring means understanding what's already there, and understanding is the part that hasn't gotten any faster. Change the relative price of two activities, and you get more of the cheaper one. Every time. So, a developer under schedule pressure hits a problem that a shared helper would solve. The old cost of finding that helper, reading it and adapting it, was maybe 20 minutes. Generating a fresh one is 20 seconds.

Read the other 5 minutes of this episode here.

$15 gets you this episode and 99 more. Credits never expire. After checkout, one link brings you back here to read it.

Not what you expected? Full refund within 14 days.

Thousands of transcripts fetched by people building searchable podcast archives

Fetch transcripts with code

The same credits work from a script or an AI agent. The demo key returns a sample episode in full, no card needed:

request
curl -H "x-api-key: pt_demo" \
  https://spoken.md/transcripts/1000651996090

Markdown with the speakers named, for your notes, your knowledge base, or anything that makes HTTP calls.

From $0.10 per transcript. No subscription. Credits never expire. Prices exclude VAT, added at checkout for EU customers. Not what you expected? Email us within 14 days with 20 or fewer credits used and we refund the pack in full.

Using your own key:

request
curl -H "x-api-key: YOUR_KEY" \
  https://spoken.md/transcripts/1000798334873