Re:Ask HN: How do you guys stop coding agents from acting ou...
by dylanratcliffe on Friday August 28, 2026 @04:38PM
(#49483960)
It's often easier to catch and scold them than to prevent it. We have rule for example that agents (or anyone) can't touch autogenerated code. They still routinely do, but there is a CI job that re-generates everything and fails if there is a diff. Which the agents then see and fix. We have also use hooks for the same thing since they run locally and the feedback cycles are shorter.
[ Parent
| on HN ]
Re:Ask HN: How do you guys stop coding agents from acting ou...
by vivekyyy on Tuesday September 01, 2026 @05:14PM
(#49528299)
This is possible, but I just kinda feel like at that point I should just generate the migrations in CI. The point of having them out of CI (for me at least) was so we can manually write in upgrade/downgrade logic when the autogenerated migration is a little off