logoalt Hacker News

Jcampuzano2today at 1:12 AM1 replyview on HN

Maybe stop using the CLAUDE.md to prevent it from running tools you don't want it to and just setup a hook for pretooluse that blocks any command you don't want.

Its trivial to setup and you could literally ask claude to do it for you and never have any of these issues ever again.

Any and all "I don't want it to ever run this command" issues are just skill issues.


Replies

matkoniecztoday at 4:51 AM

How that stops Claude from removing hook and then running command anyway?