logoalt Hacker News

psadri • today at 5:27 PM • 2 replies • view on HN

Write tests first. Have agent iterate until they are satisfied.

The point is that it boils down to writing the tests correctly, regardless of who is implementing the actual code. Hand-written code without test coverage has the same problems as AI generated code.


Replies

wartywhoa23 • today at 6:55 PM

> Have agent iterate until they are satisfied.

Or have them rig the tests so that they always pass.