Accept edits lets Claude Code change files in your project without asking, plus a few simple file commands, but it still asks before any other shell command. Auto lets Claude run almost everything without asking, with a separate model checking each action in the background and blocking risky ones. Use Accept edits when you are watching the work and want to approve every command; use Auto when you want a long task to run with few interruptions and accept a classifier's judgement. Switch between them with Shift+Tab.
01Side by side
acceptEdits)Auto (auto)mkdir, touch, rm, rmdir, mv, cp, sed in your projectRun without askingRun without askingnpm test, git push, curl)Ask youChecked by a classifier, then run or blockedask rulesAsk youAsk youBoth modes still obey your deny rules.
02How Accept edits works
Accept edits approves file changes and the simple file commands above, but only inside the working directory and any extra directories you have added. It still prompts for paths outside that area, for protected paths such as .git and .claude, and for every other shell command. You keep a firm hand on anything that runs code, which is why it suits sessions where you are reading the diff as Claude goes.
03How Auto works
In Auto mode, Anthropic's permission modes documentation describes the checks in order:
- Your permission rules apply first.
- Read-only actions and edits inside your project are approved.
- Everything else goes to a classifier, a separate model that reviews the action against what you asked for.
- If the classifier blocks something, Claude gets the reason and tries another way.
The classifier is meant to stop actions that go beyond your request, touch infrastructure it does not recognise, or look driven by hostile content such as instructions hidden in a web page. If it blocks three actions in a row, or twenty in a session, Auto mode pauses and you get normal prompts again. Broad allow rules such as Bash(*) are set aside while Auto is on. Anthropic is clear that Auto reduces prompts but does not guarantee safety.
Auto mode needs a recent Claude Code version and a supported model. On Team and Enterprise plans an administrator can turn it off.
04How to switch
- In a session: press
Shift+Tab. The cycle runs Manual (default), Accept edits, Plan, then any optional modes such as Auto. - When starting:
claude --permission-mode acceptEditsorclaude --permission-mode auto. - As your default: set
permissions.defaultModein~/.claude/settings.json. A project's own.claude/settings.jsoncannot set Auto for you.
Recent versions start interactive sessions in Auto when it is available, unless your settings say otherwise. If you see fewer prompts than you expect, check which mode the session shows.
05Which one to pick
- Accept edits if you are at the keyboard, want to see each command before it runs, and mostly want to stop clicking yes on edits.
- Auto if you are starting a long task and would rather a classifier handle routine commands than come back to a session stuck on a prompt.
- Neither for unfamiliar or risky work. Use Plan first, then decide.
Either way, Claude Code can still stop and wait: Accept edits for commands, Auto for questions, ask rules and blocks. If you leave the room, you want to know when that happens. Claude Code Notifier sends those prompts and questions to your phone: an independent tool (not made by Anthropic) with a free command line tool, ccn, for Mac, Windows and Linux, and apps for iPhone and Android. See Leave Claude Code running and walk away.
06FAQ
What is the difference between accept edits and auto mode in Claude Code?
Accept edits approves file edits and simple file commands but asks about every other shell command. Auto approves almost everything after a background classifier checks it.
Is auto mode safer than accept edits?
No. Accept edits asks you about every command, which is stricter. Auto trades some of that control for fewer prompts and relies on a classifier.
Does auto mode ever ask for permission?
Yes. It still asks for anything matching an ask rule, for Claude's questions, and after the classifier has blocked several actions in a row.
How do I turn on accept edits in Claude Code?
Press Shift+Tab until the mode shows Accept edits, or start with claude --permission-mode acceptEdits.
Use OpenAI's Codex CLI? Notifier for Codex does the same for Codex.