{"name":"PostCompact","slug":"postcompact","family":"hook","title":"Hook events","noun":"hook event","description":"After context compaction completes","description_source":"docs","described_by":{"doc":"claude-code\/hooks","title":"Hooks reference"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":{"version":"2.1.76","released_at":"2026-03-14 00:14:17","spans":3}},"aliases":[],"entries":[{"version":"2.1.229","anchor":"hooks-are-handed-a-session-object-instead-of-reading-globals","heading":"Hooks are handed a session object instead of reading globals","line":"Hooks now get an explicit session with id, working directory and project root instead of guessing from globals.","released_at":"2026-08-12 19:28:48","reason":"found in this entry's text"},{"version":"2.1.228","anchor":"subagents-doing-delegated-observation-no-longer-trigger-comp","heading":"Subagents doing delegated observation no longer trigger compact hooks","line":"Observation subagents no longer fire your PostCompact hooks when they compact.","released_at":"2026-08-11 17:45:45","reason":"named in this entry, found in this entry's text"},{"version":"2.1.124","anchor":"update-config-skill-prompt-rewritten","heading":"update-config skill prompt rewritten","line":null,"released_at":"2026-04-30 01:39:41","reason":"found in this entry's text"},{"version":"2.1.76","anchor":"postcompact-hook-event","heading":"PostCompact Hook Event","line":null,"released_at":"2026-03-14 00:14:17","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":true},{"source":"claude-code","path":"agent-sdk\/hooks","title":"Intercept and control agent behavior with hooks","documented":true},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":false},{"source":"claude-code","path":"hooks-guide","title":"Automate actions with hooks","documented":false}],"docs_total":5,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/hook\/postcompact","family_url":"https:\/\/changelogs.core-directive.com\/reference\/hook.json"}