ClaudeCode.Hook.Output.PreCompact (ClaudeCode v0.36.3)
View SourceHook-specific output for PreCompact events.
Fires before conversation compaction, allowing custom instructions to guide what the compaction preserves.
Shorthand: {:ok, custom_instructions: "..."}.
Fields
:custom_instructions- instructions for the compaction process
Summary
Types
@type t() :: %ClaudeCode.Hook.Output.PreCompact{custom_instructions: String.t() | nil}