npx claudepluginhub closedloop-ai/claude-plugins --plugin codeDefined in hooks/hooks.json
Read|Bash|Write|Edit${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse-hook.sh${CLAUDE_PLUGIN_ROOT}/hooks/session-end-hook.sh${CLAUDE_PLUGIN_ROOT}/hooks/session-start-hook.sh${CLAUDE_PLUGIN_ROOT}/hooks/loop-stop-hook.sh${CLAUDE_PLUGIN_ROOT}/hooks/subagent-stop-hook.sh${CLAUDE_PLUGIN_ROOT}/hooks/subagent-start-hook.shRuns bash scripts on SessionStart/End and SubagentStart/Stop. Before Read/Bash/Write/Edit tools, executes pretooluse-hook.sh which can block/modify calls. Involves bash execution and file writes.