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

The plugin hooks system adds validated event types for session compaction, session receive, and UI resolution

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

The plugin hooks system adds validated event types for session compaction, session receive, and UI resolution

What

Claude Code's plugin hooks engine now validates three new kinds of hook events:

A hook for session.compact must now return either { messages } (a replacement set of messages) or { skip: reason } to opt out, and the shape of messages is checked. Separately, a provider field on the arguments passed to tool.describe, command.describe and agent.offer hooks is now fixed and can no longer be overridden by a hook.

Why

These changes give plugins defined, checked contracts for reacting to compaction and other events, and stop a hook from spoofing which provider a tool or command claims to come from.

Read from
Names in the bundlesession.compactsession.receiveui.resolve
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 a session.receive or ui.resolve hook actually lets a plugin do isn't detailed beyond the validation rules.

See this entry in the whole of v2.1.267 →