Re:AI usage generates a fragile codebase
by catmanjan on Tuesday November 10, 2026 @06:42AM
(#50438929)
Read his first point bro
[ Parent
| on HN ]
Re:AI usage generates a fragile codebase
by CharlieDigital on Tuesday November 10, 2026 @08:32AM
(#50440059)
AI will write tests to the level of depth that you ask it to.
Try:
- Clearly identify the invariant being tested focus on exercising the invariant
- High volume, low signal tests increase CI and build times
- Avoid low signal tests; raw coverage is not the objective
- Avoid write-then-read tests when risk is low (no transformations, no business logic in application code on write or read path)
What's useful is to have a second agent that reviews the tests impartially and trim the ones that are low signal.For our tests, we also added a small helper library[0] that cleans up tests to make them easier to read (smaller context for both humans and agents) as well as to write. Agents write average code by default. Your job as an engineer in this age is to help agents write good code.