What
A hook is a script or command that runs at a set moment. A SessionStart hook runs when a session begins or resumes. When one runs, Claude Code now notes whether a mod wrote the first user message of the session. A mod is an add-on run by Claude Code's plugin system.
Why
This is part of Claude Code's runtime for plugin mods. It records who wrote the opening message, so a session started by a mod can be told apart from one you started yourself.
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.