logoalt Hacker News

cadamsdotcomtoday at 7:07 AM2 repliesview on HN

You need to automate the pointing out of mistakes.

Create your own linters, your own check scripts. Hook them to git pre-commit, either yourself or with husky or python pre-commit.

The agent should never finish its work with dumb mistakes still in it. If it does.. you need more checks.

Anything repetitive should be automated - even slapping your forgetful coding agent on the wrist…


Replies

another-davetoday at 8:54 AM

I really wish there was a "pre prompt" hook natively. As in, before the agent releases control back to me to prompt it again, it runs the hook.

I have a pre-push hook that runs all lint/prettier/typechecks/tests etc. These are all clearly signposted in the project, the AGENTS and CLAUDE files are set to run them.

Still though, I'll get it saying "All done" and then it'll fail something basic like formatting when I go to push. Or I've come back to a 'ralph wiggum' loop before and found it saying "tests are broken, but that's not part of this commit, so ignoring"

jofzartoday at 8:49 AM

My experience is that the dumb mistakes it makes are the one where it believes it's correct, not that it fails the linter.