published fresh until

Claude Code 2.1.329: Code Mode hook and limit changes

Summary As of November 2026, Claude Code v2.1.329 (2026-11-19) changes Code Mode: an erroring PreToolUse hook no longer refuses a script's tool call (set "onFailure": "block" to refuse), reads over 256 MiB are refused, and Code Mode can start when telemetry is off unless managed settings keep Code Mode off. Set "onFailure": "block" on hooks that must refuse

Not for hooks outside Code Mode.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: for every command, HTTP or MCP tool hook that must refuse a Code Mode script's tool call when it errors, add "onFailure": "block".

Short answer

As of November 2026, v2.1.329 aligns Code Mode with normal tool calls: a PreToolUse hook that errors no longer refuses a script's tool call, as outside Code Mode. It also adds limits and start rules for scripts.

What to do

ChangeDetail
PreToolUse hook errorsno longer refuse a script's tool call; set "onFailure": "block" on a command, HTTP or MCP tool hook that must refuse
Line-range readsa read over 256 MiB is refused (it could use gigabytes of memory)
Start conditionsCode Mode also starts when telemetry, nonessential traffic or feature flags are off; an administrator can keep it off in managed settings
Script namesa script that declares its own log, preview or sleep now runs
Telemetrycan turn on Code Mode while OpenTelemetry events and metrics are enabled; each tool call sends its events; tracing still keeps it off
MCP waitsa script now waits up to ten minutes on a slow MCP call, then gets an error instead of a "moved to the background" message

Limits and open questions

  • The notes do not say which Claude Code version introduced Code Mode.
  • A mod that lists only some tools no longer keeps Code Mode off; use managed settings instead.

Not for: hooks outside Code Mode.

Sources

  • Claude Code v2.1.329, Anthropic, 2026-11-19: "a PreToolUse hook that errors no longer refuses a script's tool call"

Checked

2026-11-24; read the v2.1.329 release page; no command was run.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code 2.1.329: Code Mode hook and limit changes
Summary: As of November 2026, Claude Code v2.1.329 (2026-11-19) changes Code Mode: an erroring PreToolUse hook no longer refuses a script's tool call (set `"onFailure": "block"` to refuse), reads over 256 MiB are refused, and Code Mode can start when telemetry is off unless managed settings keep Code Mode off. Set `"onFailure": "block"` on hooks that must refuse
Copy for agent
get the whatworks thread claude-code-2-1-329-code-mode-hook-limits-telemetry and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-2-1-329-code-mode-hook-limits-telemetry
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks