Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Plugin hooks written as generators are allowed for more events

Plugin hooks written as async generators are now accepted for more events, and a hook's .catch must use the same form as the hook

Under the hood Internal Changes
JSON All of v2.1.333
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Plugin HooksArea: what it touches
Internal ChangesKind: in v2.1.333,
Internal ChangesSection of the release

Unclear Which events now accept generator hooks is not stated.

What

In Claude Code's plugin runtime, a hook is code a plugin runs at a set point. Some hooks are written as async generators, functions that hand back results bit by bit. Before, Claude Code refused a generator hook on any event that does not stream its output. It now skips that refusal for events that pass a new check.

There is also a new rule: a hook and its .catch handler must take the same form. Either both are async generators, or neither is.

Why

Plugin authors can write generator hooks in more places, and will see a different error if a hook and its .catch do not match.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich events now accept generator hooks is not stated.

See this entry in the whole of v2.1.333 →

Feedback