PostCompact API

July 14, 2026 ยท View on GitHub

Available when inheriting from ClaudeHooks::PostCompact:

Runs after transcript compaction completes. Non-blocking โ€” use for logging or post-compaction side effects.

Input Helpers

๐Ÿ“š Shared input helpers

MethodDescription
triggerWhat triggered the compaction: 'auto' or 'manual'
compact_summaryThe summary produced by the compaction

Hook State Helpers

๐Ÿ“š Shared hook state methods

No event-specific state methods โ€” this hook is non-blocking.

Output Helpers

๐Ÿ“š Shared output helpers

No event-specific output helpers.

Hook Exit Codes

Non-blocking. Exit code is ignored.