---
title: "PreCompact"
description: "Hooks triggered on PreCompact events (3 hooks)."
canonical: "https://orchestkit.dev/docs/reference/hooks/pre-compact"
---

# PreCompact

Hooks triggered on PreCompact events (3 hooks).

# PreCompact Hooks

**3 hooks** registered for the `PreCompact` lifecycle event.

| Hook | Matcher | Behavior | Description |
|------|---------|----------|-------------|
| <span id="hook--lifecycle-pre-compact-guard"></span>`pre-compact-guard` | `*` | Blocks | PreCompact Guard (CC 2.1.105) |
| <span id="hook--lifecycle-pre-compact-saver"></span>`pre-compact-saver` | `*` | Silent | PreCompact Saver, Compaction-Aware Memory Architecture CC 2.1.25+: Preserves critical context before context compaction. |
| <span id="hook--lifecycle-webhook-forwarder"></span>`webhook-forwarder` | `*` | Fire-and-forget | Registered for every CC event type in hooks.json (async: true). Delegates to telemetry.emit() which fans out to pluggable sinks (JSONL local + HTTP remote). No-op when no sinks are active. |
