News ·
AI usage generates a fragile codebase
A former Meta engineer, now at another large tech company, argues AI-generated code creates fragile codebases through weak tests, needless complexity, human unfamiliarity, and rushed reviews.

A Hacker News post by an engineer laid off from Meta in May 2026 describes concerns about AI-assisted coding. He says he generated at least 90% of his code with AI in his final months there, which he calls the minimum for a decent rating, but suspects his resistance to AI tooling contributed to his layoff. Now at another large tech company, he generates 100% of his code with AI because that is the expectation.
He lists four ways AI makes codebases fragile: it writes simplistic tests covering trivial get/set methods and existing cases, leaving gaps invisible to line-level coverage metrics; it adds needless complexity, such as multiple helper methods where one suffices; humans stop understanding the codebase, so they cannot spot incompatible abstractions in pull requests; and faster PR cadence forces developers to skim reviews, letting small issues accumulate into tech debt.
He also describes four warning signs: incident counts climbing steadily after adopting agentic coding, incidents taking longer to mitigate because humans must navigate unfamiliar, poorly tested code, invisible uncaught errors reaching real users, and software made by AI for AI that serves neither users nor maintainers. He cites an example of a strong teammate merging JavaScript mouseover events instead of the :hover selector.
For builders, the argument is that LLMs handle problems fitting their context window but miss long-term scalability concerns, so teams relying on agents should watch test coverage gaps, rising incidents, and declining human understanding of their own codebase.
References
- Hacker News · evanxmerz.com
Read the full story at Hacker News ↗Like, save or discuss on Buzz


