All areas Feed Weekly digests

hooks

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

232 items from 44 releases, 22 breaking Sources: Claude Code, Claude Platform, Codex, Gemini CLI Last change:

Goes with

Changes

Claude Code v2.1.332

  1. feature

    Added a PreSkillShellCommand hook event that can refuse a skill or command's inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start.

  2. fix

    Fixed a freeze when a permission rule or hook condition with several wildcards was checked against a long command.

  3. fix

    Fixed freezes and runaway memory use in most cases while a hook prints output without end.

  4. fix

    Fixed a freeze and context overflow when a hook blocks or fails during a turn or after /compact with a very large log; text over about 50,000 characters is now shortened.

  5. fix

    Fixed a PreToolUse hook's reason for asking not showing on terminal Read, Grep, Glob, Edit and Write prompts (issues 102892 and 105343).

+2 more
  1. fix

    Fixed interrupting a turn while a mod's turn.step hook was waiting showing user-cancel as an error instead of Interrupted.

  2. other

    A mod's PromptHint hook no longer receives the hint for selected text when the fullscreen footer has a label on its right.

Claude Code v2.1.331

  1. breaking Breaking

    [VSCode] Fixed Electron apps and extension tests failing to start; a wrapper, hook or MCP server that runs VS Code as Node must now set ELECTRON_RUN_AS_NODE=1.

  2. fix

    Fixed a hook's reason to stop a forked skill showing twice.

  3. fix

    Fixed Stop hooks that read the transcript missing the last reply in Claude Desktop.

  4. fix

    SubagentStop hooks now wait for the last reply in the transcript.

  5. fix

    Fixed PermissionRequest hooks not saving Skill(name:*) allow rules outside local settings.

+2 more
  1. other

    Changed what a PermissionDenied hook's retry: true tells Claude: make the refused call again only if you asked for that call.

  2. fix

    [VSCode] Fixed Escape stopping Claude at a Remove or Delete confirmation in MCP, Hooks and Memory dialogs.

Claude Code v2.1.330

  1. breaking Breaking

    Self-hosted runner: spawn-runner hooks now start while earlier ones still run, up to --hook-concurrency (4 by default); users whose hooks cannot run side by side must set it to 1.

  2. fix

    Fixed environment variables written by a SessionStart hook being lost with claude -p --continue.

  3. fix

    Fixed Edit refusing some valid hook commands in Claude settings files.

  4. other

    Self-hosted runners stop a session's start at once, without trying other runners, when a checkout hook exits with status 108.

  5. feature

    Prompt hooks accept model aliases such as haiku or sonnet in their model field.

Claude Code v2.1.329

  1. breaking Breaking

    Code Mode: a PreToolUse hook that errors no longer refuses a script's tool call; hooks that must refuse need onFailure set to block on command, HTTP or MCP tool hooks.

  2. breaking Breaking

    Stop and SubagentStop hooks now list a Monitor's script as monitor instead of shell in background_tasks.

  3. feature

    Trust dialog now warns where a folder's hooks are declared.

  4. feature

    In Claude Desktop and other non-interactive hosts, the conversation shows a warning when hooks in managed settings fail to load.

  5. fix

    Fixed another case of claude.ai-synced plugin hooks failing with Plugin directory does not exist while a session runs on macOS.

+1 more
  1. fix

    Fixed /rename and UserPromptSubmit hook titles in claude remote-control sessions not showing on claude.ai and mobile.

Claude Code v2.1.328

  1. breaking Breaking

    Code Mode no longer runs UserPromptSubmit hooks, managed ones included, on scripts' output; to redact that output, use a PostToolUse hook with updatedToolOutput.

  2. feature

    mcp_tool hooks accept "onFailure": "block", so a hook whose call fails blocks the action, as command and HTTP hooks already do.

  3. feature

    CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME lets a host stop claude -p --resume and --continue from running a tool call that a hook deferred.

  4. feature

    claude self-hosted-runner orchestrator gains --hook-label to pass chosen session labels to the spawn-runner hook.

  5. feature

    claude --environment gains --metadata key=value to label a session for the spawn-runner hook.

+8 more
  1. fix

    /goal no longer removes a skill's Stop hook or ends early on another hook's result when both have the same wording.

    goalhooks
  2. fix

    /hooks keeps your place when going back.

  3. fix

    Agent hooks no longer run past their timeout while compacting after a request was refused as too large.

  4. fix

    The self-hosted runner no longer skips its post-session hook when a disk stalls for a few seconds; on a dead disk a session's end can take 25 seconds longer by default.

  5. fix

    --correlation-id of claude --environment reaches the spawn-runner hook.

  6. other

    Managed PostToolUse hooks no longer fire for calls refused before they ran; PostToolBatch receives most of those calls, not marked as refused.

  7. other

    A shell command rewritten by a PermissionRequest hook to a sandbox-excluded command runs outside the sandbox.

  8. other

    CLAUDE_RUNNER_SESSION_UUID and CLAUDE_CODE_REMOTE_SESSION_UUID are both set for the session and its checkout, post-session and spawn-runner hooks.

Claude Code v2.1.327

  1. feature

    Added a list in /status of broken agent, skill, command and output style files, keybinding errors, an unavailable sandbox, ignored permission settings and hook matchers that never match.

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

  3. fix

    Fixed cloud sessions giving no error when a UserPromptSubmit hook blocks a message sent while Claude works.

  4. fix

    Fixed failing hooks showing nothing for SubagentStop in background agents, SessionEnd at /clear and /resume, and CwdChanged and FileChanged in fullscreen.

  5. fix

    Fixed a Stop hook that failed to run being shown as having reported a problem.

+3 more
  1. fix

    Fixed /hooks leaving out hooks given by --settings.

  2. fix

    Fixed /hooks help naming input fields that do not exist.

  3. fix

    [VSCode] Fixed the permission prompt not showing the reason a PreToolUse hook gives when it asks for confirmation.

Claude Code v2.1.326

  1. breaking Breaking

    A hook's decision of block now holds in more cases, so a hook that always prints it may start blocking calls.

  2. breaking Breaking

    Commands in a permission hook or SDK host rewrite stay in the sandbox if the original was checked as sandboxed; the approver can add dangerouslyDisableSandbox: true.

  3. breaking Breaking

    HTTP hooks ignore Content-Length and Transfer-Encoding in their headers setting; the request length comes from the body.

  4. fix

    PreToolUse hooks in managed settings now produce an OpenTelemetry tool_decision event and a permission_denials entry when they refuse a direct tool call.

  5. fix

    Crashed Node or Python hooks show the full error stack trace, and Ctrl+O shows up to 10,000 characters of output.

+6 more
  1. fix

    /goal clear or a new /goal now sticks when typed while Stop hooks and background work are running.

    goalhooks
  2. other

    A PreToolUse hook's updatedInput is kept when more than one hook answers a tool call, and the rewrite applies in more cases.

  3. other

    The error for a PreToolUse hook exiting with code 127 says its check may not have run.

  4. other

    Hook failures, blocks and timeouts show in red, a hook that stops Claude shows in yellow, and the reason appears under them.

  5. other

    Key hints in many dialogs and the ? lists show the working keys in one order and wording, and deeper /hooks and /permissions screens say Esc goes back.

  6. other

    allowedHttpHookUrls and httpHookAllowedEnvVars apply differently to hooks from managed settings.

Claude Code v2.1.325

  1. breaking Breaking

    Changed EnterWorktree to refuse a WorktreeCreate hook path that goes through a symlink inside the project; the hook should print the real path.

  2. breaking Breaking

    Changed self-hosted runners to refuse a session whose session folder or repository path is a symbolic link, except a checkout hook's checkout.

  3. fix

    Fixed --worktree skipping a WorktreeCreate hook from a plugin in CLAUDE_CODE_PLUGIN_SEED_DIR on the first run in a new home directory.

  4. fix

    Fixed an MCP server staying in needs-authentication, and its mcp_tool hooks being skipped, after a token refresh that was briefly refused.

  5. fix

    Fixed deny and ask permission rules and hooks for the Artifact tool not applying in some cloud sessions.

Claude Code v2.1.323

  1. breaking Breaking

    Changed ripgrep and most internal git commands to run without most sign-in tokens and API keys, so credential helpers or hooks under them no longer find them.

  2. feature

    Added a progress heartbeat every 30 seconds while hooks run long in claude -p and SDK sessions, so hosts do not treat the turn as hung once they include this version.

  3. fix

    Fixed HTTP hooks failing with HTTP 500 on Linux when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set and sandbox.enabled is off.

  4. fix

    Fixed a Stop pressed right after sending a message showing as an error in remote and SDK sessions while a UserPromptSubmit or plugin prompt hook was running.

  5. fix

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

+7 more
  1. fix

    Fixed CLAUDE_CODE_RESUME_INTERRUPTED_TURN re-running a turn that a hook's continue false had stopped.

  2. fix

    Fixed PreCompact, PostCompact, and post-compaction SessionStart hooks not receiving agent_id and agent_type when a subagent compacts.

  3. other

    Changed the handling of a tool permission check that errors after a PreToolUse hook returned allow: the call is decided as if no hook had answered.

  4. other

    Changed the handling of a permission check that errors on input rewritten by a PermissionRequest hook: Claude Code now asks again, or refuses where nobody can answer.

  5. other

    Changed self-hosted runners under --trust-workspace false and VS Code sessions in untrusted folders so repository settings can no longer disable hooks or toggle plugins.

  6. other

    Changed tool.list plugin hooks so tools they add or remove apply to the model and every agent.

  7. other

    Changed cloud scheduled tasks so a PostToolUse hook from user settings can no longer replace the plan in ExitPlanMode's result.

Gemini CLI Release v0.68.0

  1. fix

    SubagentStop event mapping is supported and hook definitions are merged.

Claude Code v2.1.321

  1. breaking Breaking

    In Cowork cloud sessions, a PostToolUse hook can no longer replace the AskUserQuestion answer or the ExitPlanMode plan; Claude reads the originals.

  2. fix

    On Windows, FileChanged hooks no longer stop for watchPaths paths after the first shell command when the working directory has a lowercase drive letter.

  3. fix

    A large hook output no longer points Claude to a file holding another hook's output from the same tool call.

  4. fix

    Apps embedding Claude Code now get their own PreToolUse hook's ask reason instead of another hook's when both asked.

  5. fix

    A PreToolUse hook's ask is no longer lost when another hook's defer finished first and could not be honored.

+4 more
  1. fix

    Remote sessions no longer give no reply after a restart when a UserPromptSubmit hook blocked a replayed permission answer; these hooks no longer run on that replay.

  2. fix

    PreToolUse mcp_tool hooks on stdio and HTTP MCP servers are no longer skipped when their answer exceeds 16 MiB; the tool call is now refused.

  3. fix

    NotebookEdit no longer reports success to hooks and telemetry when the edit failed.

  4. other

    OpenTelemetry hook events in non-interactive sessions leave two built-in hooks out of num_hooks and num_success after Bash and PowerShell calls.

Claude Code v2.1.319

  1. fix

    Fixed cloud sessions losing session-scoped deny and ask rules, such as those added by a PermissionRequest hook, when the session moves to a new worker.

  2. fix

    Fixed self-hosted runners so that --trust-workspace false also stops hooks in the repository's settings files and skills from running.

  3. other

    Changed PostToolUse hooks to run, with up to 10 seconds to finish, on tool calls that finish after a new message interrupts the turn.

Codex 0.167.0

  1. feature

    PreToolUse hooks run before direct Guardian review policy checks.

  2. feature

    Scoped host metadata hooks are added for MCP tool requests.

  3. fix

    Pre-tool-use hook handling is extracted into a helper, with no behavior change stated.

Gemini CLI Release v0.67.0

  1. fix

    Claude hook timeouts are converted from seconds to milliseconds during migration.

Claude Code v2.1.318

  1. fix

    Fixes variables a Setup hook writes to CLAUDE_ENV_FILE not reaching the Bash tool in some cloud sessions.

  2. feature

    Adds CLAUDE_RUNNER_SPAWN_REASON to the orchestrator's spawn-runner hook environment, giving why Anthropic sent the request (such as runner_lost or resumed), unset when none was sent.

Claude Code v2.1.317

  1. feature

    Adds onFailure set to block for Agent SDK hook callbacks, so a callback that fails blocks the action instead of letting it run.

Claude Code v2.1.316

  1. fix

    Fixed PowerShell hooks not blocking on exit code 2 when the command begins with a type cast, param, using, or an attribute.

Claude Code v2.1.314

  1. fix

    Fixed a PreCompact hook with very large output making compaction fail or repeat; each hook's output is now cut at 10,000 characters.

  2. fix

    Fixed hooks matching Bash not running on shell commands started by the Monitor tool; such hooks can block or ask but cannot approve or rewrite those commands.

  3. other

    Changed auto mode in Cowork cloud sessions so a hook's allow of an MCP tool call counts as no answer, leaving the classifier or a permission prompt to decide.

  4. other

    Changed hook if conditions such as Monitor(tail *) to match Monitor tool shell commands the same way Bash(tail *) matches Bash commands.

  5. fix

    Fixed the missing spinner and Stop button in VS Code while a queued message's hooks run.

Codex 0.166.0

  1. other

    Included environment hooks in thread hook listings.

  2. other

    Added scoped request-body secret substitution to MITM hooks.

  3. other

    Reported the local command working directory in PreToolUse hooks.

  4. other

    Preserved command cwd in permission and post-tool hooks.

Claude Code v2.1.312

  1. breaking Breaking

    Prompt and agent hooks now run at most 24 at a time per session, sub-agents included, plus at most 12 that have waited longer than their event's timeout; a timeout under 1 second now counts as 1 second.

Codex 0.165.0

  1. fix

    Emitted prompt telemetry only after hooks accept input.

  2. feature

    Added support for environment-scoped managed hooks and hook configuration in environment attachments.

Claude Code v2.1.311

  1. fix

    Fixed SubagentStop hooks running about twice a minute for each running subagent instead of once when it finishes.

  2. feature

    VSCode: Added a Running UserPromptSubmit hooks spinner status and screen reader announcement for slow UserPromptSubmit hooks.

Claude Code v2.1.310

  1. fix

    On Windows without Git Bash, PreToolUse and PermissionRequest hooks no longer let a tool call through when the hook's command is only quoted strings, such as a quoted path.

Claude Code v2.1.309

  1. fix

    Ctrl+Enter (send now) now queues a message when pressed at any point in a response, and no longer restarts a prompt's hooks while leaving the message queued when pressed during hook execution.

  2. fix

    Hooks running in PowerShell now block when the program exits with code 2, and on Windows PreToolUse and PermissionRequest hooks with shell powershell no longer fail open when Git for Windows is not installed.

  3. fix

    A mod's turn.step hook that names a model by alias such as haiku now resolves to its model instead of failing every request with a model error.

  4. other

    The error for a hooks module nested too deep to load now names the file instead of showing a bare stack-overflow message.

Claude Code v2.1.305

  1. fix

    Fixed the self-hosted orchestrator reporting a spawn-runner hook as timed out when a runner it started in the background kept its output open.

  2. feature

    Added a 'Running start-up hooks' spinner status, with a screen reader announcement, shown while SessionStart or Setup hooks run.

Claude Platform Claude Platform release notes — October 20, 2026

  1. feature

    Inference hooks are now out of beta for Claude Enterprise organizations.

Claude Code v2.1.304

  1. breaking Breaking

    Changed skill hooks so the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session.

  2. feature

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

  3. fix

    Fixed a PreToolUse hook's deny reason being replaced by a timeout error when an Agent SDK callback hook on the same tool call timed out.

  4. fix

    Fixed a skill's once hook also removing another skill's identical hook after it ran.

  5. fix

    [VSCode] Fixed one cause of sessions failing to start with "Subprocess initialization did not complete within 60000ms": time a SessionStart command hook spends running no longer counts toward the limit, up to 10 minutes in total.

Claude Code v2.1.302

  1. other

    Changed prompt and agent hooks so that at most 12 hooks of one event run at a time; the rest wait their turn.

Claude Code v2.1.301

  1. fix

    Quitting no longer removes a worktree created by a WorktreeCreate hook without asking when it may hold unpushed commits.

  2. fix

    Artifact updates are no longer refused where a PreToolUse hook covers Edit or Write; Claude now edits the file and then republishes it.

  3. fix

    Skills, commands, and hooks no longer use very large amounts of memory when their arguments fill many placeholders.

  4. fix

    Switching to a model whose name contains application-inference-profile no longer runs the awsAuthRefresh command or delays model-switch hooks when the provider is not Bedrock.

  5. fix

    The permission prompt for a plugin or skill hook's ask decision now shows which plugin or skill the hook comes from.

+1 more
  1. 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.

Claude Code v2.1.300

  1. breaking Breaking

    In Cowork cloud sessions, a setMode update in a PermissionRequest hook's allow is now ignored while the rest of the approval still applies.

  2. breaking Breaking

    updatedInput from PreToolUse and PermissionRequest hooks is now validated like Claude's own input: unknown keys are dropped and input the tool rejects denies the call.

  3. feature

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

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

  5. fix

    SessionEnd hooks now run when exiting while a background command is still running.

+2 more
  1. fix

    Plugin WorktreeCreate and WorktreeRemove hooks now run when Claude Code starts with --worktree (not yet with --tmux).

  2. fix

    Agent hooks now honor their model setting: aliases like haiku resolve, subagent models no longer override it, and an unavailable model falls back to the caller's model instead of allowing the action.

Claude Code v2.1.299

  1. breaking Breaking

    Changed plugin hooks and workflow scripts to refuse returned values nested deeper than 28,000 levels; workflow scripts previously allowed 100,000.

  2. breaking Breaking

    Changed actions a plugin hook can block to be refused when the hook cannot receive them or return its answer; an already-run tool has its result withheld.

  3. breaking Breaking

    Changed UserPromptSubmit hooks to run before a skill or custom slash command expands, so a hook that blocks the prompt also stops its embedded shell commands.

  4. feature

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

  5. feature

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

+15 more
  1. 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.

  2. fix

    Fixed Edit and Retry in Cowork and claude.ai cloud sessions failing on a message stopped while its UserPromptSubmit or prompt.submit hooks were running (regression in 2.1.296).

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

  4. fix

    Fixed a Remote Control prompt that had passed its hooks being dropped from prompt history when Stop interrupted the next queued prompt's hook.

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

  6. fix

    Fixed plugin hooks being skipped when they pass a very deeply nested tool input or message on with next().

  7. fix

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

  8. fix

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

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

  10. fix

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

  11. fix

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

  12. fix

    Windows: Fixed PreToolUse and PermissionRequest hooks without a shell failing open when Git for Windows is not installed; a failing guard now blocks the call.

  13. other

    Changed auto mode in Cowork cloud sessions so a PermissionRequest hook can no longer approve shell commands or subagents; those prompts wait or are denied.

  14. other

    Changed a skill's front-matter UserPromptSubmit hook to first run on the prompt after the one that invokes the skill.

  15. 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. feature

    Added a note in /plugin on a plugin whose hooks are left out because another enabled plugin has the same name.

  2. fix

    Fixed managed-settings PreToolUse hooks that deny a tool call with continue: false, and managed prompt hooks that block one, so they refuse the call without ending the turn.

  3. fix

    Fixed PostToolUse hooks in managed settings not applying updatedMCPToolOutput in some sessions.

  4. fix

    Fixed hook output being altered when it contained text resembling a plugin hint tag.

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

+6 more
  1. fix

    Fixed SessionStart hooks of a plugin loaded after a headless session starts being skipped when a different plugin with the same name, or another spelling of it, had already run.

  2. fix

    Fixed a plugin's served $ methods running in the main session's working directory instead of the calling agent's, and ignoring the turn their calling hook holds.

  3. fix

    Fixed a prompt sent while SessionStart hooks were still running vanishing when the session moved to the background; it is still not sent, but the up arrow now brings it back.

  4. fix

    Fixed a late-loading plugin's SessionStart hook output reaching the new conversation after /clear in headless sessions.

  5. fix

    Fixed PowerShell commands not seeing variables that hooks write to CLAUDE_ENV_FILE when the file holds only plain assignments.

  6. other

    Improved --debug output for hooks so command hooks on tool calls, prompts, SessionStart and Stop log their command, plugin, outcome and duration when they finish.

Claude Code v2.1.295

  1. feature

    Added onFailure: "block" for command and HTTP hooks so that a hook that cannot start, times out, or exits with an unexpected code blocks the action.

  2. fix

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

  3. fix

    Fixed commands and hooks in background sessions inheriting FORCE_COLOR=3, which put color escape codes into output Claude reads.

  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 plugins whose hooks module nests code thousands of levels deep failing with a bare stack-overflow message.

+9 more
  1. fix

    Fixed claude plugin test passing a session.append hook that removes blocks a real session keeps.

  2. fix

    Fixed an async SessionStart hook's unchanged context being added to the conversation again on every resume.

  3. fix

    Fixed variables a SessionStart hook writes to CLAUDE_ENV_FILE not reaching the Bash tool after in-app /resume or /branch.

  4. fix

    Fixed an async hook's JSON output being ignored when printed over several lines.

  5. fix

    Fixed a plugin adding very large interfaces getting another plugin unloaded when the plugin hooks worker stalls.

  6. fix

    Fixed claude.ai-synced plugin hooks failing with Plugin directory does not exist in long sessions after another session synced an update.

  7. other

    Improved claude plugin validate and plugin loading errors for a hooks module refused over a rebound top-level var, naming the line, cause and fix.

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

  9. performance

    Fixed web searches and agent hook evaluations taking much longer at xhigh and max effort.

Claude Code v2.1.294

  1. fix

    Fixed prompt and agent hooks written as instructions (such as "Block commands that...") allowing commands they should block.

  2. fix

    Changed how prompt hooks on Stop and SubagentStop written as instructions are judged so Claude is less likely to stop early.

Claude Code v2.1.293

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

Claude Code v2.1.292

  1. other Breaking

    Changed claude plugin test so a failed expect inside a hook the test registered, or a stub answer the engine refuses, now fails the test instead of passing silently.

  2. feature

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

  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 PreToolUse hook approvals and auto mode bypassing the permission prompt for file reads from UNC network paths.

  5. fix

    Fixed plugins whose hooks module makes many $.state calls through one const taking minutes to load or validate.

+10 more
  1. fix

    Fixed a plugin's served $ method restarting the hook origin, which could re-run a guard hook with a .catch above it endlessly.

  2. fix

    Fixed plugin interface calls made while the plugin hooks worker restarts running without the hooks other plugins attach to them.

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

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

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

  6. fix

    Fixed a plugin's prompt drop or setting deny being ignored when its reason was longer than 4,096 characters.

  7. fix

    Fixed tool calls made while the plugin hooks worker restarts being answered without the plugins' permission hooks.

  8. fix

    Fixed plugin tool.call hooks seeing some tool calls before misnamed parameters were repaired; hooks now see the arguments the tool will run with.

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

  10. other

    Improved hook output handling so system-reminder tags written in a hook's output are escaped before reaching Claude.

Claude Code v2.1.290

  1. breaking Breaking

    An in-process teammate's agent_id in Agent results is now its agent ID (name@team stays in teammate_id), and TeammateIdle hooks no longer fire from its subagents or forks.

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

  3. feature

    Added agentId to the tool.check event of plugin hooks to distinguish subagent permission checks from the main session's.

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

  5. feature

    Added ThemeKey and Color types to the plugin hooks typings.

+8 more
  1. fix

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

  2. fix

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

  3. fix

    Fixed plugin hooks reading an empty answer on turn.complete for subagents reporting back in auto mode.

  4. fix

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

  5. fix

    Fixed an endless loop when an async Stop hook passes an unquoted script path containing a space.

  6. fix

    Permission rules and safety checks now apply after a PreToolUse hook rewrites tool input.

  7. fix

    Fixed sandboxed Bash on Linux triggering ConfigChange hooks and settings reloads when project settings files don't exist.

  8. other

    Plugin hooks now clip and log long text instead of refusing or dropping it.

Claude Code v2.1.289

  1. feature

    Added agent.spawn for teammates, a single agent id across plugin hook events, and idle and waiting states in $.agent.list().

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

Claude Code v2.1.288

  1. fix

    Fixed a plugin's tool.call hook making Bash fail and file searches read the wrong folder in worktree subagents.

  2. fix

    Fixed idle_prompt notification hooks firing while background agents are still running.

  3. fix

    Fixed PreToolUse and PermissionRequest hooks being skipped when matching failed or tool input could not be serialized; the call is now blocked.

  4. fix

    Fixed the InstructionsLoaded hook omitting agent_id and agent_type for subagent file-access loads, and such loads now also report effort.

Claude Code v2.1.287

  1. breaking Breaking

    Whole-tool Bash allow rules and allowing hooks now prompt for, rather than run, shell writes to files the file tools refuse such as the Anthropic profile store and host credentials file.

  2. fix

    Fixed asyncRewake hooks repeatedly waking Claude when the hook script is missing; the broken hook is now reported once.

  3. fix

    Fixed SessionStart hooks from synced plugins not running in new cloud sessions.

  4. fix

    Fixed hook counts in the transcript and debug log including internal callbacks, so one configured hook no longer shows as two.

Claude Code v2.1.286

  1. fix

    Fixed API 400 errors after a tool or hook returned an object, number or boolean instead of text, including in resumed sessions.

  2. other

    The closing line of a /hooks detail screen now says "this hook" instead of "it".

  3. other

    /hooks now opens on one list of configured hooks grouped by event, so viewing a hook takes one Enter instead of three.

Claude Code v2.1.285

  1. fix

    Fixed hooks and SDK permission callbacks seeing a missing or outdated plan on ExitPlanMode when the plan was written in the same response.

  2. fix

    Fixed synchronous hooks hanging while a background process started by the hook kept its output open.

  3. fix

    Fixed a cancelled shell command or hook still starting and running to completion when the cancel arrived during setup.

  4. fix

    Fixed a hook's reason for blocking or stopping a prompt disappearing in VS Code after a window reload.

Claude Code v2.1.284

  1. fix

    Fixed the debug log dropping failed hooks' stderr when stdout was also written and logging nothing for failed hooks without output; failed hooks now log their status code.

  2. fix

    Fixed {"decision":"block"} from Elicitation and ElicitationResult hooks being ignored; it now declines the MCP elicitation like exit code 2.

Claude Code v2.1.282

  1. fix

    Fixed the prompt's example text flashing and disappearing at startup in projects with a SessionStart hook.