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?