Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 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

Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
ChangesSection of the release
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