What
A hook is a command you or a plugin set up to run automatically at a certain moment. SessionStart hooks run when a session begins or resumes. Plugins that finish loading after startup now get this moment too:
SessionStartnow also loads plugin hooks and records which plugins were offered.- A new
onStartupPluginsSettled/runLateSessionStartHookscallback reaches the interface once startup plugins have finished loading. - New
awaitHooksAheadOfTurnandrunLateSessionStartHooksmethods let these late hooks finish before a request is sent to the model. - Reloading the hooks module can now report "was judged" or fail with "its judges with it".
Why
Plugins that load late now get their SessionStart hooks run. The output of those hooks may reach the model at a different point than before.
Names in the bundleSessionStart
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up SessionStart, on Hooks reference.
When you start an interactive session, resume a conversation at launch with `--continue` or `--resume`, or run `/clear`, you can type while SessionStart hooks run. A conversation you resumed at launch appears without waiting for the hooks.…hooks see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up SessionStart, on Hooks reference.