Hook Playground

Write a hook. Pick a sample input. Click Run. See what happens. No install needed.

Hook Script (bash) PreToolUse · Bash
Input (JSON via stdin)

Output

Result
Click "Run Hook" to see the result.

Hooks are simulated client-side using pattern matching. For real execution, use npx cc-safe-setup --simulate "command" or --test-hook name.