dangerouslySkipPermissions in global settings.json does not skip all permission prompts
Resolved 💬 3 comments Opened Mar 8, 2026 by Badmrpotatohead Closed Mar 11, 2026
Bug
dangerouslySkipPermissions: true set in ~/.claude/settings.json (global) does not skip all permission prompts. Bash commands still trigger approval dialogs, including:
- Standard Bash commands (
npx tsc,git add && git commit && git push) - Compound commands with
cd("Compound commands with cd and git require approval to prevent bare repository attacks")
Reproduction
- Set
~/.claude/settings.json:
{
"dangerouslySkipPermissions": true
}
- Open a project and run any Bash tool call
- Expected: All permission prompts skipped
- Actual: Still prompted for Bash commands. Approving individual prompts adds rules to
.claude/settings.local.json, suggesting the global flag isn't being checked
Environment
- Windows 11 Home 10.0.26200
- Claude Code (latest channel)
Workaround
Setting "permissions": { "defaultMode": "bypassPermissions" } in the project's .claude/settings.local.json appears to work, but dangerouslySkipPermissions should work globally as documented.
The --dangerously-skip-permissions CLI flag may work, but the settings.json equivalent should behave identically.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗