One change
Choose a permission mode
permission-modes
Nearest release: v2.1.242, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
permission-modes Changed · +2 / -18 lines
from line 185
A mode you pick in the mode selector is remembered per folder and takes precedence over `defaultMode` for that folder. Plan is the exception: picking it applies to the current session only. - This example sets Plan mode as the default for new local sessions: - - ```json theme={null} - { - "permissions": { - "defaultMode": "plan" - } - } - ``` + For where `defaultMode` goes in a settings file, see the example under [Start in a different permission mode](#start-in-a-different-mode). </Tab> <Tab title="Web and mobile">
from line 251
### Set plan mode as the default -To make plan mode the default for a project's terminal sessions, set `defaultMode` in `.claude/settings.json`. Conversations the [VS Code extension](/docs/en/vs-code) starts don't read project settings for the starting permission mode. There, set `claudeCode.initialPermissionMode` to `plan` in your VS Code user settings instead. This example sets the project default: - -```json theme={null} -{ - "permissions": { - "defaultMode": "plan" - } -} -``` +To make plan mode the default for a project's terminal sessions, set `defaultMode` to `plan` in `.claude/settings.json`, placed as the example under [Start in a different permission mode](#start-in-a-different-mode) shows. Conversations the [VS Code extension](/docs/en/vs-code) starts don't read project settings for the starting permission mode. There, set `claudeCode.initialPermissionMode` to `plan` in your VS Code user settings instead. <h2 id="eliminate-prompts-with-auto-mode"> Eliminate permission prompts with auto mode