Tech Update / Adventures with Claude Code #30
Auto mode – fewer prompts, same control
"Yes. Yes. Yes. Yes, and don't ask again." After the tenth approval nobody reads what they are confirming. That is only safe on paper.
Part 7 was about fixed rules. Today is about the mode that fills the gap in between.
🤖 What auto mode does
A second model, the classifier, checks every action before it runs. Reads and edits inside the working directory go straight through. Shell commands and network access get reviewed. It blocks whatever goes beyond your request, touches unknown infrastructure, or looks as if the idea came from a text Claude has just read.
🚧 What doesn't get through by default
For example curl | bash, force pushes, git reset --hard, deployments and migrations on production, or secrets leaving the repository. For the full list:
claude auto-mode defaults
🔁 Switching it on
Shift+Tabcycles through the modes (part 16).claude --permission-mode autoat startup."defaultMode": "auto"in~/.claude/settings.json. In project settings the value is ignored, so a repository can't grant itself the mode.
From version 2.1.283, interactive sessions in the terminal and in VS Code start this way anyway.
🛑 When something is blocked
Claude is told the reason and looks for another route. Under /permissions you'll find the action in "Recently denied" and can approve it by hand with r. After three blocks in a row, or twenty in one session, auto mode pauses and Claude goes back to asking.
A word of caution:
The classifier respects sentences like "don't push until I've reviewed". But it reads them from the conversation, and after a /compact (part 27) they may be gone. Anything that must never happen belongs in a deny rule. Admins can switch auto mode off centrally, and with API billing the checks count towards your usage.
My rule of thumb:
- Everyday work in your own repository? Auto.
- "Must never happen"? A deny rule, not the classifier.
- Unfamiliar project or sensitive environment? Manual or plan mode (part 10).
Deutsch
English