[Feature Request] Tool allow patterns should support wildcard matching for command arguments

Resolved 💬 4 comments Opened Mar 21, 2026 by happyclap Closed Mar 23, 2026

Bug Description
currently the way claude uses some tools clashes with the way the allows work making them redundant. For example i have "Bash(git status:*)" in my allows, but cluade always calls uses git with the -C --> git -C path/to/the/thing status, which doesn't hit on the allow i've put in. the only way arround this currently is for me to tell claude to not use the -C (which to be honest i don't mind better to be precise). I'm unsure if this is a bug or feature request, guess that depends on how you solve it.

ethier:

  • fix claude not to use the -C so the allows work (there are other tools where this is an issue too so not real fix)
  • leave how it uses git but allow for argument wild carding before the :, ie, Bash(git -C %s status:)
  • allow for a variables in the allow, so we can vairable it out, ie, Bash(git -C $PROJECT_PATH status:*)
  • something else cooler :)

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 2.1.80
  • Feedback ID: 718f29cf-fb0f-4347-ad30-b78ba42f13e6

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗