Before a tool call (Agent|Task): runs python3 "${CLAUDE_PLUGIN_ROOT}/hooks/pre_tool_use.py". After a tool call (Agent|Task): runs python3 "${CLAUDE_PLUGIN_ROOT}/hooks/post_tool_use.py". When a session starts: runs python3 "${CLAUDE_PLUGIN_ROOT}/hooks/session_init.py". And 1 more.
4 events · 4 hooks
Ships in claude-model-router-hook. Installing the plugin adds it to Claude Code.
Event handlers and matchers — expand Raw configuration for the full JSON
Agent|Taskpython3 "${CLAUDE_PLUGIN_ROOT}/hooks/pre_tool_use.py"10sAgent|Taskpython3 "${CLAUDE_PLUGIN_ROOT}/hooks/post_tool_use.py"5spython3 "${CLAUDE_PLUGIN_ROOT}/hooks/session_init.py"5spython3 "${CLAUDE_PLUGIN_ROOT}/hooks/user_prompt_submit.py"10sWhere this hook configuration is defined
Defined in hooks/hooks.json
session-start, pre-tool-use, post-tool-use, user-prompt-submit
11 plugins in 9 repositories ship this exact hooks config · first indexed Jan 17, 2026
npx claudepluginhub tzachbon/claude-model-router-hook --plugin claude-model-router-hookOther plugins' hooks for the same job