From state-gate
Before a tool call (Read|Write|Edit|Glob|Grep|Bash|WebSearch…): runs npx -y @caphtech/state-gate pre-tool-use. After a tool call (mcp__state-gate__state_gate_emit_event): runs npx -y @caphtech/state-gate post-tool-use. And 1 more.
3 events · 3 hooks
Ships in state-gate. 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
Read|Write|Edit|Glob|Grep|Bash|WebSearch|WebFetchnpx -y @caphtech/state-gate pre-tool-usemcp__state-gate__state_gate_emit_eventnpx -y @caphtech/state-gate post-tool-usecompactif [ -f .state_gate/state-gate.json ]; then echo ''; echo '📊 ==================== State After Compaction ===================='; npx -y @caphtech/state-gate get-state; echo '=================================================================='; echo ''; fiWhere this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub caphtech/state_gate --plugin state-gate249 plugins in 240 repositories ship this exact hooks config · first indexed Nov 28, 2025
Showing 6 of 249 plugins, one per repository first
Other plugins' hooks for the same job