Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

5 pages for postcompact.

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 …compaction request | Archive full transcript before summarizing | | `PostCompact` | No | Yes | Conversation compaction completes | Log the generated summary | | [`PreModelSwitch`](/docs/en/hooks#prem… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …hook events, such as `Notification`, `SessionEnd`, `PreCompact`, and `PostCompact`, never produce an `SDKHookStartedMessage`, even with this option. For those events, Claude Code still emits an `SDKHo… CLI reference Claude Code CLI · in the page cli-reference …hook events, such as `Notification`, `SessionEnd`, `PreCompact`, and `PostCompact`, never produce a `hook_started` event, even with this flag. For those events, Claude Code still emits `hook_progress`… Hooks reference Claude Code CLI · in the page hooks …eted), and Stop or StopFailure, followed by TeammateIdle, PreCompact, PostCompact, and SessionEnd, with Elicitation and ElicitationResult nested inside MCP tool execution, PermissionDenied as a side b… Automate actions with hooks Claude Code CLI · in the page hooks-guide …ed is being removed | | `PreCompact` | Before context compaction | | `PostCompact` | After context compaction completes | | `PreModelSwitch` | Before Claude Code applies a model switch that you or a c…
Feedback