Claude Code denies every tool that would ask. Leave dontAsk mode
dontAsk auto-denies tools that would have prompted you. Leave that mode for interactive work, or keep it only for CI with an explicit allowlist. Short answer: 5 steps. 1) Recognize dontAsk vs a normal permission prompt; 2) Leave dontAsk for interactive sessions; 3) Remove a sticky defaultMode of dontAsk; 4) If you meant CI, pair dontAsk with an allowlist; 5) Don’t “fix” denials with bypassPermissions on your laptop.
Last updated: · This page is the decision checklist; the tools list for “Leave Claude Code dontAsk mode” is a separate URL.
How do I leave Claude Code dontAsk mode, or allowlist tools for CI?
Recognize dontAsk vs a normal permission prompt
In `dontAsk` mode, Claude Code auto-denies every tool call that would otherwise ask you (status bar: `⏵⏵ don't ask on`). File reads inside your working directories and already-approved tools still run; everything else is refused unless a mod’s PreToolUse hook allows it. This is intentional for locked-down CI—not a broken API key. Docs: https://code.claude.com/docs/en/permission-modes
Leave dontAsk for interactive sessions
`dontAsk` never appears in the Shift+Tab cycle—you only enter it with `claude --permission-mode dontAsk` (or a settings `defaultMode`). Start a new session without that flag, or pass `--permission-mode default` / `auto` / `acceptEdits` for the tradeoff you want. In the CLI, Shift+Tab cycles the interactive modes; in VS Code use the mode indicator; on Desktop use the mode selector.
Remove a sticky defaultMode of dontAsk
If every new terminal session starts denying prompts, check `permissions.defaultMode` in `~/.claude/settings.json`, the project `.claude/settings.json`, or managed settings. Change it to `default`, `acceptEdits`, `plan`, or (from user/managed settings) `auto`. Cloud sessions ignore `defaultMode: "dontAsk"` from settings files anyway.
If you meant CI, pair dontAsk with an allowlist
For non-interactive runs, Anthropic’s pattern is `claude -p "…" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"` (adjust the allowlist). Without `--allowedTools` / allow rules / hooks, useful work gets denied. `AskUserQuestion`, MCP tools marked `requiresUserInteraction`, org “ask” connectors, and network-path reads stay denied even if an allow rule matches.
Don’t “fix” denials with bypassPermissions on your laptop
`bypassPermissions` skips prompts (including protected-path writes) and is only for isolated containers/VMs. Prefer `auto` (classifier) or `acceptEdits` locally, plus allow/deny rules under `/permissions`. Permission overview: https://code.claude.com/docs/en/permissions
Which tools are best to leave Claude Code dontAsk mode?
Choose a permission mode
dontAsk behavior, how to start/leave modes, and CI allowlist examples.
Configure permissions
defaultMode, allow/deny rules, and how modes interact with hooks.
Claude Code CLI reference
Flags including --permission-mode and --allowedTools for -p runs.
Security
When not to use bypassPermissions and how auto mode checks actions.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Leave Claude Code dontAsk mode” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.