Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

7 pages for setmode.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …mode on or off. The notice is delivered with the next user turn. setMode(modeOn: boolean): void { if (modeOn === this.modeOn) { return; } if (!modeOn) { if (this… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …without control methods Both languages have the same setters: * **`setModel()` / `set_model()`**: switches the model. Call it with no model to switch to [Claude Code's default model](/docs/en/model… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …"addRules", "replaceRules", "removeRules", "setMode", "addDirectories", "removeDirectories", ] rules: list[PermissionRuleValue] | None = None beha… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …sResult>; setPermissionMode(mode: PermissionMode): Promise<void>; setModel(model?: string): Promise<void>; setMaxThinkingTokens(maxThinkingTokens: number | null): Promise<void>; applyFlagSetti… Hooks reference Claude Code CLI · in the page hooks …| | `setMode` | `mode`, `destination` | Changes the permission mode. Valid modes are `default`, `auto`, `acceptE… Automate actions with hooks Claude Code CLI · in the page hooks-guide …your hook's output can include an `updatedPermissions` array with a `setMode` entry. The `mode` value is any permission mode like `default`, `acceptEdits`, or `bypassPermissions`, and `destination: "… Model configuration Claude Code CLI · in the page model-config …u switch models through the [Agent SDK](/docs/en/agent-sdk/overview) `setModel()` method or from a device connected through [Remote Control](/docs/en/remote-control), or an app such as the [Desktop ap…
Feedback