Permission System
Claude Code has 6 permission modes that control how tool calls are approved or denied. Auto mode uses a 2-stage AI classifier called the YOLO classifier to decide without asking the user.
Permission modes
Asks the user on sensitive operations. The standard mode for most sessions.
Auto-approves all file read/write/edit operations. Shell and network still prompt.
Auto-approves every single tool call, including destructive ones. No safety checks.
Instead of asking, automatically denies any tool call that would normally prompt. Used by the Claude Code Guide agent.
An AI classifier decides allow/block without asking. Uses a 2-stage pipeline. Dangerous patterns are always blocked.
Special planning mode with restricted tool access. The classifier runs if active, else falls back to normal mode.
YOLO classifier (auto mode)
When auto mode is active, every tool call goes through a 2-stage XML classifier that decides allow or block without involving the user.
Patterns blocked in auto mode
These command patterns are classified as high-risk and are blocked by the YOLO classifier in auto mode. You must approve them manually.