All areas Feed Weekly digests

mods

The tracked changes tagged mods, newest release first. Every sentence is an item's summary.

132 items from 20 releases, 5 breaking Sources: Claude Code Last change:

Goes with

Changes

Claude Code v2.1.332

  1. fix

    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

  1. fix

    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

  1. fix

    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.

  2. other

    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

  1. breaking Breaking

    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.

  2. feature

    A mod's Box accepts overflowX="scroll", and its Text accepts maxLines and wrap="clip".

  3. fix

    Mods can use Bash, Read and other tools through $.tool.call and $.tool.check in Code Mode.

Claude Code v2.1.323

  1. breaking Breaking

    Changed mods so a *, namespace, or negated hook on engine.create only observes; to add or withhold a $ noun, hook engine.create by name.

  2. feature

    Added claude plugin validate checks for the $ nouns a mod's engine.create hook adds, withholds, or replaces.

  3. feature

    Added isPromptCovered to the props a mod's pane is drawn with, indicating when a dialog or field above the prompt covers the prompt.

  4. fix

    Fixed a tool.check mod hook permission prompt naming every plugin hooked on the tool instead of the one that asked.

  5. fix

    Fixed mods being able to reword Claude Code's own confirmation questions.

+3 more
  1. fix

    Fixed a mod's hot reload sometimes ignoring a file created just after a failed reload.

  2. fix

    Fixed text-output claude -p runs printing nothing to stderr when a --plugin-dir mod's hook hangs or crashes the hooks worker.

  3. other

    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

  1. other

    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.

  2. other

    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

  1. feature

    Adds a record of the user's answer when Claude Code asks to turn on mods it writes in a session.

  2. feature

    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.

  3. fix

    Fixes claude -p and Agent SDK sessions reporting success when an API error cut off a reply while a mod hooked turn.step.

  4. fix

    Fixes a mod's turn.step hook making a stopped reply finish as a success in headless runs.

  5. other

    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

  1. fix

    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

  1. other

    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
  2. other

    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

  1. breaking Breaking

    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.

  2. breaking Breaking

    Removed the notes from claude plugin validate that predicted where a mod's hooks would run.

  3. feature

    Added a transcript line when a plugin that runs first skips one of a mod's hooks, naming the event and the plugin.

  4. feature

    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.

  5. feature

    Added isReadOnly to a mod's tool.check event, set when the tool call is read-only.

+7 more
  1. fix

    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.

  2. fix

    Fixed a click on a mod's button being lost when buttons with the same label and no key were redrawn unchanged.

  3. fix

    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
  4. other

    Improved the lines shown when a mod written in the session loads, reloads or fails to load.

  5. other

    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.

  6. feature

    [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.

  7. fix

    [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

  1. feature

    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.

  2. fix

    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.

  3. feature

    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.

  4. other

    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.

  5. other

    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

  1. feature

    Added virtualText to a mod's prompt decorations, which draws text in the prompt box without adding it to the draft or submitted prompt.

  2. feature

    Added $.ui.view({ agentId }) for mods to show an agent's transcript in the main view, and $.ui.view({}) to return.

  3. feature

    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.

  4. feature

    The agent.spawn mod hook can now rewrite a workflow agent's prompt and model, where it could previously only refuse workflow agents.

  5. feature

    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
  1. fix

    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.

  2. fix

    A note meant for Claude about mod hot-reloading no longer appears in the transcript as if you typed it.

  3. fix

    A mod's prompt.edit hook is now raised for newlines entered with the chat:newline keybinding.

  4. other

    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

  1. breaking Breaking

    Changed ui.render trees in claude plugin test so each mod root carries part: { plugin }, requiring exact-tree assertions to include it.

    pluginsmodstesting
  2. feature

    Added $.prompt.media so a prompt.submit hook of a managed-settings mod can read the bytes of an attached image or document.

  3. feature

    Added $.session.identity() for managed-settings mods, returning sign-in method and, when forceLoginOrgUUID lists the organization, its organization and email.

  4. feature

    Added size, weight, mono and tabular to a mod's Text, and named spacing steps xs to xl to its Box.

  5. deprecation

    Deprecated bold in mod Text in favor of weight.

+24 more
  1. feature

    Added skill frontmatter, source, plugin name and file path to what a mod's skill.prompt hook receives.

  2. feature

    Added a queue door to the session.append mod hook so a mod can make transcript queue records differ from the prompt as sent.

  3. feature

    Added a note in /plugin and claude plugin validate naming a mod's hooks that are skipped where an organization manages Claude Code.

  4. fix

    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.

  5. fix

    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.

  6. fix

    Fixed installed mods that kept running in open sessions after being turned off remotely; they now unload between turns.

  7. fix

    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.

  8. fix

    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.

  9. fix

    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.

  10. fix

    Fixed claude plugin test pausing a hook's time budget while a served $ method it called kept making $ calls after answering.

  11. fix

    Fixed a mod hook's value being refused whole when a getter throws a RangeError; now only that key is refused.

  12. fix

    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.

  13. fix

    Fixed mods loaded from source files being refused when a hook hands $ to a function declaration imported from another file of the mod.

  14. fix

    Fixed mods' hooks receiving values with __proto__ keys silently removed, which could skip a tool.check guard on another mod's tool call.

  15. fix

    Fixed $.http.fetch in mods refusing a 304, 204 or 205 response declaring a Content-Length over the 4 MiB body limit.

  16. fix

    Fixed $.ui.open reporting a mod's pane as placed in sessions where no surface draws it, such as VS Code and claude -p.

  17. fix

    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.

  18. fix

    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.

  19. fix

    Fixed a mod's dimColor text looking the same as plain text under the dark ANSI theme and on 16-color terminals.

  20. fix

    Fixed plan mode running a write (MCP, file or shell) that a PreToolUse hook or a mod's tool.check hook allowed.

  21. fix

    Fixed a user-installed mod's $.env.set changing the environment or shell prefix that managed-settings command hooks start with.

  22. other

    Improved enforcement of managed permission rules, managed hooks and organization MCP tool names against user-installed mods.

  23. other

    Changed claude plugin test to fail a call to a mod's served $ method that has not answered within ten seconds.

    pluginstestingmods
  24. other

    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

  1. fix

    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.

  2. fix

    Fixed $.agent.register succeeding from a mod's hook still running after the mod was reloaded or removed; the call is now refused.

  3. fix

    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

  1. feature

    Added $.ui.notify for mods to raise a native notification through the user's notification setting and state which channel sent it.

  2. feature

    Added children to a mod's Button: strings and Text elements.

  3. fix

    Fixed a mod hook receiving a deeply nested tool input cut short without error, which let a guard pass content it never saw.

  4. fix

    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.

  5. fix

    Fixed a mod's hot reload missing a save made while /reload-plugins or session start was reading the mod's files.

+7 more
  1. fix

    Fixed the mod hot-reload question being asked every turn for the whole session when approved without picking an answer.

  2. fix

    Fixed a mod's hot reload missing a save made within a few milliseconds of its last reload.

  3. fix

    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.

  4. fix

    Fixed a prompt rewritten or dropped by a mod's prompt.submit hook still being saved as typed to history and transcript records.

  5. fix

    Fixed cloud sessions hanging when a mod's session.receive hook asked for permission before passing a message on.

  6. other

    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.

  7. other

    Changed toasts from organization mods to show ahead of other mods' toasts.

Claude Code v2.1.293

  1. feature

    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.

  2. fix

    Fixed a mod's hooks on classic.* events being skipped while the plugin hooks worker restarts, which left settings hooks to answer without them.

  3. fix

    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

  1. feature

    Added a prompt.autocomplete event that mods can hook to add rows to the prompt box autocomplete list.

  2. feature

    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.

  3. feature

    Added workflow agents, with their run and index, to the agent.spawn mod hook so a mod can refuse them.

  4. fix

    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.

  5. fix

    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
  1. fix

    Fixed a mod's start-up prompt, command or subagent being queued a second time when the hooks worker was replaced.

  2. fix

    Fixed a mod hook that called next(e) and then failed during an interrupted turn letting the call through; the call is now rejected.

  3. fix

    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.

  4. fix

    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

  1. feature

    Added serverToolUses to a mod's turn.step hook result, listing tool calls the API ran itself with id, name, input, start and end.

  2. feature

    Added ceiling to the question and verdict read by a mod's tool.check hook, naming the approval an organization requires for a tool.

  3. feature

    Added ThemeKey and Color types to the plugin hooks typings.

  4. fix

    Fixed a plugin hook with a .catch being unloaded and its .catch skipped when it kept the hooks worker busy.

  5. fix

    Fixed turn.step results listing tool calls discarded by a mid-response model fallback.

+9 more
  1. fix

    A mod unloaded after a failed reload and refresh now gets a failure line saying the earlier version is unloaded.

  2. fix

    A prompt.submit hook that drops a prompt after calling next(e) is now reported as failed by name.

  3. fix

    Fixed endless redraws of a mod's pane or band following its end over a tree changing height every draw.

  4. fix

    Fixed a user-installed mod being able to get an organization's plugin unloaded; the user mod is now unloaded.

  5. fix

    Fixed endless redraws of a mod's inline pane when its tree changed height every draw.

  6. fix

    Fixed a user-installed mod making an organization's guard skip its check; such a mod is now unloaded.

  7. fix

    Fixed plugin hooks stalling redraws on long multi-line non-Latin text.

  8. fix

    Fixed mods staying off for gateway users with ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN and no Anthropic account.

  9. other

    $.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

  1. fix

    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.

  2. fix

    Fixed installed mods not loading in the first session after an upgrade.

  3. fix

    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.

  4. fix

    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.

  5. fix

    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
  1. fix

    Fixed a mod's band that fails to draw briefly telling the cards under it to step aside.

  2. other

    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.

  3. fix

    Fixed a mod's Client region staying failed for the whole session after the terminal threw while drawing it.

Claude Code v2.1.288

  1. feature

    Added $.ui.selection() for mods, returning the text last selected in fullscreen mode and the transcript row when the selection lies within one row.

  2. fix

    Fixed a mod's button sometimes running a different button's action on a view drawn before Claude Code restarted.

  3. fix

    Fixed claude plugin test reporting mods as turned off remotely based on an out-of-date saved setting.