Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Plugin hooks modules gain file remove, rename and copy, and versioned writes

Plugin hooks modules get fs.remove, fs.rename and fs.copy, byte-exact and version-checked $.fs.write, and stricter plugin validate checks

Group of 4 You'll notice Internal Changes
JSON All of v2.1.333
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Plugin APIArea: what it touches
Internal ChangesKind: in v2.1.333,
New FeaturesSection of the release

Unclear It is not clear what this changes for someone using these operations.

What

A hooks module is a script in a plugin that handles Claude Code events and can call functions such as $.fs.write to work with files. This release widens and tightens those file functions:

  • $.fs.write can take raw bytes as { base64 } (also described as bytes) for byte-exact writes, and an ifVersion value.
  • Reading a file's details (stat) now returns a version, which can be passed back as ifVersion. A write can then be refused with "the file changed since it was checked".
  • New fs.remove, fs.rename and fs.copy functions. They are checked against the sandbox's deny lists (the paths the sandbox blocks) and refuse symbolic links and folders.
  • ui.browse is added to the list of operations plugins can call.
  • The checks that inspect or restore arguments for fs.write and fs.remove now apply only when the call includes an ifVersion key.
  • Hard-linked files (one file reachable under two names) are refused in place, and a new Windows read and write check applies.

plugin validate also checks hooks modules more strictly. It now warns about:

  • matchers that never hear an engine value
  • command names the module may answer without a plugin name
  • $.session.append rows that are not under the plugin's name
  • calls this build does not have, reported as "is not a call of this build"

Why

Plugins can now delete, rename and copy files, not only write them, with safety checks around each. A plugin can also make sure it does not overwrite a file that changed after it last looked. Plugin authors get earlier warnings about mistakes in their hooks modules.

Read from
Names in the bundlefs.writefs.removeifVersion
What the documentation says
fs.write Mods reference modified, high confidence * **A mods API method**: its namespace, a colon, and a brace, such as `fs: {` for `$.fs.write`. The namespace's methods follow. 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 doubtIt is not clear what this changes for someone using these operations.
Anthropic's documentation agreesfs.write on Mods reference
Anthropic's release notes agreeAdded compare-and-set for files in mods: $.fs.stat returns a version, and $.fs.write and $.fs.remove accept ifVersion

See this entry in the whole of v2.1.333 →

Feedback