From 88eb7b27e23a1d4ca4966c5a2758cd9e8cce8294 Mon Sep 17 00:00:00 2001 From: Reza Rezvani Date: Fri, 6 Mar 2026 09:19:33 +0100 Subject: [PATCH] fix: use record format for self-improving-agent hooks.json Claude Code expects hooks as a record keyed by event name, not an array. Co-Authored-By: Claude Opus 4.6 --- .../self-improving-agent/hooks/hooks.json | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/engineering-team/self-improving-agent/hooks/hooks.json b/engineering-team/self-improving-agent/hooks/hooks.json index a164465..5f3cba7 100644 --- a/engineering-team/self-improving-agent/hooks/hooks.json +++ b/engineering-team/self-improving-agent/hooks/hooks.json @@ -1,11 +1,15 @@ { - "hooks": [ - { - "name": "error-capture", - "event": "PostToolUse", - "matcher": "Bash", - "command": "./hooks/error-capture.sh", - "description": "Detects command failures and appends structured entries to auto-memory. Zero overhead on successful commands." - } - ] + "hooks": { + "PostToolUse": [ + { + "matcher": "Bash", + "hooks": [ + { + "type": "command", + "command": "./hooks/error-capture.sh" + } + ] + } + ] + } }