From indahl-spend-cap
Before a tool call: runs P=python3; $P -c 1 >/dev/null 2>&1 || P=python; $P -c 1 >/dev/null 2>&1 || { ech….
1 event · 1 hook
Ships in indahl-spend-cap. 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
*P=python3; $P -c 1 >/dev/null 2>&1 || P=python; $P -c 1 >/dev/null 2>&1 || { echo "spend-cap: no working Python (python3 or python) was found, so the budget cannot be checked. Tool calls are refused until a working Python is on PATH or the plugin is disabled." >&2; exit 2; }; exec $P "${CLAUDE_PLUGIN_ROOT}/scripts/spend_cap.py"15sWhere this hook configuration is defined
Defined in hooks/hooks.json
npx claudepluginhub indahl-ai/claude-plugins --plugin indahl-spend-cap140 plugins in 101 repositories ship this exact hooks config · first indexed Jul 19, 2026
Other plugins' hooks for the same job