News for hackers. Stuff that matters.
Re:Don't YOLO your file system by unshavedyak on Saturday March 28, 2026 @11:46AM (#47555645)
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

Re:Don't YOLO your file system by jmalicki on Sunday March 29, 2026 @12:37AM (#47560426)
If your hook prevents rm, it is possible for Claude to write a script that does the rm and execute the script.
Re:Don't YOLO your file system by unshavedyak on Sunday March 29, 2026 @11:49PM (#47570205)
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.