Claude Code can deny permission prompts instead of waiting on them

Claude Code 2.1.319 (November 6, 2026) adds a setting for unattended runs: permissions.denyInsteadOfPrompting.

What it does

The changelog entry reads: a tool call that would wait on a permission prompt is denied and the turn continues. It applies in terminal sessions, subagents and teammates.

Without it, a call that no rule allows stops and waits for a person. With it, the call is refused and the turn moves on.

Where to set it

The setting lives under permissions, next to your allow, ask and deny rules. A minimal sketch of a settings file:

{
  "permissions": {
    "denyInsteadOfPrompting": true
  }
}

The changelog gives the setting name and its behavior. It does not show a value type or a file location, so the boolean above is an assumption from the name. Check the settings reference before relying on it.

Related permission changes in 2.1.319

The same release tightens several rules. All of these are from the changelog:

Sources: Claude Code changelog.