mods
The tracked changes tagged mods, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
VS Code: fixed right-to-left mod text punctuation placement and mod band or pane width when the panel font lacks box-drawing characters.
Claude Code v2.1.328
-
A mod saved just after a turn began no longer sometimes reloads mid-turn instead of at the turn's end.
Claude Code v2.1.327
-
Fixed a turn hanging when a mod's model complete or classify call met a usage limit; the call now receives the API error at once.
-
Changed Code Mode to no longer refuse to start when an installed mod hooks tool calls; an administrator can still keep Code Mode off in managed settings.
Claude Code v2.1.326
-
Edits in a session's mods folder ask more often, and sandboxed commands write to fewer folders; a link there to an unreadable or network path may need removing if every edit asks.
-
A mod's Box accepts overflowX="scroll", and its Text accepts maxLines and wrap="clip".
-
Mods can use Bash, Read and other tools through $.tool.call and $.tool.check in Code Mode.
Claude Code v2.1.323
-
Changed mods so a *, namespace, or negated hook on engine.create only observes; to add or withhold a $ noun, hook engine.create by name.
-
Added claude plugin validate checks for the $ nouns a mod's engine.create hook adds, withholds, or replaces.
-
Added isPromptCovered to the props a mod's pane is drawn with, indicating when a dialog or field above the prompt covers the prompt.
-
Fixed a tool.check mod hook permission prompt naming every plugin hooked on the tool instead of the one that asked.
-
Fixed mods being able to reword Claude Code's own confirmation questions.
+3 more
-
Fixed a mod's hot reload sometimes ignoring a file created just after a failed reload.
-
Fixed text-output claude -p runs printing nothing to stderr when a --plugin-dir mod's hook hangs or crashes the hooks worker.
-
Improved the Not now choice when Claude Code asks to turn on mods it writes in a session; it now says when they load.
Claude Code v2.1.321
-
Mods Claude writes no longer turn on without asking in auto and bypass modes, even with managed allowUnsandboxedCommands false or allowManagedDomainsOnly, and no longer load in dontAsk mode.
-
Mods' own tool calls ($.tool.call, $.mcp.call) raise no permission prompt, including under your ask rules or in dontAsk and -p runs; deny rules and organization policy still apply.
Claude Code v2.1.318
-
Adds a record of the user's answer when Claude Code asks to turn on mods it writes in a session.
-
Adds an effort option to a mod's $.model.fork so a side job can run at a set effort level, and the result reports the effort sent.
-
Fixes claude -p and Agent SDK sessions reporting success when an API error cut off a reply while a mod hooked turn.step.
-
Fixes a mod's turn.step hook making a stopped reply finish as a success in headless runs.
-
Changes what a mod attaches at prompt.submit to stay in the user's turn rather than go out as a system message.
Claude Code v2.1.310
-
A mod's Image now draws inside tmux with allow-passthrough and focus-events on, and in kitty, Ghostty, and iTerm2 3.5+ with fullscreen rendering, instead of showing only its alt text.
Claude Code v2.1.305
-
Improved a mod's Image so it draws its picture in iTerm2 3.5 and later with fullscreen rendering, where it previously showed only its alt text.
modsiterm2 -
Changed a mod's docked pane to stay within 45% of the terminal's width, including a width kept from a wider terminal.
Claude Code v2.1.304
-
Changed mods' settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization's setting a ceiling, including cleanupPeriodDays used by the retention sweep.
-
Removed the notes from claude plugin validate that predicted where a mod's hooks would run.
-
Added a transcript line when a plugin that runs first skips one of a mod's hooks, naming the event and the plugin.
-
Added decider "person" to a mod's tool.check answer, so only the permission dialog or a host's callback can approve the ask, and it is refused with the mod's reason where nobody can be asked.
-
Added isReadOnly to a mod's tool.check event, set when the tool call is read-only.
+7 more
-
Fixed a failed mod reload removing the tools and commands of the version that stays loaded, and messages being wrong or silent about whether the previous version is still loaded.
-
Fixed a click on a mod's button being lost when buttons with the same label and no key were redrawn unchanged.
-
Fixed mod sharing in the built-in plugin-authoring skill stopping at the secret scan on machines with managed settings and on Team and Enterprise plans.
modsplugin-authoring -
Improved the lines shown when a mod written in the session loads, reloads or fails to load.
-
Changed the question that turns on the mods Claude writes in a session to plain text with no link or session id; it stays up when a new turn starts, and Claude tells you what loaded when you turn them on.
-
[VSCode] Added mod drawing in the chat panel for sessions on Amazon Bedrock, Google Vertex AI and Microsoft Foundry, behind an LLM gateway, or with telemetry turned off.
-
[VSCode] Fixed a mod's drawings disappearing from a long-open panel until the next turn on machines that also run an older Claude Code.
Claude Code v2.1.301
-
Added rows to a mod's Input for a multi-line text field in the terminal, where Enter submits and Shift+Enter or a backslash before Enter starts a new line.
-
A mod's $.model.fork no longer returns nothing-to-fork when called before the first response of a new Claude Code process has finished.
-
In VS Code and the desktop and mobile apps, a tree drawn above the question dialog can now hold Markdown and up to 48 rows; the terminal keeps 12 plain rows.
-
A mod hook's .catch handler now runs only when the hook throws or times out; events raised beneath the hook's own calls skip that hook without invoking its .catch.
-
A mod's $.env.set now resolves with {} once the variable is set or unset, or with { deny } giving the reason when the write is not made.
Claude Code v2.1.300
-
Added virtualText to a mod's prompt decorations, which draws text in the prompt box without adding it to the draft or submitted prompt.
-
Added $.ui.view({ agentId }) for mods to show an agent's transcript in the main view, and $.ui.view({}) to return.
-
Added a dir prop on a mod's Text for right-to-left text, which on Windows and in VS Code's terminal reads in that direction and sits flush right.
-
The agent.spawn mod hook can now rewrite a workflow agent's prompt and model, where it could previously only refuse workflow agents.
-
Added the prompt.change mod hook, raised when the prompt box text changes without a typed edit, such as a recalled history entry, a clear, an undo, or a plugin fill.
+4 more
-
A prompt that a mod's prompt.submit hook rewrote or dropped is no longer recorded as typed in the user_prompt event, interaction span, or session title requests.
-
A note meant for Claude about mod hot-reloading no longer appears in the transcript as if you typed it.
-
A mod's prompt.edit hook is now raised for newlines entered with the chat:newline keybinding.
-
The built-in plugin-authoring skill now has Claude scan a mod's files for keys before opening them and ask before scanning a folder outside the project.
Claude Code v2.1.299
-
Changed ui.render trees in claude plugin test so each mod root carries part: { plugin }, requiring exact-tree assertions to include it.
-
Added $.prompt.media so a prompt.submit hook of a managed-settings mod can read the bytes of an attached image or document.
-
Added $.session.identity() for managed-settings mods, returning sign-in method and, when forceLoginOrgUUID lists the organization, its organization and email.
-
Added size, weight, mono and tabular to a mod's Text, and named spacing steps xs to xl to its Box.
-
Deprecated bold in mod Text in favor of weight.
+24 more
-
Added skill frontmatter, source, plugin name and file path to what a mod's skill.prompt hook receives.
-
Added a queue door to the session.append mod hook so a mod can make transcript queue records differ from the prompt as sent.
-
Added a note in /plugin and claude plugin validate naming a mod's hooks that are skipped where an organization manages Claude Code.
-
Fixed a mod that submits a prompt at the end of every turn keeping a headless run going past --max-turns, --max-budget-usd, an interrupt, or the end of the host conversation.
-
Fixed Write and Edit creating a mod in a session's mods folder without asking in accept-edits mode when the config directory path has no .claude in it.
-
Fixed installed mods that kept running in open sessions after being turned off remotely; they now unload between turns.
-
Fixed a mod's prompt.submit rewrite being silently dropped for some prompts with a pasted image or unreadable image, sending the prompt as typed.
-
Fixed a mod hook, with or without .catch, running again without end when it waits on another mod's noun that does its work outside the call.
-
Fixed a mod's tool.describe or prompt.section answer changed after $.ui.invalidate never reaching Claude; the new answer is sent on the next turn.
-
Fixed claude plugin test pausing a hook's time budget while a served $ method it called kept making $ calls after answering.
-
Fixed a mod hook's value being refused whole when a getter throws a RangeError; now only that key is refused.
-
Fixed a mod's hot reload ignoring a fix saved right after a failed reload; saving a mod file without changes no longer reloads it.
-
Fixed mods loaded from source files being refused when a hook hands $ to a function declaration imported from another file of the mod.
-
Fixed mods' hooks receiving values with __proto__ keys silently removed, which could skip a tool.check guard on another mod's tool call.
-
Fixed $.http.fetch in mods refusing a 304, 204 or 205 response declaring a Content-Length over the 4 MiB body limit.
-
Fixed $.ui.open reporting a mod's pane as placed in sessions where no surface draws it, such as VS Code and claude -p.
-
Fixed the agent.spawn mod hook not running when a finished subagent or killed teammate is resumed; the event now carries resume and a mod can refuse it.
-
Fixed claude plugin validate rejecting a mod's $.state references when plugin.json has no types key and the contract is at ./types/index.d.ts.
-
Fixed a mod's dimColor text looking the same as plain text under the dark ANSI theme and on 16-color terminals.
-
Fixed plan mode running a write (MCP, file or shell) that a PreToolUse hook or a mod's tool.check hook allowed.
-
Fixed a user-installed mod's $.env.set changing the environment or shell prefix that managed-settings command hooks start with.
-
Improved enforcement of managed permission rules, managed hooks and organization MCP tool names against user-installed mods.
-
Changed claude plugin test to fail a call to a mod's served $ method that has not answered within ten seconds.
-
Changed the turn.start mod hook to also fire for subagents' and teammates' turns; they are distinguished by e.agentId, which is absent on the main loop.
Claude Code v2.1.296
-
Fixed Esc or an interrupt during a UserPromptSubmit hook or a mod's prompt.submit hook ending headless sessions, clearing the typed prompt, or letting the unchecked prompt through.
-
Fixed $.agent.register succeeding from a mod's hook still running after the mod was reloaded or removed; the call is now refused.
-
Fixed $.http.fetch in mods refusing a HEAD request when the response declares a Content-Length over the 4 MiB body limit.
Claude Code v2.1.295
-
Added $.ui.notify for mods to raise a native notification through the user's notification setting and state which channel sent it.
-
Added children to a mod's Button: strings and Text elements.
-
Fixed a mod hook receiving a deeply nested tool input cut short without error, which let a guard pass content it never saw.
-
Fixed mod calls made during a plugin hooks worker restart getting past another mod's guard hook that has a .catch; such calls are now refused.
-
Fixed a mod's hot reload missing a save made while /reload-plugins or session start was reading the mod's files.
+7 more
-
Fixed the mod hot-reload question being asked every turn for the whole session when approved without picking an answer.
-
Fixed a mod's hot reload missing a save made within a few milliseconds of its last reload.
-
Fixed mod hot-reloading turning off for the session when an SDK host closed its enable question unanswered; the question is now asked up to three times.
-
Fixed a prompt rewritten or dropped by a mod's prompt.submit hook still being saved as typed to history and transcript records.
-
Fixed cloud sessions hanging when a mod's session.receive hook asked for permission before passing a message on.
-
Changed the wording shown to Claude and the user when a mod denies a tool call after the tool ran: it now says the tool ran and the plugin withheld its result.
-
Changed toasts from organization mods to show ahead of other mods' toasts.
Claude Code v2.1.293
-
Added isDeferred to $.tool.register for mods; setting it to false lists the tool's schema in the prompt from the start instead of behind tool search.
-
Fixed a mod's hooks on classic.* events being skipped while the plugin hooks worker restarts, which left settings hooks to answer without them.
-
Fixed claude plugin test failing for mods that call $.session.append; tests can read appended rows back with the new mock.session.
modsplugin-test
Claude Code v2.1.292
-
Added a prompt.autocomplete event that mods can hook to add rows to the prompt box autocomplete list.
-
Added prompt caching to $.model.complete for mods: prompt and system accept text blocks, and cache: true on a block caches the request up to it.
-
Added workflow agents, with their run and index, to the agent.spawn mod hook so a mod can refuse them.
-
Fixed Write, Edit, NotebookEdit, LSP, and single Read, Grep and Glob rows hiding why a mod denied the call; the row now shows the reason.
-
Fixed a mod's config.set, state.set, env.set or agent.spawn hook that denies after calling next(e) being reported as a refusal; it is now reported as failed, by name.
+4 more
-
Fixed a mod's start-up prompt, command or subagent being queued a second time when the hooks worker was replaced.
-
Fixed a mod hook that called next(e) and then failed during an interrupted turn letting the call through; the call is now rejected.
-
Fixed an organization's plugin being unloaded on reload or after another plugin crashed when it returned a $ name that a user-installed mod had added; the mod is now unloaded instead.
-
Fixed a mod's guard hook with a .catch being skipped silently for calls another mod's hook makes beneath the guard's own $ call; its .catch is now asked.
Claude Code v2.1.290
-
Added serverToolUses to a mod's turn.step hook result, listing tool calls the API ran itself with id, name, input, start and end.
-
Added ceiling to the question and verdict read by a mod's tool.check hook, naming the approval an organization requires for a tool.
-
Added ThemeKey and Color types to the plugin hooks typings.
-
Fixed a plugin hook with a .catch being unloaded and its .catch skipped when it kept the hooks worker busy.
-
Fixed turn.step results listing tool calls discarded by a mid-response model fallback.
+9 more
-
A mod unloaded after a failed reload and refresh now gets a failure line saying the earlier version is unloaded.
-
A prompt.submit hook that drops a prompt after calling next(e) is now reported as failed by name.
-
Fixed endless redraws of a mod's pane or band following its end over a tree changing height every draw.
-
Fixed a user-installed mod being able to get an organization's plugin unloaded; the user mod is now unloaded.
-
Fixed endless redraws of a mod's inline pane when its tree changed height every draw.
-
Fixed a user-installed mod making an organization's guard skip its check; such a mod is now unloaded.
-
Fixed plugin hooks stalling redraws on long multi-line non-Latin text.
-
Fixed mods staying off for gateway users with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN and no Anthropic account.
-
$.process.spawn's rejection when another mod denies after the child ran now says the call ran and a plugin withheld its result.
Claude Code v2.1.289
-
Fixed deny or ask rules on a nested part of a compound shell command not overriding a user-installed mod's approval on managed machines.
-
Fixed installed mods not loading in the first session after an upgrade.
-
Fixed sessions ending with an unrecoverable interface error when a value written by a mod's ui.render hook made a row throw while drawn; the engine now draws its own row instead.
-
Fixed right-aligned content in a mod's pane or band drawing under the close mark or [-], which now also stay one column in from the terminal's edge.
-
Fixed a mod's Client that fails while drawn taking down everything the mod drew around it; it now fails alone and raises ui.fault.
+3 more
-
Fixed a mod's band that fails to draw briefly telling the cards under it to step aside.
-
The message shown to a mod's author when its band or pane fails to draw now names the mod and says nothing was drawn.
-
Fixed a mod's Client region staying failed for the whole session after the terminal threw while drawing it.
Claude Code v2.1.288
-
Added $.ui.selection() for mods, returning the text last selected in fullscreen mode and the transcript row when the selection lies within one row.
-
Fixed a mod's button sometimes running a different button's action on a view drawn before Claude Code restarted.
-
Fixed claude plugin test reporting mods as turned off remotely based on an out-of-date saved setting.