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.335 ·

Plugin session.start hooks can register more hooks, which run before the first turn

A running session.start hook may now call on() to add hooks, and Claude Code catches up so they land before the first request

Group of 2 You'll notice Improvements
JSON All of v2.1.335
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
PluginsArea: what it touches
ImprovementsKind: in v2.1.335,
ImprovementsSection of the release

What

A hook is code that runs when something happens in a session. Plugins register hooks with register(). A session.start hook, which runs when a session begins, can now add hooks of its own.

  • on() is now allowed inside a running session.start hook. Before, it was allowed only during register().
  • Hooks added this late are checked, and some patterns are refused. Hooks on engine.create, plugin.register and session.start are rejected with the message "a hook on X is for register()".
  • Session start now passes a catchUp callback to session.start. If more hooks were registered while it ran, Claude Code waits for catchUp to finish.
  • owedStart is reset, and awaitHooksAheadOfTurn now passes itself to landAheadOfRequest.

Why

Plugin authors can add hooks from a session.start hook, and those hooks should be in place before Claude's first request.

Read from
Names in the bundlesession.start
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded support for mods calling on() inside their session.start hook, so hooks can be registered based on a fetch or MCP call

See this entry in the whole of v2.1.335 →

Feedback