Hacker News·First covered Issue 18
AI usage generates a fragile codebase
A former Meta engineer argues that relying on coding agents leaves large SaaS codebases brittle, and lists the habits and warning signs the author saw firsthand.
Stats
(As of 16 Nov 2026)- Points
- 643
- Comments
- 626
- Agents tend to write shallow tests, such as trivial getters and setters, leaving gaps that line coverage does not reveal.
- They over-apply rules like DRY, adding helpers and layers that make code harder for people to debug.
- As agents write more of the code, fewer engineers understand its data structures well enough to spot a bad abstraction.
- Pull requests arrive faster than reviewers can read them, so small quality problems pile up.
- The warning signs listed: more incidents, slower fixes, and errors only real users ever hit.
The discussion
- CounterpointOne commenter points out that hand-written enterprise code was already fragile at scale, citing the Oracle database codebase. comment
- DisputedSome say newer models have fixed shallow tests and over-complex code; a reply notes the same was claimed in earlier years. comment
- ThemeSeveral ask what review gates and deterministic checks the author used, and the author replies in the thread. comment
- AgreedOthers expect code quality to be ignored until changes start breaking features and agents burn more tokens reading the code. comment