From SwB
After every Claude response: runs sh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook…. Before a tool call: runs sh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook…. And 7 more.
9 events · 9 hooks
Ships in SwB. 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
sh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1ssh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1ssh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1sWrite|Edit|MultiEditsh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1ssh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1spermission_prompt|elicitation_dialog|agent_needs_input|idle_promptsh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1ssh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1ssh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1ssh -c 'test -S "${SWB_COMPANION_HOME:-$HOME/.config/swb}/hooks.sock" && swb hook claude-code; exit 0'1sWhere this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub zhehanzhang/swb --plugin swb5 plugins ship this exact hooks config · first indexed Oct 25, 2026
Other plugins' hooks for the same job