Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Scaffold template for a plugin SessionStart hook

Claude Code now has a starter template for a plugin hook that runs when a session begins

Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
ChangesSection of the release
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.

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

See this entry in the whole of v2.1.281 →

Feedback