Claude Code 2.1.328 turns on auto mode by default and lets a failed hook block the action
Claude Code 2.1.328 shipped on 18 November 2026, and the two changes that matter are about control. Auto mode now starts by default for interactive sessions on Opus 4.6 and Sonnet 4.6 across Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and the Claude apps gateway, so sessions on those platforms begin with fewer permission prompts. And mcp_tool hooks now support onFailure: block, so a hook whose call fails blocks the action, the same behaviour command and HTTP hooks already had. The release also fixes scheduled tasks being erased when the tasks file cannot be read, Bash commands in zsh failing on words starting with =, and Code Mode scripts losing context on resume. Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.328
Why it matters
Auto mode by default changes the feel of every session on the cloud platforms: fewer prompts, faster first turns, and a real chance Claude does something you would have stopped. That is a trade worth making consciously, not by accident. The hook change is the sharper tool: a failing check can now actually stop a bad action instead of logging a warning you never see. Together they move Claude Code toward a setup where your guardrails enforce themselves. See [Claude Code on AgentStackList](https://agentstacklist.com/agents/claude-code/) for the full setup. The [Claude Code auto mode guide](https://agentstacklist.com/guides/claude-code-auto-mode/) explains the setting this release changes.
Who it's for
Claude Code users on Bedrock, Google Cloud, Foundry or the Claude apps gateway, and anyone who writes hooks to guard MCP tool calls.
How to try it
- Update to 2.1.328 with your normal install route, then start an interactive session on Opus 4.6 or Sonnet 4.6. If you have no permission mode set, the session now starts in auto mode instead of asking first.
- If you do not want auto mode as the default, set a permission mode explicitly before you start the session. Auto mode only applies when no mode is set, so an explicit choice still wins.
- To make a failing hook block an action, add "onFailure": "block" to the hook in your hooks configuration, for mcp_tool hooks the same way it already worked for command and HTTP hooks.
- Test the block on a safe action first: point a hook at a tool call you can afford to stop, make the hook fail, and confirm the action is blocked rather than running anyway.
- If you use scheduled tasks, check that your saved tasks survived the update. This release fixes a bug where saving a scheduled task could erase the project's other saved tasks when the tasks file could not be read.
- Note: auto mode by default applies to interactive sessions on the listed cloud platforms. Plan and availability: anthropics/claude-code releases, 18 November 2026.
Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.328
Written by James Whitfield from the original post. Checked Checked 19 Nov 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
claude-codeauto-modehooks
More Claude tricks
- Claude Code 2.1.330 draws your charts with easel and lets scheduled tasks run 30 days · Nov 21
- Claude Code 2.1.329 turns /tasks into a control panel and adds Code Mode guardrails · Nov 20
- Claude Code 2.1.326 lets Code Mode run with agent teams, and warns about broken rules · Nov 17
- Claude Code 2.1.325 makes sandboxed Bash ask first: flip one setting to get silence back · Nov 16