Stats
Actions
Tags
From tkm
Executes TypeScript hooks via tsx for token monitoring on 7 Claude Code events: SessionStart, Stop, PostToolUse, SubagentStart/Stop, PermissionRequest, PostToolUseFailure. Runs npm install on SessionStart if package.json changed.
7 events · 8 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
TOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/stop.ts"TOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/post-tool-use.ts"diff -q "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json" >/dev/null 2>&1 || (cd "${CLAUDE_PLUGIN_ROOT}" && npm install --no-audit --no-fund 2>/dev/null && cp "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json") || trueTOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/session-start.ts"TOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/subagent-stop.ts"TOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/subagent-start.ts"TOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/permission.ts"TOKENMON_HOOK_MODE=1 "${CLAUDE_PLUGIN_ROOT}/bin/tsx-resolve.sh" "${CLAUDE_PLUGIN_ROOT}/src/hooks/tool-fail.ts"npx claudepluginhub thunderconch/tkm --plugin tkm