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