Configure your agent changedagent-sdk/configuration
Nearest release: v2.1.312, published 2 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 27 Oct 2026 20:59 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 27 Oct 2026 21:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
157
where the diff opens
First seen
15 Sep 2026
this site's first read of the page
Recorded edits7to this page, all time
The whole hunk
from line 157, old and new numbered
/
from line 157
157157
158158Both languages have the same setters:
159159
160* **`setModel()` / `set_model()`**: switches the model. Call it with no model to switch to [Claude Code's default model](https://code.claude.com/docs/en/model-config.md#default-model-setting) rather than the `model` you passed in options.
160* **`setModel()` / `set_model()`**: switches the model. Call it with no model to switch to [Claude Code's default model](https://code.claude.com/docs/en/model-config.md#default-model-setting) rather than the `model` you passed in options. If the session is in auto mode and you switch to a model that auto mode doesn't support, the session changes to `default` mode. To return to auto mode, see [Auto mode (`auto`)](https://code.claude.com/docs/en/agent-sdk/permissions#auto-mode-auto).
161161* **`setPermissionMode()` / `set_permission_mode()`**: switches the permission mode
162162
163163TypeScript also has `applyFlagSettings()` and `updateSettings()`:
No line in this hunk matches that.