mix claude.hooks.run (claude v0.3.3)

View Source

Dispatcher for Claude hooks. This task reads the .claude.exs configuration and executes the appropriate hooks based on the event type and tool matcher.

Usage

mix claude.hooks.run EVENT_TYPE

Where EVENT_TYPE is one of:

  • pre_tool_use
  • post_tool_use
  • stop
  • subagent_stop
  • user_prompt_submit
  • notification
  • pre_compact
  • session_start

The task reads the event data from stdin and executes matching hooks sequentially.