[Bug] Model refuses to execute git add command despite enabled tool permissions

Resolved 💬 2 comments Opened Jun 5, 2026 by anthonymarandon Closed Jun 9, 2026

Bug Description
The model refuses to use certain Git commands while there are no restrictions on use or constraint in the model settings. Here the git add command. Here, the model used to use a user's commit skills to track a specific workflow to add in-stage files according to the theme. And recently, this authorization no longer works.

Temporary solution, the user is required to add files in general with the git add command. or by lot manually, And then the model can take care of the rest.

Error: Permission to use Bash with command git add

settings.json of user :

{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
},
"permissions": {
"deny": [
"Read(/.env)",
"Read(
/.env.*)",
"Edit(/.env)",
"Edit(
/.env.*)",
"Write(/.env)",
"Write(
/.env.*)",
"MultiEdit(/.env)",
"MultiEdit(
/.env.*)",
"NotebookEdit(/.env)",
"NotebookEdit(
/.env.*)",
"Grep(/.env)",
"Grep(
/.env.*)",
"Glob(/.env)",
"Glob(
/.env.*)",
"Bash(.env)",
"Bash(/.env)"
]
}
}

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.162
  • Feedback ID: 7457373e-bfe6-4ac1-96f2-d4299f82cc46

Errors

[]

View original on GitHub ↗

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