What
The SDK lets another program run Claude Code and answer its permission questions. When that program allows a tool and includes an updatedPermissions entry of type setMode, Claude Code now switches to the mode named there. It accepts "default" or "acceptEdits".
Why
A program built on the SDK can now approve a request and change how later requests are handled in the same answer, for example moving to acceptEdits so file edits stop needing approval each time.
Names in the bundleupdatedPermissionssetMode
Documented inclaude-code/agent-sdk/python
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Hooks reference touched a line naming setMode after this was published.
| `setMode` | `mode`, `destination` | Changes the permission mode. Valid modes are `default`, `auto`, `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan`, and `manual` as an alias for `default` |hooks see the edit
Confirmed since
Anthropic's documentation has since written up setMode, on Agent SDK reference - Python.
| `mode` | `PermissionMode \| None` | Mode for setMode operation |agent-sdk/python see the edit
Confirmed since
Anthropic's documentation has since written up updatedPermissions, on Agent SDK reference - TypeScript.
| `suggestions` | [`PermissionUpdate`](#permissionupdate)`[]` | Suggested permission updates so the user is not prompted again for this tool. Bash prompts include a suggestion with the `localSettings` [destination](#permissionupdatedestina…agent-sdk/typescript see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up updatedPermissions, on Agent SDK reference - TypeScript.