# Evan X. Merz — AI usage generates a fragile codebase

> A former Meta engineer explains why code written mostly by AI breaks more often.

- Org: Evan X. Merz
- Date: 2026-11-07
- Category: article
- Source: https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/
- Canonical page: https://ai-tldr.dev/releases/evanxmerz-ai-fragile-codebase/

## In short

Evan X. Merz, who wrote at least 90% of his code with AI at Meta, argues that AI-built SaaS codebases get fragile: shallow tests, over-complex code, weaker human understanding and more pull requests than reviewers can check.

## What it is

Evan X. Merz's essay 'AI usage generates a fragile codebase' draws on his time at Meta, where generating at least 90% of his code with AI was the minimum for a decent rating. He says AI did not even double how much code he wrote.

## How it works

Merz names four causes. AI writes shallow tests, such as trivial getter and setter checks; it adds needless helper methods and over-applies rules like DRY; developers who lean on it understand their code less; and AI pull requests arrive faster than reviewers can check them properly.

## Why it matters

The result, in Merz's view, is more incidents, slower recovery because nobody knows the code well, and bugs that only real users find. He argues that AI solves problems that fit inside its context window but ignores long-term ones, so products for people still need human judgment.

## Who it's for

engineering managers and teams with AI coding mandates

## Links

- [Essay](https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/)
- [HN Discussion](https://news.ycombinator.com/item?id=50438318)
