Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.273 ·

SessionStart hook execution now receives an agentContext parameter

SessionStart hooks now receive an extra agentContext parameter when they run

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaHookswhat it touches
KindInternal Changesin v2.1.273,
Under the hood

SessionStart hooks now receive an extra agentContext parameter when they run

What

A hook is a script you configure to run automatically at certain points in a session. The internal function that runs SessionStart hooks (which fire when a session begins or resumes) and loads plugin hooks now also accepts and passes along a new agentContext parameter, alongside existing options like credentials, the cancellation signal, and whether the session is orphaned.

Why

This gives the hook-running machinery more context about the agent it's running for, though the finding doesn't specify what new behavior this enables for hook authors.

Read from
Names in the bundleSessionStart
Since it was published

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 Configure cloud environments. * **One repository per session**: a session with several repositories doesn't load hooks from any repository's `.claude/settings.json`, so a SessionStart hook you define there doesn't run. Install dependencies for those sessions with a [se… cloud-environments see 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 doubtWhat information agentContext carries or what new capability it gives to SessionStart hooks is not stated.
Anthropic's documentation agreesAnthropic's documentation has since written up SessionStart, on Configure cloud environments.

See this entry in the whole of v2.1.273 →