From tokenops
Before a tool call (Bash): runs P=$(command -v python3 || command -v python) || exit 0; "$P" "${CLAUDE_PLUGIN_RO…. After a tool call (Bash): runs P=$(command -v python3 || command -v python) || exit 0; "$P" "${CLAUDE_PLUGIN_RO…. And 2 more.
4 events · 4 hooks
Ships in tokenops. 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
BashP=$(command -v python3 || command -v python) || exit 0; "$P" "${CLAUDE_PLUGIN_ROOT}/scripts/tokenops_hook.py" PreToolUse || exit 010sBashP=$(command -v python3 || command -v python) || exit 0; "$P" "${CLAUDE_PLUGIN_ROOT}/scripts/tokenops_hook.py" PostToolUse || exit 010sP=$(command -v python3 || command -v python) || exit 0; "$P" "${CLAUDE_PLUGIN_ROOT}/scripts/tokenops_hook.py" SessionStart || exit 010sP=$(command -v python3 || command -v python) || exit 0; "$P" "${CLAUDE_PLUGIN_ROOT}/scripts/tokenops_hook.py" UserPromptSubmit || exit 010sWhere this hook configuration is defined
Defined in hooks/hooks.json
guard-scripts, security, self-heal, prompt-guard, output-inspection
24 plugins in 23 repositories ship this exact hooks config · first indexed Mar 22, 2026
Showing 6 of 24 plugins, one per repository first
npx claudepluginhub theagentplane/tokenops --plugin tokenopsOther plugins' hooks for the same job