Search the documentation
20 pages for dontask.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…review or when you need to approve changes before they're made | | `"dontAsk"` | Never prompts. Tools pre-approved by [permission rules](/docs/en/settings-reference#permission-settings) run…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…ys fall through to the callback, even when an allow rule matches. In `dontAsk` mode both cases are denied instead, because that mode never prompts. The MCP annotation requires Claude Code v2.1.199 or…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…ile edits "plan", # Planning mode - explore without editing "dontAsk", # Deny anything not pre-approved instead of prompting "bypassPermissions", # Bypass permission checks; explicit as…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…Agent invocations fall through to your `canUseTool` callback or, in `dontAsk` mode, are denied * **Use explicit prompting**: mention the subagent by name in your prompt, for example "Use the code-rev…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ill prompt | "plan" // Planning mode - explore without editing | "dontAsk" // Don't prompt for permissions, deny if not pre-approved | "auto"; // Model classifier approves or denies permission p…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…-evaluated) for which of them reach the callback and what happens in `dontAsk` and `auto` mode. </Warning> You can also use the [`PermissionRequest` hook](/docs/en/agent-sdk/hooks#available-hooks) to…
CLI reference
Claude Code CLI · in the page
cli-reference
…permission-modes). Accepts `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`, or `manual` as an alias for `default`. The `manual` alias selects the permission mode the UI labels…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…rmission-modes#eliminate-prompts-with-auto-mode), `acceptEdits`, and `dontAsk` count as prompting: * **The receiving session prompts for permissions**: Claude Code delivers each message. It holds one…
Desktop application
Claude Code CLI · in the page
desktop
…these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](/docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode)…
Glossary
Claude Code CLI · in the page
glossary
…de.ai. Available modes are `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, and `bypassPermissions`. The `default` mode is labeled Manual in the CLI, in the VS Code and JetBrains extensions, and…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…de auto` to have a classifier review most actions instead of you * **`dontAsk`**: Claude Code denies anything not in your `permissions.allow` rules or the [read-only command set](/docs/en/permissions#…
Hooks reference
Claude Code CLI · in the page
hooks
…ermission-modes): `"default"`, `"plan"`, `"acceptEdits"`, `"auto"`, `"dontAsk"`, or `"bypassPermissions"`. The mode labeled **Manual** arrives as `"default"`, never as `"manual"`, so scripts that matc…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…ck, in every [permission mode](/docs/en/permission-modes), including `dontAsk`. A hook that returns `permissionDecision: "deny"` blocks the tool even in `bypassPermissions` mode or with `--dangerously…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…en/permissions) that match the tool don't skip the prompt either. In `dontAsk` mode, which never prompts, Claude Code denies the call instead. * **Tool set to `blocked`**: Claude Code filters the tool…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…| Long tasks, reducing prompt fatigue | | [`dontAsk`](#allow-only-pre-approved-tools-with-dontask-mode) | Only pre-approved tools…
Configure permissions
Claude Code CLI · in the page
permissions
…| | `dontAsk` | Auto-denies tools unless pre-approved via `/permissions` or `permissions.allow` rules. `AskUserQuestion`, MCP…
Claude Code settings
Claude Code CLI · in the page
settings
…sion-modes). Valid values: `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions`, and `manual` as an alias for `default`, the mode labeled Manual in the CLI, the VS Code and JetBrai…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…rwise approve them, such as `acceptEdits` or `bypassPermissions`. In `dontAsk` mode Claude Code denies a matching tool use instead of prompting. * **Scope**: [`Any file`](#scopes) * **Type**: array o…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…rmission mode](#permission-modes): `default`, `acceptEdits`, `auto`, `dontAsk`, `bypassPermissions`, `plan`, or `manual` as an alias for `default`. The `manual` alias requires Claude Code v2.1.200 or…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…evaluated) as the rest of the session, so deny rules, ask rules, and `dontAsk` mode apply to the launch as they apply to every tool call. To let the workflow start in these runs, use one of these: *…