logoalt Hacker News

alpbyesterday at 10:09 PM1 replyview on HN

I see on a daily basis that I prevent Claude Code from running a particular command using PreToolUse hooks, and it proceeds to work around it by writing a bash script with the forbidden command and chmod+x and running it. /facepalm


Replies

Aeolunyesterday at 10:27 PM

Maybe that means you need to change the text that comes out of the pre hook?