Hacker News new | ask | show | jobs
Show HN: Hooks that stop Claude Code from faking tests and inventing packages (github.com)
4 points by john6601 2 days ago
1 comments

I went through this; the rules written in the instruction text were ignored repeatedly. I asked Claude to register all its mistakes in a ledger, ended up with 900+ entries so that didn't help by itself. At the current step, i am transforming the repeated mistakes into hooks that stop the action. From my ledger: "said something without reading the context first" appears 56 times in 30 days. Do your hooks check also what the agent runs in the shell, or only checks the files?
Did you create a loop to look up the register for similar instance and to create a remediation instruction?