From 217b199ff892fe48fd1efbee40e650798fabcba9 Mon Sep 17 00:00:00 2001 From: Reza Rezvani Date: Wed, 25 Mar 2026 09:17:14 +0100 Subject: [PATCH] fix(self-improving-agent): use CLAUDE_PLUGIN_ROOT for hook paths Relative paths (./hooks/error-capture.sh) resolve against the project working directory, not the plugin root. Replaced with ${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh in both hooks.json and settings.json. Fixes #392 Co-Authored-By: Claude Opus 4.6 (1M context) --- engineering-team/self-improving-agent/hooks/hooks.json | 2 +- engineering-team/self-improving-agent/settings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engineering-team/self-improving-agent/hooks/hooks.json b/engineering-team/self-improving-agent/hooks/hooks.json index 5f3cba7..d9195c5 100644 --- a/engineering-team/self-improving-agent/hooks/hooks.json +++ b/engineering-team/self-improving-agent/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "./hooks/error-capture.sh" + "command": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh" } ] } diff --git a/engineering-team/self-improving-agent/settings.json b/engineering-team/self-improving-agent/settings.json index 06b5282..b7e9c36 100644 --- a/engineering-team/self-improving-agent/settings.json +++ b/engineering-team/self-improving-agent/settings.json @@ -18,7 +18,7 @@ }, "hooks": { "PostToolUse": { - "Bash": "hooks/error-capture.sh" + "Bash": "${CLAUDE_PLUGIN_ROOT}/hooks/error-capture.sh" } }, "agents": [