Skip to content
BENIBIX Learn

permissions.denyInsteadOfPrompting

AI⌨️ Claude CodeConfiguration

Also known as denyInsteadOfPrompting

The key that says no to a call instead of waiting for you.

Think of it like

It is like a shop that says no when the boss is out. You do not have to wait.

Example

Lucy leaves a long job running overnight. With this key on, a call that needs her yes is refused, and the job keeps going.

Why it matters

A prompt with no one there can stall a session for hours.

Definition

permissions.denyInsteadOfPrompting is a settings key. When true, a tool call that would wait for your yes is refused, and the turn goes on. It is for sessions no one is watching. A call still runs if an allow rule, the mode or the auto mode check lets it. Only your user file, managed settings or --settings can set it, so a repo cannot.

Example code

json
{
  "permissions": {
    "defaultMode": "auto",
    "denyInsteadOfPrompting": true
  }
}
Run in auto mode, and refuse anything that would still ask.

Common mistake

Putting it in a project file. A repo cannot set it for you, so it goes in your user file.

Key takeaways

  1. 1
    Deny, do not wait. The turn goes on.
  2. 2
    Allowed calls still run. Rules, modes.
  3. 3
    User or managed. Not a repo.

Compare