Claude docs changes for May 21st, 2026 [diff]

Executive Summary

  • Claude Code 2.1.146 renames /simplify to /code-review (with optional effort level) and fixes 13 bugs including Windows PowerShell failures, MCP pagination dropping items, and CLAUDE_CODE_SUBAGENT_MODEL not forwarding to child processes
  • New strictPluginOnlyCustomization managed setting lets enterprise admins lock all customization (skills, agents, hooks, MCP servers) to plugin or managed sources only, blocking user/project-level overrides
  • 1-hour prompt caching now available on Amazon Bedrock — the feature availability table and caching docs are updated to reflect this expansion
  • Hooks clarification: exit 0 in a PreToolUse hook no longer implies approval — the normal permission flow still applies; only exit 2 or JSON output with decision: "deny" affects the outcome
  • New Prompt Library doc for Claude Code provides curated prompts organized by workflow category (understand, plan, build, test, refactor, etc.)

New Claude Code versions

2.1.146

New features

  • Renamed /simplify to /code-review with an optional effort level (e.g. /code-review high)

Existing feature improvements

  • Auto mode no longer suppresses AskUserQuestion when the user or a skill explicitly relies on it
  • Improved auto-updater reliability: native version checks and downloads now retry transient network failures instead of failing immediately
  • Improved diff rendering performance for large file edits

Major bug fixes

  • Fixed Windows PowerShell tool failing with "command line is invalid" when pwsh is installed via winget or the Microsoft Store (regression in v2.1.124)
  • Fixed MCP resources/list, resources/templates/list, and prompts/list dropping items past page 1 on paginating servers
  • Fixed full-screen strobing in attached background sessions on Windows Terminal while Claude is streaming
  • Fixed /background refusing sessions whose only typed input was a skill or custom slash command
  • Fixed backgrounded sessions re-prompting for tool permissions you already granted with "don't ask again"
  • Fixed forceLoginOrgUUID and forceLoginMethod managed-settings policies not being enforced against third-party-provider and API-key sessions
  • Fixed CLAUDE_CODE_SUBAGENT_MODEL not being forwarded to child processes in multi-agent sessions
  • Fixed uncaught exception at the end of streaming sessions when running via the Agent SDK
  • Fixed auto-updater status line not showing your current version when an update fails
  • Fixed on Windows, removing a background-job worktree no longer follows NTFS junctions into the main repo
  • Fixed /theme color editor and "New custom theme" dialogs not responding to Esc
  • Fixed GNOME Terminal right-click and middle-click paste not inserting text

Claude Code changes

New Documents

Prompt library [Source]

New file introducing a curated library of prompts organized by workflow category (Start here, Understand, Plan, Prototype, Build, Test, Refactor, Review, Debug, Git, Release, and more). Includes 52 prompts drawn from Anthropic guides and real team workflows, plus an explanation of the prompting patterns that make them work (outcome-first descriptions, self-verification steps, reference anchoring, measurable targets).

Changed documents

Admin setup [Source]

  • Added strictPluginOnlyCustomization to the managed policies table — blocks skills, agents, hooks, and MCP servers from user and project sources so they can only come from plugins or managed settings. [line 68] [Source]

Checkpointing [Source]

  • Clarified double Esc behavior: only opens the rewind menu when the prompt input is empty. If the input contains text, double Esc clears it instead and saves the draft to history so Up recalls it. [lines 25-29] [Source]

Commands [Source]

  • Clarified /desktop availability: requires macOS or Windows and a Claude subscription (not just OS). [line 46] [Source]
  • Updated /loop description to note that the autonomous maintenance prompt is not available everywhere. [line 68] [Source]

Desktop [Source]

  • Clarified interrupt vs. redirect behavior: clicking the stop button interrupts immediately, while typing a correction and pressing Enter sends it without stopping the running action. [line 47] [Source]
  • Added explicit note that /desktop requires a Claude subscription and is not available with API key authentication or on Bedrock, Vertex, or Foundry. [line 579] [Source]

Desktop quickstart [Source]

  • Clarified interrupt behavior: stop button interrupts immediately; typing a correction sends it without stopping the running action. [line 95] [Source]

Hooks guide [Source]

  • Clarified that exit 0 in a PreToolUse hook reports no objection but does not approve the tool call — the normal permission flow still applies. [line 529] [Source]
  • Reworded structured JSON output intro: "exit codes only let you block or stay silent" (previously said "allow or block"). [line 540] [Source]

Hooks [Source]

  • Clarified that exit 0 means "no decision" — it does not approve a PreToolUse tool call, and the normal permission flow continues. Multiple locations updated. [line 90] [Source]
  • suppressOutput clarified: hides hook stdout from the transcript (not just the debug log). [line 661] [Source]
  • Added SessionStart, Setup, SubagentStart row to the hook event decision table — these events only support context injection via hookSpecificOutput.additionalContext; SessionStart also accepts initialUserMessage and watchPaths. [line 744] [Source]
  • New initialUserMessage SessionStart output field: sets the first user message in non-interactive (-p) mode. [line 831] [Source]
  • New watchPaths SessionStart output field: array of absolute paths to watch for FileChanged events during the session. [line 832] [Source]
  • New suppressOriginalPrompt field for UserPromptSubmit block decisions: when true, omits the original prompt text from the block message shown to the user. [line 1004] [Source]
  • setMode permission mode now includes auto as a valid value. [line 1340] [Source]
  • session_crons in Stop hook input now lists ScheduleWakeup as a source alongside CronCreate and /loop. [line 1821] [Source]
  • PermissionDenied and TeammateIdle events upgraded to support all five hook types (command, http, mcp_tool, prompt, and agent); previously only supported the first three. [lines 2382-2406] [Source]
  • Added blocking behavior for TeammateIdle: supports continueOnBlock: true to feed the reason back to the teammate instead of stopping it. PermissionDenied blocking clarified: ok: false has no effect; only hookSpecificOutput.retry matters, and only from command hooks. [lines 2476-2481] [Source]

How Claude Code works [Source]

  • Clarified interrupt vs. steer distinction: Esc cancels the running tool call immediately; typing a correction and pressing Enter sends it without stopping the running tool. [lines 173-177] [Source]

Interactive mode [Source]

  • Ctrl+C behavior clarified: interrupts a running operation; if nothing is running, first press clears the prompt input and a second press exits Claude Code. [line 23] [Source]
  • Esc + Esc behavior clarified: clears input draft (saving to history) when input contains text; opens the rewind menu only when input is empty. [line 36] [Source]

Permissions [Source]

  • Added strictPluginOnlyCustomization to the managed-only settings table. [line 311] [Source]

Plugin marketplaces [Source]

  • Clarified claude plugin validate scoping: when pointed at a marketplace directory it validates marketplace.json only; plugin-level validation (skills, agents, hooks) requires pointing the command at the plugin directory itself. [lines 919-933] [Source]

Scheduled tasks [Source]

  • Clarified that the built-in maintenance prompt is not available to everyone and is not supported on Bedrock, Vertex AI, or Microsoft Foundry. Where unavailable, /loop with no prompt prints the usage message instead. [line 85] [Source]
  • Added note that loop.md follows the same availability restriction as the built-in maintenance prompt. [line 110] [Source]

Settings [Source]

  • Added strictPluginOnlyCustomization to the settings reference table (managed settings only). [line 237] [Source]
  • Added full documentation section for strictPluginOnlyCustomization: value can be true (lock all four surfaces) or an array naming specific surfaces (skills, agents, hooks, mcp). Requires v2.1.82 or later. [lines 916-942] [Source]

Tools reference [Source]

  • Added ScheduleWakeup tool: reschedules the next iteration of a self-paced /loop; Claude calls it automatically at the end of each iteration. Not available on Bedrock, Vertex AI, or Foundry. [line 36] [Source]

API changes

Changed documents

API and data retention [Source]

  • Added Claude Managed Agents and MCP tunnels to the ZDR/HIPAA eligibility table — both are not ZDR eligible and not HIPAA BAA eligible. [lines 163-164] [Source]

Claude in Amazon Bedrock [Source]

  • Expanded "Feature support" section with detailed supported and not-supported lists, including links to individual feature docs. Supported highlights now include Bash, Computer use, Memory, and Text editor tools. Not-supported items now explicitly list URL input sources, server-side tools, agent infrastructure, and additional API endpoints. [lines 176-204] [Source]

Claude on Amazon Bedrock (legacy) [Source]

  • Added detailed supported and not-supported feature lists matching the current Bedrock page format. [lines 184-204] [Source]

Claude on Vertex AI [Source]

  • Added new "Data retention" section: data handling for Vertex AI is governed by Google Cloud; link to Vertex AI zero data retention docs. [lines 109-111] [Source]
  • Added detailed supported and not-supported feature lists, including web search tool in the supported section. [lines 125-145] [Source]

Features overview [Source]

  • Batch processing availability updated: Bedrock and Vertex AI removed from the supported platforms list. [line 42] [Source]
  • Fine-grained tool streaming on Microsoft Foundry changed from Beta to GA. [line 80] [Source]
  • 1-hour prompt caching now lists Bedrock as GA (previously Bedrock was absent). [line 95] [Source]

Fine-grained tool streaming [Source]

  • Added C#, Go, Java, PHP, and Ruby to the SDK language tabs in code examples. [line 14] [Source]
  • Simplified the accumulation section: notes that SDK accumulator helpers handle delta concatenation automatically; the manual pattern is only needed when reacting to partial input before the block closes. [lines 52-57] [Source]

MCP tunnels overview [Source]

  • Added reference to the data retention page for ZDR and HIPAA BAA eligibility. [line 9] [Source]

Managed agents overview [Source]

  • Updated research preview features list: outcomes and multiagent removed; MCP tunnels and dreaming added. [line 93] [Source]
  • Added explicit note that Claude Managed Agents is not ZDR or HIPAA BAA eligible due to its stateful nature, with guidance on how to delete session data. [line 95] [Source]

Multi-agent [Source]

  • Added new "Connect agents to MCP servers" section: explains that MCP servers are agent-scoped while vault credentials are session-scoped, with a code example showing how to declare servers per agent and supply credentials via vault_ids. [lines 71-114] [Source]
  • Clarified that all agents in a multiagent session share the same vault credentials (session-scoped). [line 11] [Source]

PDF support [Source]

  • Added note that on Amazon Bedrock and Vertex AI, only base64-encoded PDF sources are currently available (URL and Files API sources are not). [line 83] [Source]

Prompt caching [Source]

  • 1-hour cache duration is now available on Amazon Bedrock (both current and legacy integrations). [line 438] [Source]

Self-hosted sandboxes [Source]

  • Added reference to the data retention page for ZDR and HIPAA BAA eligibility. [line 19] [Source]

Vaults [Source]

  • Added note that in multiagent sessions, vault credentials apply to every thread and authenticate any agent whose definition declares the matching MCP server. [line 113] [Source]

Vision [Source]

  • Added note that on Amazon Bedrock and Vertex AI, only base64-encoded image sources are currently available (URL and Files API sources are not). [line 115] [Source]

Workspaces [Source]

  • Added new "Claude Code workspace" section: documents the auto-created workspace that appears when the first org member signs into Claude Code, its per-user API key behavior, separate rate limiting, per-user spend limits, and what happens when it is archived. [lines 18-29] [Source]