skip to content

Since Claude Code v2.1.283, what decides the permission mode a new interactive session starts in, and how does Shift+Tab cycle from there?

level: middleimportance: should knowfreq 14%

answer

  1. flag, then settings, then built-in
  2. auto as the start since 2.1.283
  3. project files can't grant auto or bypass
  4. first press from auto lands on Manual
  5. dontAsk never joins the cycle

basics

~20 s

The --permission-mode flag wins, then permissions.defaultMode from settings, then the built-in default, which is auto for interactive terminal and VS Code sessions since v2.1.283. Shift+Tab goes auto to Manual, then Manual, acceptEdits, plan, with enabled bypass and auto after plan.

solid answer

~40 s

A new terminal session takes its mode from the first of: the `--permission-mode` flag (or `--dangerously-skip-permissions`), `permissions.defaultMode` in a settings file, and the built-in default. Since v2.1.283 the built-in default is `auto` for interactive terminal and VS Code sessions on every plan and provider; `claude -p` and the Agent SDK still start in `default` in most setups, and any `disableAutoMode` setting forces `default`. `auto` and `bypassPermissions` do not take effect from a project's `.claude/settings.json` or `.claude/settings.local.json`, so a checked-in file cannot escalate you. During the session, `Shift+Tab` goes from `auto` to `default` (Manual), then cycles `default` to `acceptEdits` to `plan`, with `bypassPermissions` and then `auto` after `plan` when enabled. `dontAsk` never appears; `bypassPermissions` appears only if enabled at launch.

code

bash · 5 lines
bash
# one session: start in plan mode regardless of settings
claude --permission-mode plan

# keep bypass reachable from Shift+Tab without starting in it
claude --permission-mode plan --allow-dangerously-skip-permissions

go deeper

for a junior

Recall that a fresh terminal session on a recent release starts in auto, and that Shift+Tab or --permission-mode changes it.

for a middle

Explain the flag, settings, built-in order and the exact Shift+Tab cycle, including which modes are optional and that dontAsk never appears.

for a senior

Show why project files cannot grant auto or bypass, and diagnose a silent fallback to Manual from availability or file placement.

for a principal

Decide between a managed defaultMode and disableAutoMode for a team, knowing one sets a starting point and the other removes a choice.

## The precedence for a new session When you start a new session in a terminal, Claude Code takes the **permission mode** from the first of these that applies: 1. The **`--permission-mode` flag**, or `--dangerously-skip-permissions`, which is equivalent to `--permission-mode bypassPermissions`. 2. **`permissions.defaultMode`** in a settings file. When several files set it, normal settings precedence decides, so a project or managed value outranks `~/.claude/settings.json`. 3. The **built-in default**. Two values are special in step 2. If `"auto"` is set in a project's `.claude/settings.json` or `.claude/settings.local.json`, it does not take effect, and Claude Code falls through to the built-in default rather than a value from `~/.claude/settings.json`. If `"bypassPermissions"` is set in either of those files, it does not take effect and the session starts in Manual. The reason is trust: a repository you clone should not be able to raise your autonomy. Before v2.1.257, `bypassPermissions` took effect from any file. ## The built-in default changed in v2.1.283 | How you run Claude Code | Built-in starting mode | | :- | :- | | Any settings file sets `disableAutoMode` to `"disable"` | `default` | | `claude -p` or the Agent SDK | `default` in sessions that fetch feature flags; exceptions apply on third-party providers or with telemetry off | | A terminal or the VS Code extension | `auto` from v2.1.283; earlier, `auto` only on Pro, Max or Team plans | If the flag, a settings file or the built-in default selects `auto` but auto mode is not available, for example on an unsupported model or because an administrator disabled it, the session starts in Manual. The first time the built-in default starts you in auto, Claude Code shows a one-time notice. To pin a starting mode for everything on your machine, set it in user settings: ```json { "permissions": { "defaultMode": "default" } } ``` The next session shows `⏸ manual mode on`. The `"manual"` alias for `"default"` and the Manual label need v2.1.200 or later. The VS Code extension has its own order, starting with `claudeCode.initialPermissionMode`, and never reads project settings for the starting mode. ## The Shift+Tab cycle During a session, `Shift+Tab` switches modes and the status bar names the result (`⏸ manual mode on`, `⏵⏵ accept edits on`, `⏸ plan mode on`, `⏵⏵ auto mode on`, `⏵⏵ bypass permissions on`). - From `auto`, the **first press goes to `default`** (Manual). - The core cycle is `default` to `acceptEdits` to `plan`. - Enabled optional modes slot in **after `plan`**, `bypassPermissions` first and `auto` last, then the cycle wraps to `default`. - `auto` appears only when auto mode is available; `disableAutoMode` removes it. - `bypassPermissions` appears only if the session was started with `--permission-mode bypassPermissions`, `--dangerously-skip-permissions`, `--allow-dangerously-skip-permissions`, or `defaultMode: "bypassPermissions"` in user, `--settings` or managed settings. The `--allow-` variant adds it to the cycle without starting in it. - `dontAsk` **never** appears in the cycle; you set it with `--permission-mode dontAsk` or `defaultMode`. So a session that started in auto with nothing optional enabled goes auto, Manual, acceptEdits, plan, auto. The wider keyboard map is a separate subject; here `Shift+Tab` matters only for what it switches. ## Checking which mode you actually got - Read the status bar: Manual shows a gray `⏸ manual mode on`, auto shows `⏵⏵ auto mode on`. - If you asked for auto and see Manual with no error, check whether auto is available (model, `disableAutoMode`) and whether the value sits in a project file where it is ignored. - If `Shift+Tab` never reaches bypass, the session was not started with a flag or setting that enables it; relaunch rather than cycling. ## What breaks for people who learned the old behaviour - Before v2.1.283, users outside Pro, Max and Team plans, such as Enterprise and API-key accounts, started in Manual. Now a fresh terminal session may start in auto on any plan, and someone expecting a prompt before every command will not get one. - Putting `"defaultMode": "auto"` in a project file silently does nothing; it belongs in `~/.claude/settings.json`. - An organisation that wants nobody in auto sets `disableAutoMode` in managed settings; a managed `defaultMode` only sets the start, and people can still switch to auto.

  • You put "defaultMode": "auto" in the repository's .claude/settings.json and sessions still start in Manual with no error. Why?
    `auto` does not take effect from project or local settings, so Claude Code falls back to the built-in default. If that is Manual, for example because a setting disables auto mode or the model is unsupported, you start in Manual. Move the value to `~/.claude/settings.json`, or pass `--permission-mode auto`.
  • How does an organisation stop anyone using auto mode, rather than just changing where sessions start?
    Set `permissions.disableAutoMode` (or top-level `disableAutoMode`) to `"disable"` in managed settings. It removes `auto` from the `Shift+Tab` cycle and makes any session that would start in auto start in `default`. A managed `defaultMode` only sets the starting mode; people can still switch to auto.

  • Setting defaultMode to auto in the repo's settings starts everyone in auto.
  • Pressing Shift+Tab enough times eventually reaches dontAsk.
  • Any session can Shift+Tab into bypassPermissions if you keep pressing.
  • New interactive sessions always start in Manual until you opt into auto.
  • permissions.defaultMode in settings overrides the --permission-mode flag.

Assumes Claude Code 2.1.286; auto became the built-in starting mode for interactive terminal and VS Code sessions on every plan in 2.1.283, and earlier only on Pro, Max and Team plans.