1. auto mode is a claude code permission mode where a separate classifier model reviews actions not allowed by permission rules*
  1. anthropic positions it as a middle ground between default prompting and --dangerously-skip-permissions (which allows everything — useful for isolated envs like containers)
  2. in auto mode, the classifier rejects anything risky — irreversible, destructive, or aimed outside your environment
  3. the environment is defined as the working directory plus the repo’s configured remotes by default
  4. when a risky action is blocked, claude looks for a safer approach
  5. 3 blocks in a row or 20 blocks in a session pause auto mode; approving the prompt resumes auto mode
  6. environment can be defined via autoMode.environment in global settings.json

* → reads and edits inside the current working directory are auto-approved (except for some protected paths)


does the classifier step add latency?

  1. yes, compared to --dangerously-skip-permissions
  2. however, most actions within a typical session are reads and edits within the current working directory, which are default allowed
  3. additionally, the classifier model works in 2 stages
  4. stage 1 is a fast single-token yes/no filter while stage 2 runs only on the stage 1 flagged actions

what about correctness of the classifier?

  1. stage 1 was found to have 8.5% false positives, which reduces to 0.4% when combined with stage 2
  2. however, having stage 2 was also found to increase misses from 6.6% to 17%
  3. false positives: classifier blocks a safe action; the cost is annoyance
  4. misses: classifier allows a risky action; the cost is integrity failure

references

  1. https://code.claude.com/docs/en/auto-mode-config
  2. https://www.anthropic.com/research/claude-code-auto-mode