From 6f798f28b340f5584e5c5f0b8f8719d625618272 Mon Sep 17 00:00:00 2001 From: Kjell Tore Guttormsen Date: Fri, 17 Apr 2026 14:45:13 +0200 Subject: [PATCH] feat(hooks): register PreCompact event in hooks.json --- hooks/hooks.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hooks/hooks.json b/hooks/hooks.json index df4fedc..68aacaa 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -77,6 +77,17 @@ } ] } + ], + "PreCompact": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact-scan.mjs" + } + ] + } ] } }