Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Search the documentation

7 pages for postmodelswitch.

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

Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …| | [`PostModelSwitch`](/docs/en/hooks#postmodelswitch) | No | Yes | The session's model changes, including a… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …entStop" | "PreCompact" | "PostCompact" | "PreModelSwitch" | "PostModelSwitch" | "PermissionRequest" | "PermissionDenied" | "Setup" | "TeammateIdle" | "TaskCreated" | "TaskComplete… Claude Code changelog Claude Code CLI · in the page changelog …1.251" description="August 28, 2026"> * Added `PreModelSwitch` and `PostModelSwitch` hook events (block, confirm, or annotate a model switch); `SessionStart` resume hooks now receive session stalene… Hooks reference Claude Code CLI · in the page hooks …tandalone sequential event that runs before a requested model switch, PostModelSwitch as a standalone async event that runs after the session's model changes, and MessageDisplay as a display-only even… Automate actions with hooks Claude Code CLI · in the page hooks-guide …| | `PostModelSwitch` | After the session's model changes, including changes Claude Code makes on its own, such as restoring the mo… Plugins reference Claude Code CLI · in the page plugins-reference …| | `PostModelSwitch` | After the session's model changes, including changes Claude Code makes on its own, such as restoring the mo… Week 36 · August 31 – September 4, 2026 Claude Code CLI · in the page whats-new/2026-w36 …k can block a model switch you request, and a <a href="/docs/en/hooks#postmodelswitch"><code>PostModelSwitch</code></a> hook can add context for Claude after the session's model changes</div> <div…
Feedback