diff --git a/internal/claude/config/settings-autonomous.json b/internal/claude/config/settings-autonomous.json index 54c119e9..a15ff772 100644 --- a/internal/claude/config/settings-autonomous.json +++ b/internal/claude/config/settings-autonomous.json @@ -3,6 +3,35 @@ "beads@beads-marketplace": false }, "hooks": { + "PreToolUse": [ + { + "matcher": "Bash(gh pr create*)", + "hooks": [ + { + "type": "command", + "command": "export PATH=\"$HOME/go/bin:$HOME/.local/bin:$PATH\" && gt tap guard pr-workflow" + } + ] + }, + { + "matcher": "Bash(git checkout -b*)", + "hooks": [ + { + "type": "command", + "command": "export PATH=\"$HOME/go/bin:$HOME/.local/bin:$PATH\" && gt tap guard pr-workflow" + } + ] + }, + { + "matcher": "Bash(git switch -c*)", + "hooks": [ + { + "type": "command", + "command": "export PATH=\"$HOME/go/bin:$HOME/.local/bin:$PATH\" && gt tap guard pr-workflow" + } + ] + } + ], "SessionStart": [ { "matcher": "", diff --git a/internal/claude/config/settings-interactive.json b/internal/claude/config/settings-interactive.json index 9fbef9e2..e138893c 100644 --- a/internal/claude/config/settings-interactive.json +++ b/internal/claude/config/settings-interactive.json @@ -3,6 +3,35 @@ "beads@beads-marketplace": false }, "hooks": { + "PreToolUse": [ + { + "matcher": "Bash(gh pr create*)", + "hooks": [ + { + "type": "command", + "command": "export PATH=\"$HOME/go/bin:$HOME/.local/bin:$PATH\" && gt tap guard pr-workflow" + } + ] + }, + { + "matcher": "Bash(git checkout -b*)", + "hooks": [ + { + "type": "command", + "command": "export PATH=\"$HOME/go/bin:$HOME/.local/bin:$PATH\" && gt tap guard pr-workflow" + } + ] + }, + { + "matcher": "Bash(git switch -c*)", + "hooks": [ + { + "type": "command", + "command": "export PATH=\"$HOME/go/bin:$HOME/.local/bin:$PATH\" && gt tap guard pr-workflow" + } + ] + } + ], "SessionStart": [ { "matcher": "",