by robertkarljr · 8mo ago · 0 comments
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.
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.