Hooks let you deterministically hook into Claude's lifecycle:

  • Automatically route permission requests to Slack or Opus
  • Nudge Claude to keep going when it reaches the end of a turn (you can even kick off an agent or use a prompt to decide whether Claude should keep going)
  • Pre-process or post-process tool calls, e.g., to add your own logging

Ask Claude to add a hook to get started.

Original source on X