~ / rigs / s7pher / claude-hooks-merge-lab

s7pher/claude-hooks-merge-lab

Lab for characterising Claude Code hooks settings-merge behavior

↗ GitHub ★ 0 no license updated 4mo ago project Claude Code
share on X
ARCHETYPE
Minimalist
Lean instructions, few tools, tiny context tax. Lets the model think.
CONTEXT TAX · EVERY TURN
~0 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit s7pher/claude-hooks-merge-lab/.claude ./rig-claude-hooks-merge-lab  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "powershell -NoProfile -ExecutionPolicy Bypass -File \"%CLAUDE_PROJECT_DIR%\\tools\\beacon.ps1\" -Source project-settings"
          }
        ]
      }
    ]
  }
}

Hooks (1)

eventmatcherruns
PreToolUseBashpowershell -NoProfile -ExecutionPolicy Bypass -File "%CLAUDE_PROJECT_DIR%\tools\beacon.ps1" -Source project-settings

Similar rigs

copied ✓