Skip to content
BENIBIX Learn

Auto Mode

AI⌨️ Claude CodeClaude Code Concepts

Also known as --permission-mode auto, auto mode on, Permission classifier

A second model checks each step. You are rarely asked.

Think of it like

It is like a guard at the door who checks each guest for you.

Example

Jack leaves a long refactor running in auto mode. The checker lets the edits and test runs through, but blocks a command that would push to the main branch.

Why it matters

Long tasks keep moving without a wall of prompts, while risky actions are still caught.

Definition

Auto mode lets Claude Code run most actions without asking you. In your place, a second model checks each action before it runs. It blocks actions that go past what you asked for, or that reach places it does not know. It also blocks ones that look like a prompt injection. Claude Code still asks you about anything your own ask rules name. New sessions in the terminal start in this mode unless you set another.

Example code

bash
claude -p "fix the lint errors" --permission-mode auto
Run a script job with checks but no prompts.
A checker model passes safe actions and stops risky ones.

Common mistake

Treating it as a sandbox. The checker can be wrong, so keep deny rules and backups for things that must never happen.

Key takeaways

  1. 1
    A second model. Checks each action.
  2. 2
    Few prompts. Safe ones just run.
  3. 3
    Your ask rules. Still ask you.

Compare

Learn it properly