II.
HookSurface overview
Reference · livehook-surface:claude.post-compact
PostCompact (Claude Code) overview
Fires after context compaction completes. Pairs with PreCompact (which is blocking; this one is observer-only). Used for compaction-event telemetry + downstream context refresh.
Attributes
eventName
PostCompact (Claude Code)
displayName
PostCompact (Claude Code)
kind
native
originVendor
Anthropic
direction
post
blocking
false
family
observer
payloadSchema
type
object
required
- hook_event_name
- trigger
properties
hook_event_name
type
string
const
PostCompact
trigger
type
string
enum
- manual
- auto
description
Fires after context compaction completes. Pairs with PreCompact
(which is blocking; this one is observer-only). Used for
compaction-event telemetry + downstream context refresh.
Outgoing edges
None.
Incoming edges
exposes1
- agent-runtime-impl:claude-code.runtime@1.x·AgentRuntimeImplClaude Code Runtime (1.x)
maps_hook1
- hook-mapping:claude-post-compact·HookMapping