[DOCS] Documentation on Permissions and Wrapper Commands
Documentation Type
Unclear/confusing documentation
Documentation Location
https://code.claude.com/docs/en/permissions
Section/Topic
Tool specific permission rules > bash
Current Documentation
The docs currently say
Claude Code is aware of shell operators (like &&) so a prefix match rule like Bash(safe-cmd *) won’t give it permission to run the command safe-cmd && other-cmd.
But doesn't explain what shell operators are included in this list and if commands like timeout hup xargs are included there.
What's Wrong or Missing?
I need to know what list of commands are part of this approval list. And more importantly: I need to expand the list. I use direnv to manage environments, and I'd love to give blanket permission to wrap commands in direnv exec or devbox run. I'm not sure if that _exists_ and is undocumented, or if it's a feature request. Obviously, feel free to ask me to recreate a second one of these if this is actually a feature request.
Suggested Improvement
You should add a listing of the shell commands that Claude Code understands and show how to extend those (if possible).
Impact
High - Prevents users from using a feature
Additional Context
I can't 'always approve' commands like devbox run or direnv exec until I know if that means Claude can use it to devbox run rm -rf ~/Code. That makes my CC usage much less flexible.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗