Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.275 ·

New plugin/session lifecycle hook events session.end and session.measure

Two new lifecycle events, session.end and session.measure, added for plugins and hooks

Use it now Notable New Features
JSON All of v2.1.275
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.275,
What probably matters to youSection of the release

Unclear The finding does not say what session.measure actually measures or when it fires.

What

Claude Code added two new lifecycle events, session.end and session.measure, to the set of events that plugins and hooks (scripts that run automatically at specific points) can respond to. These join existing session-related events like session.compact and session.attach. The new events are wired through the schema, an internal raiser mechanism, and real call sites that emit them during a session.

Why

This gives plugins and hooks more points in a session's lifecycle to hook into, specifically when a session ends and when some kind of measurement occurs.

Read from
Names in the bundlesession.endsession.measure
What the documentation says
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 session.end, on Mods reference. | All `session.end` hooks together | As long as the [SessionEnd hook budget](/docs/en/hooks#sessionend-input), 1.5 seconds unless you change it, counted from when your settings `SessionEnd` hooks finish | plugins/mods/reference 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 doubtThe finding does not say what `session.measure` actually measures or when it fires.
Anthropic's documentation agreesAnthropic's documentation has since written up session.end, on Mods reference.

See this entry in the whole of v2.1.275 →

Feedback