Re:Show HN: A context-aware permission guard for Claude Code
by schipperai on Thursday March 12, 2026 @05:50AM
(#47348466)
thx! yeah git push is intentionally allowed, it's normal dev workflow operation. but git push --force on the other hand gets flagged as 'git_history_rewrite = ask'.
if you want regular push to also require approval you can set that in your config with nah deny git_write and you get other 'git_writes = ask' for free.
The way it works, since I don't see it here, is if the agent tries something you marked as 'nah?' in the config, accessing sensitive_paths:~/.aws/ then you get this:
Hook PreToolUse:Bash requires confirmation for this command: nah? Bash: targets sensitive path: ~/.aws
Which is pretty great imo.