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" + } + ] + } + ] + } }