Anthropicapi
December 3, 2026·Source

Interrupt Hook in Claude Code

For advanced Claude Code setups: run your own script when someone or something stops a turn.

  • A new hook event fires when a turn is interrupted
  • It reports whether a person, another session, or the system stopped it
  • Included in Claude Code 2.1.335

Best for

Logging or cleanup when work is cut off

When to use it

Your automation needs to react to a stopped task

Who benefits

Developers who customize Claude Code

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →