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

TierUse it nowhow much it should matter to you
Useful4my rating, 1 to 5
Signal3worth watching, 1 to 5
AreaHookswhat it touches
KindNew Featuresin v2.1.275,
Use it now Notable No documentation found

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

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

See this entry in the whole of v2.1.275 →