Anthropicfeature
November 6, 2026·Source

Deny Instead of Prompting in Claude Code

A Claude Code setting that denies any action that would stop to ask permission, so automated runs keep going. Mostly for unattended setups.

  • Setting permissions.denyInsteadOfPrompting makes Claude Code deny a tool call that would wait on a permission prompt, and the turn continues.
  • It applies to terminal sessions, subagents, and teammates.
  • Shipped in Claude Code 2.1.319.

Best for

Running Claude Code without a person present to click approve.

When to use it

When a scheduled or automated run would otherwise freeze on a permission question.

Who benefits

Developers who run Claude Code in scripts, schedules, or with subagents and teammates.

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →

Deny Instead of Prompting in Claude Code | Anthropic