Hacker News new | ask | show | jobs
by unshavedyak 83 days ago
Not sure about OPs impl, but the wording doesn’t matter. The hook prevents the use of whatever action you want. Eg it’s impossible for Claude to use Emojis for me. My hook doesn’t allow it.

So it’s deterministic based upon however the script it written

1 comments

If your hook prevents rm, it is possible for Claude to write a script that does the rm and execute the script.
Yup, that's totally possible, but you still have to approve the script. But that's a bit of a moot point right? Claude is writing code, nearly anything is possible with code, ergo claude could do anything lol.