Skip to content
Productivity
Hook

Hooks

What claude-code-wakatime runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
claude-code-wakatime
926 hooks
Install
> /plugin marketplace add wakatime/claude-code-wakatime
> /plugin install claude-code-wakatime@wakatime

Ships with claude-code-wakatime. Installing the plugin gets these hooks.

What fires, and when

SessionEnd

  • ${CLAUDE_PLUGIN_ROOT}/scripts/run

PreToolUse

  • ${CLAUDE_PLUGIN_ROOT}/scripts/run

PostToolUse

  • ${CLAUDE_PLUGIN_ROOT}/scripts/run

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • ${CLAUDE_PLUGIN_ROOT}/scripts/run

PreCompact

  • ${CLAUDE_PLUGIN_ROOT}/scripts/run

SubagentStop

  • ${CLAUDE_PLUGIN_ROOT}/scripts/run
Read hooks/hooks.json
Ships withclaude-code-wakatime

Track your AI usage, lines of code generated, time spent prompting AI, etc. using the WakaTime plugin for Claude Code. WakaTime is an open source plugin for metrics, insights, and time tracking automatically generated from your programming activity.

Get the whole plugin
Stats
92
Stars
17
Forks
Maintained
Maintenance
TypeScript
Language
BSD-3-Clause
License
2mo ago
Last commit
1y ago
Created

Repo: wakatime/claude-code-wakatime