Claude Code v2.1.333 · 30 Nov 2026
Mods can now react to more events, including session loading, key presses and file writes
Mods get new events for stored data, files, running programs, key presses, the window title and sessions, including when a session is loaded
Under the hood Tier: how much it should matter to you
4 Useful: my rating, 1 to 5
3 Signal: worth watching, 1 to 5
Mods Area: what it touches
New Features Kind: in v2.1.333, 30 Nov 26
What probably matters to you Section of the release
Unclear It is not clear whether mods installed from outside Claude Code can use these new events.
What
Mods, the add-ons that run inside Claude Code, can now hook into a wider set of events. The new ones include:
store.get, store.set and store.delete , for the mod's saved data
fs.write and fs.remove , for writing and removing files
process.run and tool.run , for running programs and tools
session.load , session.append , session.measure , session.messages and session.state , for sessions
ui.key, ui.title and ui.verbs , for key presses and parts of the interface
turn.recache
When a session is loaded, a mod hooked into session.load can see its messages and the tool uses in them, the same way it can on session.compact , and can return a result that tells Claude Code to skip the load. A tip handler also now picks which tip to show based on how many sessions have passed since that tip was last shown. Claude Code also now reads a CLAUDE_CODE_SYNC_SESSION_REFS setting.
Why
Mod authors have many more points at which to watch or change what Claude Code does.
How sure we are
Something disagrees Something we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt It is not clear whether mods installed from outside Claude Code can use these new events.
Anthropic's release notes agree Added a session.load event for /resume, /clear, /branch and /rewind that a mod can veto; hooks on or session. now hear it
See this entry in the whole of v2.1.333 →
30 Nov 2026 · 944 entries, this one is #40.
Use it now33 You'll notice571 Nothing to try yet61 Under the hood279
Open the release →
Names in this entry
setting delete Transcript writing can be redirected to a different storage layer, but nothing turns that on here.
setting fs.write Claude Code's plugin API renames its file actions and adds settings.read, env.get and env.set
setting fs.remove Plugin hooks gain file remove, rename and copy functions, and file writes can take raw bytes and a version check
setting process.run The built-in mod manifest now declares many more host capabilities, and tool calls made by a mod are now checked against deny rules
setting tool.run A plugin hooks module that registers tool.run now receives tool calls, and forwarded teammate permission requests are marked
setting session A per-session workshop document gets snapshotted with your session files and is only writable in plan mode.
setting append Transcript writing can be redirected to a different storage layer, but nothing turns that on here.
setting session.measure Two new lifecycle events, session.end and session.measure, added for plugins and hooks
setting ui.title Plugin hooks can now remove agents, commands and tools they registered, and ui.open can wait for the pane to close
setting ui.verbs Plugin hooks can now remove agents, commands and tools they registered, and ui.open can wait for the pane to close
setting session.compact A new session.compact plugin hook can intercept and rewrite conversation compaction
env CLAUDE_CODE_SYNC_SESSION_REFS Skills from your claude.ai account can load as a source, but only if you set the sync env var.
Anthropic's notes
Upstream's own release notes for v2.1.333 name something this entry names, so the two are probably about the same change. Probably: the pairing is made on a shared name rather than on the words around it.
Added a session.load event for /resume , /clear , /branch and /rewind that a mod can veto; hooks on or session. now hear it
Added a session.state event for mods (busy, waiting, idle), with state on $.session.info(); existing and session. hooks start hearing it
Added the ui.key mod event: in the terminal, a hook that names it can pass on or take a key pressed at the prompt, in a pane or above the prompt, or swap it for an editing or moving action
Added content and isEnd to a mod's tool.run answer, to give Claude text and image blocks for a tool call and to end the turn after it
Added promptCache to a mod's $.session.usage() and session.measure : whether the prompt cache is warm, when it expires and why it last missed
Fixed the spinner staying on "Running SessionStart hooks…" until the turn ended after a mod's session.compact hook replaced an auto-compaction (anthropics/claude-code#106462)
Improved claude plugin validate: it now lists mods whose ui.key hook may take Enter in the prompt box
Changed what /compact prints to reach session.append by door compaction; this breaks mods that match /compact's output on door command
The GitHub issue this fixes
A model matched these issues to Anthropic's notes, so a link can be wrong.
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
← Previous · 39 of 944
Claude Code can start a program in the background and report if it is still running
You'll notice Process Execution
In v2.1.333 What probably matters to you release-page order
Next → · 41 of 944
Mods can react to the session ending and read flag values
Under the hood Mods