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

  1. Set ~/.claude/settings.json:
{
  "dangerouslySkipPermissions": true
}
  1. Open a project and run any Bash tool call
  2. Expected: All permission prompts skipped
  3. 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.

View original on GitHub ↗

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