Skip to content

Claude Code v2.1.333

Released · Anthropic

Changes hooks

What the release notes say

What's changed

  • Added REVIEW.md support to /code-review: local reviews now follow the root REVIEW.md on your repository's default branch
  • Added the ability for Claude to stop one running agent of a workflow while the others continue
  • Gateway: Added error.details.error_code: spend_limit_reached to the 429 for a user's reached spend limit
  • Added CLAUDE_CODE_DISABLE_POWERSHELL_PARSER_OVERLAP=1 to stop a slow PowerShell parser before its retry starts, so the two don't run together
  • Added a notice when a held message from another session expires unanswered
  • Self-hosted runner: Added a one-time notice to a subagent resumed by a new Claude Code process, on any runner, that earlier unpushed file changes may be gone
  • Added a Runs list to claude plugin validate for the commands and servers that a plugin's or marketplace's own files name
  • Added a Built-in tab to /plugin that lists built-in plugins by group with plain names, and shows the ones your organization's settings lock on or off
  • Added the ability for any mod to send its own records to your OpenTelemetry collector, as claude_code.plugin_event
  • Added the names a mod registers to claude plugin validate --json, with a mark on calls that may register other names
  • Added consent to $.prompt.submit and next.origin.isByPerson for mods: a prompt sent in answer to your press, typed command or answer counts as a turn you started
  • Added wait: false to $.prompt.submit for mods: the prompt enters the running turn at its next step instead of waiting for the turn to end
  • Added CommandRow so mods can draw a command's slash menu label
  • Added session.end for mods when Claude Code restarts itself (as on /tui) and, with the new reason unload, when the mod's plugin is turned off or uninstalled
  • Added lasts: "transcript" to $.state.set, so a mod's value comes back on resume and fork, follows a rewind and survives compaction
  • Added drawing for the rows a mod names: the terminal raises ui.render at the row's name and shows one dim line of its text where no mod draws it
  • Added name and data to the rows a mod appends with $.session.append, read back with $.session.messages({ name }); a named row may have no content
  • Added $.ui.render so a mod can draw a component that other mods wrap, restyle or replace
  • Added terminal and sandbox options to $.process for mods
  • Added $.http.stream for mods to read a response body as it arrives, { base64 } request bodies on $.http.fetch, and timeoutMs (up to ten minutes) and redirect: "manual" on $.http.fetch
  • Added dispose() to what a mod's $.command.register, $.tool.register and $.agent.register calls return
  • Added reading another saved session of the project with $.session.messages({ id }), for mods in terminal sessions
  • Added $.session.messages({ id }) for mods to read the running session's rows since its last compaction, each with a handle
  • Added an Ask render site so a mod can explain a tool's permission prompt by drawing above it, and tool_use_id in the AskUserQuestion render props
  • Added $.session.load for mods to resume, clear, branch or rewind the conversation between turns
  • 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 punctuation characters such as "/" or "?" as a mod Button's hotkey
  • 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 compare-and-set for files in mods: $.fs.stat returns a version, and $.fs.write and $.fs.remove accept ifVersion
  • Added $.fs.remove, $.fs.rename, $.fs.copy and byte writes on $.fs.write for mods
  • Added compare-and-set to a mod's $.store: read a key with its version, then set or delete with ifVersion to act only while the key stands at that version
  • Added traits for tools a mod registers with $.tool.register: read-only, concurrency-safe, destructive, runs code, a search hint, a when-to-use line and a display title
  • 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 a Placeholder render site so a mod can set the empty prompt's dim example line, and an "Example prompts" switch in /plugin to turn the "Try …" examples off
  • 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
  • Added $.model.stream for mods: a model completion read piece by piece as it is written
  • Added schema and thinking to a mod's $.model.complete call, for JSON replies and extended thinking; results now name the model that answered
  • Added $.session.waitUntil for mods, so claude -p and SDK runs wait up to 30 seconds at exit for work a mod registers
  • Added pluginId, and isOfficial where it applies, to next.origin on a mod's own $ calls; mod tests that compare that origin exactly need the new fields
  • Added read-only $.state values for mods under plugin: "engine": the permission mode and rules, MCP servers and terminal focus
  • Added a read-only $.state value for mods under plugin: "engine": the loaded plugins
  • Added place, key and priority options to $.ui.toast, so a mod can keep, replace and remove one line on the notification bar
  • Added wait to $.ui.open for mods: the call resolves when the pane closes, with the value passed to $.ui.close
  • Added streaming methods to the nouns mods provide: write one as async function*; a second parameter with no default is handed { signal }