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 New Features
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 HooksArea: what it touches
New FeaturesKind: in v2.1.333,
New FeaturesSection of the release

Unclear Which sessions make these functions, and ifVersion on writes, available is not stated.

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.

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 doubtWhich sessions make these functions, and `ifVersion` on writes, available is not stated.
Anthropic's release notes agreeAdded $.http.stream for mods to read a response body as it arrives, { base64 } request bodies on $.http.fetch, and timeoutMs (up to ten…

See this entry in the whole of v2.1.333 →

Feedback