{"version":"2.1.76","anchor":"postcompact-hook-event","canonical_anchor":"postcompact-hook-event","heading":"PostCompact Hook Event","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.76\/e\/postcompact-hook-event","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.76","markdown":"### PostCompact Hook Event\n\n**What**\n\nA new hook event that fires after conversation compaction completes, letting you run shell commands or prompts in response to compaction.\n\n**Details**\n\n- Hook event name: `PostCompact`\n- Input includes compaction details and the summary text\n- Allows post-processing after compaction (e.g., logging, notification, or custom follow-up actions)\n- Hook output: exit code 0 shows stdout to user; other exit codes show stderr only\n\n**Evidence**\n\nPostCompact hook event definition (search for `hook_event_name: C.literal(\"PostCompact\")`, `\"Running PostCompact hooks\u2026\"`)"}