Skip to content

AI Code Maintenance: The Bill for AI-Written Features (2026)

Matt Li By Matt Li, Co-Founder and Director 11 min read
AI Code Maintenance: Second Talent card with a wrench over a code bracket
TL;DR: Maintenance takes 40 to 80 percent of what software costs over its life, and developers in Stripe's survey spent 17.3 hours of a 41.1-hour week on it. AI coding tools cut the cost of writing a feature, but Google's 2025 DORA research found that AI adoption still raises software delivery instability. Track the hours each feature costs after launch next to its usage, then keep, simplify or retire it.

In Sonar's November 2026 survey of 1,026 developers, 53% said they now spend more time reviewing code than creating it. Before they adopted AI tools, 18% did.

I run product and operations at Second Talent, and in my understanding, that jump is a budgeting problem. AI made a feature cheaper to write, and the cost of owning it moved into the months after launch, where few roadmaps look.

Key takeaways
  1. 1Enhancements make up about 60 percent of maintenance cost and bug fixes about 17 percent, so follow-up requests drive most upkeep.
  2. 2GitClear measured a 39.2% rise in code churn in 2023: code reverted or rewritten within two weeks of being pushed.
  3. 3In METR's trial, experienced developers expected AI to speed them up by 24% and measured 19% slower.
  4. 4Only 36% of developers in Sonar's survey say their team measures AI's productivity impact and can see the results.

What is a feature's maintenance bill?

A feature's maintenance bill is the engineering, support and documentation time it keeps using after launch: fixes, answers, upkeep and the small changes users ask for.

It arrives as hours scattered across many sprints, so it seldom shows up as one number anyone reviews.

In his 2001 IEEE Software column, "Frequently Forgotten Fundamental Facts about Software Engineering", Robert L. Glass put maintenance at about 40 to 80 percent of software costs, 60 percent on average, and called it the most important phase of the life cycle.

A later IGI Global chapter, "On the Improvement of Cost-Effectiveness: A Case of Regression Testing", cites earlier studies that put maintenance at 40 to 70 percent of total life-cycle costs.

His next fact matters more for product teams. Enhancements, meaning new capability added to existing software, made up about 60 percent of maintenance cost. Error correction was about 17 percent.

Glass called the pair the "60/60 rule": most of the bill is people asking a shipped feature to do more.

Treemap of software maintenance cost by type from Robert L. Glass, IEEE Software, 2001: enhancements that add new capability to old code about 60%, error correction about 17%, and all other maintenance the remaining 23%, calculated by Second Talent.

Stripe asked the same question of working teams. Its Developer Coefficient report (September 2018, a Harris Poll of more than 1,000 developers and more than 1,000 C-level executives) split the maintenance hours this way:

13.5 h
A week on technical debt, per developer
3.8 h
A week on bad code, per developer
~$85B
Yearly opportunity cost of bad code worldwide, Stripe's estimate
Source: Stripe, The Developer Coefficient, September 2018.

Those numbers predate AI coding assistants. They are the baseline the tools landed on, and the rest of this piece asks which parts of that bill AI shrinks and which parts it grows.

Where does a feature's ongoing cost come from?

Five kinds of work keep charging a feature after it ships. None of them looks large in a single week, which is how they escape the roadmap.

Bugs that only appear at scale

QA covers the cases someone thought to write down. Production brings the rest: an account created six years ago under an older data model, a customer name with an apostrophe, a permission set no tester configured.

A customer finds each one, and an engineer who has moved on to other work stops to fix it.

Support questions

A new feature creates a new category of "how do I..." tickets, even when it works as designed. Support absorbs that time inside its own budget, so the feature's owners seldom see it.

Documentation upkeep

The help article, the onboarding tooltip, the API reference and the internal runbook are written once and then have to stay true. Any change to the feature is a change to each of them.

With AI drafting the docs, the writing got faster; checking them against the shipped behavior did not.

Compatibility work

Browsers update, phones get new OS versions, and the services you call retire API versions on their own schedule. Nobody on your team made a mistake. The ground under the feature moved, and keeping it standing is part of owning it.

AI-written integrations add a wrinkle here. A model can produce a working call against an SDK version it saw in training, which may already be on its way out.

Pin versions in the pull request and record why, so the next upgrade starts from facts instead of guesses.

Follow-up requests

This is the big one, and Glass's 60 percent says so. Users who like a feature ask for a version that also does something else.

Each yes widens the surface you test, document and support, and with AI tools each yes is cheap enough to approve without a second meeting.

What changes when AI wrote the feature?

Four things change: more code lands per change with less reuse, reviewers inherit code nobody on the team wrote, delivery has grown less stable as adoption rose, and the speedup teams feel is not always the speedup they get.

More code, less reuse

GitClear, which sells code analytics, classified 153 million changed lines written from 2020 to 2023 in its "Coding on Copilot" report (January 2024). Its biggest moves from 2022 to 2023:

Churn2022 to 2023
+39.2%
Code reverted, removed or updated within two weeks of being pushed
Moved code2022 to 2023
-17.3%
Lines cut and placed elsewhere, GitClear's sign of refactoring
Copy/pasted code2022 to 2023
+11.3%
Identical lines committed to several files or functions in one commit

Copy/paste is the maintenance problem in miniature: a fix made in one copy has to be found and made in the others.

In a February 2025 note on GitClear's follow-up, which covered 211 million changed lines, lead researcher Bill Harding wrote that 2024 was the first year copy/pasted code beat moved code in prevalence.

Our AI-generated code quality statistics track the other quality measures.

Reviewers who did not write the code

Glass named one task that maintenance adds to development: understanding the existing product, which he put at about 30 percent of maintenance time.

With AI-written code, that cost starts on day one, because the first author is a model and every human reading the diff is a second reader.

Sonar's 2027 State of Code Developer Survey, released 12 November 2026, found that AI generates or assists an average of 65% of the code developers commit. The verification side has not kept pace:

Bar chart from Sonar's State of Code Developer Survey, November 2026, 1,026 respondents: 94% don't fully trust AI-generated code, 76% generate AI code faster than they can verify it, 53% spend more time reviewing code than creating it, 42% are very or extremely concerned AI code hides bugs, 39% completely agree AI code is always checked before commit, 26% name rewriting AI code as a top source of toil, 23% have AI-specific guidelines or automated checks.

The gap between 94% who don't fully trust the code and 39% who say it is always checked is where post-launch bugs come from. Sonar's respondents also named unclear requirements (37%) ahead of rewriting AI code (26%) as a top source of toil.

If review is your bottleneck, our list of AI code review tools covers the options.

Faster delivery, less stable delivery

Google's DORA program has measured this two years running, and the throughput result flipped while the stability result held:

DORA 2024
  • As AI adoption increased, an estimated 1.5% drop in delivery throughput
  • And an estimated 7.2% drop in delivery stability
DORA 2025
  • 90% of respondents use AI at work
  • AI adoption now improves throughput but still increases delivery instability
Sources: Google Cloud, announcing the 2024 DORA report, October 2024; DORA 2025 State of AI-assisted Software Development, survey June to July 2025.

The 2024 announcement said better development processes do not improve delivery on their own, "at least not without proper adherence to the basics of successful software delivery."

The 2025 report reads the persistent instability as teams adapting for speed while their underlying systems have not caught up.

Instability is maintenance by another name: failed changes, rollbacks and hotfixes, charged to whoever owns the feature.

Our piece on how CIOs use AI to reduce technical debt covers the other direction: AI used to pay debt down.

The speedup teams feel versus the one they get

In early 2025, METR ran a randomized trial with 16 experienced open-source developers working 246 real issues in repositories they knew, averaging over 22,000 stars. With AI allowed, issues took 19% longer. The developers did not notice:

Split bar chart from METR's early 2025 randomized trial of 16 experienced open-source developers: before the tasks they forecast AI would make them 24% faster, afterwards they estimated 20% faster, and the measured result was 19% slower to complete issues with AI.

The result has a shelf life.

In a February 2026 update, METR said developers are likely more sped up by AI now than in early 2025, but that its new data is only "very weak evidence": many developers declined to join because they did not want to work without AI.

I take one planning rule from both studies. A team's sense of its own speed is not a measurement, and the same bias applies after launch: an engineer who feels a feature is "done" may still return to it each sprint.

Log the hours instead of asking.

Trust stays partial

Most developers use AI output while trusting it only in part. DORA's 2025 survey asked how much respondents trust the quality of AI-generated output:

Column chart of trust in the quality of AI-generated output from the DORA 2025 State of AI-assisted Software Development report: a great deal 4%, a lot 20%, somewhat 46%, a little 23%, not at all 7%.

Stack Overflow's numbers lean further toward doubt. In its 2025 Developer Survey, 46% distrusted the accuracy of AI tools against 33% who trusted it.

The top frustration, at 66%, was "AI solutions that are almost right, but not quite", and 45% said debugging AI-generated code takes more time.

"Almost right" is the maintenance bill's favorite input: it passes review, ships, and fails on the edge case nobody wrote down. The 2026 survey found that 48% trust AI when they can easily validate its answers.

Prototypes built by prompting alone, covered in our vibe coding statistics, are where validation tends to be thinnest.

How do you make the upkeep visible?

Treat the months after launch as a phase you measure, the way you measure adoption. Upfront estimates will stay rough, because nobody knows how users will bend a feature until they do. The hours it costs afterwards can be counted.

  1. Give each shipped feature one tag that tickets, pull requests and support conversations all use, so its upkeep can be summed later.
  2. Capture hours without timesheets from memory. Engineers seldom log the twenty minutes they spent on an old feature between other tasks.
  3. Put the hours next to usage and request volume for the same feature, quarter by quarter.
  4. Decide per feature: keep, extend, simplify or retire, using the matrix below.
  5. Feed the result into the next estimate, so a feature that resembles an expensive one is scoped with its upkeep in view.

For step two, an automatic tracker such as Memtime records time spent in each program in the background and keeps that activity data on the device, and it connects to tools like Jira so the hours can be assigned to project time entries.

That makes a feature's post-launch hours visible without anyone reconstructing their week on Friday.

Hours alone don't say whether the cost is worth paying, and request volume alone doesn't say what a feature already costs. Together they sort features into four groups:

Two by two matrix from Second Talent for deciding what to do with a shipped feature, plotting upkeep hours each sprint against how many customers use it: high upkeep and little use means simplify or deprecate; high upkeep and heavy use means invest in the root cause; low upkeep and little use means leave alone and recheck yearly; low upkeep and heavy use means keep and extend.

If I could add one column to a roadmap review, it would be hours spent on each shipped feature last quarter. A feature that appears in the upkeep log sprint after sprint while few customers use it is the clearest candidate for an end date.

A feature with heavy use and high upkeep tends to need tests and a refactor more than new scope.

For AI-written features. Ask for tests and doc updates in the same pull request as the generated code, since the model will not come back to maintain what it wrote. Sonar found only 23% of teams have AI-specific guidelines or automated checks.

To put a dollar figure on the backlog you already carry, run your numbers through our technical debt calculator. For the cleanup itself, our guide to AI tools for code refactoring compares what each one handles.

Staffing the upkeep without stalling new work

Once upkeep hours are visible, many teams find they need engineers who can own AI-written code after launch: read it, test it and refactor it.

Second Talent helps US companies hire AI-native developers from 100,000+ pre-vetted developers in Asia, with 4 to 6 hours of daily overlap with US business hours, from $3,999/mo for 160 hours.

You get 6 to 8 profiles within 24 hours; for agent-heavy codebases, start with our Claude Code developers.

Frequently asked questions

Is AI-generated code harder to maintain?

The evidence points that way for unreviewed code: more duplication and churn in GitClear's data, more instability in DORA's. None of these studies isolates AI code that was reviewed and tested before merge, so that cost is unmeasured.

Can AI tools reduce maintenance work?

Yes, for familiar code. Stack Overflow's 2026 survey found 61% of developers already use AI when debugging or refactoring, a task where they can check the output.

How do I estimate maintenance before building a feature?

Use the post-launch hours of your most similar shipped feature as the estimate. Without that history, Glass's 40 to 80 percent range is the outer bound.

Get developers who ship with AI agents. Starts at $25/Hour.

Start Hiring $0 cost until you hire
Matt Li

Written by

Matt Li is a tech-driven entrepreneur with deep expertise in global talent strategy, digital experience optimization, e-commerce, and Web3 innovation. He is the Co-Founder of Second Talent, a US-based company that connects businesses with top-tier tech professionals worldwide. Since launching the company in 2024, Matt has led its growth by leveraging technology to streamline remote hiring and scale distributed teams. With a background spanning product, operations, and innovation, Matt brings a cross-disciplinary perspective to the evolving digital economy. His work sits at the intersection of global talent, emerging technology, and scalable digital transformation.

More posts by Matt Li →