From c98483ad91058ab8bd0e804e037926bcf30b6139 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 --- plugins/llm-security/hooks/hooks.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/llm-security/hooks/hooks.json b/plugins/llm-security/hooks/hooks.json index df4fedc..68aacaa 100644 --- a/plugins/llm-security/hooks/hooks.json +++ b/plugins/llm-security/hooks/hooks.json @@ -77,6 +77,17 @@ } ] } + ], + "PreCompact": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact-scan.mjs" + } + ] + } ] } }