From 8c4e21de1ee4752159eda74ab7fb9c057828501d Mon Sep 17 00:00:00 2001 From: NagyVikt Date: Thu, 4 Jun 2026 00:25:52 +0200 Subject: [PATCH] chore(claude): wire branch advisor into this repo's own settings; mark hook executable PR #622 added agent_branch_advisor.py to the install template but left this repo's own tracked .claude/settings.json stale -- it shipped the advisory to other repos via `gx claude install` yet never wired gitguardex's own sessions. Regenerate settings.json so this repo's agent sessions also get the SessionStart + UserPromptSubmit advisory. Also chmod the advisor 0644->0755 to match every sibling managed hook and clear the `gx claude check` hook-not-executable warning. --- .claude/hooks/agent_branch_advisor.py | 0 .claude/settings.json | 8 ++++++++ 2 files changed, 8 insertions(+) mode change 100644 => 100755 .claude/hooks/agent_branch_advisor.py diff --git a/.claude/hooks/agent_branch_advisor.py b/.claude/hooks/agent_branch_advisor.py old mode 100644 new mode 100755 diff --git a/.claude/settings.json b/.claude/settings.json index 3220e374..3917961d 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -9,6 +9,10 @@ { "type": "command", "command": "bash \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/scripts/agent-stalled-report.sh\"" + }, + { + "type": "command", + "command": "python3 \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.claude/hooks/agent_branch_advisor.py\"" } ] } @@ -19,6 +23,10 @@ { "type": "command", "command": "python3 \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.claude/hooks/skill_activation.py\"" + }, + { + "type": "command", + "command": "python3 \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.claude/hooks/agent_branch_advisor.py\"" } ] }