[BUG] project's .claude/settings.local.json does not work
Resolved 💬 16 comments Opened Jun 12, 2025 by ishowshao Closed Jan 9, 2026
💡 Likely answer: A maintainer (rboyce-ant, contributor)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [ ] Anthropic API
- [x] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.21
- Operating System: macos15.5
- Terminal: Terminal App
Bug Description
.claude/settings.local.json in my project like this
{
"permissions": {
"allow": [
"Bash(python:*)",
"Bash(find:*)",
"Bash(pip:*)",
"Bash(mkdir:*)",
"Bash(rg:*)",
"Bash(grep:*)",
"Bash(pytest:*)",
"Bash(rm:*)",
"Bash(git:*)"
],
"deny": []
}
}
claude: "Bash(git commit -m "Remove obsolete requirements.txt file…)"
then i get
Bash command │
│ │
│ git commit -m "Remove obsolete requirements.txt file │
│ │
│ Dependencies are now managed through pyproject.toml which provides │
│ better dependency management and follows modern Python packaging standards. │
│ The requirements.txt contained 44 transitive dependencies while pyproject.toml │
│ manages only the 12 direct dependencies needed. │
│ │
│ 🤖 Generated with [Claude Code](https://claude.ai/code) │
│ │
│ Co-Authored-By: Claude <noreply@anthropic.com>" │
│ Commit the deletion with detailed message │
│ │
│ Do you want to proceed? │
│ ❯ 1. Yes │
│ 2. No, and tell Claude what to do differently (esc)
**Please note that I have set "Bash(git:)" to the permissions.*
Steps to Reproduce
claudecommit code for me
16 Comments
@ishowshao does this happen for all
git commitcommands, or just this one? we have some safety protections to prevent command injection that might have been too sensitive here.@rboyce-ant all git commit
@rboyce-ant
Is there docs around this format of wildcards? It is not quite clear what
git:*means. I constantly see issues with other binaries.https://docs.anthropic.com/en/docs/claude-code/settings#settings-files
FWIW I'm seeing similar issues, but for me it's not just with
git, but alsogrep,find,rg, and other tools like that. I even have these tools allowed in my~/.claude/settings.jsonfile too, but Claude Code still often likes to have an additional confirmation for some reason.Try removing it from Claude code settings
Then I hardcoded every combo possible in local.settings.json and created a
shadow file and script in case Claude code nukes it which it has
Seems to work but PITA
On Tue, Jul 1, 2025 at 6:24 AM Tobias Bieniek @.***>
wrote:
Is this getting addressed? Even when I have dangerously skip permissions on I still get stuck in this PITA loop
Similar experience. We're using bedrock,
us.anthropic.claude-sonnet-4-20250514-v1:0. Especially with sub commands like with az, the azure cli.Bash- worksBash(*)- does not workBash(az*)- does not workBash(az *)- does not workBash(az *:*)- does not workI would also like to see the documentation updated to be more specific about the regex structure, particularly since I can't look at source code.
I've got the same problem and it seems to ask now for every tool even those listed in the
.claude/settings.local.jsonfile.@jimweller Permission rules only support prefix matches, not wildcards. In your case, you'd want
Bash(az:*)Documentation is here: https://docs.anthropic.com/en/docs/claude-code/iam#tool-specific-permission-rules@rboyce-ant , what is the significance of the colon in
Bash(az:*)? If this is a shell glob I assume a prefix match would beBash(az*), so what is the colon for?Any workaround to overcome this limitation? We also run on Bedrock.
Similar problem here (but regular claude code): i have
"Bash(mvn:*)"in my settings.local.json file -- seems like "short" mvn commands are fine but longer ones as seen below are prompted again and again and again which is really productivity-reducingThis issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.