ClaudeCode.Hook.Output.PreCompact (ClaudeCode v0.36.3)

View Source

Hook-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

t()

@type t() :: %ClaudeCode.Hook.Output.PreCompact{custom_instructions: String.t() | nil}

Functions

to_wire(o)