Search the documentation
6 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
…| | `PostCompact` | No | Yes | Conversation compaction completes…
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
…| | `PostCompact` | After context compaction completes…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…| | `PostCompact` | After context compaction completes…