Claude docs changes for February 20th, 2026 [diff]

Executive Summary

  • Git worktree isolation goes first-class: A new --worktree (-w) CLI flag and isolation: "worktree" subagent field let Claude spin up isolated git worktrees automatically, replacing the previous manual git worktree add workflow.
  • New ConfigChange hook: A new hook event fires whenever a configuration file changes during a session, enabling enterprise security auditing and the ability to block unauthorized settings changes.
  • Automatic prompt caching: A new top-level cache_control field on the Messages API automatically caches the last cacheable block and advances the cache point as conversations grow — no manual breakpoint management required.
  • Model retirements and deprecations: Claude Sonnet 3.7 and Claude Haiku 3.5 are now retired (requests return errors). Claude Haiku 3 is newly deprecated with retirement scheduled for April 20, 2026.
  • Ctrl+F to kill background agents: A new keyboard shortcut kills all background agents (double-press confirmation within 3 seconds).

New Claude Code versions

2.1.49

New features

  • Added --worktree (-w) flag to start Claude in an isolated git worktree at <repo>/.claude/worktrees/<name>. If no name is given, one is auto-generated.
  • Subagents support isolation: "worktree" to run in a temporary git worktree; the worktree is automatically cleaned up if the subagent makes no changes.
  • Added Ctrl+F keybinding to kill all background agents (two-press confirmation within 3 seconds required).
  • Agent definitions support background: true to always run as a background task.
  • Plugins can ship a settings.json for default configuration (currently only the agent key is supported).
  • Added ConfigChange hook event that fires when configuration files change during a session, enabling enterprise security auditing and optional blocking of settings changes.
  • SDK model info now includes supportsEffort, supportedEffortLevels, and supportsAdaptiveThinking fields so consumers can discover model capabilities.
  • Simple mode (CLAUDE_CODE_SIMPLE) now includes the file edit tool in addition to the Bash tool.
  • Permission suggestions are now populated when safety checks trigger an ask response, enabling SDK consumers to display permission options.

Existing feature improvements

  • Improved performance in non-interactive mode (-p) by skipping unnecessary API calls during startup.
  • Improved startup performance by caching MCP authentication failures for HTTP and SSE MCP servers, avoiding repeated connection attempts.
  • Improved startup performance by batching MCP tool token counting into a single API call and reducing HTTP calls for analytics token counting.
  • Improved permission prompts for path safety and working directory blocks to show the reason for the restriction instead of a bare prompt.

Major bug fixes

  • Fixed file-not-found errors to suggest corrected paths when the model drops the repo folder prefix.
  • Fixed Ctrl+C and ESC being silently ignored when background agents are running and the main thread is idle. Pressing twice within 3 seconds now kills all background agents.
  • Fixed prompt suggestion cache regression that reduced cache hit rates.
  • Fixed plugin enable and plugin disable to auto-detect the correct scope when --scope is not specified, instead of always defaulting to user scope.
  • Fixed verbose mode not updating thinking block display when toggled via /config.
  • Fixed unbounded WASM memory growth during long sessions by periodically resetting the tree-sitter parser and resetting Yoga WASM linear memory.
  • Fixed disableAllHooks setting to respect the managed settings hierarchy — non-managed settings can no longer disable managed hooks set by policy.
  • Fixed --resume session picker showing raw XML tags for sessions that start with commands like /clear.

Claude Code changes

Changed documents

cli-reference [Source]

  • New --worktree / -w flag documented in the CLI flags table, which starts Claude in an isolated git worktree. [line 58] [Source]

common-workflows [Source]

  • The "Run parallel Claude Code sessions with Git worktrees" section was completely rewritten around the new --worktree flag, replacing the old multi-step manual git worktree add workflow. It now includes a "Worktree cleanup" subsection describing automatic cleanup behavior and a "Manage worktrees manually" subsection for advanced use cases. [lines 969-1130] [Source]
  • Added a new section "Get notified when Claude needs your attention" covering how to configure desktop notifications using the Notification hook event, with per-OS command examples (macOS via osascript, Linux via notify-send, Windows via PowerShell). [lines 1037-1130] [Source]

desktop [Source]

  • Updated the "Session isolation" row in the CLI vs Desktop comparison table to reference the --worktree flag with a link to the CLI reference. [line 239] [Source]

hooks-guide [Source]

  • Added a new "Audit configuration changes" example showing how to use the ConfigChange hook to log settings changes to an audit log, with a ready-to-use JSON config block. [lines 316-351] [Source]
  • ConfigChange added to the hook events table with description "When a configuration file changes during a session." [line 368] [Source]

hooks [Source]

  • ConfigChange added to the hook events summary table. [line 29] [Source]
  • ConfigChange added to the matcher table, with supported values: user_settings, project_settings, local_settings, policy_settings, skills. [line 185] [Source]
  • ConfigChange added to the blocking decision table — it can block configuration changes from taking effect (except policy_settings). [line 496] [Source]
  • Full ConfigChange event reference added, including input schema, matcher values, decision control, and a note that policy_settings changes cannot be blocked. [lines 1420-1510] [Source]
  • Added a note that disableAllHooks respects the managed settings hierarchy: user/project/local settings cannot disable managed hooks set by policy. [line 413] [Source]

ide-integrations [Source]

  • Updated the "Use git worktrees for parallel tasks" section to use the --worktree flag (claude -w feature-auth) instead of the old manual git worktree add workflow. [lines 317-335] [Source]

interactive-mode [Source]

  • Added Ctrl+F keyboard shortcut to the shortcuts table: kills all background agents with a two-press confirmation within 3 seconds. [line 16] [Source]

plugins-reference [Source]

  • Added settings.json to the plugin directory structure example and to the plugin components table. Only agent settings are currently supported. [lines 468-492] [Source]

plugins [Source]

  • Added settings.json to the plugin capabilities table with a description of its role. [line 235] [Source]
  • Added a new "Ship default settings with your plugin" section documenting the settings.json file, including an example that activates a named agent as the main thread. [lines 312-337] [Source]

security [Source]

  • Added ConfigChange hooks to the enterprise security best practices list as a way to audit or block settings changes during sessions. [line 109] [Source]

server-managed-settings [Source]

  • Added a note that ConfigChange hooks can be used to detect runtime configuration changes and block unauthorized changes before they take effect. [line 148] [Source]

settings [Source]

  • Added CLAUDE_CODE_SIMPLE environment variable to the environment variables table, documenting that it enables a minimal mode with only Bash, file read, and file edit tools (disabling MCP tools, attachments, hooks, and CLAUDE.md). [line 920] [Source]

sub-agents [Source]

  • Added background field to the subagent YAML frontmatter table: set to true to always run as a background task. [line 239] [Source]
  • Added isolation field to the subagent YAML frontmatter table: set to worktree to run the subagent in a temporary git worktree. [line 240] [Source]

vs-code [Source]

  • Updated the "Use git worktrees for parallel tasks" section to use the --worktree flag (claude -w feature-auth) instead of the old manual workflow. [lines 317-335] [Source]

API changes

Changed documents

about-claude/model-deprecations [Source]

  • Claude Sonnet 3.7 (claude-3-7-sonnet-20250219) and Claude Haiku 3.5 (claude-3-5-haiku-20241022) status updated from "Deprecated" to "Retired" as of February 19, 2026. [lines 71-72] [Source]
  • Claude Haiku 3 (claude-3-haiku-20240307) status changed to "Deprecated" with a retirement date of April 20, 2026. [line 73] [Source]
  • New deprecation history entry added for the 2026-02-19 Claude Haiku 3 deprecation announcement, with recommended replacement claude-haiku-4-5-20251001. [lines 80-89] [Source]

about-claude/models/migration-guide [Source]

  • Added a migration code snippet for upgrading from Claude Haiku 3 to Haiku 4.5, alongside the existing Haiku 3.5 migration. [lines 393-395] [Source]

api/api/messages [Source]

  • New code_execution_20260120 tool type added, supporting REPL state persistence with daemon mode and gVisor checkpoint. [line 300+]
  • allowed_callers arrays across all tool types now include the new "code_execution_20260120" enum value.
  • CodeExecution20260120 inline type renamed to the named type ServerToolCaller20260120 in caller union types.
  • speed field removed from the Usage response object (the "standard"/"fast" inference speed mode field has been retired).

api/api/messages/batches [Source]

  • Same ServerToolCaller20260120 rename, allowed_callers expansion, and speed field removal as in the Messages API reference.

api/api/messages/batches/create [Source]

  • New top-level cache_control request parameter added for automatic prompt caching, with type ("ephemeral") and optional ttl ("5m" or "1h"). [line 100+]
  • speed request parameter removed.
  • Same ServerToolCaller20260120 rename and allowed_callers expansion.

api/api/messages/batches/results [Source]

  • Same ServerToolCaller20260120 rename, speed field removal, and allowed_callers expansion as in the Batches API reference.

api/api/messages/count_tokens [Source]

  • New top-level cache_control request parameter added for automatic prompt caching.
  • speed request parameter removed.
  • Same ServerToolCaller20260120 rename and allowed_callers expansion.

api/api/messages/create [Source]

  • New top-level cache_control request parameter added for automatic prompt caching. [line 100+]
  • speed request parameter removed from request body and Usage response object.
  • Same ServerToolCaller20260120 rename and allowed_callers expansion.

build-with-claude/claude-on-amazon-bedrock [Source]

  • Claude Haiku 3 (anthropic.claude-3-haiku-20240307-v1:0) marked with the deprecation warning symbol (⚠️) in the model table.

build-with-claude/claude-on-vertex-ai [Source]

  • Claude Haiku 3 (claude-3-haiku@20240307) marked with the deprecation warning symbol (⚠️) in the model table.

build-with-claude/overview [Source]

  • Added "Automatic prompt caching" as a new entry in the context management table, available on the Claude API and Azure AI Foundry (preview). [line 62] [Source]
  • Several features previously listed without "(Beta)" for Microsoft Foundry are now marked as "(Beta)" (Adaptive thinking, Citations, Effort, Extended thinking, PDF support, Search results, Code execution, Memory, Web fetch, Web search, Bash, Text editor, Fine-grained tool streaming, Programmatic tool calling, Tool search, Token counting, Prompt caching 5m and 1hr).

build-with-claude/prompt-caching [Source]

  • Major restructure to introduce automatic caching as the primary recommended approach. The introduction now explains two caching modes: automatic (top-level cache_control) and explicit (block-level cache_control). [lines 1-35] [Source]
  • New "Automatic caching" section added with a table showing how the cache breakpoint advances with each turn in a multi-turn conversation, plus TTL support, edge cases, and how to combine automatic and explicit caching. [lines 110-200] [Source]
  • The existing explicit cache breakpoints content reorganized under a new "Explicit cache breakpoints" heading, with the "Understanding cache breakpoint costs" section moved here.
  • Best practices updated to recommend starting with automatic caching for multi-turn conversations.
  • Automatic caching noted as available on the Claude API and Azure AI Foundry (preview), with Bedrock and Vertex AI support coming later.

release-notes/overview [Source]

  • New February 19, 2026 release notes entry added covering: launch of automatic caching, retirement of Claude Sonnet 3.7 and Claude Haiku 3.5, and deprecation of Claude Haiku 3 with an April 19, 2026 retirement date. [lines 1-15] [Source]