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
| Method | Description |
|---|---|
trigger | What triggered the compaction: 'auto' or 'manual' |
compact_summary | The summary produced by the compaction |
Hook State Helpers
๐ Shared hook state methods
No event-specific state methods โ this hook is non-blocking.
Output Helpers
No event-specific output helpers.
Hook Exit Codes
Non-blocking. Exit code is ignored.