I have denied git from my allowlist of commands because I don’t want agent mode to do a destructive action that it can’t easily come back from. E.g. deleting a branch without merging it.
That said, I would love it if I could set safe sub-commands in my allowlist, such as:
Allow: git status
Deny: git commit
Or maybe support for wildcards, unless they are overridden. E.g.:
Deny: git * or simply, git
Allow: git status
can someone actually confirm if sub-commands actually work, and if so the proper syntax? The Permissions document linked to only includes the example of “Shell(git)” But I’ve had trouble with subcommands being denied in a non-interactive session with that in my allowed list.