claudegoodies
Hook

beads hooks

From gastownhall

Hooks on PreToolUse

Blocks Bash tool calls matching gh watch or interactive commands via two shell scripts on PreToolUse.

Use it when

  • Want to prevent Claude from running 'gh ... watch' commands
  • Want to stop Claude invoking interactive shell commands that hang

Skip it if

  • You need to inspect the actual block-*.sh script logic, not included here
  • Only guards the Bash tool, not other tool types
  • Requires .claude/hooks/ scripts to exist in your project

Facts

Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this hook runs.

{
  "PreToolUse": [
    {
      "matcher": "Bash",
      "hooks": [
        {
          "type": "command",
          "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-gh-watch.sh"
        },
        {
          "type": "command",
          "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-interactive-cmds.sh"
        }
      ]
    }
  ]
}
View full source on GitHub →

Other hooks