From guardrails
Before a tool call (Bash|Read|Write|Edit|MultiEdit|NotebookE…): runs gate="${CLAUDE_PLUGIN_ROOT}/hooks/bin/$(uname -s | tr '[:upper:]' '[:lower:]')-$….
1 event · 1 hook
Ships in guardrails. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
Bash|Read|Write|Edit|MultiEdit|NotebookEdit|mcp__.*gate="${CLAUDE_PLUGIN_ROOT}/hooks/bin/$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')/permission-gate"; [ -x "$gate" ] || { echo "guardrails permission-gate: no executable gate binary for this platform at $gate -- failing closed, tool call denied. Build and commit one per plugins/guardrails/hooks/permission-gate/README.md." >&2; exit 2; }; out=$("$gate"); rc=$?; if [ "$rc" -eq 126 ] || [ "$rc" -eq 127 ]; then echo "guardrails permission-gate: the gate binary at $gate could not be executed (exit $rc: wrong architecture or OS, a corrupt file, or a noexec mount) -- failing closed, tool call denied. Rebuild and commit it per plugins/guardrails/hooks/permission-gate/README.md." >&2; exit 2; fi; if [ "$rc" -eq 0 ] && [ -z "$out" ]; then echo "guardrails permission-gate: the gate binary at $gate exited 0 without emitting a decision -- failing closed, tool call denied. Rebuild and commit it per plugins/guardrails/hooks/permission-gate/README.md." >&2; exit 2; fi; if [ "$rc" -ne 0 ] && [ "$rc" -ne 2 ]; then echo "guardrails permission-gate: the gate binary at $gate exited abnormally without emitting a decision (exit $rc: crashed, killed, or a truncated file) -- failing closed, tool call denied. Rebuild and commit it per plugins/guardrails/hooks/permission-gate/README.md." >&2; exit 2; fi; printf '%s' "$out"; exit "$rc"10sWhere this hook configuration is defined
Defined in hooks/hooks.json
475 plugins in 442 repositories ship this exact hooks config · first indexed Nov 28, 2025
npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin guardrails