Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Plugin hooks runtime gains a state library (atom/derive/memberOf/read/update)

The plugin function-hooks runtime gains a state library with atom, derive, memberOf, read and update

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

Unclear The finding does not say whether plugin authors can use this library in this build.

What

The runtime for plugin function hooks has a new state library. Plugin function hooks are code a plugin runs at certain points in Claude Code. Modules import the library from "claude-code", and it provides:

Updates are compare-and-set: a value is written only if nothing else changed it since it was read. After a limited number of tries, an update gives up with "nothing was written".

A scan checks each module's code without running it and lists which state keys the module reads and writes. It rejects code it cannot follow this way, with errors saying the function "takes a source the scan can read".

Why

Plugin hook code gets a shared way to keep state that knows up front which values each module touches. Code that uses the library must be written so the scan can read it, or it is refused.

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 whether plugin authors can use this library in this build.

See this entry in the whole of v2.1.281 →

Feedback