Subscribe
AI
6 min read

AI Now Writes Three Quarters of New Code at Google. The Commit Logs Tell the Rest.

While AI generates 75% of new code at Google, independent studies reveal a maintainability gap with 81% more duplication and significantly longer PR review times.

Infographic showing Google AI code generation statistics and maintainability gaps reported by GitClear and DORA
Infographic showing Google AI code generation statistics and maintainability gaps reported by GitClear and DORA

At Google Cloud Next in April, Sundar Pichai stated that 75% of all new code at Google is now AI-generated and approved by engineers. This represents a significant increase from 50% in the previous fall and roughly 25% in late 2024. While adoption has soared, independent measurement programs indicate this surge correlates with increased code duplication, slower review times, and flat security pass rates.

At Google Cloud Next in April, Sundar Pichai put a number on what most of the industry already assumed: 75% of all new code at Google is now AI-generated and approved by engineers, up from 50% the previous fall and roughly 25% in late 2024. Satya Nadella had put Microsoft at 20% to 30% a year earlier. Semafor reported this month that Snap is at 65% AI-generated code. A roundup of published estimates even cites a peer-reviewed January 2026 Science paper putting AI authorship at 29% of new Python functions in the US, lifting quarterly code output by 3.6%.

Whether AI can write code stopped being the question sometime in 2025. The question now is what the code does after it merges, and four independent measurement programs have started to answer it: GitClear's commit telemetry, Google's DORA surveys, Faros AI's delivery telemetry, and Veracode's security testing. They mostly agree, and the answer is not glamorous. Teams are shipping more code and paying for it in review time, duplication, and maintenance that never happens.

What four years of diffs show

GitClear's June 2026 report, The Maintainability Gap, analyzed 623 million code changes from 2023 through 2026 and tracked seven quality signals. The direction is consistent across every one of them:

  • Duplicated code blocks (five or more repeated consecutive lines) rose 81% per million changed lines since 2023, from 40.3 to 73.0, the highest level on record.
  • Refactoring collapsed. "Moved" code fell from 21% of changed lines in 2022 to 3.8% in the first half of 2026, while within-commit copy/paste climbed from 9.4% to 15.7%. Developers are now roughly 5 times more likely to paste a block than to refactor one.
  • Cross-file function calls, a proxy for reuse, fell 35%, from 343 method calls per thousand changed lines in 2023 to 223 year-to-date. New code increasingly sits in self-contained files instead of plugging into existing ones.
  • Work on code older than a year dropped 74%. Repositories grow outward with fresh features while older layers freeze in place.
  • Error-masking constructs rose 47%, and two-week code churn rose 15%.
A duplicating machine pours out identical sheets while one figure refactors a single copy

GitClear's own framing is the honest one: the headline is not that AI writes bad code, it is that the default AI workflow is rewarded for atomic output (a passing test, a closed ticket) and quietly taxes the invisible work, consolidation and cleanup, that decides what a codebase costs to own in year three.

The review queue is where it shows up

Google's DORA program surveyed nearly 5,000 technology professionals for its 2025 State of AI-assisted Software Development report. Adoption hit 90%, and the report's central metaphor is that AI is an amplifier: it magnifies what a team is already good at and what it already does badly. In 2025, higher AI adoption was associated with improved delivery throughput for the first time, reversing the 2024 special report's finding that a 25% increase in adoption tracked a 1.5% decrease in throughput. The one thing that did not reverse: AI adoption still correlates with worse software delivery stability.

Faros AI's 2026 report, built on two years of telemetry from 22,000 developers across 4,000 teams, adds the mechanism. Individual output is real (tasks per developer up 33.7%, epics completed per developer up 66.2%). So is the congestion downstream. Median time in pull request review is up 441%, PR size is up 51.3%, the share of PRs merging with no review at all is up 31%, bugs per developer are up 54%, and incidents per merged PR are up 242.7%. Faros calls the pattern Acceleration Whiplash. Notably, its 2026 data found no evidence that organizations with strong pre-AI engineering practices are insulated; the quality degradation tracks high AI adoption regardless of maturity.

A chaotic heap of generated changes funnels through one inspector with a magnifying glass

DORA's January 2026 follow-up, The ROI of AI-Assisted Software Development, formalizes the same thing as a J-curve: a temporary productivity dip from learning costs, a verification tax on AI-generated code, and the work of adapting testing and change-approval processes to larger code volume, before any long-term gain.

What ships is flatter on security than the demos suggest

Veracode's 2026 GenAI Code Security Report tested more than 100 models across 80 coding tasks in four languages. The security pass rate averaged 56%, against 55% in its first report. Roughly 44% of AI code generation tasks introduced a vulnerability on the OWASP Top 10, and a Cloud Security Alliance research note singles out Java, where 72% of samples failed. Syntax correctness keeps improving, CSA notes, while security performance has stayed flat across model generations. Veracode's own summary: when AI authors roughly half of committed code, a 56% pass rate is not background noise, it is an operational signal.

The perception problem

None of this would matter much if developers could feel the trade-off happening. They cannot. METR's randomized controlled trial, published in July 2025, had experienced open-source developers work on their own mature repositories with early-2025 AI tools. They took 19% longer with AI than without, while expecting a 24% speedup and, after the fact, still believing they had been 20% faster. METR announced in February 2026 that it is redesigning the experiment because broad adoption now contaminates the control group.

GitClear's January 2026 study complicates the boosters' math in a different way. Heavy AI users do out-produce non-users by 4 to 10 times, but most of that gap predates the tools; measured against their own past output, heavy users gained about 25%. Coding tools are attracting the fast, not making everyone fast.

Read the ledger with the vendor's fingerprints visible

Every dataset above comes from a company that sells something adjacent to the problem. GitClear sells code-quality analytics, Faros sells engineering intelligence, Veracode sells application security, and DORA is Google's research arm, which now sells Gemini to your CTO. The commit data is real and the survey methods are published, but the trend lines are correlational: duplication and churn rose during the same window that repos grew, teams reorganized, and agents joined the pipeline. A causal attribution to AI authorship is an inference, not a measurement.

With that discount applied, the evidence still points one way. Generation got cheap; verification did not. The binding constraint on AI-assisted development in late 2026 is review capacity, and the costs are landing exactly where nobody invoices them: duplicated blocks, skipped reviews, and legacy code that slowly calcifies. Pichai's 75% figure counts code that engineers approved. The open number, for Google and for everyone else, is how much more they will have to read next year.

Sources

Frequently asked questions

What percentage of new code at Google is AI-generated?

Sundar Pichai stated that 75% of all new code at Google is now AI-generated and approved by engineers.

How has code duplication changed since 2023 according to GitClear?

GitClear's 'The Maintainability Gap' report found that duplicated code blocks rose 81% per million changed lines since 2023, reaching the highest level on record.

What does the Veracode 2026 report say about AI code security?

Veracode's 2026 GenAI Code Security Report found that AI code generation tasks introduced a vulnerability in roughly 44% of cases, with an average security pass rate of 56%.

How has AI adoption affected pull request review times?

Faros AI's 2026 report indicates that median time in pull request review is up 441%, while incidents per merged PR are up 242.7%.

AISoftware DevelopmentCoding