Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.259 ·

New --permission-prompts host|none CLI/SDK option for print sessions

The Agent SDK query builder accepts a permissionPrompts option of host or none, passed through to the CLI.

Group of 4 Use it now New Features
JSON All of v2.1.259
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.259,
What probably matters to youSection of the release

In --print/headless mode, a new --permission-prompts <target> CLI option lets you choose who answers permission prompts: host (the default, using the SDK host or --permission-prompt-tool) or none. With none, the SDK does not consult the host; anything that would need a prompt is auto-denied locally, hostAnswersElicitations is disabled, and the SDK logs --permission-prompts none: permission prompts are answered with a local deny; the SDK host is not consulted. Other permission-mode behavior is unaffected. The Agent SDK / CLI query builder exposes the same choice as a permissionPrompts option ("host"/"none"), passed through as --permission-prompts to the CLI. The SDK-level none option is separately marked unsupported for cloud/remote sessions today, logging --permission-prompts none (turning permission prompts off is not supported for a cloud session yet; they reach the host over stdio).

When a tool requiring permission is hit under --permission-prompts=none (or any session with no approval surface), it is now auto-denied with an explicit message telling the model the action was not performed, not to retry, and that all further approval-requiring actions will be denied for the rest of the session.

Read from
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up permissionPrompts, on Agent SDK reference - TypeScript. | `permissionPrompts` | `'host' \| 'none'` | `'host'` | Who answers permission prompts: `'host'` routes them to your [`canUseTool`](#canusetool) callback or the `permissionPromptToolName` tool, and `'none'` [denies the calls that would hav… agent-sdk/typescript see the edit
Confirmed since Anthropic's documentation has since written up permissionPromptToolName, on Connect to external tools with MCP. If you set `permissionPromptToolName`, the first turn also waits for that tool's server in every case, up to `MCP_TIMEOUT`. agent-sdk/mcp see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up permissionPromptToolName, on Connect to external tools with MCP.
Anthropic's release notes agreeAdded --permission-prompts none for unattended headless hosts: anything that would prompt is denied automatically while the active…

See this entry in the whole of v2.1.259 →

Feedback