You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PluginsArea: what it touches
New FeaturesKind: in v2.1.281,
New FeaturesSection of the release
Unclear The finding does not say which command or action produces this template.
What
A hook is a command that runs automatically at a certain moment. Claude Code now includes a starter template of hook settings for a plugin. It sets up a SessionStart hook, which runs when a session begins or resumes. The hook runs this command:
bun "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/on-session-start.ts"
${CLAUDE_PLUGIN_ROOT} stands for the plugin's own folder, and bun is the program that runs the script. The function that now produces this template used to make temporary .incoming- file paths.
Why
Plugin authors get a ready-made starting point for code that runs at the start of each session.
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.
Added sinceA small documentation edit on Hooks reference touched a line naming SessionStart after this was published.Setup hooks have access to `CLAUDE_ENV_FILE`. Variables written to that file persist into subsequent Bash commands for the session, as in [SessionStart hooks](#persist-environment-variables). Only `type: "command"` hooks run on `Setup`. A …hookssee the edit
Confirmed sinceAnthropic's documentation has since written up SessionStart, on Claude Code changelog.* \[VSCode] Fixed the editor tab keeping an old name after a session was renamed with /rename, by a SessionStart hook, or on claude.aichangelogsee the edit
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 doubtThe finding does not say which command or action produces this template.
Anthropic's documentation agreesAnthropic's documentation has since written up SessionStart, on Claude Code changelog.
Anthropic's release notes agreeFixed Ctrl+C or Ctrl+D pressed twice quitting Claude Code instead of closing the dialog in the remaining dialogs and pickers, such as…