Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by 1659447091 on Saturday November 07, 2026 @08:56PM
(#50409824)
> I do still wish you could do more with hooks I might want to allow a given command via a hook [...] given path allows/denies read/write
You can make a script for the PreToolUse hook that can do that. I use a command gate script that parses input for doing that exactly, allowing/denying actions based on tool use + paths -- it started out as a hook to prevent claude from polluting my clojure projects/filesystem with python scripts in sneaky ways. Babashka works really well here
You can make a script for the PreToolUse hook that can do that. I use a command gate script that parses input for doing that exactly, allowing/denying actions based on tool use + paths -- it started out as a hook to prevent claude from polluting my clojure projects/filesystem with python scripts in sneaky ways. Babashka works really well here