Under the hoodTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Plugin HooksArea: what it touches
New FeaturesKind: in v2.1.333,
New FeaturesSection of the release
What
A hook is a point where a plugin's own code runs during a session. A turn is one round of Claude working on your message. Plugin hooks get two new calls:
$.turn.abort: stops a turn.
$.turn.background: moves a turn into the background.
Claude Code checks these calls against the turn that the hook was told about when that turn started.
Plugins also have to declare which abilities they use. Declaring certain abilities, such as fs.copy or model.stream, now also counts as declaring the other abilities they rely on.
Why
Plugin authors get more control over a running turn, and fewer surprises when one ability quietly needs another.