Skip to content

Hooks

Hook Pack Event
secret-guard safety-pack PreToolUse Bash/Edit/Write/MultiEdit
dangerous-command-guard safety-pack PreToolUse Bash
branch-protection-guard safety-pack PreToolUse Bash
prompt-injection-detector safety-pack PreToolUse WebFetch/WebSearch/Read
mcp-tool-allowlist safety-pack PreToolUse mcp____
format-on-edit verification-pack PostToolUse Edit/Write/MultiEdit
typecheck-on-edit verification-pack PostToolUse Edit/Write
test-on-edit verification-pack PostToolUse Edit/Write
stop-verify verification-pack Stop
session-context-injector long-running-pack SessionStart
cost-ceiling-guard long-running-pack PreToolUse
plan-required-on-large-change long-running-pack PreToolUse Edit/Write/MultiEdit
session-end-summary long-running-pack SessionEnd

All hooks honor CLAUDE_HARNESSES_DISABLE=1. See hook hardening for the contract every hook follows.