AI in BusinessNovember 11, 20263 min read

Former Meta engineer warns that AI coding agents make codebases fragile

Evan X. Merz argues that mandated AI coding produces shallow tests, overcomplicated code and engineers who no longer understand their own systems, leading to more incidents and slower recovery.

AI IN BUSINESSFragilecodeEvan X. Merz · 11/11/2026AI ASSISTANT

A developer's warning from inside big tech

Evan X. Merz, a software engineer who says he was laid off from Meta in May, published an essay on November 7 arguing that heavy reliance on AI coding agents makes large codebases fragile. He writes that in his last months at Meta, generating at least 90% of his code with AI was the minimum for a decent performance rating, and that at his new employer, another large tech company, he now generates all of it with AI because "that's the expectation today."

His point is not that the tools write bad code line by line. AI handles problems that fit inside its context window well, he argues, but misses long-term issues that only show up across a whole system. The post reached the front page of Hacker News, collecting more than 600 points and hundreds of comments.

Four ways the code gets brittle

Merz lists four mechanisms he has seen firsthand:

  • Shallow tests. Agents write many tests for trivial getters and setters, and end-to-end tests that cover only one type of user. Line coverage looks fine while real gaps stay invisible.
  • Overcomplicated code. Two or three helper methods where one would do, and rules like DRY applied so rigidly that humans struggle to debug the result.
  • Fading human understanding. The longer a team leans on agents, the fewer engineers know the data structures well enough to spot an abstraction that doesn't fit.
  • Review can't keep pace. Pull requests arrive faster than people can read them, so reviewers skim and small problems pile up.

The symptoms he describes are business symptoms: incidents that slowly become more frequent, longer recovery because nobody knows the code well, errors that only customers see, and a product that drifts away from how people actually use it.

What the data says

Merz's essay is one engineer's experience, but some industry research points the same way. GitClear's 2025 analysis of 211 million changed lines found that blocks of duplicated code grew eightfold during 2024, while "moved" lines—a sign of refactoring—fell 39.9%. Google's 2024 DORA report associated a 25% increase in AI adoption with a 3.4% improvement in code quality but an estimated 7.2% drop in delivery stability.

Not everyone agrees

The Hacker News discussion split sharply. Several developers said AI-built projects of hundreds of thousands of lines remain easy to maintain, and that newer models make cleanup cheaper. Others compared agents to junior engineers who need supervision and standards, and noted that such oversight eats into the promised speed gains. One commenter described cutting 1,000 lines of LLM output down to about 100. A recurring view was that the problem lies less in the tool than in incentives that reward volume over quality.

What it means for business

If your team or vendor ships code with AI agents, judge it by outcomes, not output: track incident frequency, time to recovery and production defects alongside delivery speed. Mandated AI-usage quotas, like the ones Merz describes, can push volume at the expense of review. Keep at least some engineers who know the core system deeply, require tests that cover real user scenarios, and keep pull requests small enough to actually read.

Custom development →

Sources

Tags

AI codingsoftware qualitytechnical debtMeta
Andrew Supryaga
Edited byAndrew Supryaga

CTO of AI Assistant Agency.

How we make the news: an agent gathers stories from primary sources every day and writes a draft; an editor checks the facts and decides whether to publish.

Next step

Let's discuss
your process

Tell us about your challenge, and we'll find a solution that fits your scale and your systems. For strategic questions, contact Anastasiia, CEO.