claude@cli:~/docs$ cat claude-code.md

Claude Code: Configuration System Deep Dive

# Claude Code uses a layered configuration system. Understanding the hierarchy is essential because higher levels override lower ones, and managed settings…

author: words: 28790 read_time: 144m updated: 2026-12-01 00:00

Part 3 of New to Claude Code

Claude Code uses a layered configuration system. Understanding the hierarchy is essential because higher levels override lower ones, and managed settings…

Last updated: 2026-12-01 · 144 min read · 28K+ words

$ less claude-code.md

Claude Code uses a layered configuration system. Understanding the hierarchy is essential because higher levels override lower ones, and managed settings cannot be overridden by your own settings files.

Covered here: the configuration hierarchy, setting a value from the prompt with /config key=value, the complete settings.json reference, a lookup table of the most-searched flags, where the official docs cover each topic, and the environment variables reference.

Configuration Hierarchy

Level Location Scope Can Override
Managed /etc/claude-code/managed-settings.json (Linux) All users No
/Library/Application Support/ClaudeCode/managed-settings.json (macOS)
C:\Program Files\ClaudeCode\managed-settings.json (Windows)
Command line JSON passed with --settings <file-or-json> Current session Yes
Local project .claude/settings.local.json Personal, current project Yes
Shared project .claude/settings.json Team via git Yes
User ~/.claude/settings.json All your projects Yes
State ~/.claude.json Account details, MCP server configurations, per-project state such as trust decisions, and the global config keys /config writes N/A

The Managed level is not only a file: an MDM policy or server-managed settings from the claude.ai console deliver the same level, and nothing in your own settings files or --settings overrides a managed key.294 The five levels are a stack for single keys: the highest level that sets a key wins. Lists are different: when the same list key, such as permissions.allow, is set in more than one file, Claude Code combines the lists. The command-line level is the --settings JSON only; other flags, such as --model, each set one thing for the session and are not part of the stack. ~/.claude.json is a fifth file that Claude Code writes for itself. It does not hold your login: credentials are in the macOS Keychain, in ~/.claude/.credentials.json (mode 0600) on Linux, and in %USERPROFILE%\.claude\.credentials.json on Windows.550

Expert tip: Use .claude/settings.local.json for personal preferences in shared projects. Claude Code keeps it out of git when it creates the file, by adding **/.claude/settings.local.json to your global git excludes file; add it to .gitignore yourself only if you created the file by hand.389 Use .claude/settings.json for team-wide configuration that gets checked into version control.

Setting config from the prompt: /config key=value (v2.1.181)

As of v2.1.181, /config key=value sets a setting inline from the prompt (for example /config verbose=true) without opening the interactive /config UI, and it works in interactive, -p, and Remote Control sessions. It accepts the keys that /config --help (v2.1.183) lists, and it cannot turn on a setting that needs your confirmation in the panel, such as autoContinueAtUsageLimit, though it can turn one off.468 In the interactive /config UI, Enter and Space both toggle the selected setting and Esc saves and closes (v2.1.183+).171

Complete settings.json Reference

A full configuration demonstrating all major options:

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "model": "claude-sonnet-5-5",
  "permissions": {
    "allow": [
      "Read",
      "Glob",
      "Grep",
      "Bash(npm run:*)",
      "Bash(git:*)",
      "Bash(make:*)",
      "Edit(src/**)",
      "mcp__github"
    ],
    "deny": [
      "Read(.env*)",
      "Read(secrets/**)",
      "Bash(rm -rf:*)",
      "Bash(sudo:*)",
      "Edit(package-lock.json)",
      "Edit(.git/**)"
    ],
    "ask": [
      "WebFetch",
      "Bash(curl:*)",
      "Bash(docker:*)"
    ],
    "additionalDirectories": [
      "../shared-lib",
      "../docs"
    ],
    "defaultMode": "acceptEdits"
  },
  "env": {
    "NODE_ENV": "development",
    "DEBUG": "app:*"
  },
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write"
          }
        ]
      }
    ]
  },
  "sandbox": {
    "enabled": false,
    "autoAllowBashIfSandboxed": true,
    "excludedCommands": ["docker *"],
    "enableWeakerNetworkIsolation": false
  },
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh"
  },
  "cleanupPeriodDays": 30,
  "outputStyle": "Explanatory",
  "language": "japanese",
  "respectGitignore": true,
  "showTurnDuration": true,
  "plansDirectory": ".claude/plans",
  "spinnerVerbs": { "mode": "append", "verbs": ["Pondering", "Crafting"] },
  "spinnerTipsOverride": {
    "label": "Team tips",
    "tips": [
      "Custom tip 1",
      {"id": "tip-2", "text": "Custom tip 2", "cooldownSessions": 5, "priority": 1}
    ],
    "tipsFile": "~/.claude/team-tips.json",
    "excludeDefault": true
  },
  "skillOverrides": {
    "legacy-skill": "off",
    "manual-only-skill": "user-invocable-only",
    "compact-skill": "name-only"
  },
  "includeGitInstructions": false,
  "modelOverrides": {
    "claude-opus-5-5": "arn:aws:bedrock:us-east-2:123456789012:application-inference-profile/opus-prod",
    "claude-sonnet-5-5": "arn:aws:bedrock:us-east-2:123456789012:application-inference-profile/sonnet-prod"
  },
  "autoMemoryDirectory": "~/.claude/memory/my-project"
}

skillOverrides is useful when a team has a large skill library but wants tighter runtime exposure. Use off to hide a skill from both the model and slash picker, user-invocable-only to keep it callable by name while removing it from model selection, and name-only to keep only the skill name visible without its full description.153

Three values in the example have a required shape: spinnerVerbs is an object with a mode (append adds your verbs to the built-in set, replace shows only yours) and a verbs array; language takes a language name such as japanese; and autoMemoryDirectory takes an absolute or ~/-prefixed path. sandbox.enableWeakerNetworkIsolation is shown at its default, false: setting it to true lets sandboxed commands on macOS reach the system TLS trust service, which Go-based tools such as gh need behind a MITM proxy with a custom CA, and it opens a possible data exfiltration path.294 Each sandbox.excludedCommands entry uses Bash permission-rule syntax, where a pattern with no wildcard is an exact match: docker * matches docker with or without arguments, while docker alone matches only docker with no arguments.390 sandbox.autoAllowBashIfSandboxed is shown as true, which is no longer its default: since v2.1.325 the default is false, and sandboxed commands go through the regular permission flow (see Sandbox Mode).530

The Glob and Grep allow rules in the example apply on Windows, where both tools are in the default tool set. On macOS, Linux, and WSL, Claude Code leaves them out by default and searches with find and grep through the Bash tool, and an allow rule in a settings file does not bring them back.386469

Newer settings (v2.1.174–176):

  • availableModels / enforceAvailableModels (any settings file, deployed in managed settings to enforce them for an organization; enforceAvailableModels needs v2.1.175+): the availableModels allowlist restricts which models a session can select. Since v2.1.175 a managed availableModels list applies alone (apart from a host platform that supplies its own): entries in user, project, or local settings cannot extend it. With enforceAvailableModels: true beside a non-empty list, the allowlist also constrains the Default model: a Default that would resolve to a model outside the list resolves to the first available model in it. Once an organization deploys any managed settings, Claude Code reads enforceAvailableModels from the managed source alone.470 A companion fix (v2.1.176) closes the gap where an alias pick could redirect to a blocked model via ANTHROPIC_DEFAULT_*_MODEL, and /fast now refuses to toggle into a model outside the allowlist.169 As of v2.1.187, organizations can enforce model restrictions directly across the /model picker, --model, /model, and ANTHROPIC_MODEL: selecting a restricted model shows a “restricted by your organization’s settings” message.173
  • language (v2.1.176 refinement): in addition to setting response language, session titles are now generated in the language of your conversation by default; set language to pin a specific language for titles.169
  • footerLinksRegexes (v2.1.176): regex-matched link badges in the footer row, configurable via user or managed settings.169
  • wheelScrollAccelerationEnabled (v2.1.174): set to false to disable mouse-wheel scroll acceleration in fullscreen mode.169

Newer settings (v2.1.207–v2.1.212):

  • vimInsertModeRemaps (v2.1.208): custom key remaps for vim insert mode — the classic example is mapping jj to Escape (see Vim Mode).183
  • axScreenReader (v2.1.208): enable screen reader mode persistently (see Screen Reader Mode).183
  • processWrapper (v2.1.210; the CLAUDE_CODE_PROCESS_WRAPPER variable came in v2.1.208): place a corporate launcher in front of the background processes Claude Code starts from its own binary, on macOS and Linux; user or managed settings only (see Enterprise Deployment).183294
  • autoMode source restriction (v2.1.207): the autoMode setting is no longer read from a repository’s .claude/settings.local.json — configure it in ~/.claude/settings.json instead. This closes an avenue where a cloned repo could ship auto-mode configuration.182

Newer settings (v2.1.217):

  • emojiCompletionEnabled (v2.1.217): emoji shortcode autocomplete in the prompt input — type :heart: to insert ❤️, or a partial like :hea for suggestions. On by default; set to false to disable.191

Newer settings (v2.1.219):

  • sandbox.network.strictAllowlist (v2.1.219): refuse sandboxed commands any host outside the allowlist, in every permission mode. Without it, the permission mode decides in an interactive terminal session: Manual, acceptEdits, and plan mode prompt; auto mode refuses the host unless the command listed it and the classifier approved the list; dontAsk refuses; and bypassPermissions (or plan mode with bypass permissions available) allows the connection without a prompt. Claude Code reads the key from user or managed settings and --settings; a repository’s settings files cannot set it. See Sandbox Mode.193391
  • workflowSizeGuideline (v2.1.219): set the advisory Dynamic workflow size guideline from any settings file (user, project, or managed) rather than only through /config. The values are "small" (aim for fewer than 5 agents), "medium" (fewer than 10; lowered from 15 in v2.1.271), "large" (fewer than 50), and "unrestricted". The default is medium, or small on Pro plans since v2.1.271; the /config row hides itself while a settings file supplies the value. Advisory, not an enforced cap. See Subagents.193294289

Newer settings (v2.1.242–243):

  • modelPicker (user or managed, v2.1.242+): curate the /model picker with an ordered, labeled list of models. An object with an options array (each row a required model plus optional label and description; model is taken verbatim, so aliases, Anthropic IDs, and Bedrock/Agent Platform/Foundry/gateway IDs all work) and an optional replaceBuiltInOptions Boolean (false, the default, appends the rows after the built-in lineup; true shows only your rows, Default, and the model the session already runs). Claude Code reads the key from managed settings, --settings, and user settings and ignores it in project and local settings, so a cloned repository cannot relabel the picker; the highest source that sets it supplies the whole lineup. An availableModels allowlist still applies to every row, and a label changes what the picker shows, not which model runs.247245
  • promptCacheTtl / subagentPromptCacheTtl (any file, v2.1.242+): "5m" or "1h" per request bucket, so API-key and cloud-provider users can keep a one-hour cache on the main conversation while subagents stay at five minutes. See Caching Strategies.247245
  • modelPricing (managed; v2.1.242 or later per the settings reference, listed under 2.1.243 in the release notes, which have no 2.1.242 section): an organization’s contracted per-model rates and discount multiplier, used by /usage, the status line, and telemetry cost figures instead of list price. See Viewing Costs.247383

Newer settings (v2.1.247):

  • feedbackDrafts (v2.1.247): governs the new SendFeedback tool – when something goes wrong in a session, Claude can draft a feedback report for you to review and send from /feedback; turn the drafting off with this setting. See the /feedback row in Slash Commands.242
  • spinnerTipsOverride shape extension (v2.1.247): tip entries can be {id, text, cooldownSessions, priority} objects alongside plain strings, and the object gains tipsFile and label keys, so organizations can rotate their own tips alongside the built-in ones (the example above shows the extended shape). The settings reference documents these keys.242224

Newer settings (v2.1.248–251):

  • desktopSessionCleanupPeriodDays (v2.1.248): caps how long desktop-written sessions stay exempt from the transcript cleanup. The cleanup removes other sessions after cleanupPeriodDays (default 30 days) and keeps Claude Desktop and Cowork sessions while they are in the app, unless org policy manages retention.203
  • Project env restrictions (v2.1.251): a project-level .claude/settings.json env block can no longer set CLAUDE_CONFIG_DIR, CLAUDE_CODE_TMPDIR, or TMPDIR/TMP/TEMP – set them in your shell, user, or managed settings instead, so a cloned repository cannot redirect where Claude Code writes its config and temp files.203

Newer settings (v2.1.257-259):

  • timeFormat / timeZone (v2.1.257): control how Claude Code renders times – the end-of-turn completion clock and transcript timestamps. timeFormat accepts 12-hour, 24-hour, 24-hour UTC, or an explicit strftime pattern; timeZone names the time zone.208 The settings reference documents both keys.224
  • permissions.blockReadsOutsideWorkingDirectories (v2.1.257): make Claude’s file tools (Read, Grep, Glob, and LSP) refuse reads outside the session’s working directories in every permission mode. Files Claude Code itself needs stay readable, such as your skills, plugins, rules, and the CLAUDE.md memory file under ~/.claude/, and shell commands are not refused the same way.471 Without it, auto mode now asks once before the session’s first such read (see Auto Mode).208 v2.1.273 closes two gaps: a Bash command the checker cannot fully analyze prompts instead of skipping the check, and a memory directory chosen by a repository’s settings is not loaded, recalled, or indexed under this setting.214
  • permissions.blockWritesOutsideWorkingDirectories (v2.1.314): make Write, Edit, and NotebookEdit refuse paths outside the session’s working directories in every permission mode, bypassPermissions included, apart from some of Claude Code’s own files (such as plan files, the scratchpad, a background session’s tmp directory, and .md files in the project’s auto memory). It does not limit shell commands, MCP tools, or the programs hooks run (sandboxing does that), and while it is on Claude Code removes the EnterWorktree and ExitWorktree tools or refuses calls to them. Any settings file can turn it on, so a repository can block itself but cannot lift your block. A cloud session might not apply the key, because its file tools run in a container that is itself the boundary.281282471
  • permissions.denyInsteadOfPrompting (v2.1.319): a tool call that would wait on a permission prompt is denied and the turn continues, so a session nobody is watching keeps working. It applies in terminal sessions, -p runs, VS Code, local desktop sessions, subagents, and agent teams; user or managed scope and --settings only, so a repository cannot set it. A call that an allow rule, the permission mode, or auto mode’s classifier approves still runs, and a PermissionRequest hook can allow most of the calls that would otherwise prompt; some calls are denied before any hook is asked, such as a critical-path removal in auto mode that no ask rule covers. The setting also removes AskUserQuestion, EnterPlanMode, and ExitPlanMode (a teammate in an agent team keeps the two plan tools), cancels an MCP elicitation unless an Elicitation hook answers it, and skips canUseTool and --permission-prompt-tool; the workspace trust dialog and project MCP server approval still wait, so answer both before leaving. For one unattended -p run, --permission-prompts none does the same.283284472
  • managedMcpServers / managedSourcesBehavior: managed-scope keys, covered under Enterprise Deployment – organizations providing MCP servers to every user (v2.1.259) and the opt-in merge across managed sources (refined in v2.1.257).208241

Newer settings (v2.1.261):

  • bashOutputMaxChars / taskOutputMaxChars (v2.1.261): raise how much command output (and background-task output, respectively) Claude receives inline before the remainder is saved to a file, up to 128K characters. bashOutputMaxChars (clamped to the range 4,000 to 128,000; 30,000 characters inline when unset) sizes the inline ceiling and the read-back window together, and once it is set Claude Code ignores the BASH_MAX_OUTPUT_LENGTH env var, which otherwise sets the read-back window from the command’s working output file (30,000 characters by default, capped at 150,000). Past the inline ceiling, a successful command’s output lands in a file Claude can read on demand rather than being cut off.211294295 As of v2.1.265 the persisted side has a ceiling too: tool results saved to disk are capped at 1 GB, and the in-conversation preview says when a saved file was truncated.212 The task half retired in v2.1.277: the deprecated TaskOutput tool was removed – Claude reads a background task’s output file with Read instead – and taskOutputMaxChars and TASK_MAX_OUTPUT_LENGTH no longer have any effect. bashOutputMaxChars is unaffected.216

Newer settings (v2.1.267-269):

  • maxEffortLevel (v2.1.267): caps the effort level users can pick – top-level or per model under modelSettings – and applies on every provider, Bedrock, Agent Platform, and Foundry included. Users can still pick a level below the cap; the admin-side complement to /effort.213
  • advisorModel: the saved advisor model (fable, opus, sonnet, or a full ID) that /advisor writes to user settings; --advisor overrides it for one session and CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 turns the tool off. See The Advisor Tool.271
  • sandbox.allowNestedUserNamespaces (v2.1.305): let sandboxed commands on Linux and WSL2 create user namespaces, which Chromium’s and Electron’s own sandbox, a nested bubblewrap, and unshare need; this lets them get around the sandbox’s file protections, so it is read from user or managed settings only. The setting alone is not enough for rootless Podman or Buildah: for those the docs say to add a sandbox.excludedCommands pattern such as podman *. See Sandbox Mode.275276473
  • bashEditDiffEnabled (v2.1.269): when the Bash tool handles a file edit, the tool result carries a diff of the files the command changed, so the conversation shows what a sed-style edit actually did.213

Newer settings (v2.1.275):

  • syncClaudeAiSkills / syncClaudeAiPlugins (v2.1.275 in the release notes; the settings reference gives v2.1.273 as the floor for syncClaudeAiPlugins): the skills and plugins enabled on your claude.ai account now sync into terminal sessions signed in with that account. Set either key to false to keep terminal sessions on local skills and plugins only. See Skills and Plugin System.215392

Newer settings (v2.1.282-283):

  • maxProseWidth (v2.1.282): caps how wide Claude’s prose runs in a wide terminal. Paragraphs, headings, lists, and blockquotes wrap within that many columns, while tables and code blocks keep the full width. The value is a whole number of columns, minimum 40.222224
  • deniedModels / availableModelsMatch (managed, v2.1.283): deniedModels blocks specific models even when availableModels allows them. A family alias such as "opus" blocks the whole family, and "claude-opus-5" also blocks Opus 5.5 (write "claude-opus-5-0" for Opus 5 alone). By default an availableModels entry such as "claude-opus-5" also permits later versions that extend it; availableModelsMatch: "exact" makes each entry permit only the version it names, so a new release stays blocked until you list it. Claude Code reads both keys only from managed settings.223224
  • allowClaudeInChromeWithManagedMcp (managed, v2.1.282): lets claude --chrome run alongside an exclusive managed-mcp.json; the error shown when Chrome is blocked now names the key.222 Per the settings reference, the key is read only from the device’s own managed settings, and a deniedMcpServers entry for claude-in-chrome still blocks the server.230

Newer settings (v2.1.285):

  • allowedProviders (managed, v2.1.285): limits which API providers a machine may use: the Anthropic API, a custom endpoint, Bedrock, Mantle, Agent Platform (the "vertex" entry), Foundry, Claude Platform on AWS, or a Cloud gateway.226 The settings reference documents the key; a list from the machine’s own admin sources keeps applying when server-managed settings also deliver one, so a session may use only providers on both lists.230

Settings Lookup: The Most-Searched Flags

If you arrived here hunting a specific setting by name, this is the short index. Each entry names the release it shipped in and, where a scope owns it, which one:

Setting What it does
disableBundledSkills Hides the built-in skills and slash commands from the model — a clean slate for harnesses that ship their own (v2.1.169+)
modelPicker Curates the /model picker: ordered, labeled rows appended to or replacing the built-in lineup; user or managed scope only (v2.1.242+)
promptCacheTtl / subagentPromptCacheTtl Prompt-cache lifetime per request bucket, "5m" or "1h" (v2.1.242+)
maxEffortLevel Caps the effort level users can pick, top-level or per model under modelSettings; applies on every provider, Bedrock/Agent Platform/Foundry included (v2.1.267+)
sandbox.excludedCommands Command patterns that run outside the sandbox when every command in a call matches an entry, e.g. ["docker *"], for tools that break under isolation. A pattern with no wildcard is an exact match, so docker matches only docker with no arguments. An excluded command runs with your full access, and the docs call exclusion a convenience, not a security boundary (see Sandbox Mode)390
sandbox.network.strictAllowlist Refuses sandboxed commands any host outside the allowlist, in every permission mode. Without it the permission mode decides, and bypassPermissions allows those hosts without a prompt. The unattended-run setting; user or managed scope (v2.1.219+)391
worktree.bgIsolation Set to "none" to let background sessions edit the working copy directly, for repos where worktrees are impractical (v2.1.143+)
allowAllClaudeAiMcps Enterprise: load claude.ai cloud MCP connectors alongside managed-mcp.json (v2.1.149+)
allowClaudeInChromeWithManagedMcp Managed: let claude --chrome run alongside an exclusive managed-mcp.json (v2.1.282+)
deniedModels / availableModelsMatch Managed: block specific models even when availableModels allows them; "exact" limits each availableModels entry to the version it names (v2.1.283+)
maxProseWidth Cap the width of Claude’s prose in a wide terminal; tables and code blocks keep the full width (v2.1.282+)
allowedProviders Managed: limit which API providers a machine may use (v2.1.285+)
wslInheritsWindowsSettings Managed policy: WSL sessions inherit Windows-side managed settings (v2.1.118+)

Where Are the Official Docs for Each Topic?

This guide is a field manual, not the reference of record. When you need Anthropic’s canonical page for a subsystem, these are the official locations (each section of this guide cross-links its own):

Topic Official documentation In this guide
Hooks reference + guide code.claude.com/docs/en/hooks · hooks-guide How Do Hooks Work?
MCP (claude mcp add, servers) code.claude.com/docs/en/mcp What Is MCP?
Subagents code.claude.com/docs/en/sub-agents Subagents
Permission modes (incl. auto mode) code.claude.com/docs/en/permission-modes Permission Modes
Settings files code.claude.com/docs/en/settings Configuration System
Model configuration code.claude.com/docs/en/model-config Which Model Should I Choose?
CLAUDE.md / memory code.claude.com/docs/en/memory How Does Memory Work?
Agent teams code.claude.com/docs/en/agent-teams Agent Teams
Cross-session messaging code.claude.com/docs/en/cross-session-messaging Cross-Session Messaging
Release changelog code.claude.com/docs/en/changelog Changelog

Environment Variables Reference

Authentication and API:203

ANTHROPIC_API_KEY=sk-ant-...                    # Direct API authentication
ANTHROPIC_AUTH_TOKEN=token                      # Custom authorization header
ANTHROPIC_CUSTOM_HEADERS="X-Key: val"           # Additional request headers; credential/org/routing/API-behavior headers set from managed or project settings require approval (v2.1.251)

Model configuration:

ANTHROPIC_MODEL=claude-opus-5-5                 # Override the model setting; exported in your shell it applies over the model key from any settings file
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5         # Model new sessions start on; a /model pick overrides + persists (v2.1.236)
ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5    # What the `opus` alias resolves to (Opus 5.5 since v2.1.280; Opus 5 v2.1.219-278)
ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5  # What the `sonnet` alias resolves to, and what opusplan uses outside plan mode
ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5-20251001  # pin the haiku alias; on the Anthropic API it resolves to Haiku 5.5 (claude-haiku-5-5) as of v2.1.293
CLAUDE_CODE_SUBAGENT_MODEL=sonnet               # Default model for subagents; an agent's model: field and per-spawn picks win (v2.1.251 demoted it from override to default)
CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1             # Turn the advisor tool off: /advisor becomes unavailable, advisorModel is ignored, --advisor is accepted but does nothing
CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1              # Force every subagent onto CLAUDE_CODE_SUBAGENT_MODEL (or the main model), ignoring agent-definition and per-spawn overrides -- the pre-v2.1.251 behavior, opt-in (v2.1.257)
CLAUDE_CODE_SUBAGENT_EFFORT=high                # Default effort level for subagents and workflow agents (low, medium, high, xhigh, or max) when nothing else names one, instead of inheriting the session's; not applied to forks, forked skills, or teammates (the env-vars page says v2.1.315 or later, a version published without release notes; the notes list it under 2.1.316); a subagent on another model uses that model's saved effort or its default (v2.1.317+)
CLAUDE_CODE_DISABLE_ULTRATHINK=1                # Turn the ultrathink keyword off; since v2.1.311 it runs a terminal turn at xhigh effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and Fable 5.1 (the variable arrived in v2.1.316)
CLAUDE_CODE_DISABLE_WORKFLOWS=1                 # Turn dynamic workflows off for one session; same effect as "disableWorkflows": true (see the note below)
MAX_THINKING_TOKENS=10000                       # Fixed thinking budget on models without adaptive reasoning; on adaptive-reasoning models the number itself is ignored (see the note below)
CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000             # Max output tokens for most requests; defaults and caps vary by model, and a higher value leaves less context before auto-compaction
CLAUDE_CODE_MAX_TURNS=10                        # Cap agentic turns when no --max-turns is passed; the flag wins when both are set, and a value that is not a positive integer is rejected at startup
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1          # Enable agent teams (v2.1.32+)

Sources for the entries above:294290235236203271208281282285280547

CLAUDE_CODE_DISABLE_WORKFLOWS and disableWorkflows: whichever of the two turns workflows off, the other cannot turn them back on. Workflows are on by default except on the Pro plan, where "enableWorkflows": true (the Dynamic workflows row in /config writes it) turns them on.474

MAX_THINKING_TOKENS by model: the fixed budget applies on older models without adaptive reasoning, and on Opus 4.6 and Sonnet 4.6 only with CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1. Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning, and for a positive value Claude Code ignores the number itself on them. 0 disables thinking on the Anthropic API, except on Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models, and omits the thinking parameter on third-party providers.474

Cloud provider configuration:

CLAUDE_CODE_USE_BEDROCK=1                       # Use Amazon Bedrock
CLAUDE_CODE_USE_VERTEX=1                        # Use Google Cloud's Agent Platform (formerly Vertex AI)
CLAUDE_CODE_USE_FOUNDRY=1                       # Use Microsoft Foundry
CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD=1        # Use Claude Models on Google Cloud (Anthropic managed); set ANTHROPIC_GOOGLE_CLOUD_PROJECT and ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID with it (the docs give v2.1.307 as the floor)
ANTHROPIC_BEDROCK_BASE_URL=https://...          # Custom Bedrock endpoint
ANTHROPIC_BEDROCK_SERVICE_TIER=priority         # Bedrock service tier (v2.1.122+): 'default', 'flex', or 'priority'; sent as X-Amzn-Bedrock-Service-Tier header
CLAUDE_CODE_SKIP_BEDROCK_AUTH=1                 # Skip Bedrock auth (for gateways)
CLAUDE_CODE_SKIP_VERTEX_AUTH=1                  # Skip Google authentication for Agent Platform (for gateways)
AWS_BEARER_TOKEN_BEDROCK=token                  # Bedrock bearer token
VERTEX_REGION_CLAUDE_5_5_OPUS=us-east5          # Agent Platform region override for one model, here Claude Opus 5.5 (v2.1.280+); there is one variable per model
VERTEX_REGION_CLAUDE_HAIKU_5_5=us-east5          # Agent Platform region for Claude Haiku 5.5 (v2.1.293+)
VERTEX_REGION_CLAUDE_FABLE_5_2=global           # Agent Platform region for Claude Fable 5.2 (v2.1.321+); fast mode on Agent Platform (v2.1.322+) needs global, us, or eu
VERTEX_REGION_CLAUDE_5_5_SONNET=us-east5        # Agent Platform region for Claude Sonnet 5.5 (v2.1.284+); since v2.1.332 the sonnet alias and background requests read it, and with only the 4_5 variable set they go to CLOUD_ML_REGION or us-east5
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1    # Opt in gateway /v1/models discovery for /model picker (v2.1.129+)
CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS=3000  # Extend the LLM gateway /v1/models discovery timeout (default 3s; v2.1.269+)
CLAUDE_CODE_GATEWAY_HINT_HEADERS=1              # Send the x-claude-code-* hint headers (request-class, agent-type, prev-tool-durations, compaction, context-compacted, and prompt-id from v2.1.283) through a gateway or third-party provider; a direct Anthropic API connection sends them by default, and =0 stops them everywhere (v2.1.273+)
CLAUDE_CODE_AUTO_MODE_SERVER=0                  # Skip the server-side auto-mode checks and use Claude Code's own classifier requests (see the note below)
CLAUDE_CODE_AUTO_MODE_MODEL=claude-sonnet-4-6   # Full model ID for the client-side auto mode classifier; Opus 5, Sonnet 5.5, Opus 5.5, and models your organization's model policy excludes are ignored (the default classifier model reviews instead); no effect on server-side auto mode (v2.1.302+)
CLAUDE_CODE_MODEL_CATALOG=off                   # Stop Bedrock, Mantle, Agent Platform, and Foundry sessions loading model settings from the signed file on downloads.claude.ai (v2.1.311+)
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0              # Keep the full system prompt; =1 uses the shorter one on any model. Since v2.1.312 Bedrock, Mantle, Agent Platform, and Foundry use the shorter prompt for model names Claude Code does not recognize, even when they front Sonnet or Haiku
CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK=1          # Turn off the automatic model switch after a safety classifier flags a request (the switchModelsOnFlag setting); since v2.1.312 the switch also covers model names Claude Code does not recognize

Sources for the entries above:151290237284153213214223224216220221222272281282393527535538547

CLAUDE_CODE_AUTO_MODE_SERVER: server-side review is the default (v2.1.278+) for Enterprise and Claude API accounts, on Claude Platform on AWS, Bedrock, Agent Platform, and Foundry, and through gateways, and the server-side classifier does not charge for classifier overhead. Set 0 to use Claude Code’s own classifier requests. On a direct Anthropic API connection the variable requires v2.1.281 or later, and server-side review is the default there with telemetry off (v2.1.282+). The docs call the variable temporary: it may be removed in a later release.475

Behavior control:

DISABLE_AUTOUPDATER=1                           # Prevent automatic background updates
DISABLE_UPDATES=1                               # Block all update paths including manual `claude update` (v2.1.118+, stricter than DISABLE_AUTOUPDATER)
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1       # Homebrew/WinGet installs run package-manager upgrade in background, then prompt restart (v2.1.129+)
DISABLE_TELEMETRY=1                             # Opt out of usage telemetry
CLAUDE_CODE_DISABLE_FEATURE_FLAGS=1             # Stop feature-flag fetching without turning telemetry off: every flag uses its built-in default, and Remote Control and the other flag-gated features are unavailable (v2.1.319+; DISABLE_GROWTHBOOK is the older name and the only one v2.1.124-318 read)
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1            # Start sessions in Code Mode (experimental, v2.1.323+); 0 keeps it off, and 0 in managed settings blocks it for an organization; ignored in a project's settings files
CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES=1  # Turn off subagent progress summaries and the requests that write them (documented in the v2.1.323 release notes, available since 2.1.318)
CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME=1      # Skip a tool call that a hook deferred when you resume or continue with -p; ignored in a settings env block (v2.1.328+)
CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION=1      # Ask for uncompressed model responses behind a proxy that cuts compressed ones off; not advised for self-hosted runners or Remote Control; ignored in project and local settings (v2.1.331+)
CLAUDE_CODE_RESUME_HINT_COMMAND=mytool          # In a wrapper that starts Claude Code: the exit hint prints "mytool --resume <session-id>"; ignored in a settings env block (v2.1.323+)
CLAUDE_CODE_FULL_SIGN_IN_LINK=1                 # Print the full sign-in link when the short one shows an error or a script reads values from it (v2.1.330+)
CLAUDE_CODE_DISABLE_SHIP=1                      # Turn off /ship and /steward, for example from the env block of managed settings (v2.1.331+)
DISABLE_ERROR_REPORTING=1                       # Opt out of error reporting; any non-empty value counts, 0 and false included
DISABLE_FEEDBACK_COMMAND=1                      # Disable /feedback, /bug, /share and Claude-drafted feedback (the older name DISABLE_BUG_COMMAND is still accepted)
CLAUDE_CODE_DISABLE_WEB_FETCH=1                 # Turn off the WebFetch tool; WebSearch stays available (v2.1.285+)
CLAUDE_CODE_DISABLE_ARTIFACT=1                  # Turn the Artifact tool off for one session; while it is set, no settings file turns artifacts back on
CLAUDE_CODE_ARTIFACT_AUTO_OPEN=0                # Do not open the browser when a new artifact is published
CLAUDE_CODE_SKIP_PROMPT_HISTORY=1               # Write no prompt history or transcript; the session never appears in --resume, --continue, or up-arrow history (ephemeral scripted runs)
CLAUDE_CODE_TRANSCRIPT_LOCAL_GC=1               # In a long -p or Agent SDK session, drop the pre-compaction history from a transcript over 5 MB after each compaction; resume still restores the conversation; environment only (v2.1.287+)
CLAUDE_CODE_SYNC_SKILLS=1                       # Make a -p run download the skills enabled for your claude.ai account and wait for the list before its first query; since v2.1.311 a session with feature-flag fetching off reuses a list up to 10 minutes old that another session on the machine fetched; in an interactive session the variable needs v2.1.323 or later
CLAUDE_CODE_DISABLE_NESTED_SESSION_ID=1         # On a self-hosted runner, let claude -p run inside a session share that session's ID and transcript (v2.1.317+)
CLAUDE_CODE_DISABLE_CFC_PROMPT=1                # Keep the Claude in Chrome tools but leave the Chrome section out of the system prompt; in VS Code (v2.1.314+) also out of a session's messages (v2.1.257+)
FORCE_HYPERLINK=0                               # Render terminal hyperlinks as plain text; =1 forces OSC 8 links on where detection misses them. false, no, and off also turn links off since v2.1.314 (they turned them on before)
CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP=1    # Keep system cross-certificates that certify each other in a loop, for a private CA that needs one (v2.1.316+)
OTEL_EXPORTER_OTLP_TIMEOUT=25000                # OTel's standard export timeout (milliseconds by the OTel convention); since v2.1.323 an OTLP export behind a proxy has 25 seconds to reach the collector, which is also the most this variable can allow (v2.1.317 to v2.1.322: 10 seconds, or this value up to 30 seconds); release notes only, the env-vars page has no row for it
CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES=2      # Cap re-sends of a non-streaming fallback request that timed out (v2.1.285+)
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS=5000 # Starting delay of the exponential backoff between retries of a 529 overloaded request, default 500; whole milliseconds from 500 to 32000; no effect with CLAUDE_CODE_RETRY_WATCHDOG=1 or in fast mode (v2.1.292+)
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS=60000 # Ceiling of that backoff, default 32000 ms; whole milliseconds from 32000 to 300000, and values above 64000 need v2.1.323 (v2.1.296+)
CLAUDE_CODE_RETRY_WATCHDOG=1                     # Unattended sessions: retry 429 and 529 capacity errors indefinitely, backing off up to 5 minutes or until the limit resets (v2.1.186+)
CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS=1800000   # Cap, per request, on how long the watchdog waits out 429 and 529 errors; unset means no limit (v2.1.295+)
CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS=3600000 # Under the watchdog, end a request at a usage limit that resets further away than this instead of waiting it out (v2.1.301+)
CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS=60000 # Minimum interval between checks that a usage limit was lifted before its reset, while the watchdog waits on it (v2.1.305+)
CLAUDE_CODE_RESTRICTED=1                        # Restricted mode: no command/code tools or WebFetch unless named in --tools; only managed settings and --settings load; ignored in a settings file's env block (v2.1.248+)
CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT=1      # Turn off the 2-minute limit and the denials on critical-path rm/rmdir; launch environment only, a copy in a settings env block is ignored (v2.1.281+; see the note below)
CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT=1    # Skip the prompt for a recursive rm whose target is only command-substitution output, such as rm -rf "$(pwd)" (v2.1.281+)
CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT=1     # Flag more of the shell -c scripts Claude Code cannot check, including ones that name neither rm nor rmdir; set it in the launch environment, not a settings env block; no effect when CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT is 1 (v2.1.299+)
DISABLE_COST_WARNINGS=1                         # Hide cost warnings
DISABLE_PROMPT_CACHING=1                        # Disable prompt caching globally
DISABLE_PROMPT_CACHING_SONNET=1                 # Disable for Sonnet only
DISABLE_PROMPT_CACHING_OPUS=1                   # Disable for Opus only
ENABLE_PROMPT_CACHING_1H=1                      # Opt into 1-hour prompt cache TTL (v2.1.108+; for API key, Bedrock, Agent Platform, Foundry, and Claude Platform on AWS users)
ENABLE_PROMPT_CACHING_1H_BEDROCK=1              # Deprecated alias for the above; v2.1.108+ still honors it on Bedrock but logs a deprecation notice
FORCE_PROMPT_CACHING_5M=1                       # Force 5-minute cache TTL (v2.1.108+)
CLAUDE_CODE_PROMPT_CACHE_TTL=1h                 # Main-conversation cache TTL, 5m or 1h; beats the promptCacheTtl setting (v2.1.242+)
CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL=5m        # TTL for subagents, workflows, forks, compaction, titles; beats subagentPromptCacheTtl (v2.1.242+)
ENABLE_TOOL_SEARCH=auto                         # MCP tool search: unset or true defers MCP tools (the default); auto defers once definitions reach 10% of the context window; auto:N sets the threshold; false loads every tool upfront (see the note below)
CLAUDE_CODE_HIDE_CWD=1                          # Hide the working directory in the startup logo (v2.1.119+)
CLAUDE_CODE_FORK_SUBAGENT=0                     # Turn fork subagents off; on by default in the terminal and, since v2.1.302, in claude -p, the Agent SDK, the desktop app, and VS Code (claude mcp serve never offers them)
CLAUDE_CODE_FORCE_SYNC_OUTPUT=1                 # Force synchronized terminal output when auto-detection misses it, such as Emacs eat (v2.1.129+)
CLAUDE_CODE_SESSION_ID=...                      # Read-only: set in Bash and PowerShell tool subprocesses, hook commands, and stdio MCP server subprocesses; for Bash, PowerShell, and hooks it matches the session_id passed to hooks and updates on /clear (v2.1.132+)
CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1          # Skip the fullscreen alternate-screen renderer; keep the conversation in the terminal's native scrollback (v2.1.132+)
CLAUDE_EFFORT=...                               # Read-only: current effort level inside hooks and Bash tool subprocess (v2.1.133+)
CLAUDE_CODE_FORWARD_SUBAGENT_TEXT=1             # Include subagent text + thinking in stream-json output; pairs with --forward-subagent-text (v2.1.211+). Covers depth-2+ nested subagents as of v2.1.219
CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION=200    # Per-session WebSearch cap (default 200; v2.1.212+). Since v2.1.290 an interactive session's budget refills instead of ending at 200 (next line)
CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR=100     # WebSearch budget refill rate: 100 calls/hour by default in an interactive session, 0 (off) in a non-interactive one (v2.1.290+)
CLAUDE_CODE_DISABLE_ATTACHMENTS=1               # Send @-mentions as plain text instead of expanding file content; a repo's .claude/settings.json or settings.local.json can no longer set it (v2.1.290)
CLAUDE_CODE_DISABLE_FILE_MENTIONS=1             # Hand Claude the path of an @ mention to read with its file tools, not the file's contents, so PreToolUse hooks see the read; ignored in project and local settings (v2.1.299+)
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS=900000        # WebFetch per-URL session cache TTL (default 15 min; v2.1.233+)
CLAUDE_CODE_WEBFETCH_DEADLINE_MS=300000         # WebFetch hard deadline: a server that never finishes its response fails the fetch after 300s by default; 0 disables (v2.1.268+)
CLAUDE_CODE_PROJECT_DIR_NAME=myproj             # Short name for the per-project transcript directory, for hosts that give each session its own config dir (v2.1.234+)
CLAUDE_CODE_GOAL_CHECKIN_MINUTES=30             # How long background tasks may keep a /goal waiting before Claude checks in on them; 0 disables (v2.1.234+)
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION=200       # No-op since v2.1.224, when the 200-spawn cap and this variable were removed; limit subagents with CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS (default 20) and CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH (default 3)
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS=20         # Cap on concurrently running subagents (default 20; a positive whole number, so it can be adjusted but not turned off; v2.1.217+)
CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0        # Upper bound in milliseconds on how long a workflow agent waits for a same-prefix sibling's first response before sending its own first request, so siblings read the cached prompt prefix; default 5000, and 0 disables the wait (v2.1.229+)
CLAUDE_CODE_LOOP_KEEPALIVE=1                    # Run one extra iteration of an interactive self-paced /loop when its second or later iteration ends with nothing scheduled (v2.1.319+)
CLAUDE_CODE_PLUGIN_DIR_WATCH=0                  # Mod reload when a mod's files change: 0 turns it off in every session; 1 turns it on in non-interactive sessions for a mod loaded with --plugin-dir, where it is on by default in interactive sessions (the env-vars page gives v2.1.287 as the floor). Since v2.1.321 headless sessions also reload mods in .claude/skills, and 0 turns that off
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS=64   # Raise the Workflow tool's per-run concurrent agent limit, 1-256, for inference-bound fan-outs (v2.1.269+)
CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL=sonnet         # Run every workflow agent on one model while other subagents keep theirs (v2.1.296; documented in the release notes only)
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=3           # Number of subagent layers allowed below the main conversation (default 3); set 1 to turn nesting off; a positive whole number, so it can be adjusted but not removed (v2.1.217+)

Sources for the entries above:149153283284290226230280282281233237235269272275276203221268547245295156157185193186232234251213250198191254394395396481527532536538

CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT is not an “always ask me” switch. By default, auto mode asks you about a critical-path removal such as rm -rf ~ in the terminal, with a two-minute countdown, and denies it everywhere else. With the variable set to 1, the docs say the classifier decides those removals in auto mode, in the terminal, the VS Code chat panel, -p runs, and Agent SDK sessions; bypassPermissions is the mode that gets a prompt with no time limit. To be asked every time, add an ask rule that matches the command: the docs say Claude Code then asks you even in auto mode, without a time limit.394

ENABLE_TOOL_SEARCH by model and provider: tool search is on by default, on Agent Platform too for Opus 4.5, Sonnet 4.5, Haiku 4.5, and later. On models earlier than Opus 4 and Sonnet 4, on earlier Agent Platform models, and on Microsoft Foundry deployments hosted on Azure, Claude Code loads MCP tools upfront, and true does not override that.476

Tool configuration:

BASH_DEFAULT_TIMEOUT_MS=300000                  # Foreground Bash/PowerShell command timeout (default 120000, 2 minutes)
BASH_MAX_TIMEOUT_MS=600000                      # Maximum timeout Claude can set for a foreground Bash/PowerShell command (default 600000, 10 minutes); a ceiling above 2 hours also becomes the background-command maximum in unattended sessions
BASH_MAX_OUTPUT_LENGTH=50000                    # Read-back window from the Bash working output file (default 30,000 chars, hard ceiling 150,000); ignored once the bashOutputMaxChars setting is set
CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1     # Return to the original working directory after each Bash or PowerShell command in the main session
MCP_TIMEOUT=60000                               # MCP server startup timeout (default 30000, 30 seconds)
MCP_TOOL_TIMEOUT=600000                         # MCP tool execution timeout (default 100000000, about 28 hours); HTTP, SSE, and claude.ai connector requests also time out after 60 s unless this or the per-server timeout is above 60000
MAX_MCP_OUTPUT_TOKENS=25000                     # MCP output limit
CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH=8192     # One number replaces both default limits, for every server in the session: 4,096 characters for server instructions and for the description of a tool that loads upfront, and 16,384 for the description of a tool Claude loads through tool search; 8192 raises the first and lowers the second (v2.1.280+; see the note below)
CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=120000       # Threshold before a long MCP tool call moves to the background (default 2 min; v2.1.212+)
CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1       # Wait for an MCP task inside its tool call instead of moving it to the background at once; the 2-minute auto-background still applies (added in the v2.1.319 release notes; the env-vars page says v2.1.304 or later)
CLAUDE_CODE_DISABLE_MCP_TASKS=1                 # Turn MCP tasks off; since v2.1.319 they run in the terminal without feature-flag fetching (Bedrock, Agent Platform, Foundry, LLM gateways, DISABLE_TELEMETRY)
CLAUDE_CODE_MCP_STARTUP_WAIT_MS=10000           # Bound how long the first non-interactive turn waits for still-connecting MCP servers; 0 = don't wait (v2.1.274+)
CLAUDE_CODE_TOOL_MEMORY_LIMIT=4G                # Opt-in memory cap (cgroup) on Linux and WSL, shared by all Bash, PowerShell and, from v2.1.246, Monitor commands in the session; a bare number is bytes, suffixes K/M/G/T; 0 or off disables. A command that cannot stay under the cap is killed by the kernel, and nothing in its result names the cap (v2.1.233+)
CLAUDE_CODE_ENABLE_TODO_TOOLS=1                 # Offer the TodoWrite/TaskCreate-family tools on models outside v2.1.268's allowlist (Claude 3.x, Opus 4.0-4.7, Sonnet 4.0-4.6, Haiku 4.5); elsewhere they are off unless set (first turned off on newer models in v2.1.233)
SLASH_COMMAND_TOOL_CHAR_BUDGET=15000            # Character budget for skill metadata shown to the Skill tool (default 1% of the context window, fallback 8,000; legacy name)

Sources for the entries above:290268217235186283284215251295213397478481

CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH sets two caps at once. By default Claude Code cuts server instructions, and the description of a tool that loads upfront, at 4,096 characters, and cuts the description of a tool that Claude loads through tool search at 16,384 characters. The variable replaces both with the number you set, so 8192 raises the first and lowers the second. The variable requires v2.1.280 or later. Descriptions and instructions from some of the MCP servers Anthropic hosts at api.anthropic.com reach Claude in full (v2.1.299), and the variable does not cut them.477

Background command time limit in unattended sessions (v2.1.288+): in -p, Agent SDK, CI, and cloud sessions, background Bash and PowerShell commands stop after a time limit, their timeout when run with run_in_background (default 30 minutes, or 10 minutes in a claude -p run whose prompt is passed as text rather than with --input-format stream-json; maximum 2 hours), and Claude is notified when one is stopped.226478 Terminal, desktop app, and VS Code sessions have no limit on background commands.231234

Network and proxy:270271

HTTP_PROXY=http://proxy:8080                    # HTTP proxy
HTTPS_PROXY=https://proxy:8080                  # HTTPS proxy
CLAUDE_CODE_GZIP_REQUEST_BODIES=0              # Turn off gzip compression of large request bodies sent to api.anthropic.com, on even with telemetry off since v2.1.300
NO_PROXY=localhost,example.com                  # Bypass proxy for domains
CLAUDE_CODE_CLIENT_CERT=/path/to/cert           # mTLS certificate
CLAUDE_CODE_CLIENT_KEY=/path/to/key             # mTLS private key
CLAUDE_CODE_CLIENT_KEY_PASSPHRASE=pass          # mTLS passphrase

UI and terminal:

CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1            # Don't update terminal title
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL=1             # Skip IDE extension install
CLAUDE_CODE_SHELL=/bin/zsh                      # Shell for Bash tool commands: a bash or zsh path; other shells such as fish are not supported and the value is ignored
USE_BUILTIN_RIPGREP=1                           # Use included ripgrep (default)
CLAUDE_CONFIG_DIR=~/.myconfig                   # Custom config directory; not settable from project-settings env (v2.1.251)
IS_DEMO=1                                       # Hide sensitive UI elements
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1          # Remove run_in_background and Ctrl+B and stop automatic backgrounding; MCP tasks and the Monitor tool still run in the background
CLAUDE_CODE_TMPDIR=/path/to/tmp                 # Override temp directory; not settable from project-settings env, nor are TMPDIR/TMP/TEMP (v2.1.251)
CLAUDE_CODE_DISABLE_1M_CONTEXT=1               # Hold all native-1M models to 200K via auto-compaction (v2.1.223 widened scope); also the opt-out for the v2.1.287 1M default on Bedrock/Agent Platform/Foundry/Claude apps gateway
CLAUDE_CODE_AUTO_COMPACT_WINDOW=200k           # Auto-compact window, 100000 to 1000000 tokens; k and M suffixes since v2.1.304 (200k had set a 100K window), out-of-range values warn
CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1  # Let claude ultrareview run in a folder you have not trusted where it cannot ask, such as CI; environment only, not a settings env block (v2.1.309+)
CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS=150000     # Context size at which idle compaction applies, default 200000; values below 100000 are raised to 100000 (see the note below)
CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1  # Let unrecognized model IDs exceed the assumed context window (v2.1.223); that assumed window is 1M since v2.1.323, 200K before
CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS=120000       # Plugin marketplace git timeout (default 120s, was 30s)
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1        # Remove built-in commit/PR instructions
CLAUDE_CODE_DISABLE_CRON=1                    # Stop scheduled cron jobs mid-session
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS=30000 # SessionEnd hooks time budget (default 1.5 s, raised to the highest per-hook timeout in settings files, up to 60 s)
CLAUDE_CODE_USE_POWERSHELL_TOOL=1             # PowerShell tool switch: 1 enables it on Linux/macOS/WSL (needs pwsh on PATH) and in Bedrock, Agent Platform and Foundry sessions on Windows with Git Bash; 0 turns it off; on by default on Windows for claude.ai and Console accounts, and automatic on Windows without Git Bash (v2.1.111+)
CLAUDE_CODE_DISABLE_MOUSE_CLICKS=1           # Disable mouse click/drag/hover in fullscreen mode; wheel scroll still works (v2.1.195+)
CLAUDE_ENABLE_STREAM_WATCHDOG=0              # Disable the streaming idle watchdog (on by default for all providers since v2.1.196: aborts+retries after 5 min of silence)
CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1 # Turn off automatic memory-pressure reaping of idle background shell commands (v2.1.193+)
CLAUDE_CODE_ENABLE_AWAY_SUMMARY=1             # Session recap override: 1 forces recaps on when awaySummaryEnabled is false, 0 forces them off; beats the setting and the /config toggle (v2.1.108+)
CLAUDE_CODE_BG_TASKS_REPORT_RUNNING=0         # Restore pre-v2.1.269 behavior: remote/headless sessions may report "waiting for your input" while background agents still run
CLAUDE_AX_SCREEN_READER=1                     # Enable screen reader mode; same as --ax-screen-reader or "axScreenReader": true; ignored in project and local settings (v2.1.208 in the release notes; the env-vars page says v2.1.181 or later)
CLAUDE_AX_PREPARK_MS=50                       # Screen reader mode: pause before writing a changed line; default 0 (v2.1.287+)
OTEL_LOG_RAW_API_BODIES=1                     # Emit full API request/response bodies as OTel log events (v2.1.111+)
TRACEPARENT=00-...                            # W3C Trace Context parent (v2.1.110+, SDK/headless)
TRACESTATE=vendor=value                       # W3C Trace Context state (v2.1.110+, SDK/headless)

Sources for the entries above:2902032938429419722927527626826928196108112114144176178213183230388481527

Idle compaction: "idleCompaction": false in settings.json turns the feature off. The variable and the setting arrived in the v2.1.299 release notes, which say both need v2.1.290 or later. Since v2.1.314 idle compaction also runs in VS Code and the desktop app’s Code tab, for subscribers with telemetry off, and on Bedrock, Agent Platform, Foundry, and LLM gateways once the one-hour prompt cache is on.479

OpenTelemetry exporters + sensitive-field gating:265

OTEL_LOGS_EXPORTER=none                       # OTel logs exporter (supports 'none' for disable; v2.1.85 fixed crash)
OTEL_METRICS_EXPORTER=none                    # OTel metrics exporter (supports 'none'; v2.1.85 fixed crash)
OTEL_TRACES_EXPORTER=none                     # OTel traces exporter (supports 'none'; v2.1.85 fixed crash)
OTEL_LOG_TOOL_CONTENT=1                       # Opt in to emitting tool content in OTel spans (v2.1.101+, sensitive by default)
OTEL_LOG_TOOL_DETAILS=1                       # Opt in to tool_parameters in OTel tool_result events (v2.1.85+); as of v2.1.273 also puts real agent, skill, plugin, and MCP server names on cost and token metrics
OTEL_LOG_USER_PROMPTS=1                       # Opt in to emitting user prompts in OTel traces (v2.1.101+, sensitive by default)
OTEL_LOG_ASSISTANT_RESPONSES=0                # Gate the claude_code.assistant_response log event holding the model's response text (v2.1.193+)
OTEL_METRICS_INCLUDE_REPOSITORY=true          # Tag OTel metrics and events with vcs.* repository attributes; with OTEL_LOG_TOOL_DETAILS, commit events carry vcs.ref.head.* (v2.1.269+)
CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH=61440     # Maximum length of content-bearing OTel attributes, truncation marker included, in UTF-16 code units (default 61440, which is 60 KB; v2.1.214+)
OTEL_RESOURCE_INCLUDE_HOST=1                  # Add host.name and host.id to OTel resource attributes, off by default; ignored in project and local settings (v2.1.326+)
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1    # Disable nonessential traffic: auto-updates, telemetry, error reporting, /feedback, release notes, PR/MR badge checks, availability checks, and feature-flag fetching; any non-empty value counts, 0 and false included; v2.1.110 also stopped the auto-title Haiku request in headless/SDK when set; v2.1.290 also skips the startup connection warm-up
CLAUDE_CODE_ATTRIBUTION_HEADER=0              # Omit the system-prompt attribution block; behind a Claude apps gateway, set it in the env of the gateway's code or cli policy (v2.1.299+)
CLAUDE_CODE_ATTRIBUTION_PROJECT=project-uuid  # UUID or ID of the claude.ai Project your usage is reported under; launch environment only, wins over attributionProject and the organization default (v2.1.305+)
CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE=1 # Except on a direct Claude API connection: stop the two retries after an unrecognized 400 or 422; the second retry omits earlier thinking blocks (v2.1.334+)

Sources for the entries above:214213187232290268269538547

Project settings cannot turn telemetry on (v2.1.282): project and local settings files now ignore the OpenTelemetry variables that turn export on, set its endpoint, or capture content, such as CLAUDE_CODE_ENABLE_TELEMETRY, the OTEL_*_EXPORTER selectors, and OTEL_LOG_*. Values that turn something off (none for an exporter selector, 0 for a content flag) still apply from those files. Set the rest in your shell, user settings, or managed settings. An interactive session shows a startup notice when a project file sets one, and /status and claude doctor list the ignored names; -p and Agent SDK sessions show no notice, so check that your collector still receives data after upgrading.222224

v2.1.121+ LLM-request span attributes: stop_reason, gen_ai.response.finish_reasons, and user_system_prompt are now emitted on LLM-request spans. user_system_prompt is gated behind OTEL_LOG_USER_PROMPTS=1 since it can contain PII.151

v2.1.122+ event-level changes: Numeric attributes on api_request and api_error log events are emitted as numbers, which OTel collectors with a strictly typed schema need. The claude_code.at_mention log event fires when Claude Code resolves an @-mention.151

v2.1.300 attributes: api_request events split cache writes into cache_creation_5m_tokens and cache_creation_1h_tokens; trace spans carry GenAI semantic-convention attributes (gen_ai.provider.name, gen_ai.conversation.id, gen_ai.tool.name, error.type); user_prompt events and interaction spans record the prompt as a mod’s prompt.submit hook rewrote it; and tool_result events carry git_commit_id after git commit -q in reftable repositories.270

v2.1.301 and v2.1.302 attributes: tool_decision events carry classifier_verdict and permission_mode, so an auto mode classifier decision can be told apart from a permission rule, and, with OTEL_LOG_TOOL_DETAILS=1, classifier_category naming the built-in rule a classifier block matched (v2.1.301); v2.1.302 fills classifier_category for most classifier blocks and keeps tool_use_id, tool_source, and tool_parameters on the event when OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT is low.272273

v2.1.307 event: claude_code.safety_event fires for each tool call that a permission rule, auto mode, a safety check, a hook, or the sandbox stopped, prompted, or sent back; tool_use_id is on it except for end-of-turn events. The monitoring docs list it, along with classifier_verdict, permission_mode, and classifier_category.275276295 Claude Code stopped sending claude_code.safety_event in v2.1.312; the attributes above are unaffected.281

v2.1.312 to v2.1.317 telemetry: metrics, events, and spans carry anthropic.plan, anthropic.seat_type, anthropic.provider, and anthropic.custom_base_url (v2.1.317); mcp_server.name reports the real name of a fixed-URL remote MCP server declared by a plugin from the official Anthropic marketplace instead of custom (v2.1.312); and an export to an https:// endpoint through a proxy that never answers times out after 25 seconds, which is also the most OTEL_EXPORTER_OTLP_TIMEOUT can allow (v2.1.323+547). The four anthropic.* attributes are documented in the release notes only.281282

v2.1.326 to v2.1.332 telemetry: OTEL_RESOURCE_INCLUDE_HOST adds host.name and host.id to resource attributes, off by default (v2.1.326). claude_code.llm_request trace spans carry gen_ai.usage.*, gen_ai.response.model, and gen_ai.operation.name, and gen_ai.usage.input_tokens includes prompt cache tokens (v2.1.331). Text Claude sends through SendUserMessage or Cowork’s message tool produces an assistant_response event when response logging is on, and tool_input shows only that text’s length unless OTEL_LOG_ASSISTANT_RESPONSES=1 (v2.1.332). Desktop Code tab sessions now report service.name as claude-code-desktop: update filters keyed on claude-code, or set OTEL_SERVICE_NAME to keep the old name (v2.1.332). /status and claude doctor say when an OpenTelemetry exporter has no endpoint and its data would likely be lost (v2.1.328).527

v2.1.193+ claude_code.assistant_response log event: Claude Code can emit the model’s full response text as an OTel log event, gated by OTEL_LOG_ASSISTANT_RESPONSES. The gating has an upgrade gotcha worth knowing: when OTEL_LOG_ASSISTANT_RESPONSES is unset it follows OTEL_LOG_USER_PROMPTS, so any deployment already logging prompt content will start receiving assistant response content on upgrade. Set OTEL_LOG_ASSISTANT_RESPONSES=0 to keep telemetry prompts-only.176

v2.1.214 telemetry additions: OTel log events now carry message.uuid, client_request_id, and tool_source attributes for message-level correlation and tool provenance; the subagentStatusLine payload gained the subagent’s reasoning effort (v2.1.323 removed the subagentStatusLine setting: subagent rows always use the default look, and a settings file that still holds the key loads as before527); and the new CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH env var configures the 60 KB truncation limit on OTel content attributes.187

v2.1.265 gateway telemetry: Claude apps gateway sessions now export OpenTelemetry directly to a collector when the gateway’s managed settings name one in OTEL_EXPORTER_OTLP_ENDPOINT, instead of routing through the gateway’s relay; sessions without a named collector keep using the relay. The same release adds user.email and user.groups to the telemetry Claude Desktop and Cowork send through a Claude apps gateway, matching terminal sessions.212

v2.1.280 hook telemetry: the hook_execution_complete OTel event now carries hook output sizes and the number of oversized outputs saved to a file.217

v2.1.287 prompt_text: the user_prompt event now carries prompt_text, a copy of prompt for backends that nest dotted keys. Wherever your pipeline drops or masks prompt, do the same for prompt_text.229

API / Model control:265

CLAUDE_CODE_EXTRA_BODY='{...}'                # Inject extra body fields into API calls; v2.1.113 fixed 400 errors with output_config.effort on Vertex/subagent calls
CLAUDE_CODE_MAX_CONTEXT_TOKENS=200000         # Context window size Claude Code assumes for the active model; for a model routed through ANTHROPIC_BASE_URL whose window differs from the built-in size for its name (v2.1.98 fixed it to honor DISABLE_COMPACT); since v2.1.325 it also sets the window of unrecognized model IDs that start with claude-, such as a gateway's claude-sonnet-latest
CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS=25000 # Override default token limit for file read operations (v2.1.0+); a Read call with allow_large can pass it when the context has room (v2.1.296+)
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK=1   # Do not fall back to non-streaming API on streaming failures (v2.1.83+)
CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS=1      # Stop sending structured outputs, for Mantle or gateways that reject them; session titles, memory recall, and prompt hooks failed there before (v2.1.288+)
ANTHROPIC_BETAS=beta1,beta2                   # Enable beta API headers; v2.1.78 fixed silent ignore on Haiku models
ANTHROPIC_SMALL_FAST_MODEL=arn:...            # Deprecated: set ANTHROPIC_DEFAULT_HAIKU_MODEL instead, which also sets the model for background functionality (Bedrock ARN supported)

Sources for the entries above:235237231234290398527

Plugins / MCP:265215268233398527

CLAUDE_CODE_PLUGIN_CACHE_DIR=~/.claude/plugins # Plugins root directory (the default is shown): despite the name it sets the parent directory, and marketplaces and the plugin cache live in subdirectories under it (v2.1.72 fixed it creating literal '~' directories)
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE=1 # Preserve plugin marketplace cache when git pull fails (offline-friendly; v2.1.90+)
CLAUDE_CODE_MCP_SERVER_NAME=server1           # Passed to MCP headersHelper scripts so one helper can serve multiple servers (v2.1.85+)
CLAUDE_CODE_MCP_SERVER_URL=https://...        # Passed to MCP headersHelper scripts alongside the name (v2.1.85+)
MCP_SDK_GENERATION=v1                         # Runs the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks); the v1 client is removed (v2.1.323+), and v2 is the default everywhere
MCP_PROTOCOL_NEGOTIATION=legacy               # Opt out of MCP 2026-07-28 protocol negotiation: with direct HTTP servers (default everywhere as of v2.1.274) and, since v2.1.292, with local (stdio) servers on every install, Bedrock, Agent Platform, and Foundry included and, since v2.1.299, with cloud session and Remote Control connectors

Shell / IDE:265290398

CLAUDE_CODE_SHELL_PREFIX=/path/to/logger.sh   # Wrapper for the shell commands Claude Code spawns; it receives each command line as $1 and must run it, e.g. exec bash -c "$1" (v1.0.61+; see the note below)
CLAUDE_CODE_GIT_BASH_PATH='C:\Program Files\Git\bin\bash.exe'  # Windows only: path to Git Bash's bash.exe when it is not on PATH; in a settings.json env block write "C:\\Program Files\\Git\\bin\\bash.exe"; since v2.1.219 an invalid path is ignored with a warning instead of stopping startup
CLAUDE_CODE_EXIT_AFTER_STOP_DELAY=60000       # SDK: exit after N ms idle (v2.0.35+)
CLAUDE_CODE_AUTO_CONNECT_IDE=false            # Disable IDE auto-connection (v1.0.61+)

CLAUDE_CODE_SHELL_PREFIX takes a wrapper script. The prefix wraps the shell commands Claude Code spawns: Bash tool calls, hook commands, status line commands, and stdio MCP server startup commands (PowerShell hooks and exec-form hooks run without it). Set to /path/to/logger.sh, it runs each command as /path/to/logger.sh '<command>': the wrapper receives the command line as a single shell-quoted argument in $1 and must re-evaluate it with a shell, for example exec bash -c "$1". The docs warn that treating $1 as a bare executable path breaks stdio MCP servers that pass arguments such as npx -y <package>. The same wrapper sits in front of your hook commands, so confirm they still run after you set it.480

Enterprise / auth:265183290

CLAUDE_CODE_PROXY_RESOLVES_HOSTS=1            # Opt into proxy-side DNS resolution (v2.0.55 moved this from default-on to opt-in)
CLAUDE_CODE_API_KEY_HELPER_TTL_MS=300000      # TTL for dynamically generated API keys via apiKeyHelper (apiKeyHelper refresh added v0.2.74 with 5-min default; env var added v0.2.117)
CLAUDE_CODE_PROCESS_WRAPPER=/path/to/wrapper  # Launch the processes Claude Code starts from its own binary through a corporate launcher; same as the processWrapper setting (variable v2.1.208+, setting v2.1.210+). Set it in the env block of user or managed settings, not as a shell export; ignored on Windows

Skill variables (v2.1.69+):108

${CLAUDE_SKILL_DIR}                            # Self-reference for skills to locate their own directory

SDK caller identity (v2.1.51+):

CLAUDE_CODE_ACCOUNT_UUID=uuid                  # Provide account UUID synchronously for SDK callers
CLAUDE_CODE_USER_EMAIL=user@example.com        # Provide user email for SDK callers
CLAUDE_CODE_ORGANIZATION_UUID=uuid             # Provide organization UUID for SDK callers

Debugging:399

DEBUG=1                                         # Enable debug mode, same as --debug (log at ~/.claude/debug/<session-id>.txt)
CLAUDE_CODE_DEBUG_LOG_LEVEL=verbose             # Minimum level written to the debug log: verbose, debug (the default), info, warn, or error

References


  1. Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added automatic skill hot-reload”; “Added language setting to configure Claude’s response language”; “Added respectGitignore support in settings.json for per-project control over @-mention file picker behavior”; “Added IS_DEMO environment variable to hide email and organization from the UI, useful for streaming or recording sessions”; “Changed Shift+Enter to work out of the box in iTerm2, WezTerm, Ghostty, and Kitty without modifying terminal configs”. ↩

  2. GitHub Releases. v2.1.4: Added CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable, fixed OAuth token refresh for ‘Help improve Claude’ setting. January 2026. ↩

  3. GitHub Releases. v2.1.5: CLAUDE_CODE_TMPDIR environment variable to override temp directory. January 2026. ↩

  4. Claude Code GitHub CHANGELOG. v2.1.49 (Feb 19): --worktree (-w) flag, isolation: "worktree" for subagents, background: true for agent definitions, ConfigChange hook event, MCP OAuth step-up auth, SDK supportsEffort/supportedEffortLevels/supportsAdaptiveThinking fields, CLAUDE_CODE_SIMPLE includes Edit tool, Sonnet 4.5 1M removed for Sonnet 4.6, WASM memory fix, permission restriction reasons. v2.1.50 (Feb 20): WorktreeCreate/WorktreeRemove hooks, startupTimeout for LSP servers, claude agents CLI command, CLAUDE_CODE_DISABLE_1M_CONTEXT env var, Opus 4.6 fast mode full 1M context, CLAUDE_CODE_SIMPLE disables MCP/hooks/CLAUDE.md, VSCode /extra-usage, agent teams memory leak fix, LSP diagnostic leak fix, Linux glibc < 2.30 fix, multiple memory optimizations. ↩

  5. Claude Code v2.1.51 release notes, GitHub, February 24, 2026, fetched November 11, 2026: “Env var interpolation now requires an explicit allowedEnvVars list in the hook configuration.”; “HTTP hooks are now routed through the sandbox network proxy when sandboxing is enabled, enforcing the domain allowlist. HTTP hooks are not supported for SessionStart/Setup events.” Claude Code CHANGELOG, section 2.1.51, same fetch: “Added claude remote-control subcommand for external builds, enabling local environment serving for all users.”; “Added support for custom npm registries and specific version pinning when installing plugins from npm sources”; “Updated plugin marketplace default git timeout from 30s to 120s and added CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS to configure.”; “Tool results larger than 50K characters are now persisted to disk (previously 100K).”; “BashTool now skips login shell (-l flag) by default when a shell snapshot is available, improving command execution performance.”; “Fixed a security issue where statusLine and fileSuggestion hook commands could execute without workspace trust acceptance in interactive mode.”; “The /model picker now shows human-readable labels”. Orchestrate teams of Claude Code sessions, Claude Code documentation, same fetch, covers plan approval for teammates and, under “Enforce quality gates with hooks”, the TeammateIdle and TaskCompleted hooks. ↩

  6. GitHub Releases. v2.1.69: /claude-api skill, InstructionsLoaded hook event, agent_id/agent_type/worktree in hook events, ${CLAUDE_SKILL_DIR}, /reload-plugins, sandbox.enableWeakerNetworkIsolation, includeGitInstructions setting, remote-control custom names, Voice STT 10 new languages (20 total), effort level display, Ctrl+U exit bash, numeric keypad support, Sonnet 4.5→4.6 auto-migration. 70+ bug fixes. March 5, 2026. ↩↩

  7. GitHub Releases. v2.1.72: Tool search with ANTHROPIC_BASE_URL, w key in /copy for file writes, /plan description args, ExitWorktree tool, CLAUDE_CODE_DISABLE_CRON, expanded bash allowlist (lsof/pgrep/tput/ss/fd/fdfind), restored model on Agent tool, simplified effort symbols (○/◐/●), /config navigation improvements, bundle size −510KB, VSCode URI handler. March 10, 2026. ↩

  8. GitHub Releases. v2.1.74: /context actionable suggestions. autoMemoryDirectory setting. --plugin-dir override behavior change. CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS configurable timeout. Managed policy enforcement fix (ask rules bypassed by user allow). Memory leak fix (streaming buffers). RTL text rendering fix. MCP OAuth fixes. March 12, 2026. ↩

  9. Claude Code CHANGELOG. Primary source for v2.1.105 through v2.1.112. v2.1.105 (PreCompact hooks can block, monitors plugin manifest, EnterWorktree path arg, /proactive alias, skill description cap raised to 1536). v2.1.107 (thinking hint timing). v2.1.108 (ENABLE_PROMPT_CACHING_1H, Session Recap//recap, model can invoke built-in slash commands via Skill tool, /undo alias, /model mid-conversation warning). v2.1.109 (extended-thinking indicator). v2.1.110 (/tui//tui fullscreen, push notifications tool for Remote Control, /focus separated from Ctrl+O, autoScrollEnabled, --resume/--continue resurrects scheduled tasks, /context//exit//reload-plugins from Remote Control clients, Session Recap for telemetry-disabled users, TRACEPARENT/TRACESTATE distributed tracing, Write tool informs model when user edited diff, security hardening around PermissionRequest hooks and open-in-editor). v2.1.111 (Opus 4.7 launch support, xhigh effort, /effort interactive slider, Auto Mode for Max without flag, /less-permission-prompts, /ultrareview, “Auto (match terminal)” theme, Windows PowerShell tool via CLAUDE_CODE_USE_POWERSHELL_TOOL, read-only Bash permission reduction with glob patterns, /setup-vertex and /setup-bedrock improvements, OTEL_LOG_RAW_API_BODIES). v2.1.112 (“temporarily unavailable” hotfix for Opus 4.7 in Auto Mode). See also: GitHub blog on Opus 4.7 GA, Cyber Verification Program form. ↩

  10. Claude Code CHANGELOG, composite reference for v2.1.116 (April 20, 2026), v2.1.117 (April 22, 2026), v2.1.118 (April 23, 2026), and v2.1.119 (April 23, 2026). v2.1.116: /resume 67% faster on 40MB+ sessions; faster MCP startup with multiple stdio servers (resources/templates/list deferred to first @-mention); inline thinking spinner (“still thinking”, “thinking more”, “almost done thinking”); /config search now matches option values; /doctor opens during a turn; plugin auto-install missing dependencies; Bash tool surfaces gh GitHub API rate-limit hint; Settings Usage tab shows immediately and survives rate-limited usage endpoint; agent frontmatter hooks: fire when running as main-thread agent via --agent; security fix: sandbox auto-allow no longer bypasses dangerous-path check for rm/rmdir targeting /, $HOME, or other critical roots. (The April 16 system-prompt verbosity constraint that v2.1.116 reverted is documented in the postmortem at 150 rather than the v2.1.116 release notes.)

    v2.1.117: CLAUDE_CODE_FORK_SUBAGENT=1 for forked subagents on external builds; agent frontmatter mcpServers load for main-thread agent sessions via --agent; /model selections persist across restarts even when project pins different model and startup header shows pin source; /resume offers stale-session summary; concurrent MCP startup (local + claude.ai) by default; blockedMarketplaces/strictKnownMarketplaces enforced on plugin install/update/refresh/autoupdate; Advisor Tool experimental with label, learn-more link, startup notification when enabled; cleanupPeriodDays retention sweep covers ~/.claude/tasks/, ~/.claude/shell-snapshots/, ~/.claude/backups/; OTel user_prompt events include command_name/command_source (custom/MCP names redacted unless OTEL_LOG_TOOL_DETAILS=1); cost.usage/token.usage/api_request/api_error include effort attribute; native macOS/Linux builds replace Glob/Grep with embedded bfs/ugrep via the Bash tool; default effort for Pro/Max on Sonnet 4.6 and Opus 4.6 is now high (was medium); fix: Opus 4.7 sessions were computing /context against 200K window instead of native 1M, causing premature autocompact. v2.1.118: vim visual mode (v) and visual-line mode (V) with selection, operators, visual feedback; /cost and /stats merged into /usage (typing shortcuts retained); named themes via /theme or ~/.claude/themes/*.json (plugins ship themes/ directory); hooks invoke MCP tools directly via type: "mcp_tool"; DISABLE_UPDATES env var blocks all update paths including manual claude update (stricter than DISABLE_AUTOUPDATER); WSL inherits Windows-side managed settings via wslInheritsWindowsSettings policy; $defaults sentinel in autoMode.allow/soft_deny/environment adds custom rules alongside built-in list; “Don’t ask again” auto mode opt-in; claude plugin tag creates release git tags with version validation.

    v2.1.119: /config settings (theme, editor mode, verbose) persist to ~/.claude/settings.json with project/local/policy precedence; prUrlTemplate setting points footer PR badge at custom code-review URL instead of github.com; CLAUDE_CODE_HIDE_CWD hides working directory in startup logo; --from-pr accepts GitLab MR, Bitbucket PR, GitHub Enterprise PR URLs; --print honors agent tools:/disallowedTools: frontmatter; --agent <name> honors permissionMode for built-in agents; PowerShell tool commands auto-approve in permission mode (matches Bash); PostToolUse/PostToolUseFailure hook inputs include duration_ms (tool execution time, excluding permission prompts and PreToolUse hooks); subagent and SDK MCP server reconfiguration connects servers in parallel; security: blockedMarketplaces correctly enforces hostPattern and pathPattern entries; OTel tool_result and tool_decision events include tool_use_id; tool_result includes tool_input_size_bytes; status line stdin JSON includes effort.level and thinking.enabled; tool search disabled by default on Vertex AI (opt in with ENABLE_TOOL_SEARCH). ↩

  11. An update on recent Claude Code quality reports. Anthropic engineering postmortem, April 23, 2026. Covers three independent quality regressions resolved by April 20 (v2.1.116), with usage limits reset for all subscribers on April 23: (1) Reasoning effort default: changed from high to medium on March 4, 2026 to cut very long latency that made the UI appear frozen; reverted April 7 after users said they would rather default to higher intelligence and opt into lower effort for simple tasks. Affected Sonnet 4.6 and Opus 4.6. (2) Prompt cache thinking-clear bug: a change meant to clear older thinking once from sessions idle for over an hour instead cleared it on every turn for the rest of the session, causing forgetfulness, repetition, and faster usage limit drain. Active March 26 to April 10, fixed in v2.1.101. Affected Sonnet 4.6 and Opus 4.6. (3) System prompt verbosity constraint: added April 16 to handle Opus 4.7’s chattiness; the post says “One of these evaluations showed a 3% drop for both Opus 4.6 and 4.7” and “This impacted Sonnet 4.6, Opus 4.6, and Opus 4.7”; reverted April 20 in v2.1.116. Anthropic’s stated mitigations: a larger share of internal staff on the exact public build, improvements to the Code Review tool it uses internally, tighter controls on system prompt changes with a broad suite of per-model evals for each one, and, for any change that could trade off against intelligence, “soak periods, a broader eval suite, and gradual rollouts”. Fetched November 11, 2026. 

  12. Claude Code release notes — composite reference for v2.1.121 (April 28, 2026, 00:31 UTC) and v2.1.122 (April 28, 2026, 22:05 UTC). v2.1.121: alwaysLoad MCP server-config option (skip tool-search deferral); MCP startup auto-retry 3x; claude plugin prune and --prune cascade; type-to-filter /skills; PostToolUse hookSpecificOutput.updatedToolOutput extended from MCP-only to all tools; .claude/skills/, .claude/agents/, .claude/commands/ exempt from --dangerously-skip-permissions prompt; Vertex AI X.509 cert-based Workload Identity Federation (mTLS ADC); SDK mcp_authenticate redirectUri; OTel adds stop_reason, gen_ai.response.finish_reasons, and user_system_prompt (gated behind OTEL_LOG_USER_PROMPTS) to LLM-request spans; /terminal-setup enables iTerm2 clipboard access for /copy from tmux; tab title in language setting; CLAUDE_CODE_FORK_SUBAGENT=1 extended to non-interactive claude -p; faster post-upgrade startup (Recent Activity panel removed from release-notes splash); claude.ai connector deduplication against same upstream URL. v2.1.122: ANTHROPIC_BEDROCK_SERVICE_TIER env var (default/flex/priority) sent as X-Amzn-Bedrock-Service-Tier; /resume PR URL search across GitHub, GHE, GitLab, Bitbucket; /mcp shows hidden connectors with remove-duplicate hint and clarifies post-browser unauthorized message; OTel claude_code.at_mention log event for @-mention resolution; numeric attributes on api_request/api_error emitted as numbers (was strings). High-signal fixes across both: ~2GB memory leak in /usage, multi-GB RSS growth on image-heavy sessions, --resume corrupt-transcript-line skip + large external-build session crash fix, Bash recovery when CWD deleted/moved, Bedrock thinking-on-application-inference-profile fix, Vertex/Bedrock output_config extra-input rejection on structured output, ToolSearch missing nonblocking MCP tools that connected after session start, image-resize ceiling 2576→2000 px on newer models, !exit/!quit in bash mode no longer kills CLI, scrollback duplication on tmux/GNOME/Windows Terminal/Konsole, malformed hooks entry no longer invalidates the entire settings.json. ↩↩↩

  13. Release notes read May 6, 2026: Claude Code v2.1.126 release notes, Claude Code v2.1.128 release notes, Claude Code v2.1.129 release notes, Claude Code v2.1.131 release notes, Claude Code CHANGELOG, and the npm registry record for @anthropic-ai/claude-code, whose time field dates 2.1.131 to 2026-05-06T07:41:53Z. v2.1.126 added gateway model discovery for /model, claude project purge, OAuth code paste fallback, skill activation OTel, PowerShell primary-shell behavior on Windows, and changed --dangerously-skip-permissions protected-path prompting. v2.1.128 added zip support to --plugin-dir, MCP tool-count and zero-tool visibility, console-auth --channels, fixed EnterWorktree, and repaired plugin/cache/MCP/session issues. v2.1.129 added --plugin-url, CLAUDE_CODE_FORCE_SYNC_OUTPUT, CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE, skillOverrides, opt-in gateway model discovery via CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1, and the plugin manifest themes/monitors validation warning. v2.1.131 fixed VS Code extension activation on Windows and Mantle endpoint authentication; the release notes did not announce additional command or configuration additions. ↩↩↩

  14. Claude Code v2.1.132 release notes. May 6, 2026. Adds CLAUDE_CODE_SESSION_ID env var to the Bash tool subprocess (matches the session_id passed to hooks). Adds CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 env var to opt out of the fullscreen alternate-screen renderer and keep the conversation in the terminal’s native scrollback. Updates the /tui fullscreen startup banner to describe additional renderer benefits (lower memory usage, mouse support, auto-copy on select). Plus 20+ fixes spanning terminal/input handling (SIGINT, SSH disconnects, terminal modes, cursor positioning), text editing and pasting (emoji and grapheme corruption, vim operators, escape sequences, swallowed text after paste-starts-with-/), UI/rendering (fullscreen blank screen after sleep, scroll speed, scroll-wheel handling, autocomplete popup), session management (--resume failures, emoji truncation, plan-mode --permission-mode flag), command utilities (/usage, /terminal-setup, /effort, /status, /login, /upgrade), MCP server integration (tool fetching, authorization display, non-protocol data, unbounded memory growth in stdio MCP servers, tools/list retry), platform-specific issues (Windows Terminal, JetBrains IDE, macOS keyboards, X11 Linux), and Bedrock+Vertex 400 errors when ENABLE_PROMPT_CACHING_1H is set. ↩

  15. Claude Code v2.1.133 release notes. May 7, 2026. Adds worktree.baseRef setting (fresh | head); per the release notes, “the default fresh changes EnterWorktree’s base back to origin/<default> (it has been local HEAD since 2.1.128)”, and “set worktree.baseRef: "head" to keep unpushed commits in new worktrees.” Hooks now receive the active effort level via the effort.level JSON input field and the $CLAUDE_EFFORT env var; Bash tool commands can also read $CLAUDE_EFFORT. Adds sandbox.bwrapPath and sandbox.socatPath managed settings (Linux/WSL) for custom bubblewrap and socat binary locations. Adds parentSettingsBehavior admin-tier key ('first-wins' | 'merge') to opt SDK managedSettings (parent tier) into the policy merge. Fixes subagents not discovering project, user, or plugin skills via the Skill tool. Other fixes: parallel-session 401-after-refresh-token race, drive-root allow-rule scoping, MCP OAuth proxy and mTLS support, Remote Control stop/interrupt completing the cancel, cross-session /effort leakage, --remote-control listed in --help. ↩

  16. Claude Code v2.1.174 release notes, Claude Code v2.1.175 release notes, Claude Code v2.1.176 release notes, and the Claude Code Changelog (canonical). June 12, 2026. v2.1.174: wheelScrollAccelerationEnabled setting (disable mouse-wheel scroll acceleration in fullscreen mode); /model picker shows the family the Default resolves to as its own row (Opus on Max/Team Premium/Enterprise and pay-as-you-go API, Sonnet on Pro/Team); /model picker no longer shows a hardcoded Sonnet label when ANTHROPIC_DEFAULT_SONNET_MODEL pins a different Sonnet; VSCode Account & usage dialog (/usage) adds attribution showing cache misses, long context, subagents, and per-skill/agent/plugin/MCP breakdowns over the last 24h or 7d; fixes for Bedrock GovCloud (us-gov-*) inference-profile prefix deriving global instead of us-gov, background sessions inheriting another session’s ANTHROPIC_* provider env, git commit co-author model-name attribution, /advisor pre-selecting a blocked advisor model, skill hot-reload re-sending the entire listing, and the Fable 5 “consuming usage credits” banner showing for enterprise usage-billing accounts.

    v2.1.175: enforceAvailableModels managed setting: when enabled, the availableModels allowlist also constrains the Default model (a Default resolving to a disallowed model falls back to the first allowed model), and user/project settings can no longer widen a managed availableModels list. v2.1.176: session titles generated in the language of your conversation (set language to pin a specific language); footerLinksRegexes setting for regex-matched link badges in the footer row (user or managed settings); Bedrock credentials from awsCredentialExport cached until their Expiration instead of a fixed hour; availableModels enforcement hardened so alias picks can’t redirect to a blocked model via ANTHROPIC_DEFAULT_*_MODEL and /fast refuses to switch to a model outside the allowlist; auto mode falls back from Fable 5 to the best available Opus for orgs without Opus 4.8; hook if conditions for Read/Edit/Write tool paths (Edit(src/**), Read(~/.ssh/**), Read(.env)) now match correctly; Linux sandbox symlinked-settings start fix; /copy and mouse-selection copy reaching the system clipboard inside tmux over SSH; /cd and worktree moves no longer reporting the previous directory’s git branch; plus numerous Remote Control, claude agents, and background-session fixes. Fetched June 15, 2026. ↩↩↩↩

  17. Claude Code v2.1.181 release notes and v2.1.183 release notes, plus the Claude Code Changelog (canonical). June 17 to 19, 2026. v2.1.181: /config key=value sets any setting from the prompt (e.g. /config thinking=false), in interactive, -p, and Remote Control; sandbox.allowAppleEvents opt-in setting lets sandboxed commands send Apple Events on macOS; CLAUDE_CLIENT_PRESENCE_FILE env var points at a marker file to suppress mobile push notifications while you’re at the machine; bundled Bun upgraded to 1.4; long paragraphs stream line-by-line; mid-thinking API connection drops auto-retry; subagent panel idle-auto-hides after 30s and caps at 5 rows. v2.1.183: auto mode blocks destructive git commands (git reset --hard, git checkout -- ., git clean -fd, git stash drop) when you didn’t ask to discard work, git commit --amend on commits not made by the agent this session, and terraform destroy/pulumi destroy/cdk destroy unless you asked for the specific stack; deprecated/auto-updated-model warnings shown on stderr in -p and for agent-frontmatter models; attribution.sessionUrl setting omits the claude.ai session link from commits and PRs; /config --help lists shorthand keys; /config UI Enter/Space toggle and Esc saves-and-closes; removed the startup “setup issues” line. (v2.1.180 and v2.1.182 were not released.) Fetched June 19, 2026. ↩

  18. Claude Code v2.1.187 release notes, plus the Claude Code Changelog (canonical). June 23, 2026. v2.1.187: sandbox.credentials setting blocks sandboxed commands from reading credential files and secret environment variables; org-configured model restrictions apply across the /model picker, --model, /model, and ANTHROPIC_MODEL, with a “restricted by your organization’s settings” message when a restricted model is selected; mouse-click selection support in fullscreen menus (permission prompts, /model, /config); /install-github-app makes the GitHub Actions workflow/secret setup optional; /btw adds ←/→ navigation through earlier answers; /plugin surfaces recently-unused plugins for cleanup; claude --help now lists the --bg/--background flag. Fixes: --resume failing with “No conversation found” when the original -p run produced no model turns; --json-schema and workflow agent({schema}) structured output (no infinite StructuredOutput re-calls after success; follow-up turns reliably return structured output); remote MCP tool calls hanging for 5 minutes now abort with an error; Remote sessions ~2.7s slower to start after the agent-proxy CA trust install; pasted Korean/CJK mojibake in terminals delivering paste as per-byte extended-key events; /update over Remote Control hanging on a startup trust dialog; background jobs stuck in “working” when a turn ended without structured output; channel drops after navigating to the agents view / /bg / /tui / /update; agent stop-notification attribution and wording; subagent depth tracking on resume/fork; leaked agent worktree registrations cleaned up; Cmd+click URL open in Ghostty fullscreen on macOS; Esc/Ctrl-C/Ctrl-D during /share upload; [VSCode] extension unresponsive resuming a large session. Fetched June 23, 2026. ↩

  19. Claude Code Changelog (canonical), June 25 to 26, 2026 (v2.1.192 and v2.1.194 were not released). v2.1.193 (June 25): new autoMode.classifyAllShell setting routes all Bash/PowerShell commands through the auto-mode classifier instead of only arbitrary-code-execution patterns; auto-mode denial reasons added to the transcript, the denial toast, and /permissions recent denials; new claude_code.assistant_response OpenTelemetry log event carries the model’s response text, redacted unless OTEL_LOG_ASSISTANT_RESPONSES=1: when that var is unset it follows OTEL_LOG_USER_PROMPTS, so deployments already logging prompt content start receiving response content on upgrade (set OTEL_LOG_ASSISTANT_RESPONSES=0 to keep prompts-only); live file-path autocomplete in bash mode (!); startup notice when MCP servers need authentication, pointing at /mcp; automatic memory-pressure reaping for idle background shell commands (disable with CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1); plus fixes for stale /model state after /login, spurious backgrounding cancellation, phantom resumed-subagent spawns, and MCP headersHelper re-auth on 401/403. v2.1.195 (June 26): new CLAUDE_CODE_DISABLE_MOUSE_CLICKS env var disables mouse click/drag/hover in fullscreen mode while keeping wheel scroll; hook matchers with hyphenated identifiers (e.g. code-reviewer, mcp__brave-search) now exact-match instead of substring-matching (use mcp__brave-search__.* to match all tools from a hyphenated MCP server); plus voice-dictation fixes (macOS device-change silence; auto-submit for space-less languages), plugin enable/consent fixes, and background-job/agent-daemon reliability fixes. Fetched June 30, 2026. ↩↩

  20. Claude Code Changelog (canonical), June 29 to July 2, 2026. v2.1.196 (June 29): organization default models; readable default session names; clickable file attachments; claude mcp list/get no longer spawn repo-self-approved .mcp.json servers (untrusted workspaces show pending approval); streaming idle watchdog on by default with CLAUDE_ENABLE_STREAM_WATCHDOG=0 opt-out; /code-review finders merged (~25% token cut); Remote Control disabled for non-Anthropic ANTHROPIC_BASE_URL; background-session reliability improvements. v2.1.197 (June 30): Claude Sonnet 5 becomes the default model in Claude Code, with a native 1M-token context window and $2/$10 per MTok promotional pricing through August 31 (announcement). v2.1.198 (July 1): subagents run in the background by default; Claude in Chrome generally available; background agents commit, push, and open a draft PR after worktree code work; Notification hook events agent_needs_input/agent_completed; /dataviz skill; Claude Platform on AWS as a gateway upstream; Explore agent inherits the session model (capped at Opus); subagents and compaction inherit extended-thinking configuration; /agents wizard removed. v2.1.199 (July 2): stacked slash-skill invocations load all leading skills (up to 5); transient server 429s retry automatically for subscribers; CLAUDE_CODE_RETRY_WATCHDOG raises the non-capacity retry default to 300 and lifts the CLAUDE_CODE_MAX_RETRIES cap of 15; extensive background-agent, subagent-error-reporting, and hook-stderr fixes. Fetched July 3, 2026. ↩

  21. Claude Code v2.1.207 release notes. July 2026. v2.1.207: Auto Mode no longer requires the CLAUDE_CODE_ENABLE_AUTO_MODE opt-in on AWS Bedrock, Google Vertex AI, and Microsoft Foundry, where administrators disable it with the disableAutoMode managed setting; Bedrock, Vertex AI, and Claude Platform on AWS now default to Claude Opus 4.8; the autoMode setting is no longer read from a repository’s .claude/settings.local.json (use ~/.claude/settings.json); plugin security: ${user_config.*} interpolation is rejected in shell-form plugin commands (use the exec form or the $CLAUDE_PLUGIN_OPTION_<KEY> env var), and pluginConfigs is no longer read from project-level .claude/settings.json. Fetched July 17, 2026. ↩

  22. Claude Code v2.1.208 release notes, the Claude Code accessibility docs, and the Claude Code corporate launcher docs. July 2026. v2.1.208: screen reader mode via claude --ax-screen-reader, CLAUDE_AX_SCREEN_READER=1, or the "axScreenReader": true setting, documented on the new accessibility page; the processWrapper setting / CLAUDE_CODE_PROCESS_WRAPPER env var routes all Claude Code self-spawned processes through a wrapper executable for corporate launcher integration; the vimInsertModeRemaps setting defines vim insert-mode key remaps (e.g. jj → Escape); catastrophic removals (such as rm -rf ~) inside command substitution ($(...), backticks, <(...)) now prompt even in --dangerously-skip-permissions and auto mode. Fetched July 17, 2026. ↩↩↩↩↩

  23. Claude Code v2.1.211 release notes. July 2026. v2.1.211: the --forward-subagent-text flag and CLAUDE_CODE_FORWARD_SUBAGENT_TEXT env var include subagent text and thinking output in --output-format stream-json; “Always allow” permission rules are now saved at the repository root, so approvals granted in one worktree persist across sessions and across all worktrees of the repository. Fetched July 17, 2026. ↩

  24. Claude Code v2.1.212 release notes. July 2026. v2.1.212: /fork now copies the conversation into a new background session with its own row in claude agents, and the previous in-session fork behavior is renamed /subtask; new claude auto-mode reset subcommand with --yes to skip confirmation; per-session budgets: WebSearch calls and subagent spawns each default to 200 per session via CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION and CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION, with /clear resetting the subagent budget; MCP tool calls running longer than 2 minutes automatically move to the background, threshold configurable via CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS; the Task tool’s mode parameter is deprecated and ignored: subagents inherit the parent session’s permission mode; the enterprise forceLoginMethod setting is now enforced for the VS Code extension, the SDK, claude setup-token, and /install-github-app (previously terminal-only). Fetched July 17, 2026. ↩↩

  25. Claude Code CHANGELOG, v2.1.214 entry. July 2026. v2.1.214: single-segment dir/** allow rules (e.g. Edit(src/**)) now match only <cwd>/dir instead of any nested dir/ in the tree, while deny/ask rules keep any-depth matching, and hook if: conditions gain the same cwd scoping (write **/dir/** for any-depth); permission fail-closed hardening: Windows PowerShell 5.1 bypass fixed, Bash file-descriptor redirect forms fail closed, commands over 10,000 characters always prompt, zsh subscripts/modifiers in [[ ]] prompt, unsafe help/man variants no longer auto-approved, remote-session prompts cannot proceed before local confirmation, docker/Podman daemon-redirect flags (--url, --connection, --identity, remote mode) prompt, and file -m/--magic-file/-f/--files-from requires permission; new EndConversation tool for ending sessions on highly abusive input or jailbreak attempts; SessionStart hooks report source "fork" for forked sessions (previously "resume"); OTel log events gain message.uuid, client_request_id, and tool_source attributes, CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH configures the 60 KB content-truncation limit, and the subagentStatusLine payload includes reasoning effort. Fetched July 21, 2026. (v2.1.213 was never released.) ↩↩

  26. Claude Code CHANGELOG, v2.1.217 entry. July 2026. v2.1.217: subagents no longer spawn nested subagents by default: set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH to allow deeper nesting (reversing the v2.1.172 recursive-spawning default); new cap on concurrently-running subagents, default 20, override with CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS; --max-budget-usd now stops background subagents: once the cap is reached, new spawns are denied and running background agents are halted; emoji shortcode autocomplete in the prompt input (:heart: → ❤️), disabled via the emojiCompletionEnabled setting. Plus reliability and isolation fixes: symlinked working directories canonicalized for background-session isolation, managed OTEL_EXPORTER_OTLP_ENDPOINT governing all signals, transcript-write-failure warnings, MCP truncated-output memory leak, Windows auto-update claude.exe restore, Bedrock Opus 4.8 auto-compact, Claude Desktop corporate mTLS/TLS/OAuth/proxy settings, --resume malformed-attachment TypeError, unstoppable background shells, brace-expansion OOM, Remote Control late-joiner prompts, screen-reader fixes, ssh/tmux-clickable footer PR badges (FORCE_HYPERLINK=0 opts out), the login-expiry warning moving from 5 to 3 days, and the frontend-design plugin tip capped at 3 lifetime impressions. Fetched July 22, 2026. ↩↩

  27. Claude Code CHANGELOG, v2.1.219 and v2.1.220 entries. July 2026. v2.1.219 (July 24): adds Claude Opus 5 (claude-opus-5) as the new default Opus model, with 1M context, fast mode at $10/$50 per MTok; adds the sandbox.network.strictAllowlist setting to deny non-allowlisted hosts for sandboxed commands without prompting; adds the DirectoryAdded hook, which fires after /add-dir or the SDK register_repo_root control request registers a new working directory mid-session; adds mcp_server_errors to the headless stream-json init event, listing --mcp-config entries skipped by config validation (terminal runs print a startup warning); adds the workflowSizeGuideline settings key so the advisory Dynamic workflow size guideline can be set from any settings file, with the /config row hidden while one does; adds nested subagent forwarding in stream-json, so subagents spawned at depth-2+ appear when --forward-subagent-text is set, keyed by their spawning Agent tool_use id; changes dynamic workflows to default to a medium size guideline (aim for fewer than 15 agents); removes Opus 4.7 from fast mode: /fast now applies to Opus 5 and Opus 4.8; subagents can now spawn nested subagents up to depth 3 by default (was 1); set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 to disable nesting; updates the claude-api skill to default to Claude Opus 5 with a migration path from Opus 4.8; adds HTTP status and error text to claude mcp list and /mcp when a server fails to connect, plus a warning for MCP config values with hidden leading or trailing whitespace;

    changes managed MCP allowlist/denylist ${VAR} entries to resolve from the startup environment and managed-settings env instead of settings-file env; adds the current default workflow size to the running-workflow status line; fixes claude -p text output dropping the answer already produced when a turn dies on a mid-stream API error, the Fable row showing a stale “Requires usage credits” label, the /model picker showing the merged Opus row as plain “Opus” instead of “Opus (1M context)”, the new-release highlight covering more than the newest model’s name, GNU screen copy-on-select printing base64, Remote Control clients keeping a stale fast-mode status after a model switch/reconnect/failed org check, CLAUDE_CODE_GIT_BASH_PATH on Windows exiting or being used as bash when the path isn’t a bash/sh binary (now ignored with a warning), Vim mode ← on an empty prompt not returning to the agent view from NORMAL mode, and screen-reader mode rewriting the entire input line on every keystroke; improves the “Remote Control is only available via api.anthropic.com” error to name the setting that caused it and claude --teleport to show which repo the current checkout points at on a mismatch. v2.1.220 (July 25): bug fixes and reliability improvements only, with no user-facing feature, setting, command, or pricing changes. Fetched July 25, 2026. ↩↩↩

  28. Claude Code v2.1.223 release notes, August 6, 2026. Adds "owner/*" wildcard entries to strictKnownMarketplaces and blockedMarketplaces; makes /review an alias of /code-review with last-typed effort-level memory (/code-review ultra for deep cloud review); widens CLAUDE_CODE_DISABLE_1M_CONTEXT to hold every native-1M model to 200K via auto-compaction with a startup warning, and adds CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT for unrecognized model IDs; security fixes for a crafted-command Bash permission bypass, invisible-Unicode command padding in approval dialogs, workflow-script dynamic import() sandbox escape, and agent-definition bypassPermissions ignoring the org disable policy. Fetched August 6, 2026. ↩

  29. Claude Code v2.1.224 release notes, August 7, 2026. Adds claude self-hosted-runner (Team/Enterprise); cross-session SendMessage with ListAgents discovery on macOS/Linux plus crossSessionInbound/dialogExpiry settings; the archive plugin source with optional SHA-256 pinning; sandbox credential-masking options extract/onExtractNoMatch, decode: "jwt" with maskClaims, and awsPairs/sigv4 (require network.tlsTerminate; user/managed/--settings scopes only); removes the 200-subagent-per-session spawn cap; fixes long-path session-directory crossing, trailing-slash sandbox deny bypass, and invisible sandbox-violation details. Fetched August 7, 2026. ↩

  30. Claude Code CHANGELOG, sections 2.1.248, 2.1.250, and 2.1.251, fetched August 30, 2026. npm published 2.1.248 on August 27, 2026 at 20:35 UTC and 2.1.250 at 22:27 UTC the same day (its section is the verbatim “Bug fixes and reliability improvements”), and 2.1.251 on August 28, 2026 at 15:34 UTC (dist-tag latest: 2.1.251); 2.1.249 was never published on npm. Verbatim 2.1.248: “Added --restricted (or CLAUDE_CODE_RESTRICTED=1): removes the built-in tools that run commands or code and WebFetch (unless named in --tools), keeps file tools inside the working directory, refuses bypassPermissions, and ignores user, project and local settings files”; “Added experimental.cacheTtl ("5m" or "1h") to agent frontmatter: a per-agent prompt cache TTL used when no subagent TTL setting is configured”; “Added claude self-hosted-runner --client-label <label> (or SELF_HOSTED_RUNNER_CLIENT_LABEL) to override the label the runner registers with (default: hostname)”; “Added server-managed settings diagnostics: a startup warning when the settings fail to load, and a /doctor and /status line explaining a load failure or why they weren’t fetched (Bedrock/Vertex/third-party provider, custom ANTHROPIC_BASE_URL)”; “Added /usage-credits for Enterprise organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials, so members can request a higher usage limit from their admin”;

    “Added cross-session messaging (SendMessage / ListAgents) between sessions on the same machine on Bedrock, Vertex, and Foundry, and when telemetry is disabled”; the desktop-retention fix: “the transcript cleanup now keeps desktop-written sessions while they are in the app (unless org policy manages retention); the new desktopSessionCleanupPeriodDays setting caps the exemption”; “Improved managed settings: client-side timeout, MCP startup-mode, and stream-watchdog env vars no longer trigger the settings-approval prompt”; “Changed /loop: self-paced dynamic mode and the no-prompt autonomous default are now always available, including on Bedrock/Vertex/Foundry”; “Improved the Workflow tool’s prompt footprint: its description is now about 1k tokens instead of 5.7k, with the script-writing reference moved into a bundled workflow-authoring skill”; and the upload fix: “Fixed /ultrareview and locally seeded cloud sessions uploading uncommitted edits to prod.env-style and *.tfvars files, or to editor swap, temp, and backup copies of credential files (e.g. key.pem.tmp, id_rsa.swo); they now stay on your machine”.

    Verbatim 2.1.251: “Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and the estimated re-cache cost”; “Added live streaming of a foreground subagent’s tool calls and results to Remote Control clients (background subagents, the default, still show status only)”; “Added a Spend limit bar to /usage and a rate_limits.spend_limit status line field for developers behind a Claude apps gateway with spend limits”; “Added a per-session prompt-cache line to /cost (hit ratio, misses, tokens re-cached, warm/cold) and a matching prompt_cache object for status line scripts”; “Added attach, logs, stop, respawn, and rm to claude --help; the --resume message for a running background session now names the exact claude attach <id> command”; “Changed Claude in Chrome so browser actions always go through Claude Code’s permission checks, including in sessions with telemetry disabled, which previously used the Chrome extension’s own prompts”; “Changed CLAUDE_CODE_SUBAGENT_MODEL to set the default subagent model rather than override everything: an agent definition’s model: and an explicit per-spawn model now take precedence over it”; “Changed the default model for seat-based Enterprise subscriptions to Opus 5, matching other premium plans”; “Changed /effort to save your default effort level per model, so each model keeps its own setting when you switch”;

    “Changed server-managed settings that terminate sandbox TLS, route sandbox traffic through your own proxy, inject credentials, or weaken sandbox isolation to require approval before they apply”; “Changed ANTHROPIC_CUSTOM_HEADERS from managed or project settings to require approval when it sets a credential, org/tenant, routing, or API-behavior header (e.g. Authorization, Host)”; “Changed project-level .claude/settings.json env to no longer set CLAUDE_CONFIG_DIR, CLAUDE_CODE_TMPDIR, or TMPDIR/TMP/TEMP; set them in your shell, user, or managed settings instead”; “Fixed /usage-credits for Team and Enterprise members whose admin set the org’s usage-credit limit to $0: it now offers to ask the admin instead of saying a cap was reached”; security fixes verbatim: “Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location”; “Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error”; “Fixed Bash permission checks auto-approving commands that assign an arithmetic expression to an integer shell variable (e.g. OPTIND=1/0, RANDOM=2+2); these now prompt for approval”; “Fixed Grep and Glob not applying Read(...) deny rules to files reached through a symlinked search path”. ↩↩↩↩↩↩

  31. Claude Code release notes v2.1.257 and v2.1.258 (both September 1, 2026) and v2.1.259 (September 2, 2026), and the canonical CHANGELOG on September 3, 2026. npm dist-tags that day: latest and next both 2.1.259, stable 2.1.236; npm’s published versions jump from 2.1.252 to 2.1.257 – 2.1.253 through 2.1.256 were never published and have no CHANGELOG sections (the 2.1.244/2.1.249 pattern) – so the 2.1.258 note’s “regression introduced in 2.1.255” refers to an unpublished internal build and v2.1.257 is the first installable release carrying Fable 5.1 support. Source for the v2.1.257 items: Fable 5.1 support with the gateway caveat (in Claude apps gateway sessions the fable and best aliases keep resolving to Fable 5 for now, since a gateway not yet configured for Fable 5.1 rejects it – select it in /model instead); timeFormat/timeZone; the auto-mode “Containment Escape” rule (cloud metadata-credential fetches, egress evasion, and cross-tenant reach not auto-approved unless the environment marks them expected); CLAUDE_CODE_SUBAGENT_MODEL_FORCE; the one-time prompt before the first file read outside the working directories plus permissions.blockReadsOutsideWorkingDirectories; /effort s and the session-scoped --effort; project/local defaultMode: "bypassPermissions" ignored; the managedSourcesBehavior: "merge" refinement (sandbox.credentials.awsPairs and sandbox.ripgrep read whole from the highest source that sets them); Bash Read()/Edit() deny-rule coverage of < file input redirects and reader commands such as tac and egrep; and the network-path refusal (UNC shares, /net/<host> automounts) on --add-dir, /add-dir, and additionalDirectories.

    Source for the v2.1.258 fixes: a macOS 12 launch regression introduced in unpublished 2.1.255, and remote/scheduled sessions failing on requests requiring non-empty content. Source for the v2.1.259 items: managedMcpServers; the allowedMcpServers scope change to user-added servers only; --permission-prompts none (anything that would prompt is denied automatically while the active permission mode keeps deciding); managed settings that fail to parse refusing startup and naming the source; frontmatter model: on custom commands and skills honored in interactive sessions, with auto mode keeping the session model instead of running a turn on an unsupported frontmatter model; claude plugin validate --json; and the option-value/operand extension of Bash Read() deny coverage (--ignore-revs-file=.env, -f.env, @file arguments, git diff/git grep operands, cd DIR && cat FILE compounds, and grep -r/cp -r over a directory holding a denied file now asking). The settings docs do not yet document timeFormat/timeZone or managedMcpServers, and the CLI reference does not yet list --permission-prompts – the CHANGELOG is the source for those as of September 3, 2026. ↩↩↩↩

  32. Claude Code v2.1.261 release notes, published September 4, 2026 at 19:58 UTC, and the canonical CHANGELOG the same day. npm dist-tags that day: latest and next both 2.1.261, stable 2.1.236. Keybinding change verbatim: “Changed the prompt’s word-editing keys to match Bash: Ctrl+W deletes back to whitespace, Alt+F and Alt+D stop at word end, punctuation separates words; keybindingFlavor no longer has any effect.” Source for: /skill-doctor, which shows which loaded skills go unused and what they cost in context, so you can prune them; the bashOutputMaxChars and taskOutputMaxChars settings, which raise how much command output and background-task output Claude receives inline before it is saved to a file, up to 128K characters (a different mechanism from BASH_MAX_OUTPUT_LENGTH, which the tools reference defines as the read-back window from a command’s working output file, verbatim: it “sets how many characters of output Claude Code reads back from the working file into a command’s result: 30,000 by default, up to a hard ceiling of 150,000”); auto mode treating a link that packs content into a public diagram renderer’s URL (mermaid.live-style, the data encoded in the URL itself) as an upload, no longer auto-approved unless you asked for it; and forceLoginMethod: "gateway" evicting leftover credentials, so machines pinned to a gateway ignore a leftover API key or claude.ai login and ask for /login, with Bedrock, Vertex AI, and Foundry sessions unaffected. ↩

  33. Claude Code v2.1.265 release notes, published September 8, 2026 at 20:37 UTC, and the canonical CHANGELOG the same day (the release body and the CHANGELOG section are identical). npm dist-tags that day: latest and next both 2.1.265, stable 2.1.236; npm’s published versions jump from 2.1.261 to 2.1.263 to 2.1.265 – 2.1.262 and 2.1.264 were never published (the 2.1.244/2.1.249/2.1.253-256 pattern) – and 2.1.263 (published September 6) carries only “Bug fixes and reliability improvements”. Source for: --plugin-dir pointed at a folder of plugins (“each child folder with a manifest loads, and children added or removed while running are picked up”); the two prompt-cache prefix fixes, verbatim: “Fixed resuming a foreground-spawned subagent changing its tool list and system prompt prefix, which broke prompt-cache reuse for that agent” and “Fixed agent teammates and resumed subagents moving SubagentStart hook context and preloaded skills out of the prompt prefix on later turns, which broke prompt-cache reuse”; non-interactive sessions (-p with stream-json input, Agent SDK, cloud sessions) no longer resetting the shell working directory at each new user message, so a cd persists across turns;

    MCP servers configured as http that only speak the legacy HTTP+SSE transport now falling back to SSE as the MCP spec describes; the 1 GB cap on tool results saved to disk, with the in-conversation preview saying when a saved file was truncated; machines with forceLoginGatewayUrl in managed settings being Claude apps gateway sessions from startup, like forceLoginMethod: "gateway", with a leftover claude.ai login or API key not used; Claude apps gateway sessions exporting OpenTelemetry directly to a collector the gateway’s managed settings name in OTEL_EXPORTER_OTLP_ENDPOINT instead of through the gateway’s relay (sessions without a named collector still use the relay), and user.email and user.groups added to the telemetry Claude Desktop and Cowork send through a Claude apps gateway, matching terminal sessions; two-key keyboard shortcuts waiting 3 seconds for the second key and showing a notice when they time out, where they previously cancelled silently when the second key arrived more than a second later, as happens inside tmux; and slash commands typed mid-prompt showing matches in a list (Tab opens it outside fullscreen) instead of a single suggestion, with a plugin skill found by its bare name. ↩↩

  34. Claude Code release notes v2.1.266 (September 8, 2026), v2.1.267 (September 9), v2.1.268 (September 10), v2.1.269 (September 11), v2.1.270 (September 12), v2.1.271 (September 14), and v2.1.272 (npm September 14, GitHub release September 15 at 00:42 UTC), and the canonical CHANGELOG on September 15, 2026 – all seven release bodies and their CHANGELOG sections are identical. npm dist-tags on September 15 (~13:15 PT): latest 2.1.272, next 2.1.273, stable 2.1.236; 2.1.273 (published September 15 at 18:06 UTC) has no GitHub release and no CHANGELOG section, so its content is not documented here; and 2.1.263 still carries only “Bug fixes and reliability improvements” – no backfill ever landed. Source for, verbatim where quoted: the /output-style revival (“Added /output-style [name] to list and switch output styles, including over Remote Control and in cloud and other headless sessions”, v2.1.269); claude plugin eval (“run a plugin’s eval suite against Claude Code and get scored, reproducible results (JSON + HTML report)”, v2.1.269); fast mode in Claude Code Remote sessions (“cloud and self-hosted runners: the host’s fast-mode setting or /fast typed in the session applies where your organization allows it”, v2.1.271) and the /fast off fix;

    the maxEffortLevel setting (“top-level or per model under modelSettings: caps the effort level on every provider, including Bedrock, Vertex and Foundry; users can still pick a lower level”, v2.1.267); --system-prompt-snapshot off (v2.1.267); the v2.1.267 prompt-cache stability batch (resumed-session tool-list, tool-description, and MCP-announcement rewrites; /model switches re-sending every tool definition, with attribution text now a conversation note; --system-prompt/--append-system-prompt sessions recording the prompt and tool definitions once; mid-session MCP and plugin tools as deferred definitions); the effort: frontmatter fix on pinned-default-effort models (Opus 4.7, Opus 4.8, Fable 5; v2.1.267); the marketplace backslash containment fix (v2.1.267); the task-tracking allowlist (“Changed the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be offered only on” Claude 3.x, Opus 4.0 to 4.7, Sonnet 4.0 to 4.6 and Haiku 4.5, with “set CLAUDE_CODE_ENABLE_TODO_TOOLS=1 elsewhere”, v2.1.268); the symlinked-directory and env -C/eval deny-rule fixes (v2.1.268); the WebFetch/Artifact rule split (“Changed plain WebFetch deny and ask rules to no longer apply to Artifact tool reads and updates; use an Artifact rule (or WebFetch(domain:claude.ai)) to block or gate them”, v2.1.268); /plugin changes applying on menu close (v2.1.268); the WebFetch 300-second deadline and CLAUDE_CODE_WEBFETCH_DEADLINE_MS (v2.1.268); gatewayInternalNetworks, the empty-allow_cidrs warnings, and the gateway pricing: rate sync (v2.1.268) plus the multiplier above 1 up to 10 (v2.1.271);

    the ${VAR} and git-URL secret-hygiene fixes (v2.1.268); configDirectory in claude auth status --json (v2.1.268); the third-party ANTHROPIC_BASE_URL HTTP-400 regression fix (v2.1.268); bashEditDiffEnabled (v2.1.269); the attribution-reminder fix (“Fixed the attribution reminder overriding a CLAUDE.md or memory rule against commit and pull request attribution; lines set by managed settings still apply”, v2.1.269); the env vars OTEL_METRICS_INCLUDE_REPOSITORY, CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS (1-256), CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS (default 3s), and CLAUDE_CODE_BG_TASKS_REPORT_RUNNING (v2.1.269); the v2.1.247 keyboard-regression fix and the kitty-query keyboard support over SSH (v2.1.269); the Edit()/tee, Bash(tee:*), and leading-! scoping fixes (v2.1.269); per-command allowed_domains on Bash, PowerShell, and Monitor in auto mode with sandboxing (v2.1.271); omitClaudeMd agent frontmatter and --agents JSON (v2.1.271); the auto-mode inline-! and subagent hand-back mechanics changes (v2.1.271); claude plugin install/update --accept-command <sha256> (v2.1.271); --resume keeping [1m] across model families (v2.1.271); the fail-closed unreadable managed-mcp.json (v2.1.271); the fmt/column, wildcard-expansion, variable-declaration-flag, and blockReadsOutsideWorkingDirectories checker fixes (v2.1.271); and Markdown artifacts rendering as styled document pages with artifact watches rising to 10 (v2.1.271). v2.1.266 carries one line (the CLAUDE_CODE_USE_GATEWAY regression fix), v2.1.270 one line (the v2.1.269 git-prompting regression fix), and v2.1.272 only “Bug fixes and reliability improvements”. ↩↩↩↩↩↩↩

  35. Claude Code v2.1.273 release notes, published September 15, 2026 at 20:23 UTC, and the canonical CHANGELOG on September 16, 2026 – the release body and the CHANGELOG section are identical, 64 lines each. npm dist-tags on September 16 (~10:00 PT): latest 2.1.273, next 2.1.273, and stable 2.1.267 – the stable tag’s first move off 2.1.236. Source for, verbatim where quoted: the deny-rule revert (“Reverted a 2.1.268 change that checked Read and Edit deny rules on Bash lines the permission checker can’t analyze (eval, env -C); commands like time -p make build prompt again instead of being denied”); the unanalyzable-command and subshell fixes (“Fixed Bash commands the permission checker cannot fully analyze skipping the prompt under permissions.blockReadsOutsideWorkingDirectories, and a subshell hiding a dangerous rm in bypass mode”); the memory-directory fix (“Fixed permissions.blockReadsOutsideWorkingDirectories: a memory directory chosen by a repository’s settings is no longer loaded into the prompt, recalled, indexed, or used by memory extraction”); the gateway classifier default (“Changed auto mode on Bedrock, Vertex and Foundry to use the local classifier by default for now; set CLAUDE_CODE_AUTO_MODE_SERVER=1 to use the platform’s server-side classifier”); the hint headers (“Added x-claude-code-request-class, x-claude-code-agent-type, x-claude-code-prev-tool-durations, x-claude-code-compaction and x-claude-code-context-compacted request headers for LLM gateways; opt in with CLAUDE_CODE_GATEWAY_HINT_HEADERS=1”);

    the managed-settings precedence fix (“Fixed allowManagedMcpServersOnly, deniedMcpServers and disableClaudeAiConnectors set via MDM or managed-settings.json being ignored when server-managed settings are also present”); the context-meter fix (“Fixed the context meter and auto-compact counting advisor-tool turns at roughly twice their real context size, which made auto-compact fire at about half the real window”); the prompt-cache fix (“Fixed /login, /upgrade, and /extra-usage discarding earlier thinking from the conversation, which forced a full prompt-cache rewrite on the next request”); the telemetry change (“Changed OTEL_LOG_TOOL_DETAILS=1 to also include real agent, skill, plugin and MCP server names on cost and token metrics”); the /bug//feedback data minimization (“Changed /bug and /feedback reports to include only model-behavior params (model, system prompt, tools) from the last API request, omitting request metadata and CLAUDE_CODE_EXTRA_BODY fields”); the sign-in change (“Changed sign-in with a Claude account to also request access to your claude.ai plugins”); Remote Control forking (“Added forking a session started with claude --remote-control or /remote-control from the Claude app; the fork runs as a background session on your computer”); and the stream-json fix (“Fixed SDK and --output-format stream-json output dropping a subagent’s remaining messages and final report after it is moved to the background mid-run (e.g. by CLAUDE_AUTO_BACKGROUND_TASKS)”). ↩↩↩

  36. Claude Code release notes v2.1.274 (published September 17, 2026 at 00:12 UTC, 108 bullets), v2.1.275 (September 17 at 22:33 UTC, 96 bullets), and v2.1.276 (September 18 at 02:12 UTC, one line), and the canonical CHANGELOG on September 17, 2026 – all three release bodies and their CHANGELOG sections are byte-identical. npm dist-tags on September 17 (~22:08 PT): latest and next both 2.1.276, stable 2.1.267. Source for, verbatim where quoted: the claude.ai sync (“Added syncing of the skills and plugins enabled on your claude.ai account to terminal sessions signed in with it; opt out with syncClaudeAiSkills: false or syncClaudeAiPlugins: false”, v2.1.275); the send-now key (“Added a send-now key (ctrl+enter, or ctrl+x ctrl+s) that interrupts the current turn and sends all queued messages at once; sent and queued messages show in gray until the model receives them”, v2.1.275); /plugin install <plugin> --marketplace <source> (“which offers to add the marketplace before installing the plugin”, v2.1.275); the npm plugin-source hardening (“Changed plugins installed from an npm source to be fetched with npm pack --ignore-scripts and integrity-verified, so a package’s install scripts no longer run”, v2.1.275); the synced account-skills Write/Edit results (“they now say the change is not saved to your account and how to save it”, v2.1.275); the tab-icon change (“Changed the Artifact tool to ask for a one-word tab icon on a first publish instead of an emoji favicon”, v2.1.275);

    CLAUDE_CODE_MCP_STARTUP_WAIT_MS (“to bound how long the first non-interactive turn waits for connecting MCP servers (0 = don’t wait)”, v2.1.274); the MCP client default (“Changed Bedrock, Vertex, Foundry and telemetry-disabled installs to use the v2 MCP client and MCP 2026-07-28 negotiation with direct HTTP servers by default, as other installs already do (opt out: MCP_SDK_GENERATION=v1 or MCP_PROTOCOL_NEGOTIATION=legacy)”, v2.1.274); the legacy HTTP+SSE 4xx fix (“Fixed MCP servers configured as http that only speak legacy HTTP+SSE failing to connect when they answer the first request with 422 or another 4xx error”, v2.1.274); the "type": "sdk" skip (“Changed "type": "sdk" MCP entries in .mcp.json, settings, plugins and agent files to be skipped with a warning: only an SDK host application can register in-process servers”, v2.1.274); the naming change (“Changed the /status GitHub line to read "Cloud sessions", and /web-setup, /ultrareview, and teleport messages to say "cloud session" instead of "Claude Code on the web"“, v2.1.274); artifact watching (“Changed artifact watching in local sessions: a new version published elsewhere no longer starts a turn; Claude learns of it from a later Artifact tool result”, v2.1.274); and the v2.1.276 regression fix (“Fixed every request failing with 400 … Input tag 'advisor_20260301' when ANTHROPIC_BASE_URL points at a proxy or gateway (2.1.275 regression)”). ↩↩↩

  37. Claude Code release notes v2.1.277 (npm published September 18, 2026 at 16:22 UTC; GitHub release 18:06 UTC) and v2.1.278 (npm September 19 at 01:48 UTC; GitHub release 03:10 UTC), and the canonical CHANGELOG on September 21, 2026. Source for every v2.1.277 and v2.1.278 item in this guide. Key quotes: “Added AGENTS.md support: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead; change it under "Project instructions" in /config (not yet on Bedrock, Vertex or Foundry)”; “Changed auto mode for Claude API and Enterprise users, and on Bedrock, Vertex, Foundry and gateways, to default to the server-side classifier, which does not charge for classifier overhead”; “Added an Auto mode server row to /status showing whether this session’s auto mode classifier runs on the server”. Supporting docs fetched September 21, 2026: Memory, AGENTS.md section (load matrix, Project instructions values, the agents-md@builtin pluginConfigs location, files not read) and Auto mode classifier request charges (fallback notice text and delivery, the /status row values, gateway pass-through, and the variable’s temporary status). ↩↩

  38. Claude Code v2.1.280 release notes (npm published September 22, 2026 at 15:44 UTC; GitHub release 16:38 UTC), and the canonical CHANGELOG on September 22 and September 23, 2026. Source for every v2.1.280 item in this guide. npm dist-tags on September 23: latest and next 2.1.280, stable 2.1.267; no 2.1.279 was ever published. Key quotes: “Added Claude Opus 5.5 (claude-opus-5-5), now the default Opus model”, with “1M context, $4/$20 per Mtok with $0.20/Mtok cache reads”; “Changed the default model on Pro and Team Standard plans from Sonnet to Opus, matching Max, Team Premium, and Enterprise”; “Fixed auto mode denying actions over and over without pause when a safety check gave no answer; retries now back off, and the turn stops with a message after ten in a row”. ↩↩

  39. Claude Code documentation, fetched September 23, 2026: Model configuration, Fast mode, Memory, Permission modes, Auto mode classifier request charges, and MCP. Source for content-based fallback (“biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8” for Fable 5.1, Fable 5, and Opus 5.5); effort defaults (medium on Opus 5.5, which a top-level effortLevel does not reach); “You can’t turn thinking off on Opus 5.5 or the Fable models”; the 200K window for Opus 4.8 and later on Bedrock, Agent Platform, and Foundry, and Foundry’s opus resolving to Opus 4.6; fast-mode model support and Opus 5.5 as the fast-mode default from v2.1.280; the AGENTS.md difference table, the first-session caveat, and the note that /memory and /context did not list a directly-read AGENTS.md before v2.1.280; the built-in starting-mode table (auto on Pro, Max, and Team; Manual on Enterprise, Console API keys, and third-party providers); the server-side check list, which includes Claude Platform on AWS; and Tool Search loading only tool names and server instructions at session start. ↩

  40. Claude Code v2.1.281 release notes (npm published September 23, 2026 at 17:01 UTC; GitHub release 19:19 UTC; 176 bullets, identical to the 2.1.281 section of the canonical CHANGELOG, fetched September 24, 2026, which runs 2.1.280 to 2.1.281 with no gap). Source for every v2.1.281 item in this guide. npm dist-tags on September 24: latest and next 2.1.281, stable 2.1.273. Key quotes: “Changed send now (ctrl+enter or ctrl+x ctrl+s) to move running tools to the background instead of cancelling the turn”; “Changed CLAUDE_CODE_AUTO_MODE_SERVER to also apply on a direct Anthropic API connection: 0 opts out of the server-side auto mode classifier (the local classifier then counts toward usage), 1 opts in”; “Changed the dangerous rm prompt in --dangerously-skip-permissions and auto mode to wait 2 minutes for an answer, then deny the command with a rewrite hint”; “Added "attribution": false in settings.json to hide all commit and PR attribution”. The /agents wizard removal is from the 2.1.198 section of the same CHANGELOG: “Removed the /agents wizard; ask Claude to create or manage subagents, or edit .claude/agents/ directly.” The auto mode classifier billing docs, fetched September 24, 2026, still read “The variable isn’t read on a direct connection to the Anthropic API”; by September 26 the page reads “On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later.” The settings reference, same date, documents the attribution object and marks includeCoAuthoredBy deprecated; by September 26 it also documents the false value. ↩↩

  41. Claude Code v2.1.282 release notes (npm published September 24, 2026 at 15:56 UTC; GitHub release 18:38 UTC; 86 bullets, identical to the 2.1.282 section of the canonical CHANGELOG, fetched September 26, 2026). Source for every v2.1.282 item in this guide. Key quotes: “Changed auto mode to use the server-side classifier by default on a direct Anthropic API connection when telemetry is off (CLAUDE_CODE_AUTO_MODE_SERVER=0 opts out)”; “Changed project and local settings to ignore OpenTelemetry variables that turn on export, set its endpoint, or capture content, like CLAUDE_CODE_ENABLE_TELEMETRY and OTEL_LOG_*”; “Added a maxProseWidth setting that caps the width of Claude’s prose in wide terminals”; “Added the allowClaudeInChromeWithManagedMcp managed setting to let claude --chrome run alongside an exclusive managed-mcp.json”; “Changed sandbox.excludedCommands to ignore project and local settings entries when managed settings or --settings set allowUnsandboxedCommands: false, or managed allowManagedDomainsOnly: true”; “Changed skill folders, command files and workflow commands in the anthropic-skills or claude-ai namespace to no longer load”. ↩↩↩↩

  42. Claude Code v2.1.283 release notes (npm published September 25, 2026 at 18:46 UTC; GitHub release 21:50 UTC; 94 bullets, identical to the 2.1.283 section of the canonical CHANGELOG, fetched September 26, 2026, which runs 2.1.281 to 2.1.283 with no gap). Source for every v2.1.283 item in this guide. npm dist-tags on September 26: latest and next 2.1.283, stable 2.1.274. Key quotes: “Changed interactive sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured; permissions.defaultMode still overrides it”; “Added deniedModels managed setting to block specific models, even when availableModels allows them”; “Added /doctor prompt-audit (also /checkup prompt-audit) to audit your CLAUDE.md files, skills, agents and commands for prompting patterns written for older models”; “Added x-claude-code-prompt-id to the gateway hint headers”; “Changed the /model picker’s Opus row and the Default model’s name to drop ‘(1M context)’ where Opus already has a 1M context window”; “Reverted the 2.1.282 reservation of the claude-ai name”. ↩↩

  43. Claude Code documentation, fetched September 26, 2026. Permission modes: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions on every plan and provider”; claude -p and the Agent SDK start in default; “From v2.1.282, a session that doesn’t fetch feature flags, for example because you turned telemetry off, asks the server by default in any kind of session.” Auto mode classifier billing: “On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later.” Settings reference: attribution “or false to hide all attribution. The false value requires Claude Code v2.1.281 or later”; maxProseWidth, deniedModels, and availableModelsMatch entries; the OpenTelemetry group under “Variables Claude Code ignores in env”. LLM gateway protocol: “Direct connection to the Anthropic API: sent by default”. Skills: the reserved anthropic-skills name. The settings reference also now documents spinnerTipsOverride’s tipsFile and tip objects (“Tip objects, tipsFile, label, and the Scope line’s rule … require Claude Code v2.1.247 or later”) and the timeFormat and timeZone keys. ↩↩↩↩↩↩

  44. Claude Code v2.1.285 release notes (npm published September 29, 2026 at 17:32 UTC; GitHub release 19:27 UTC; 136 bullets, identical to the 2.1.285 section of the canonical CHANGELOG, fetched September 29, 2026). Source for every v2.1.285 item in this guide. npm dist-tags on September 29: latest and next 2.1.285, stable 2.1.280. Key quotes: “Changed claude -p and Python Agent SDK sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured, like interactive sessions; --permission-mode still overrides it”; “Added allowedProviders managed setting to limit which API providers a machine may use”; “Added claude --desktop to open the Claude desktop app on the current directory, or on a session with --continue / --resume <id>”; “Added CLAUDE_CODE_DISABLE_WEB_FETCH environment variable to turn off the WebFetch tool”; “Changed background Bash and PowerShell commands to stop after a time limit (their timeout with run_in_background, default 30 min, max 2 h)”; “Changed sessions behind a custom ANTHROPIC_BASE_URL to use the 1M context window of models that have one (Opus 4.7+, Sonnet 5+, Fable); run /autocompact 200k if your gateway stops at 200K”; “Changed sandbox settings so project settings cannot widen or turn off an admin-required sandbox”; “Changed /config chrome=true to direct you to the /config panel instead of enabling Claude in Chrome by default”. ↩↩↩

  45. Claude Code v2.1.287 release notes (npm published October 1, 2026 at 16:59 UTC; GitHub release 18:00 UTC; 106 bullets, identical to the 2.1.287 section of the canonical CHANGELOG, fetched October 1, 2026). Source for every v2.1.287 item in this guide. npm dist-tags on October 1: latest and next 2.1.287, stable 2.1.285. Key quotes: “Changed Opus 4.7+ and Fable to use a 1M context window by default on Bedrock, Vertex, Foundry and the Claude apps gateway, with no [1m] suffix (CLAUDE_CODE_DISABLE_1M_CONTEXT=1 keeps 200K)”; “Added Claude Mods: plugins may now modify deeper behavior”; “Added You should know, a built-in mod where a side agent watches your back and flags things you or Claude might miss”; “Added URL prompts from MCP servers on the 2025-11-25 protocol”; “Changed MCP server alwaysLoad: false to defer all of that server’s tools behind tool search”; “set CLAUDE_AX_PREPARK_MS=50 to restore the pause”; “Changed automatic model switches after a flagged message to keep your current effort level instead of the new model’s default”; “Changed whole-tool Bash allow rules and allowing hooks to prompt for, not run, shell writes to files Claude Code’s file tools refuse outright”; “Added prompt_text to the OpenTelemetry user_prompt event”. ↩↩

  46. Claude Code documentation, fetched October 1, 2026. Permission modes: for claude -p or the Agent SDK, “default in sessions that fetch feature flags. In sessions that don’t, such as on a third-party provider or with telemetry off, auto with Claude Code v2.1.285 or later”. Mods overview: “Mods are on by default. In the terminal, use Claude Code v2.1.287 or later”; “Mods aren’t sandboxed”; CLAUDE_CODE_ENABLE_FUNCTION_HOOKS is ignored from v2.1.287; cc-plugin-you-should-know is “Disabled by default”. Model configuration: after a fallback, Claude Code “keeps the effort level the flagged request ran at”; “Opus 4.6 and Sonnet 4.6 reach 1M only through their [1m] variant”; the gateway 1M passage and /autocompact 200k. Amazon Bedrock and Agent Platform: “To enable it for a manually pinned model instead, append [1m] to the model ID.” Environment variables: CLAUDE_AX_PREPARK_MS “Default 0 … Before v2.1.287, the default was 50”; CLAUDE_CODE_DISABLE_WEB_FETCH “The WebSearch tool stays available. Requires Claude Code v2.1.285 or later”. Headless: “Before v2.1.286, these limits held only partly”. Agent view: the n:<text> filter and “A reply that is exactly /stop stops the session at once.” Settings reference: allowClaudeInChromeWithManagedMcp (“Requires Claude Code v2.1.282 or later”) and allowedProviders entries. The MCP page does not list bareElicitationCapability. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩

  47. Claude Code canonical CHANGELOG, section 2.1.288, fetched October 6, 2026, and npm registry metadata for @anthropic-ai/claude-code read the same day: 2.1.288 published October 2, 2026 at 18:30 UTC, 2.1.289 October 3 at 20:12 UTC, 2.1.290 October 5 at 18:12 UTC, 2.1.291 October 6 at 03:32 UTC, 2.1.292 October 6 at 17:10 UTC; dist-tags latest and next 2.1.292, stable 2.1.285. The CHANGELOG runs 2.1.287 to 2.1.292 with no gap. Source for every v2.1.288 item in this guide. Key quotes: “Changed claude project purge to claude purge; the old name still works and prints a notice”; “Changed the background command time limit to apply only in unattended sessions (-p, Agent SDK, CI, cloud); terminal, desktop app and VS Code sessions have no limit”; “Added --max-findings <n>|all to /code-review”; “added CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS to turn structured outputs off”; “Changed the client-side auto mode classifier to ignore an ANTHROPIC_DEFAULT_SONNET_MODEL pin that names Claude Sonnet 5.5 or Opus 5.5 and use Claude Sonnet 5 instead”; “requests now time out after 60s (per-server requestTimeout)”. ↩↩

  48. Claude Code canonical CHANGELOG, sections 2.1.289, 2.1.290, and 2.1.291, fetched October 6, 2026. Source for every v2.1.289, v2.1.290, and v2.1.291 item in this guide. Key quotes: “Fixed a regression in 2.1.290 where cloud sessions could drop answers to permission prompts”; “Fixed a regression in 2.1.288 where the last messages of a session could be lost when quitting”; “Changed the interactive session’s WebSearch budget to refill over time (100 calls/hour; CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR sets the rate, 0 turns it off) instead of ending after 200 calls”; “Changed Claude in Chrome so that a project’s settings files can no longer turn it on; use --chrome, /chrome or your user settings”; “Changed the Bash tool to ask for permission before running pyright, which is no longer treated as a read-only command”; “Changed CLAUDE_CODE_DISABLE_ATTACHMENTS so a repository’s .claude/settings.json or .claude/settings.local.json can no longer set it”; “Added agent.spawn for teammates, one agent id across plugin hook events, and idle and waiting states in $.agent.list()”. ↩↩

  49. Claude Code canonical CHANGELOG, section 2.1.292, fetched October 6, 2026. Source for every v2.1.292 item in this guide. Key quotes: “Added CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS environment variable to set a longer base delay for the backoff when retrying an overloaded (529) request”; “Added an effort parameter to the Agent tool”; “Added --marketplace <source> to claude plugin install”; “Changed local (stdio) MCP server connections to negotiate protocol version 2026-07-28 by default on every install, including Bedrock, Vertex and Foundry; MCP_PROTOCOL_NEGOTIATION=legacy opts out”; “Security: Fixed PreToolUse hook approvals and auto mode bypassing the permission prompt for file reads from network (UNC) paths”; “Changed agent names to allow at most 256 characters”. ↩↩

  50. Claude Code documentation, fetched October 6, 2026. Environment variables: CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS “Requires Claude Code v2.1.288 or later”; CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION still “(default: 200)”; no entry for CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS or CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR. CLI reference and Agent view: partial session names for claude attach and claude logs require v2.1.290; claude purge listed. Claude directory: “Before v2.1.288, the command was claude project purge.” Tools reference: “Before v2.1.288, it applied in every session” (the background command time limit). Code review: --max-findings “Requires Claude Code v2.1.288 or later”. Keybindings: agents:find, agents:rename, agents:previousGroup, agents:nextGroup, v2.1.288. Memory: “A path-scoped rule loads when Claude uses the Read, Write, or Edit tool on a matching file”. MCP: stdio negotiation still described as turning on “for Claude Code v2.1.285 or later, in sessions where Claude Code fetches feature flags”. Plugin CLI reference: --marketplace listed for /plugin install only; the marketplace-manifest validate behavior “requires Claude Code v2.1.289 or later”. Mods reference: written “as of v2.1.289”; agent.spawn with e.isTeammate and $.ui selection listed. Sub-agents: effort documented as a frontmatter field only; name is a “Unique identifier of at most 256 characters”, and a file with a name “longer than 256 characters” is skipped with an error in the debug log (re-fetched later on October 6). Settings reference: claudeInChromeDefaultEnabled scope “Global config”. Commands: /claude-api lists managed-agents-onboard. Use Claude Code with Chrome: “run /chrome in a CLI session and select the option that turns Chrome on by default”; the page does not mention the v2.1.290 project-settings change. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩

  51. Claude Code canonical CHANGELOG, sections 2.1.293 through 2.1.296, fetched October 11, 2026, and npm registry metadata for @anthropic-ai/claude-code read the same day: 2.1.293 published October 7, 2026 at 17:18 UTC, 2.1.294 October 8 at 03:42 UTC, 2.1.295 October 8 at 18:22 UTC, 2.1.296 October 9 at 16:58 UTC; dist-tags latest and next 2.1.296, stable 2.1.287. The GitHub release bodies (published 18:10, 05:03, 19:48, and 19:28 UTC) carry 56, 2, 143, and 79 bullets, identical to the CHANGELOG. Source for every v2.1.293 through v2.1.296 item in this guide.

    Key quotes: “Added Claude Haiku 5.5 (claude-haiku-5-5), now the default Haiku model on the Anthropic API” with “1M context, $0.10/$0.50 per Mtok ($0.50/$2.50 for prompts over 100K)”; “Added onFailure: "block" for command and HTTP hooks: a hook that can’t start, times out, or exits with an unexpected code blocks the action instead of letting it through”; “Changed the default limit on MCP tool descriptions sent up front and on MCP server instructions from 2,048 to 4,096 characters”; “Changed MCP tool descriptions the model loads through tool search to be cut at 16,384 characters instead of 2,048”; “Changed subagents to preload at most 32 skills from the skills field, each once”; “Added autoCompactWindow to subagent frontmatter and --agents definitions, so a subagent can auto-compact earlier than the main conversation’s window”; “Updated /cost, the status line, --max-budget-usd and the SDK’s cost figures to price Sonnet 5.5 cache reads at $0.10 per million tokens (was $0.20)”; “Added an allow_large option to the Read tool”; “Reverted the auto mode denial message change from 2.1.281”; “Fixed a saved Claude apps gateway sign-in being ignored on machines whose managed settings set forceLoginMethod to gateway with no forceLoginGatewayUrl (regression in 2.1.295)”. ↩↩↩↩

  52. Claude Haiku 5.5 model overview, the Models overview, the Pricing page, and the Claude Code Model configuration page, fetched October 11, 2026. Model page: “Released October 7, 2026”; “Context window: 1M tokens · Max output: 128K tokens”; input “$0.10 / MTok for prompts up to 100,000 tokens; $0.50 / MTok for prompts over 100,000 tokens”, output “$0.50 / MTok” and “$2.50 / MTok” on the same split, cache read “$0.01 / MTok” and “$0.05 / MTok”; thinking “Adaptive”, default effort medium, reliable and training cutoffs “Jun 2026”, retirement “Not sooner than October 7, 2027”; “the same text counts as approximately 30 percent more tokens than on Claude Haiku 4.5”; Bedrock ID anthropic.claude-haiku-5-5. Pricing page: “A request’s prompt length counts all of its input tokens, including cache reads and cache writes. Each request is priced on its own”; “Cache hits and refreshes on Claude Opus 5.5 and Claude Sonnet 5.5 are priced at 0.05x the base input price”, “Claude Sonnet 5.5 | 0.05x | $0.10 USD”. Model configuration: the alias table resolves haiku to Haiku 5.5 on the Anthropic API and to Haiku 4.5 on Claude Platform on AWS, Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry; “Use v2.1.293 or later with Haiku 5.5”; “once haiku resolves to Haiku 5.5, a session saved on Haiku 4.5 resumes on Haiku 5.5”; “Haiku models are always available and can’t be disabled, so every member keeps at least one usable model”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  53. Claude Code documentation, fetched October 11, 2026. Hooks: onFailure is “Whether the action that triggered the hook goes ahead when the hook fails: "continue" or "block"… Requires Claude Code v2.1.295 or later”; the failures it counts are “Can’t start”, “Exit code other than 0 or 2”, “HTTP error”, “Timeout”, and “Invalid output”; “With "block" set, a failure does what exit code 2 does on that event, except on PermissionRequest, where it denies the request”; “The field has no effect on” Stop, SubagentStop, TaskCompleted, TeammateIdle, and background (async, asyncRewake) command hooks. Environment variables: CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS “Starting delay in milliseconds of the backoff between retries of a request that the API rejects with a 529 overloaded error (default: 500)… Give whole milliseconds from 500 to 32000 in plain digits… Requires Claude Code v2.1.292 or later”; CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS “When unset, the wait has no limit. Requires Claude Code v2.1.295 or later”; CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR “The default is 100 in an interactive terminal session. In a non-interactive session the default is 0, which turns refill off”; CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS “A read that Claude makes with the allow_large parameter can go past this limit when the context window has room”; VERTEX_REGION_CLAUDE_HAIKU_5_5 “Added in v2.1.293”; no entry for CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS or CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Sub-agents: the skills field preloads “up to the first 32 distinct names in the list”; the per-invocation effort parameter “overrides the effort field and stays in effect when the subagent is resumed… requires Claude Code v2.1.292 or later”; autoCompactWindow is not among the listed frontmatter fields. Status line: agentType “Requires Claude Code v2.1.293 or later”. MCP: “Claude Code asks stdio servers for that revision by default. To keep a stdio channel server on the earlier handshake, set MCP_PROTOCOL_NEGOTIATION to legacy, which keeps every server on it.” Plugin CLI reference: claude plugin install takes --marketplace <source>, “Requires Claude Code v2.1.292 or later”. Mods reference: still written “as of v2.1.290”; no entry for $.ui.notify or prompt.autocomplete. ↩↩↩

  54. Managed settings, fetched September 3, 2026. Source for managedSourcesBehavior: first-wins remains the default; setting it to “merge” composes every admin source, with the higher-ranked source winning on most keys, list-valued keys unioning across sources, and the sandbox locks taking the strictest value any source sets; each key is read only from the highest-ranked source that sets it; and managedSourcesBehavior is a control key rather than a policy key, so a source that sets only it does not count as delivering a policy key. ↩

  55. Claude Code CHANGELOG, section 2.1.247, fetched August 27, 2026. npm published 2.1.247 on August 26, 2026 at 18:02 UTC (dist-tag latest: 2.1.247; 2.1.244 remains unpublished), the GitHub release v2.1.247 followed at 23:06 UTC, and the canonical docs changelog dates the release August 26, 2026. Verbatim: “Added the SendFeedback tool: when something goes wrong in a session, Claude can draft a feedback report for you to review and send from /feedback (turn off with the feedbackDrafts setting)”; “Added {id, text, cooldownSessions, priority} entries, tipsFile, and label to spinnerTipsOverride, so organizations can rotate their own tips alongside the built-in ones”; “Added a tip on Bash permission prompts pointing to auto mode, with a one-keystroke ‘Yes, and switch to auto mode’ option”; “Added /claude-api cost-optimize to profile an existing project’s Claude API spend and work through cost levers (caching, token hygiene, batch, effort, model choice) one measured change at a time”; “Updated the /claude-api skill with Admin API coverage (organization members, invites, workspaces, API keys, rate limit reports, workload identity federation, CMEK)”; “Changed Sonnet 5’s default auto-compact window to its full 1M context, so sessions on the 1M window now auto-compact at about 967K tokens instead of about 934K”; “Changed cross-session peer messages to collapse by default to a one-line Message from @<sender>: <first line> preview; Ctrl+O expands the full body”. The settings reference does not yet document feedbackDrafts or the new spinnerTipsOverride keys; the CHANGELOG is the only source for them as of August 27, 2026. ↩↩

  56. Claude Code documentation, fetched August 26, 2026. Managed settings, “Which managed source Claude Code uses”: “Claude Code uses the highest-ranked source that delivers at least one policy key and ignores the rest rather than merging them, apart from the keys in Keys read from every admin source”; “Claude Code shows no warning for the sources it skips; /status names the source it used and the ones it skipped”; order, highest priority first: “1. Remote settings, delivered from claude.ai as server-managed settings or by a Claude apps gateway … 2. MDM or OS-level policies: the macOS plist or the HKLM registry key 3. Managed settings files, managed-settings.d/*.json and managed-settings.json merged together 4. The HKCU registry, on Windows, and on WSL once the HKLM registry or the Windows managed settings file turns wslInheritsWindowsSettings on and the HKCU value also sets it.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Prompt caching: “Unless you choose a TTL yourself, Claude Code requests the one-hour TTL only on a Claude subscription within your plan’s included usage”; the per-bucket table gives Main conversation: One hour (subscription, within plan usage) / Five minutes (usage credits, API key, or cloud provider) and Everything else: “Five minutes, except the server-controlled helper requests, which get one hour” / Five minutes; “Both settings and both environment variables require Claude Code v2.1.242 or later”; precedence: “1. FORCE_PROMPT_CACHING_5M=1, which forces five minutes for both buckets 2. The bucket’s environment variable 3. The bucket’s setting 4. ENABLE_PROMPT_CACHING_1H=1, which requests one hour for both buckets 5. The default for the request’s bucket.”

    Settings reference, modelPicker: “Scope: User or managed. Claude Code reads the key from managed settings, --settings, and user settings, and ignores it in project and local settings so a repository you clone can’t relabel the picker”; “Type: object with an options array of rows and an optional replaceBuiltInOptions Boolean”; “An availableModels allowlist still applies to these rows”; “A label changes what the picker shows, not which model Claude Code runs”; “Requires Claude Code v2.1.242 or later” (the guide’s example reuses the page’s own Bedrock rows). promptCacheTtl and subagentPromptCacheTtl: “Scope: Any file”; “Type: string, one of: "5m" … "1h"”; “Requires Claude Code v2.1.242 or later.” Provider IDs in the settings example come from Amazon Bedrock (“Primary model | Opus 5, for example us.anthropic.claude-opus-5 in a us-* region”), Google Cloud (“Primary model | claude-opus-5”), and Microsoft Foundry (export ANTHROPIC_DEFAULT_OPUS_MODEL='claude-opus-4-8', the newest Opus ID that page names). ↩↩↩

  57. Claude Code CHANGELOG, section 2.1.243, fetched August 26, 2026. npm published 2.1.242 on August 24, 2026 at 19:16 UTC and 2.1.243 at 23:10 UTC; 2.1.242 has no CHANGELOG section, 2.1.244 was never published, and the docs pin the v2.1.242 floor for modelPicker, promptCacheTtl, and the /usage Loops rows. Verbatim: “Added a Loops breakdown to /usage: per-loop run count, total tokens, tokens per run, and last run, so runaway or chatty /loop tasks are easy to spot”; “Added modelPicker setting: curate the /model picker with an ordered, labeled list of models (any id spelling, including Vertex/Bedrock ids), appended to or replacing the built-in lineup”; “Added promptCacheTtl and subagentPromptCacheTtl settings so API-key and cloud-provider users can keep a 1-hour prompt cache on the main conversation while subagents stay at 5 minutes”; “Added modelPricing managed setting so an organization’s contracted per-model rates and discount multiplier are used for /cost, the status line, and telemetry cost figures instead of list price”; “Added a keyless sign-in under /login → Anthropic Console: ‘Sign in with your Console account’ (recommended) alongside creating an API key, so organizations that don’t allow API keys can sign in”;

    “Added a Skipped sources line to /status that lists managed settings sources (for example managed-settings.json) present but not applied because a higher-precedence managed source is active”; “Added a managed marker in /mcp and /plugins on claude.ai connectors whose authentication is managed by your organization”; “Added a tip pointing claude.ai users who haven’t connected GitHub for Claude Code on the web to /web-setup”; “Added a /status line showing whether GitHub is connected for Claude Code on the web (Pro/Max), pointing to /web-setup when it isn’t”; “Added the model (and effort level) each subagent ran on to /tasks and the agent detail dialogs”; “Improved /loop: consecutive wake-ups where Claude has nothing to do now fold into a single line in the terminal instead of printing each one”; “Fixed /web-setup repeatedly asking you to log in when an older GitHub CLI (without gh auth token) was already authenticated”; “Improved native install and auto-update download size: the binary is now zstd-compressed (about 75 MB instead of 340 MB on Linux x64)”; “Changed the cross-session messaging inbox socket to close connections that send no complete line within 30 seconds; scripts posting to it should connect once their data is ready”. ↩↩↩

  58. Claude Code v2.1.234 release notes, August 17, 2026. Adds automatic session continuation when a claude.ai usage limit resets (off via /config → “Continue automatically at usage limit”), CLAUDE_CODE_PROJECT_DIR_NAME, CLAUDE_CODE_GOAL_CHECKIN_MINUTES (default 30; 0 opts out) with /goal self-clearing on unrecoverable errors, mid-turn /permissions and /add-dir, the GitLab MR footer badge, selection:clear, the ~200k→~25k claude-api skill context reduction, NT-namespace (\??\) path rejection across pre-approval file accesses, and the Remote Control account-switch/effort-sync fixes. Fetched August 17, 2026. ↩

  59. Claude Code v2.1.233 release notes, August 14, 2026. Adds GitLab MR support to --worktree/claude agents (!N), opt-in forward_user_identity gateway setting, CLAUDE_CODE_TOOL_MEMORY_LIMIT (Linux cgroup for Bash commands), CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS; removes todo/task-tracking tools by default on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, and newer (CLAUDE_CODE_ENABLE_TODO_TOOLS=1 restores); fixes the v2.1.232 Windows auto-mode approval regression and reverts v2.1.232’s Cygwin-symlink and input-redirection permission changes pending a narrower version; NTLM \??\ path-validation fix, MCP v2 reconnect fix, Notification-hook and Linux idle-CPU fixes, bundled-skill alias shadowing fix. Fetched August 15, 2026. ↩↩

  60. Claude Code v2.1.229 release notes, August 12, 2026. Adds claude remote-control --continue, server-supplied hooks for self-hosted runners, SSE keepalive pings for gateway streaming, plugin marketplace command sources with mode: "link", ListAgents offline/cloud labels, workflow fan-out prefix stagger (CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0 disables), bracketed-IPv6 fail-closed sandbox domain lists, /commit-push-pr dangerous-flag prompting, Windows --base-dir requirement, VSCode session groups and resizable /btw. Fixes include streaming duplication, narrow-terminal RangeError crashes, \\?\/UNC path crashes, auto-mode attribution-header failure, gateway 1M /model rejection, MCP OAuth 127.0.0.1 redirect, GitHub Action review posting, IDE-diagnostics stalls. Fetched August 12, 2026. ↩

  61. Claude Code CHANGELOG, a composite reference for 23 environment variables as of April 2026. OTel exporters (OTEL_LOGS_EXPORTER, OTEL_METRICS_EXPORTER, OTEL_TRACES_EXPORTER) gained none-disable handling in v2.1.85. Sensitive-field gating: OTEL_LOG_TOOL_DETAILS (v2.1.85 tool_parameters), OTEL_LOG_TOOL_CONTENT and OTEL_LOG_USER_PROMPTS (v2.1.101 opt-in, sensitive by default). CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC disables release-notes fetch (v2.0.17); v2.1.110 also stops the auto-title Haiku request in headless/SDK when set. API/model: CLAUDE_CODE_EXTRA_BODY (v2.1.113 fix: no more 400 on Vertex/subagent with output_config.effort), CLAUDE_CODE_MAX_CONTEXT_TOKENS (pre-existing; v2.1.98 fixed DISABLE_COMPACT interaction), CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS (v2.1.0), CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK (v2.1.83), ANTHROPIC_BETAS (v2.1.78 fix on Haiku), ANTHROPIC_SMALL_FAST_MODEL (v0.2.125 stopped escaping Bedrock ARN slashes). Plugins/MCP: CLAUDE_CODE_PLUGIN_CACHE_DIR (v2.1.72 fixed literal-tilde dir), CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE (v2.1.90 offline-friendly), CLAUDE_CODE_MCP_SERVER_NAME + CLAUDE_CODE_MCP_SERVER_URL (v2.1.85 headersHelper context). Shell/IDE: CLAUDE_CODE_SHELL_PREFIX (v1.0.61), CLAUDE_CODE_GIT_BASH_PATH (v2.1.98 Windows), CLAUDE_CODE_EXIT_AFTER_STOP_DELAY (v2.0.35 SDK idle), CLAUDE_CODE_AUTO_CONNECT_IDE (v1.0.61). Enterprise: CLAUDE_CODE_PROXY_RESOLVES_HOSTS (v2.0.55 moved from default-on to opt-in), CLAUDE_CODE_API_KEY_HELPER_TTL_MS (apiKeyHelper refresh + 5-min default added v0.2.74; env var for overriding the TTL added v0.2.117). Also: ENABLE_PROMPT_CACHING_1H_BEDROCK, a Bedrock-scoped alias for ENABLE_PROMPT_CACHING_1H; deprecated in v2.1.108 but still honored with a deprecation notice. ↩↩↩↩↩

  62. Claude Code canonical CHANGELOG, section 2.1.299, fetched October 14, 2026, and npm registry metadata for @anthropic-ai/claude-code read the same day: 2.1.299 published October 14, 2026 at 00:23 UTC and 2.1.300 at 14:27 UTC; dist-tags latest 2.1.299, next 2.1.300, stable 2.1.287; no 2.1.297 or 2.1.298 on npm and no CHANGELOG section for them or for 2.1.300. The GitHub release (02:49 UTC) carries 190 bullets, identical to the CHANGELOG. Source for every v2.1.299 item in this guide. Key quotes: “Added idle compaction in the terminal: a 200K+ token conversation left idle for about 54 minutes is compacted before its one-hour prompt cache expires, so your next message doesn’t reprocess it all”; “Added CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS to change idle compaction’s 200K-token minimum; "idleCompaction": false in settings.json turns it off. Both need v2.1.290 or later”; “Added CLAUDE_CODE_DISABLE_FILE_MENTIONS environment variable: Claude gets the paths of @ file mentions to read with its file tools, not the files’ contents”; “Changed MCP allow rules to reach only the server they name: mcp__a no longer allows a server named a__b or a_; write mcp__<server>__* with the server’s whole normalized name”;

    “Changed agent tools: lists to take only the named MCP server’s tools; list a server whose name contains __ as mcp__<whole name>__*”; “Changed MCP tool descriptions and server instructions from Anthropic’s first-party MCP servers at api.anthropic.com to reach Claude in full instead of being cut at 4,096 characters”; “Changed cloud session and Remote Control MCP connectors to negotiate MCP protocol version 2026-07-28 by default on installs that fetch no flags; MCP_PROTOCOL_NEGOTIATION=legacy opts out”; “Changed UserPromptSubmit hooks to run before a skill or custom slash command expands, so a hook that blocks the prompt now also stops its embedded shell commands”; “Changed the turn.start mod hook to also hear subagents’ and teammates’ turns, not only the main loop’s; tell them apart by e.agentId (absent on the main loop)”; “Fixed rm prompts on shell -c scripts that don’t run rm. An rm built at run time in a script Claude Code can’t read no longer prompts unless CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT=1”;

    “Added --shutdown-drain-sec to claude self-hosted-runner orchestrator: on SIGTERM it stops polling and gives the poll in flight and running spawn hooks up to that many seconds to finish”; “Added --disallow-tools and a disallowed_tools case field to claude plugin eval to keep specific built-in tools, such as Agent, out of eval runs”; “Added support for turning off the attribution block in Claude Desktop’s Code tab: set CLAUDE_CODE_ATTRIBUTION_HEADER=0 in the env of a Claude apps gateway’s code policy”; “Added /effort and /fast in agent view to set what new sessions start with; a bare /model, /effort or /fast there now opens a picker”; “Changed actions a plugin hook can block to be refused, not let through, when the hook cannot be handed them or cannot hand back its answer; a tool that already ran has its result withheld”; “Fixed a regression in 2.1.296 where cloud and headless sessions could run an approved tool call twice if a new message arrived as the session resumed after a restart”; “Changed the cyber safeguard notice to no longer ask people to apply to the Cyber Verification Program”. ↩↩↩↩↩

  63. Claude Code documentation, fetched October 14, 2026. Settings reference: idleCompaction, “Stop Claude Code from compacting a long conversation that you’ve stepped away from”; “Idle compaction is on by default for conversations that meet its conditions. To turn it off, set idleCompaction to false. Requires Claude Code v2.1.290 or later”. Environment variables: CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS “Context size, in tokens, at which idle compaction applies to a conversation (default: 200000)”, with values below 100000 raised to 100000; CLAUDE_CODE_DISABLE_FILE_MENTIONS “Requires Claude Code v2.1.299 or later”, ignored in project and local settings; CLAUDE_CODE_ATTRIBUTION_HEADER “Set to 0 to omit the attribution block”; CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS “Ceiling in milliseconds on the backoff between retries of a request that the API rejects with a 529 overloaded error (default: 32000)”; still no entry for CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL or CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT. Sub-agents: autoCompactWindow is now a listed frontmatter field, “a token count of 100000 or more”; tools and disallowedTools “also take entries for a whole MCP server”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Mods reference: still “as of v2.1.290”; “On skill.prompt, e.source, e.pluginName, e.path, e.frontmatter, and e.frontmatterProblem require Claude Code v2.1.299 or later”; turn.start is listed among the events; no $.prompt.media, $.session.identity, tabular, or serverToolUses. Plugin evals: “Before v2.1.299, such a run was graded on what it had produced”; no --disallow-tools. MCP: the limits list still reads “Server instructions, and the description of a tool that loads upfront: 4,096 characters” with no first-party exception; on the v2 runtime Claude Code “Asks HTTP, stdio, and claude.ai connector servers whether they support the newer revision, and uses it with those that do”. Permissions: “Allow rules accept tool-name globs only after a literal mcp__<server>__ prefix. The server segment must be glob-free so the rule names a specific server you configured.” Hooks: CLAUDE_CODE_DISABLE_FILE_MENTIONS is described (“your matching PreToolUse hooks run”); no statement that UserPromptSubmit runs before a skill or command expands. ↩↩↩

  64. Claude Code canonical CHANGELOG, section 2.1.300, fetched October 14, 2026 (21:40 PT), and npm registry metadata for @anthropic-ai/claude-code read at the same time: 2.1.300 published October 14 at 14:27 UTC; dist-tags latest 2.1.300, next 2.1.300, stable 2.1.292 (it was 2.1.287 that morning). The GitHub release (18:24 UTC) carries 88 bullets, identical to the CHANGELOG. Source for every v2.1.300 item in this guide. Key quotes: “Added /advisor on Claude Platform on AWS; no advisor runs until you pick one with /advisor, advisorModel or --advisor, and CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 turns it off”; “Added virtualText to a mod’s prompt decorations: text drawn in the prompt box that never enters the draft or the submitted prompt”; “Added $.ui.view({ agentId }) for mods: shows an agent’s transcript in the main view when you ask, and $.ui.view({}) goes back”; “Added the prompt.change mod hook, raised when the prompt box’s text changes without a typed edit: a recalled history entry, a clear, an undo, or a plugin’s fill”; “Added cache_creation_5m_tokens and cache_creation_1h_tokens to the OpenTelemetry api_request event, splitting cache writes by lifetime”;

    “Added OpenTelemetry GenAI semantic-convention attributes to trace spans, such as gen_ai.provider.name, gen_ai.conversation.id, gen_ai.tool.name and error.type”; “Changed large requests to api.anthropic.com to use gzip compression even when telemetry is disabled; set CLAUDE_CODE_GZIP_REQUEST_BODIES=0 to turn it off”; “Changed hooks: 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”; “Removed the --sandbox and --no-sandbox flags from claude remote-control, which had no effect; passing either now exits with an error. Set sandbox.enabled in settings to sandbox sessions”; “Changed local session transcripts to also record each API request’s system prompt, tools and parameters, so a transcript you choose to share can reproduce a request exactly”; “Changed exit to force-kill background commands still running 1.5 seconds after being asked to stop”; “Fixed SessionEnd hooks sometimes not running when you exit while a background command is still running”; “Fixed claude daemon stop --any printing "stopped" while a stuck background service kept running: it now waits, force-kills the service, and says so with exit 1 if it is still there”. ↩↩

  65. Claude Code documentation, fetched October 14, 2026. Escalate hard decisions with the advisor tool: “The advisor tool is experimental and requires the Anthropic API, Claude Platform on AWS, or Claude Models on Google Cloud (Anthropic managed). On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), it requires Claude Code v2.1.300 or later. It isn’t available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry”; “The advisor receives the full conversation, including every tool call and result, and returns guidance that Claude applies before continuing”; “runs server-side on Anthropic’s infrastructure as a server tool, available to both subscription and API-billed accounts”; “There is no setting to cap or force advisor calls”; three ways to enable: “/advisor command”, “advisorModel setting”, “--advisor flag”; the text form of /advisor “requires Claude Code v2.1.260 or later”; “It doesn’t list --advisor in claude --help”; pairing rows “Opus 4.7 or Opus 4.8 | Fable, Opus 4.7 or later, Sonnet 5.5”, “Sonnet 5.5 | Fable, Opus 5 or later, Sonnet 5.5”, “Opus 5 or Opus 5.5 | Fable, Opus 5 or later”, “Fable 5.1 | Fable 5.2 or Fable 5.1”; “Haiku 4.5 can call the advisor but can’t act as one”; “Subagents inherit the configured advisor and apply the same pairing check against their own model”; “If the API refuses the pairing of an advisor that Claude Code attached, Claude Code resends that request without the advisor. The conversation continues without one, so you see no error and get no advisor calls”; Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    cost: “you pay the advisor model’s input and output rates for advisor tokens”, “advisor usage counts toward your plan’s usage limits, except that a Fable advisor bills to usage credits”; “toggling /advisor keeps the cached prefix intact”; “The advisor model’s own read of the conversation is not cached”; requirements include “Feature-flag fetching”, so with DISABLE_TELEMETRY “the advisor stays off”; CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1: “The /advisor command becomes unavailable and any configured advisorModel is ignored. The --advisor flag is accepted but has no effect”; transcript states “Reviewed”, “Declined”, “Unavailable”. CLI reference: --advisor <model> “Enable the server-side advisor tool for this session with a model alias, fable, opus, or sonnet, or a full model ID. Takes precedence over the advisorModel setting for the session”. Settings reference: advisorModel “Pick which model answers when Claude asks the advisor tool”. Environment variables: CLAUDE_CODE_DISABLE_ADVISOR_TOOL, and CLAUDE_CODE_GZIP_REQUEST_BODIES “Set to 0 to turn off gzip compression of Claude API, telemetry, and artifact publish request bodies sent to api.anthropic.com”. Mods reference: still “as of v2.1.290”; no virtualText, $.ui.view, or prompt.change entry. Re-read November 10, 2026: the page now says “The advisor tool is experimental and requires the Anthropic API or Claude Platform on AWS. On Claude Platform on AWS, it requires Claude Code v2.1.300 or later. It isn’t available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry”, and the pairing table has new rows (see 284). ↩↩↩

  66. Claude Code canonical CHANGELOG, sections 2.1.301 and 2.1.302, fetched October 17, 2026 (15:40 PT), and npm registry metadata for @anthropic-ai/claude-code read at the same time: 2.1.301 published October 15 at 14:34 UTC, 2.1.302 on October 16 at 16:48 UTC; dist-tags latest 2.1.302, next 2.1.302, stable 2.1.292. The GitHub releases v2.1.301 (19:22 UTC, 51 bullets) and v2.1.302 (20:53 UTC, 63 bullets) are identical to the CHANGELOG. Source for every v2.1.301 and v2.1.302 item in this guide. Key quotes, 2.1.302: “Changed claude -p and Agent SDK sessions with no permission mode to start in default mode on third-party providers, with telemetry off or on a fresh install; --permission-mode auto keeps auto”; “Changed fork subagents (subagent_type: "fork") to be on by default in claude -p, the Agent SDK, the desktop app and VS Code, as they already are in the terminal; CLAUDE_CODE_FORK_SUBAGENT=0 turns them off, and claude mcp serve never offers them”; “Changed the desktop app and VS Code to always run the main conversation’s subagents in the background, as the terminal does, rather than let Claude choose; a subagent’s own Agent calls in claude -p, the Agent SDK, the desktop app and VS Code now run in the foreground by default”;

    “Changed prompt and agent hooks so that at most 12 of one event run at a time; the rest wait their turn”; “Added CLAUDE_CODE_AUTO_MODE_MODEL to choose the model the client-side auto mode classifier uses; it does not change the model for server-side auto mode”; “Added an Idle compaction row to /config for turning idle compaction off or back on; the notices shown after an idle compaction now say how to turn it off”; “Added a notice to /design-sync and /design-login that standalone Claude Design (claude.ai/design) closes by December 14, 2026”; “Fixed the Read tool loading an image file of any size, or a pipe or device named like an image, entirely into memory; image sources over 128 MB are now refused”; “Improved auto mode with the server-side classifier: a conversation too long for the safety check is now compacted, instead of every checked tool call being denied”.

    2.1.301: “Added CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) ends a request at a usage limit that resets too far away instead of waiting”; “Added the % motion to vim mode: jump to the matching bracket, alone or with d/c/y”; “Added rows to a mod’s Input: a text field of several lines in the terminal, where Enter submits and Shift+Enter or a backslash before Enter starts a new line”; “Added classifier_verdict and permission_mode to OpenTelemetry tool_decision events, so auto mode classifier decisions can be told apart from permission rules”; “Added classifier_category to OpenTelemetry tool_decision events, naming the built-in rule a classifier block matched, when OTEL_LOG_TOOL_DETAILS=1”; “Fixed the fable (and best) model alias erroring on the Anthropic API when the newest Fable model is not available to your organization: Claude Code now retries once on the previous Fable model”; “Improved switching to a model with a smaller context window: a conversation too long for the new model is now summarized by the previous model first”; “Changed a mod hook’s .catch handler to run only when the hook throws or times out; events raised beneath the hook’s own calls now skip that hook without asking its .catch”; “Changed a mod’s $.env.set to resolve with {} once the variable is set or unset, or with { deny } saying why when the write is not made”. ↩↩↩

  67. Claude Code documentation, fetched October 17, 2026. Interactive mode: “% | Jump to the matching (), [], or {} bracket, starting from the next bracket on the current line when the cursor isn’t on a bracket. Requires Claude Code v2.1.301 or later” and “d%/c%/y% | Delete, change, or yank from the cursor through the bracket that % jumps to”. VS Code lists LaTeX math rendering. Still on the pre-2.1.302 rules: the permission modes table (“claude -p or the Agent SDK | default in sessions that fetch feature flags. In sessions that don’t, such as on a third-party provider or with telemetry off, auto with Claude Code v2.1.285 or later”); the environment variables page (CLAUDE_CODE_FORK_SUBAGENT “is on by default in interactive sessions only. Set to 1 to turn it on in claude -p and the Agent SDK as well, or 0 to turn it off in every kind of session”); and the subagents page (“Fork mode is off in non-interactive mode with -p and in the Agent SDK unless you turn it on”).

    Not in the docs at all: CLAUDE_CODE_AUTO_MODE_MODEL, CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, the tool_decision attributes classifier_verdict, permission_mode, and classifier_category (monitoring lists none of them), the /config Idle compaction row, the Claude Design closing date, and the 12-hook cap (hooks: “All matching hooks run in parallel”). The mods docs now form a section: overview, reference (“Entries cover the Claude Code CLI and the Desktop app as of v2.1.290, and the VS Code extension as of v2.1.299”), events (.catch: “When guard throws or times out on a Bash call, Claude Code calls the handler with the same event”, without the v2.1.301 re-entry rule), API, and interface; none of the new pages mentions rows on Input, $.env.set, nothing-to-fork, virtualText, $.ui.view, prompt.change, $.prompt.media, or $.session.identity. The advisor page still says the tool “is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry”. ↩

  68. Claude Code canonical CHANGELOG, sections 2.1.303 through 2.1.310, fetched October 23, 2026 (17:20 PT), and npm registry metadata for @anthropic-ai/claude-code read at the same time: 2.1.303 published October 18 at 21:15 UTC, 2.1.304 October 19 at 19:47 UTC, 2.1.305 October 20 at 19:29 UTC, 2.1.306 October 21 at 02:28 UTC, 2.1.307 October 21 at 20:47 UTC, 2.1.308 October 22 at 04:19 UTC, 2.1.309 October 22 at 20:34 UTC, 2.1.310 October 23 at 21:20 UTC; dist-tags latest 2.1.310, next 2.1.310, stable 2.1.308. The GitHub releases carry 1, 76, 38, 2, 43, 1, 79, and 26 bullets, identical to the CHANGELOG. Source for every v2.1.303 to v2.1.310 item in this guide.

    Key quotes, 2.1.304: “Added /auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions”; “Added decider: "person" to a mod’s tool.check answer: only the permission dialog or a host’s callback can approve the ask, and it is refused with the mod’s reason where nobody can be asked”; “Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit”; “Changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it”; “Changed mods’ settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization’s setting a ceiling”; “Changed skill hooks: 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.1.305: “Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox’s file protections”; “Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset”; “Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools (a 2.1.304 regression): Claude Code now retries without it”; “Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor”; “Changed allowedMcpServers to stop filtering managed-mcp.json stdio servers that use ${VAR} only in env: one your allowlist left out now loads on upgrade; use deniedMcpServers to keep it off”.

    2.1.307: “Added /claude-api api-version to move Claude API code to API version 2026-10-21”; “Added the claude_code.safety_event OpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back”; “Improved fork subagents launched together: each is now told which launch is its own, so forks are much less likely to try to start each other’s work”; “[Code Review] Added @claude review stop (also off and pause) to Code Review, ending an @claude review always subscription on a pull request without starting a new review”. 2.1.309: “Fixed sandboxed Bash commands on macOS and Linux running the shell’s startup files outside the sandbox before each command”; “Changed sed -i to get the standard Bash prompt and run as written, not a simulated file-edit preview; like other Bash edits, it is no longer restored by /rewind”; “Changed claude ultrareview to require workspace trust: it asks on a terminal, else refuses; scripts pass --trust-workspace, which takes no value (put a PR number or base branch before it), or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1”; “Fixed sessions compacting repeatedly after reading files under a very large nested CLAUDE.md; a nested CLAUDE.md over the size limit now loads only its start”; “Changed worktree creation and reuse so git no longer fetches objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured; such a partial clone fetches them first”.

    2.1.310: “Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too”; “Fixed requests failing behind some gateways and compatible servers that reject the effort-2025-11-24 beta value or mid-conversation system messages; Claude Code now retries without them”; “Linux: Improved /sandbox and the sandbox startup warning to name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox”. ↩↩↩↩

  69. Claude Code documentation, fetched October 23, 2026. Now documented: environment variables lists CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS, CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK (“Set it in the environment that launches Claude Code, not a settings env”), CLAUDE_CODE_AUTO_COMPACT_WINDOW (“Suffixed values such as 200k require v2.1.304 or later”), and CLAUDE_CODE_AUTO_MODE_MODEL (“Use a full model ID”), and now says CLAUDE_CODE_FORK_SUBAGENT “Controls fork mode, which is on by default”; the settings reference lists sandbox.allowNestedUserNamespaces (“User or managed”); the auto mode configuration page has “Generate environment entries with /auto-mode-setup”; the costs page: “When the /usage footer shows a hint such as f to fix 2 of 3, press f to have Claude Code act on the recommendations it can. The f shortcut requires Claude Code v2.1.305 or later”; slash commands lists /claude-api api-version (“v2.1.307 or later”) and managed-agents-secure [<agent-id>]; monitoring lists safety_event and classifier_verdict (“Requires Claude Code v2.1.301 or later”);

    the ultrareview page documents --trust-workspace (“Takes no value: put a PR number or base branch before it”) and the Error: Workspace not trusted exit; the code review page lists the Quick, Standard, and Deep levels; hooks carries the 1,024-hook and 16,384-character caps; the mods reference stamps e.isReadOnly “v2.1.304 or later”; the sandboxing page carries the Ubuntu AppArmor profile; and the permission modes table now reads “claude -p or the Agent SDK | default”, matching v2.1.302. Still release-notes only: decider: "person", settings.read layers, @claude review stop, the sed -i change, the tool-search default behind a custom base URL, the Pro and Max resume warning, --checkout-hook-timeout-min, multiagent_20261001, CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, the Claude Design closing date, and the mod additions $.env.set, virtualText, $.ui.view, and prompt.change; the advisor page still says the tool “is not available on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, or Microsoft Foundry”. ↩↩↩↩

  70. Share session output as artifacts, Claude Code documentation, fetched October 26, 2026: “Templates are in beta. They’re on by default on Pro, Max, Ultra, and Team plans” (re-read November 10, 2026; “Pro, Max, and Team plans” on October 26); “If your organization has the Slides template turned off, /slides doesn’t appear”; the Disable artifacts table (/config, "enableArtifact": false, the deprecated "disableArtifact": true, CLAUDE_CODE_DISABLE_ARTIFACT=1, Artifact in permissions.deny); “Honoring the key in project and local settings requires Claude Code v2.1.242 or later”. Environment variables, same fetch: CLAUDE_CODE_ARTIFACT_AUTO_OPEN (“Set to 0 to stop Claude Code from opening the browser automatically when a new artifact is published”), CLAUDE_CODE_DISABLE_WORKFLOWS (“Equivalent to the disableWorkflows setting”), CLAUDE_CODE_MAX_TURNS (“Equivalent to passing --max-turns, which takes precedence when both are set. A value that is not a positive integer is rejected at startup”); the page no longer lists CLAUDE_CODE_WORKFLOWS. Settings reference, same fetch: disableWorkflows (“whichever of the two turns them off, the other can’t turn them back on”) and enableWorkflows (“Default: unset, so workflows are on unless you’re on the Pro plan, where they’re off”; “Appears in /config as Dynamic workflows”). ↩↩

  71. Claude Code CHANGELOG, v2.1.311 through v2.1.317 (commits 2026-10-26T21:51Z, 10-27T20:23Z, 10-30T01:06Z, 10-31T01:01Z, and 11-03T01:25Z) and the matching GitHub releases v2.1.311 (2026-10-26T21:51:23Z), v2.1.312 (10-27T20:24:20Z), v2.1.314 (10-30T01:06:26Z), v2.1.316 (10-31T01:01:35Z), and v2.1.317 (11-03T01:25:46Z), each identical to its CHANGELOG section; npm publish times from npm view @anthropic-ai/claude-code time: 2.1.311 2026-10-26T19:47:57Z, 2.1.312 10-27T18:36:10Z, 2.1.314 10-30T00:12:56Z, 2.1.315 10-30T21:05:24Z (no CHANGELOG entry, no GitHub release), 2.1.316 10-31T00:42:05Z, 2.1.317 11-02T23:57:53Z; dist-tags on 2026-11-02: latest and next 2.1.317, stable 2.1.311. Verbatim, 2.1.311: “Changed ultrathink in the interactive terminal to run its turn at xhigh effort on Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1 through Anthropic’s API; typed while Claude is working, it raises the rest of that turn”. 2.1.316: “Deprecated fast mode for Opus 4.8 as of October 30, 2026; it will be removed on November 30, 2026. After removal, fast mode requests on Opus 4.8 return an error and do not fall back to standard Opus 4.8. Migrate to Opus 5.5 to keep the speedup”. 2.1.314: “Added permissions.blockWritesOutsideWorkingDirectories: Write, Edit and NotebookEdit refuse paths outside the working directories in every permission mode”. 2.1.312: “Changed prompt and agent hooks to 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”; “Changed Claude Code to stop sending the claude_code.safety_event OpenTelemetry event”. 2.1.317: “Added anthropic.plan, anthropic.seat_type, anthropic.provider and anthropic.custom_base_url to OTel metrics, events and spans”. ↩↩↩↩↩↩↩

  72. Claude Code documentation, fetched November 2, 2026: Speed up responses with fast mode (“Fast mode for Opus 4.8 was deprecated on October 30, 2026, and will be removed on November 30, 2026. If Opus 4.8 is still your model with fast mode on after that date, the API rejects your requests”); Model configuration (“The terminal prompt, where the word shows in rainbow colors when it can raise the turn. Requires Claude Code v2.1.311 or later.”); All settings for permissions.blockWritesOutsideWorkingDirectories (“Make the Write, Edit, and NotebookEdit tools refuse paths outside your working directories in every permission mode, including bypassPermissions”; “Once the key is on, Claude Code also removes the EnterWorktree and ExitWorktree tools”), idleCompaction (on by default “in an interactive terminal session, in the VS Code extension’s chat panel, or in the desktop app’s Code tab when the session runs on your machine or over SSH”), and disableRemoteControl (“Claude Code refuses claude remote-control, the --remote-control flag, auto-start, and the in-session toggle”); Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Environment variables for CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT, CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK, CLAUDE_CODE_SYNC_SKILLS, CLAUDE_CODE_TRANSCRIPT_LOCAL_GC, CLAUDE_CODE_SKIP_PROMPT_HISTORY, CLAUDE_CODE_DISABLE_CFC_PROMPT, and FORCE_HYPERLINK (“Before v2.1.314, false, no, and off enabled hyperlinks instead”); the page does not yet list CLAUDE_CODE_DISABLE_ULTRATHINK, CLAUDE_CODE_SUBAGENT_EFFORT, CLAUDE_CODE_MODEL_CATALOG, CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP, CLAUDE_CODE_DISABLE_NESTED_SESSION_ID, or OTEL_EXPORTER_OTLP_TIMEOUT; Create custom subagents (“The CLAUDE_CODE_EFFORT_LEVEL environment variable takes precedence over both”); Self-hosted environments reference (--hold-idle-file, --max-hold-min: “Requires Claude Code v2.1.311 or later”); Self-hosted environments (“in public beta on Team and Enterprise plans and are off by default”); Configure server-managed settings; Claude apps gateway configuration (“policy_mode requires Claude Code v2.1.316 or later on the gateway server”; identity_retention_days “Default 90”); Continue local sessions from any device with Remote Control. Sitemap lastmod moved on 137 code.claude.com pages between October 26 and November 3; the Wayback CDX index shows none of them first published in that window. ↩↩↩↩↩

  73. Claude Code CHANGELOG, v2.1.318 through v2.1.322 (commits 2026-11-04T00:00Z, 11-06T17:03Z, 11-09T19:22Z, and 11-10T02:29Z) and the matching GitHub releases v2.1.318 (2026-11-04T00:01:03Z), v2.1.319 (11-06T17:04:01Z), v2.1.321 (11-09T19:22:30Z), and v2.1.322 (11-10T02:29:43Z), each identical to its CHANGELOG section (84, 146, 118, and 1 bullets); no v2.1.320 tag, release, or CHANGELOG section exists. npm publish times from npm view @anthropic-ai/claude-code time: 2.1.318 2026-11-03T21:55:17Z, 2.1.319 2026-11-06T00:58:56Z, 2.1.321 2026-11-09T19:02:47Z, 2.1.322 2026-11-10T01:58:41Z; dist-tags at 2026-11-10: latest 2.1.322, next 2.1.322, stable 2.1.311. Verbatim, 2.1.321: “Added Claude Fable 5.2 (claude-fable-5-2), now the default Fable model”, with “1M context, $8/$40 per Mtok with $0.20/Mtok cache reads”; “Changed saved Fable 5.1 model picks to move to fable: on Pro and Max plans at once, on Team and Enterprise plans once your organization allows it; use /model claude-fable-5-1 to switch back”; “Added --settings <file> to claude remote-control, which applies a settings file to every session it starts”; “Changed mods Claude writes to turn on without asking in auto and bypass modes … and not to load in dontAsk mode”; “Changed mods’ own tool calls ($.tool.call, $.mcp.call) to raise no permission prompt”. 2.1.322: “Added fast mode on Vertex in the global, us and eu regions, falling back to standard speed if Vertex refuses it”.

    2.1.319: “Changed auto mode with telemetry or feature flags off, including behind LLM gateways: calls the server can’t check are asked about or denied, with no fallback to the built-in classifier; set CLAUDE_CODE_AUTO_MODE_SERVER=0 to keep using it (Bedrock, Vertex and Foundry are unchanged)”; “Added support for MCP tasks in the terminal”; “Added permissions.denyInsteadOfPrompting setting: a tool call that would wait on a permission prompt is denied and the turn continues, in terminal sessions, subagents and teammates”; “Added the CLAUDE_CODE_DISABLE_FEATURE_FLAGS environment variable, which stops feature-flag fetching without turning off telemetry”; “Changed MCP tasks to work in the terminal without feature-flag fetching (Bedrock, Vertex, Foundry, LLM gateways, DISABLE_TELEMETRY); set CLAUDE_CODE_DISABLE_MCP_TASKS=1 to turn them off”; “Changed self-paced /loop to end when a turn finishes without rescheduling … set CLAUDE_CODE_LOOP_KEEPALIVE=1 to keep the old behavior”; “Removed shortcuts_list and shortcuts_execute … from Claude Code’s built-in Claude in Chrome tools”. 2.1.318: “Added the date a stored claude.ai sign-in ends to claude auth status (loginExpiresAt) and to claude -p JSON results (credential_expires_at)”; “Changed Claude Code to no longer install or update the IDE extension when started in an IDE terminal”; “Changed background subagents to move a shell command to the background after 3 minutes on all providers”. ↩↩↩

  74. Anthropic documentation, fetched November 10, 2026. Claude Fable 5.2 model overview: “Released November 9, 2026”; “Context window: 1M tokens · Max output: 128K tokens · Input pricing: $8 / MTok · Output pricing: $40 / MTok”; the pricing table (5m cache write $10, 1h cache write $16, cache read $0.20); “Default effort | high”; “Reliable knowledge cutoff | Jun 2026”; “requires 30-day data retention and isn’t available under zero data retention unless expressly authorized by Anthropic”; Mythos 5.2 “shares Claude Fable 5.2’s specifications and pricing”. Pricing: the Fable 5.2 row ($8 / $10 / $16 / $0.20 / $40), the Fable 5.1 row ($10 / $12.50 / $20 / $0.25 / $50), “Cache hits and refreshes on Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, and Claude Mythos 5.1 are priced at 0.025x the base input price”, the fast-mode table (“Claude Fable 5.2 | $16 USD / MTok | $80 USD / MTok”), and “Fast mode for Claude Fable 5.2 is also available on Claude Models on Google Cloud”. Introducing Claude Fable 5.2 and Claude Mythos 5.2.

    Model configuration: “best | Uses the same model as opus” (the Wayback Machine’s November 2, 6, and 9 captures of the same page read “Uses the model the fable alias resolves to where Fable is available”); “the fable alias resolves to Fable 5 in Claude apps gateway sessions and to Fable 5.2 everywhere else”; “No Fable model is the account-type default on any plan or provider”; “On Pro, Max, Ultra, Team, and Enterprise plans, a claude-fable-5-1 model saved in your user settings moves to the fable alias”; “Fable 5.2 requires Claude Code v2.1.321 or later”; “Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to medium, and Opus 4.7 defaults to xhigh”. Fast mode: “Fast mode for Claude Fable 5.2 and Claude Opus 5.5 is available. Fast mode for Claude Opus 5 and Claude Opus 4.8 is in research preview”; “$16/$80 on Fable 5.2, $8/$40 on Opus 5.5, and $10/$50 on Opus 5 and Opus 4.8”; “Fast mode on Fable 5.2 requires Claude Code v2.1.321 or later”; “On Fable 5.2, fast mode persists only if you turned it on while using Fable 5.2”; the Agent Platform section (“Requires Claude Code v2.1.322 or later”, “export VERTEX_REGION_CLAUDE_FABLE_5_2=global”, “Fast mode needs Vertex region global, us or eu”, “Using standard speed on Fable 5.2 · fast mode wasn’t available”). All settings: “permissions.denyInsteadOfPrompting … Requires Claude Code v2.1.319 or later”; “Scope: User or managed, and --settings. A repository can’t set it for you”; the “What else denyInsteadOfPrompting stops” list.

    Environment variables: CLAUDE_CODE_DISABLE_FEATURE_FLAGS (“Requires Claude Code v2.1.319 or later … The older name, DISABLE_GROWTHBOOK, still works, and it is the only one that v2.1.124 through v2.1.318 read”), CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND (“Requires Claude Code v2.1.304 or later”). MCP: “MCP tasks are in public beta in the Claude Code CLI and require Claude Code v2.1.304 or later”; the “What a call needs to become an MCP task” list; “A one-shot claude -p "<prompt>" run doesn’t get MCP tasks”. Costs: “subscription plan pricing (Pro, Max, Ultra, Team, Enterprise)”; claude.com/pricing: “Free, Pro, Max, Ultra, Team, and Enterprise tiers”. Escalate hard decisions with the advisor tool, accepted advisors by main model: “Haiku 4.5 | Fable, Opus, Sonnet, Haiku 5.5”, “Sonnet 4.6 | Fable, Opus, Sonnet, Haiku 5.5”, “Opus 4.6 | Fable, Opus, Sonnet 5 or later, Haiku 5.5”, “Sonnet 5 or Haiku 5.5 | Fable, Opus 4.7 or later, Sonnet 5 or later, Haiku 5.5”, “Opus 4.7 or Opus 4.8 | Fable, Opus 4.7 or later, Sonnet 5.5”, “Sonnet 5.5 | Fable, Opus 5 or later, Sonnet 5.5”, “Opus 5 or Opus 5.5 | Fable, Opus 5 or later”, “Fable 5 | Fable 5.2, Fable 5.1, or Fable 5”, “Fable 5.1 | Fable 5.2 or Fable 5.1”, “Fable 5.2 | Fable 5.2”; “Fable 5.2 requires Claude Code v2.1.321 or later, and Fable 5.1 requires v2.1.257 or later”. ↩↩↩↩

  75. Claude Code Docs. “Model configuration.” Fetched November 10, 2026. Default model by plan and provider: “Pro, Max, Ultra, Team, Enterprise, and Anthropic API: defaults to Opus 5.5”; “Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed), Amazon Bedrock, and Google Cloud’s Agent Platform: defaults to Opus 5.5”; “Microsoft Foundry: defaults to Sonnet 4.5”. On the ultrathink keyword: “Run /model in your session to switch to an Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, or Fable 5.1 model.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  76. Claude Code CHANGELOG, fetched November 10, 2026. v2.1.15: “Added deprecation notification for npm installations - run claude install or see https://code.claude.com/docs/en/setup for more options” v2.1.113: “Changed the CLI to spawn a native Claude Code binary (via a per-platform optional dependency) instead of bundled JavaScript” v2.1.208: “Added CLAUDE_CODE_PROCESS_WRAPPER: agent view and the background service now honor a corporate launcher by running every Claude Code self-spawn through a required wrapper executable” v2.1.224: “Removed the 200-subagent-per-session spawn cap; long-running sessions no longer refuse new agents (concurrency and depth limits still apply)” v2.1.271: “Changed the default dynamic workflow size to small on Pro plans and lowered the medium size guideline from 15 to 10 agents” Node floor, from npm view @anthropic-ai/claude-code@<version> engines run November 10, 2026: 2.1.197 "node": ">=18.0.0"; 2.1.198 and 2.1.322 "node": ">=22.0.0". ↩

  77. Claude Code Docs. “Environment variables.” Fetched November 10, 2026. Rows quoted: CLAUDE_CODE_SHELL, “Other shells such as fish are not supported.”; DISABLE_FEEDBACK_COMMAND, “The older name DISABLE_BUG_COMMAND is also accepted”; CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION, “Removed in v2.1.224 and now a no-op.”; BASH_DEFAULT_TIMEOUT_MS, “(default: 120000, or 2 minutes)”; MCP_TIMEOUT, “Timeout in milliseconds for MCP server startup (default: 30000, or 30 seconds)”; MCP_TOOL_TIMEOUT, “Timeout in milliseconds for MCP tool execution (default: 100000000, about 28 hours).”; BASH_MAX_OUTPUT_LENGTH, “If you set the bashOutputMaxChars setting, Claude Code ignores this variable.”; CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS, “By default the budget is 1.5 seconds, automatically raised to the highest per-hook timeout configured in settings files, up to 60 seconds.”; ANTHROPIC_DEFAULT_SONNET_MODEL, “Model ID that the sonnet alias resolves to, and that opusplan uses when Plan Mode is not active.”; ANTHROPIC_SMALL_FAST_MODEL, “[DEPRECATED] Name of Haiku-class model for background tasks”; CLAUDE_CODE_TOOL_MEMORY_LIMIT, “Write the size in plain digits, alone for a number of bytes or with a K, M, G, or T suffix.”; VERTEX_REGION_CLAUDE_5_5_OPUS, “Added in v2.1.280”; VERTEX_REGION_CLAUDE_FABLE_5_2, “Added in v2.1.321”. The same page carries the rows for MAX_THINKING_TOKENS, CLAUDE_CODE_MAX_OUTPUT_TOKENS, ENABLE_TOOL_SEARCH, SLASH_COMMAND_TOOL_CHAR_BUDGET, CLAUDE_CODE_GIT_BASH_PATH, CLAUDE_CODE_PROCESS_WRAPPER, CLAUDE_CODE_USE_POWERSHELL_TOOL, CLAUDE_CODE_ENABLE_AWAY_SUMMARY, and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC. ↩↩↩↩↩↩↩↩↩

  78. Claude Code Docs, “All settings”, and Claude Code Docs, “Settings files and precedence.” Fetched November 10, 2026. model: “--model takes precedence over ANTHROPIC_MODEL, and both take precedence over this key for one session, including over a managed model” processWrapper: “Requires Claude Code v2.1.210 or later.” workflowSizeGuideline: “"small" asks for fewer than 5 agents, "medium" fewer than 10, and "large" fewer than 50.”, with the default “"medium", or "small" when you’re signed in on a Pro plan with Claude Code v2.1.271 or later” bashOutputMaxChars: “Claude Code clamps the value into the range 4000 to 128000” and “unset, so Claude receives up to 30,000 characters inline” sandbox.enableWeakerNetworkIsolation: “Let gh, gcloud, and terraform verify TLS behind a MITM proxy inside the sandbox on macOS” The spinnerVerbs, language, and autoMemoryDirectory entries give the value shapes the example uses. Managed settings, from the settings page: “If your organization manages Claude Code, some settings are decided for you and nothing you put in your own files changes them.” ↩↩↩↩↩↩

  79. Claude Code Docs, fetched November 10, 2026. Tools reference, memory limit: “Claude Code counts all of a session’s Bash, PowerShell, and Monitor commands against the one cap, not each command on its own.” and “When commands can’t stay under the cap, the kernel kills a command, and nothing in its result names the cap.” Connect Claude Code to tools via MCP, tool search: “Claude Code uses tool search on Claude Opus 4, Claude Sonnet 4, Claude Haiku 4.5, and later models, or Opus 4.5, Sonnet 4.5, Haiku 4.5, and later models on Google Cloud’s Agent Platform.” and, for auto, “At 10% or more, tool search turns on” Monitoring, tool_decision attributes: “classifier_verdict: The auto mode classifier verdict for the call, or why Claude Code denied the call when none came. Requires Claude Code v2.1.301 or later” and “classifier_category (when OTEL_LOG_TOOL_DETAILS=1)” ↩↩↩↩

  80. Claude Code Docs, “All settings”; Claude Code Docs, “Authentication”; the Claude Code CHANGELOG; and the npm registry record for @anthropic-ai/claude-code. Fetched November 11, 2026. The modelPricing entry in the settings reference: “Claude Code doesn’t read them from your contract or the Claude Console. Requires Claude Code v2.1.242 or later.” The authentication page, on signing in without an API key: “Choose the Anthropic Console account at the /login prompt and Claude Code asks how you want to sign in. Requires Claude Code v2.1.242 or later.” The CHANGELOG has a 2.1.243 section and a 2.1.241 section and none for 2.1.242; under 2.1.243 it lists “Added modelPricing managed setting so an organization’s contracted per-model rates and discount multiplier are used for /cost, the status line, and telemetry cost figures instead of list price” and “Added a keyless sign-in under /login → Anthropic Console”. The registry’s time field dates 2.1.242 to 2026-08-24T19:16:14.767Z and 2.1.243 to 2026-08-24T23:10:45.498Z. ↩

  81. Claude Code Docs. “Tools reference.” Fetched November 11, 2026. Glob tool behavior: “On Windows, it’s part of the default tool set. On macOS, Linux, and WSL, Claude Code leaves Glob and Grep out of the default tool set, and Claude searches with find and grep through the Bash tool instead.” The tools table says of both Glob and Grep: “Absent by default on macOS, Linux, and WSL.” ↩

  82. Claude Code Docs, fetched November 11, 2026. Use Claude Code with a screen reader: “For every session on the machine: add "axScreenReader": true to your user settings file.” and “Claude Code ignores both the axScreenReader key and a CLAUDE_AX_SCREEN_READER value under env in the project’s .claude/settings.json and .claude/settings.local.json, whatever their value.” All settings, the axScreenReader entry: “Claude Code ignores the key in project and local settings, so neither a repository nor your own .claude/settings.local.json can turn screen-reader mode on or off.” Settings files and precedence gives the user file as ~/.claude/settings.json. Version floors: the --ax-screen-reader row of the CLI reference and the CLAUDE_AX_SCREEN_READER row of the environment variables page both end “Requires Claude Code v2.1.181 or later”, while the Claude Code CHANGELOG lists the feature under 2.1.208: “Added screen reader mode: opt-in plain-text rendering for screen reader users.” ↩

  83. Claude Code Docs. “Settings files and precedence.” Fetched November 11, 2026. “You don’t need to gitignore it yourself, unless you created it by hand.” and “The first time Claude Code writes the file in a git repository that doesn’t already ignore it, it adds **/.claude/settings.local.json to your global git excludes file, so the file stays out of your commits in every repository.” and “If you created the file by hand and Claude Code hasn’t written to it yet, add it to .gitignore yourself.” ↩

  84. Claude Code Docs, “All settings”, and Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. The sandbox.excludedCommands entry in the settings reference: “A pattern with no wildcard is an exact match, so docker matches only docker with no arguments.” and “Your entries take a Bash call out of the sandbox only when they cover every command in it” and “Exclusion is a convenience, not a security boundary”; its example value is ["docker *"]. From the sandboxing page: “docker * matches docker with or without arguments” and “An excluded command runs with your full access.” ↩↩

  85. Claude Code Docs, “Configure the sandboxed Bash tool”, and Claude Code Docs, “All settings.” Fetched November 11, 2026. From the sandboxing page, hosts outside your allowed domains: “In an interactive terminal session, the decision depends on your permission mode”, with the table rows “bypassPermissions mode, and plan mode with bypass permissions available” (“Allowed without a prompt”), “Manual mode, acceptEdits mode, and plan mode otherwise” (“You get a prompt”), auto mode (“Refused unless the command listed the host and the classifier approved the list”), and dontAsk mode (“Refused”). The strict allowlist: “the built-in sandbox proxy refuses the connection in every permission mode. In bypassPermissions mode, hosts outside your allowed domains are allowed unless one of them is on.” Where it can be set: “to true in user, managed, or CLI --settings settings” and “Setting it in a repository’s .claude/settings.json or .claude/settings.local.json has no effect. Requires Claude Code v2.1.219 or later.” The sandbox.network.strictAllowlist entry in the settings reference gives the scope as “User or managed” and adds “A repository can’t turn it on or off.” ↩↩

  86. Claude Code Docs, “All settings”, and the Claude Code CHANGELOG. Fetched November 11, 2026. The syncClaudeAiPlugins entry in the settings reference: “Set false to stop that download and stop loading the plugins it already synced.” and “Requires Claude Code v2.1.273 or later.”; the syncClaudeAiSkills entry states no version. The CHANGELOG lists both keys under 2.1.275: “Added syncing of the skills and plugins enabled on your claude.ai account to terminal sessions signed in with it; opt out with syncClaudeAiSkills: false or syncClaudeAiPlugins: false“ ↩

  87. Claude Code Docs, “Choose a permission mode”, and Claude Code Docs, “Environment variables.” Fetched November 11, 2026. Choose the classifier model: “to a full model ID to run the classifier on a model other than the default” and “This ~/.claude/settings.json example sets Claude Sonnet 4.6”; the example value is claude-sonnet-4-6. When your model doesn’t review: “You set Claude Opus 5, Sonnet 5.5, Opus 5.5, or one that a model policy excludes”, with the outcome “The default classifier model reviews” and, where /status shows the auto mode server as enabled, “The server reviews without your model” The CLAUDE_CODE_AUTO_MODE_MODEL row on the env-vars page: “Use a full model ID such as claude-sonnet-4-6.” and “Requires Claude Code v2.1.302 or later” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  88. Claude Code Docs, “Choose a permission mode”, and Claude Code Docs, “Environment variables.” Fetched November 11, 2026. From the permission modes page, critical-path removals in auto mode: “Asks you to approve it in the terminal, with a time limit. Elsewhere, denies it” The countdown: “In auto and bypassPermissions modes, the terminal prompt for a critical-path removal shows a two-minute countdown” With CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT set to 1, the bypassPermissions entry reads “the terminal prompt has no time limit, and the VS Code chat panel asks you” and the auto entry reads “the classifier decides, in the terminal, the VS Code chat panel, -p runs and Agent SDK sessions” Where to set it: “Set it in the environment that starts Claude Code, such as your shell or the SDK’s env option, not in a Claude Code settings file.” Ask rules: “Claude Code asks you instead, even in auto mode and without a time limit” The paths covered: “recognized rm and rmdir critical-path removals, such as rm -rf / or rm -rf ~” From the variable’s row on the env-vars page: “These removals then go to the classifier in auto mode, and get an untimed prompt in bypassPermissions mode wherever Claude Code can show one. Set it in the environment that launches Claude Code, since Claude Code ignores a copy delivered through a settings env block. Requires Claude Code v2.1.281 or later” ↩↩

  89. Claude Code Docs, “CLI reference”, and Claude Code Docs, “Environment variables.” Fetched November 11, 2026. The --restricted row: “loads only managed settings and --settings” The CLAUDE_CODE_RESTRICTED row: “Claude Code ignores this variable in a settings file’s env block. Requires Claude Code v2.1.248 or later” ↩

  90. Claude Code Docs, “Environment variables”, and the Claude Code CHANGELOG. Fetched November 11, 2026. The CLAUDE_CODE_PLUGIN_DIR_WATCH row: “Controls whether a mod reloads when its files change. By default, mods in skills directories reload in any session that takes more than one prompt, non-interactive included. Mods in --plugin-dir directories reload only in interactive terminal sessions. Set to 1 to reload them as skills-directory mods do, or 0 to turn reloading off everywhere. Requires Claude Code v2.1.287 or later” CHANGELOG 2.1.321: “Changed headless sessions to reload mods in .claude/skills when their files change; set CLAUDE_CODE_PLUGIN_DIR_WATCH=0 to turn this off” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  91. Claude Code Docs, “Environment variables”, and the Claude Code CHANGELOG. Fetched November 11, 2026. The two sources give different versions for CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND. The env-vars row: “While automatic backgrounding is on, it still moves the call to the background after two minutes by default. Requires Claude Code v2.1.304 or later” The CHANGELOG lists the variable under 2.1.319: “Added the CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND environment variable to make Claude Code wait for an MCP task inside its tool call instead of moving it to the background right away” ↩

  92. Claude Code Docs, “Environment variables”; Claude Code Docs, “Advanced setup”; and the Claude Code CHANGELOG. Fetched November 11, 2026. CLAUDE_CODE_MAX_CONTEXT_TOKENS: “Override the context window size Claude Code assumes for the active model.” and “Use this when routing to a model through ANTHROPIC_BASE_URL whose context window does not match the built-in size for its name”; CHANGELOG 2.1.98: “Fixed CLAUDE_CODE_MAX_CONTEXT_TOKENS to honor DISABLE_COMPACT when it is set.” CLAUDE_CODE_PLUGIN_CACHE_DIR: “Override the plugins root directory. Despite the name, this sets the parent directory, not the cache itself: marketplaces and the plugin cache live in subdirectories under this path. Defaults to ~/.claude/plugins”; CHANGELOG 2.1.72 lists “CLAUDE_CODE_PLUGIN_CACHE_DIR creating literal ~ directories” among its plugin fixes. CLAUDE_CODE_GIT_BASH_PATH: “Windows only: path to the Git Bash executable (bash.exe). Use when Git Bash is installed but not in your PATH.”; the setup page writes the settings.json value as "C:\\Program Files\\Git\\bin\\bash.exe". CLAUDE_CODE_USE_VERTEX: “Use Google Cloud’s Agent Platform” ↩↩↩

  93. Claude Code Docs. “Environment variables.” Fetched November 11, 2026. DEBUG: “Debug logs are written to ~/.claude/debug/<session-id>.txt, or to the path set by CLAUDE_CODE_DEBUG_LOGS_DIR. Only the truthy values 1, true, yes, and on enable debug mode” The row opens by saying 1 enables debug mode, equivalent to launching with --debug. CLAUDE_CODE_DEBUG_LOG_LEVEL: “Minimum log level written to the debug log file. Values: verbose, debug (default), info, warn, error.” ↩

  94. Claude Code Docs, “Commands”. Fetched November 11, 2026. The /config [key=value ...] row: “Pass key=value pairs to set a setting directly, for example /config verbose=true, /config theme=dark, or /config model=sonnet.” and “It can’t turn on a setting that needs your confirmation in the panel, such as autoContinueAtUsageLimit. Run /config --help to list the keys it accepts.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  95. Claude Code Docs, “Tools reference”. Fetched November 11, 2026. Glob tool behavior: “On macOS, Linux, and WSL, you get the Glob and Grep tools back in these cases”, the first of which is naming them in --tools or --allowedTools: “With --tools you get the ones you list, and naming either tool in --allowedTools restores both. An allow rule in a settings file doesn’t have this effect.” ↩

  96. Claude Code Docs, “Model configuration”, and Claude Code Docs, “All settings”. Fetched November 11, 2026. From the model configuration page: “When the managed settings Claude Code applies define availableModels, that list alone applies, apart from a host platform that supplies its own: entries in user, project, or local settings cannot extend it” and “Before Claude Code v2.1.175, entries from lower-precedence scopes merged into the managed list instead of being replaced by it.” The settings reference gives availableModels the scope Any file and adds “Deploy it in managed settings to enforce it for an organization.” Its enforceAvailableModels entry: “when Default would resolve to a model outside availableModels, Claude Code resolves it to the first available model in the list”; “When your organization deploys any managed settings, Claude Code reads this key from the managed source alone and ignores it in your other files.”; “This key has no effect when availableModels is unset or empty.”; “Requires Claude Code v2.1.175 or later.” ↩

  97. Claude Code Docs, “All settings”. Fetched November 11, 2026. permissions.blockReadsOutsideWorkingDirectories: “Make Claude’s file tools refuse reads outside your working directories in every permission mode, including bypassPermissions.”; “Claude Code denies Read, Grep, Glob, and LSP calls on those paths”; “Files Claude Code itself needs stay readable, such as your skills, plugins, rules, agents, commands, and the CLAUDE.md memory file under ~/.claude/.”; “Claude Code doesn’t refuse shell commands the same way”. permissions.blockWritesOutsideWorkingDirectories: “in every permission mode, including bypassPermissions, apart from some of Claude Code’s own files”; “Some of Claude Code’s own files stay writable, such as plan files, the scratchpad, a background session’s tmp directory, and .md files in this project’s auto memory.”; “Claude Code also removes the EnterWorktree and ExitWorktree tools or refuses calls to them”; “In a cloud session, Claude Code might not apply the key, because the file tools run in a container that is itself the boundary.” ↩↩

  98. Claude Code Docs, “All settings”. Fetched November 11, 2026. permissions.denyInsteadOfPrompting: “To allow most calls that would otherwise prompt, answer from a PermissionRequest hook.”; “Some calls are denied before any hook is asked, such as a critical-path removal in auto mode that no ask rule covers.”; “A teammate in an agent team keeps EnterPlanMode and ExitPlanMode”. ↩

  99. Claude Code Docs, “Configure the sandboxed Bash tool”, and Claude Code Docs, “All settings”. Fetched November 11, 2026. From the sandboxing page: “To keep Chromium’s or Electron’s own sandbox, or to run a nested bubblewrap or unshare, set sandbox.allowNestedUserNamespaces to true in ~/.claude/settings.json, not the project’s .claude/settings.json.”; “This setting alone isn’t enough for rootless Podman or Buildah, which the sandbox stops in other ways too.”; “For rootless Podman, Buildah, or a script or test command that runs a browser or unshare, add a pattern to sandbox.excludedCommands, such as podman *.” The settings reference: “Let sandboxed commands on Linux and WSL2 create user namespaces, which Chromium’s and Electron’s own sandbox, a nested bubblewrap, and unshare need.” ↩

  100. Claude Code Docs, “Environment variables”, and Claude Code Docs, “All settings”. Fetched November 11, 2026. CLAUDE_CODE_DISABLE_WORKFLOWS: “Equivalent to the disableWorkflows setting”. The disableWorkflows entry: “CLAUDE_CODE_DISABLE_WORKFLOWS turns workflows off for one session; whichever of the two turns them off, the other can’t turn them back on”. The enableWorkflows entry: “Appears in /config as Dynamic workflows, which writes this key to your user settings” and “unset, so workflows are on unless you’re on the Pro plan, where they’re off”. MAX_THINKING_TOKENS: “When unset and thinking is enabled, models with adaptive reasoning choose their own thinking depth, and other models use the cap.”; “Set to 0 to disable thinking on the Anthropic API, except on Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models, which can’t have thinking turned off. On third-party providers, 0 omits the thinking parameter instead.”; “For a positive value, Claude Code ignores the number itself on adaptive reasoning models, except when CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING turns adaptive reasoning off”. CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: “Set to 1 to disable adaptive reasoning on Opus 4.6 and Sonnet 4.6 and fall back to the fixed thinking budget controlled by MAX_THINKING_TOKENS. Has no effect on Fable models, Sonnet 5 and later, Haiku 5.5, or Opus 4.7 and later, which always use adaptive reasoning”. ↩↩

  101. Claude Code Docs, “Choose a permission mode”; Claude Code Docs, “Auto mode classifier request charges”; and the Claude Code CHANGELOG. Fetched November 11, 2026. From the permission modes page: “To skip asking the server and always use Claude Code’s own classifier requests, set CLAUDE_CODE_AUTO_MODE_SERVER=0.” and, of cloud providers and gateways, “on Claude Platform on AWS, Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, and whenever you point ANTHROPIC_BASE_URL at an LLM gateway or proxy, whatever your plan. Asking by default requires Claude Code v2.1.278 or later.” From the billing page: “CLAUDE_CODE_AUTO_MODE_SERVER is a temporary setting and may be removed in a later release.” CHANGELOG 2.1.273: “Changed auto mode on Bedrock, Vertex and Foundry to use the local classifier by default for now; set CLAUDE_CODE_AUTO_MODE_SERVER=1 to use the platform’s server-side classifier”. 2.1.278: “Changed auto mode for Claude API and Enterprise users, and on Bedrock, Vertex, Foundry and gateways, to default to the server-side classifier, which does not charge for classifier overhead”. 2.1.281: “Changed CLAUDE_CODE_AUTO_MODE_SERVER to also apply on a direct Anthropic API connection”. 2.1.282: “Changed auto mode to use the server-side classifier by default on a direct Anthropic API connection when telemetry is off”. ↩

  102. Claude Code Docs, “Connect Claude Code to tools via MCP.” Fetched November 11, 2026. Configure tool search: “Tool search is enabled by default: MCP tools are deferred and discovered on demand.”; the unset row, “All MCP tools deferred and loaded on demand. Loaded upfront on models earlier than Opus 4 and Sonnet 4, on the earlier Agent Platform models, and on Microsoft Foundry deployments hosted on Azure”; the true row, “MCP tools deferred, with the same fallbacks as (unset)”; and, for Agent Platform, “Claude Opus 4.5, Sonnet 4.5, Haiku 4.5, and later: tool search is on by default, the same as on the Anthropic API.” and “Earlier Agent Platform models: Claude Code loads all MCP tools upfront, because their serving stacks reject the required beta header. ENABLE_TOOL_SEARCH=true doesn’t override this.” ↩

  103. Claude Code Docs, “Connect Claude Code to tools via MCP”; Claude Code Docs, “Environment variables”; and the Claude Code CHANGELOG. Fetched November 11, 2026. From the MCP page: “Server instructions, and the description of a tool that loads upfront: 4,096 characters”; “The description of a tool that Claude loads through tool search: 16,384 characters”; “Before v2.1.296, the shorter limit was 2,048 characters, and before v2.1.295 it applied to every tool description, including one loaded through tool search.”; “Claude Code uses that number for both limits. With 8192, for example, you raise the 4,096-character limit on server instructions and tool descriptions loaded upfront, and lower the 16,384-character limit on tool descriptions loaded through tool search. This variable requires Claude Code v2.1.280 or later.”; “Descriptions and instructions from some of the MCP servers that Anthropic hosts at api.anthropic.com reach Claude in full, and setting this variable doesn’t cut them.” The CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH row of the environment variables page: “The value you set replaces both default limits: 4096, and 16384 for the description of a tool that Claude loads through tool search.” CHANGELOG 2.1.299: “Changed MCP tool descriptions and server instructions from Anthropic’s first-party MCP servers at api.anthropic.com to reach Claude in full instead of being cut at 4,096 characters”. ↩

  104. Claude Code Docs, “Tools reference”; Claude Code Docs, “Environment variables”; and the Claude Code CHANGELOG. Fetched November 11, 2026. Time limit for background commands: “A command that Claude starts in the background gets 30 minutes, or the timeout Claude passes with run_in_background, up to a maximum of 2 hours” and “In a run with the -p flag whose prompt you pass as text rather than with --input-format stream-json, both defaults are 10 minutes instead of 30.” CHANGELOG 2.1.321: “Fixed claude -p sometimes telling Claude that background commands get 30 minutes when they are stopped after 10”. The BASH_MAX_TIMEOUT_MS row: “Maximum timeout the model can set for a foreground Bash or PowerShell tool command, in milliseconds (default: 600000, or 10 minutes). The effective ceiling is the larger of this and BASH_DEFAULT_TIMEOUT_MS. An effective ceiling longer than 2 hours also becomes the maximum time limit for background commands in unattended sessions.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  105. Claude Code Docs, “Environment variables”, and the Claude Code CHANGELOG. Fetched November 11, 2026. The CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS row: “Values below 100000 are raised to 100000, the lowest threshold. Idle compaction is on by default for conversations that meet its conditions. To turn it off, set idleCompaction to false. Requires Claude Code v2.1.290 or later”. CHANGELOG 2.1.299: “Added CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS to change idle compaction’s 200K-token minimum” and “Both need v2.1.290 or later”. 2.1.314: “Added idle compaction to VS Code and Claude Desktop’s Code tab” and “Changed idle compaction to also run for subscribers with telemetry turned off, and on Bedrock, Vertex, Foundry and LLM gateways once the one-hour prompt cache is on”. ↩

  106. Claude Code Docs, “Environment variables”, and the Claude Code CHANGELOG. Fetched November 11, 2026. The CLAUDE_CODE_SHELL_PREFIX row: “Command prefix that wraps shell commands Claude Code spawns: Bash tool calls, hook commands, status line commands, and stdio MCP server startup commands. PowerShell hooks and exec-form hooks run without the prefix. Useful for logging or auditing. Setting a bare executable path such as /path/to/logger.sh runs each command as /path/to/logger.sh '<command>'. The wrapper receives the command line as a single shell-quoted argument in $1, so the wrapper must re-evaluate $1 with a shell” (the row’s example is exec bash -c "$1"), and “Treating $1 as a bare executable path breaks stdio MCP servers that pass arguments such as npx -y <package>.” CHANGELOG 1.0.61: “Added CLAUDE_CODE_SHELL_PREFIX for wrapping Claude and user-provided shell commands run by Claude Code”. ↩

  107. Claude Code Docs, “Environment variables”. Fetched November 11, 2026. Rows quoted: DISABLE_ERROR_REPORTING, “Set to any non-empty value, such as 1, to opt out of error reporting. Setting it to 0 or false still opts out”; CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR, “Return to the original working directory after each Bash or PowerShell command in the main session”; CLAUDE_CODE_DISABLE_BACKGROUND_TASKS, “Set to 1 to remove the run_in_background parameter from the Bash, PowerShell, and subagent tools and to turn off the Ctrl+B shortcut”, “Claude Code then also stops moving subagents, long MCP tool calls, and timed-out shell commands to the background automatically. MCP tasks and the Monitor tool still run in the background.” ↩↩↩

  108. Claude Code CHANGELOG, v2.1.323 through v2.1.332, fetched November 25, 2026 (294, 139, 367, 173, 144, 130, 142, 135, and 150 top-level bullets for 2.1.323, 2.1.325, 2.1.326, 2.1.327, 2.1.328, 2.1.329, 2.1.330, 2.1.331, and 2.1.332; no 2.1.324 section), and the GitHub releases v2.1.323 (2026-11-12T22:12:13Z), v2.1.325 (11-13T20:40:01Z), v2.1.326 (11-16T22:11:05Z), v2.1.327 (11-17T23:17:45Z), v2.1.328 (11-19T01:14:04Z), v2.1.329 (11-19T22:14:41Z), v2.1.330 (11-20T22:32:56Z), v2.1.331 (11-23T21:34:41Z), and v2.1.332 (11-25T01:32:14Z); no v2.1.324 release exists. npm publish times from npm view @anthropic-ai/claude-code time: 2.1.323 2026-11-12T20:29:28Z, 2.1.324 11-13T18:42:36Z, 2.1.325 11-13T20:07:25Z, 2.1.326 11-16T18:43:39Z, 2.1.327 11-17T20:33:19Z, 2.1.328 11-18T23:09:39Z, 2.1.329 11-19T18:40:25Z, 2.1.330 11-20T19:16:01Z, 2.1.331 11-23T18:36:26Z, 2.1.332 11-24T22:06:38Z; dist-tags on 2026-11-25: latest 2.1.332, next 2.1.332, stable 2.1.326. Verbatim, 2.1.332: “Changed the default model on Microsoft Foundry to Sonnet 5.5: deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model you have deployed”; “Changed the sonnet model alias on Google Cloud’s Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry’s opus alias to Opus 5.5; sonnet on Amazon Bedrock stays at Sonnet 4.5”; “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”; “Added skills from MCP servers (beta). They show as server:skill in the / menu; other skills keep their names”; “Changed /schedule, permission prompts and /loop’s cloud offer to say “cloud scheduled task” instead of “routine” or “cloud schedule”; /routines still works”. 2.1.330: “Changed recurring scheduled tasks and /loop to run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 days”. 2.1.328: “Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it”. 2.1.325: “Changed sandboxed Bash commands to follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts”. 2.1.323: “Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools”; “Removed the subagentStatusLine setting: subagent rows always use the default look, and settings files that still hold the key load as before”; “Changed the context window assumed for a model ID that Claude Code doesn’t recognize from 200K to 1M; use /autocompact to compact earlier, or CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K”; “Changed MCP_SDK_GENERATION=v1 to run the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks), because the v1 MCP client is removed”. ↩↩↩↩↩↩↩

  109. All settings (the settings reference) and Configure the sandboxed Bash tool, Claude Code documentation, fetched November 25, 2026. sandbox.autoAllowBashIfSandboxed: “false: sandboxed commands go through the regular permission flow, so your allow rules and permission mode decide. The /sandbox Mode tab calls this regular permissions mode”; “Default: false. Before v2.1.324, the default was true”; “To set it to true in managed settings, add it to the sandbox block of your highest-ranked managed source”. Sandboxing, sandbox modes: “In both, the sandbox enforces the same filesystem and network restrictions; the difference is only in whether sandboxed commands are auto-approved or require explicit permission.” The settings reference no longer has a subagentStatusLine entry. ↩

  110. Run tool calls from code with Code Mode, Claude Code documentation, fetched November 25, 2026: “Code Mode is experimental and off by default. It may change or be removed in any release.”; “With Code Mode, Claude writes a piece of JavaScript that makes the tool calls, and Claude Code runs that code in your session.”; requirements: “Claude Code v2.1.323 or later”; “With a cloud provider, you need v2.1.331 or later. You can’t use Code Mode through a gateway or with Claude for Government.”; “Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.2”; “Code Mode doesn’t work with the VS Code panel, the Desktop app, or cloud sessions”; agent teams v2.1.326, mods v2.1.327, feature-flag fetching off or OpenTelemetry events and metrics on v2.1.329. “Add CLAUDE_CODE_EXPERIMENTAL_CODE_MODE with the value 0 to your managed settings so that nobody in your organization can use Code Mode”; “You can’t turn on Code Mode for your users from managed settings.” ↩

  111. Claude Code with Claude Models on Google Cloud (Anthropic managed), Claude Code documentation, fetched November 25, 2026 (sitemap lastmod 2026-11-14; first Wayback Machine capture 2026-11-15): “the Claude API, run by Anthropic and reached through your Google Cloud project”; “install Claude Code v2.1.307 or later”; the env block with CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD, ANTHROPIC_GOOGLE_CLOUD_PROJECT, and ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID; “The API provider line contains on Google Cloud”. Launch date from the Claude Platform release notes, October 22, 2026: “We’ve launched Claude Models on Google Cloud (Anthropic managed), the Claude API operated by Anthropic and reached through your Google Cloud project. Google Cloud IAM controls access. Google Cloud Marketplace handles billing.” The Claude Code CHANGELOG does not mention the provider or its variables. ↩

  112. Get a pull request ready with /ship and /steward and Claude Ship, Claude Code documentation, fetched November 25, 2026 (first Wayback Machine captures of both pages 2026-11-23). “/ship is a Claude Code command that opens a GitHub pull request for your change if your branch doesn’t have one. Claude reviews your change and works on feedback and failing checks to help get it ready to merge.”; “Run either command from the Claude Code CLI in a terminal, in your local clone of the repository. Cloud sessions don’t have them.”; “once the pull request is ready, merge it yourself”; prerequisites: “Claude Code v2.1.330 or later” and “the GitHub CLI 2.63 or later”; “In bypassPermissions mode, no watch starts.”; “You can also set CLAUDE_CODE_DISABLE_SHIP to 1, for example under env in managed settings. Requires Claude Code v2.1.331 or later.” Claude Ship: “a set of agents that help get your team’s GitHub pull requests ready to merge” (Code Review, PR Steward, Claude Approvals); “Claude Ship is for organizations on Team and Enterprise plans.”; “Code Review is generally available. PR Steward and Claude Approvals are in public beta.” The Claude Code CHANGELOG does not mention /ship or /steward. ↩

  113. Claude Code documentation, fetched November 25, 2026. Environment variables: CLAUDE_CODE_RESUME_HINT_COMMAND (“Requires Claude Code v2.1.323 or later”), CLAUDE_CODE_FULL_SIGN_IN_LINK (v2.1.330), CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION (v2.1.331; “Ignored in project and local settings”), CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME (v2.1.328), OTEL_RESOURCE_INCLUDE_HOST (v2.1.326), CLAUDE_CODE_DISABLE_SHIP (v2.1.331), VERTEX_REGION_CLAUDE_5_5_SONNET (“Added in v2.1.284”), and CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS (“whole milliseconds from 32000 to 300000”; “Values above 64000 require v2.1.323 or later”). Plugin manifest reference, engines: “The Claude Code versions that the plugin works on, as a semver range under the claude-code key”; “Requires Claude Code v2.1.323 or later. To keep the plugin working on v2.0.15 through v2.1.75, omit engines.” Choose a permission mode: “If your organization has the HIPAA configuration applied, terminal and VS Code sessions on Claude Code v2.1.326 or later start in auto mode by default. On v2.1.285 through v2.1.325, an eligible session starts in Manual mode by default.” Commands, /tui: “default, or classic on v2.1.327 or later, selects the classic renderer”. The plugin manifest reference does not list optionalDependencies, and the environment variables page does not list CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES; both are in the release notes only. ↩↩↩

  114. Environment variables, Claude Code documentation, fetched November 25, 2026, compared row by row with this guide’s Environment Variables Reference. CLAUDE_CODE_SUBAGENT_EFFORT: “It doesn’t apply to forks, forked skills, or teammates. Requires Claude Code v2.1.315 or later”. CLAUDE_CODE_SYNC_SKILLS: “In an interactive session, the variable requires v2.1.323 or later”. CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT: “Has no effect when CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT is 1. Requires Claude Code v2.1.299 or later”. CLAUDE_CODE_SESSION_ID: “Set automatically to the current session ID in Bash and PowerShell tool subprocesses”. CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS: “Default 5000. Set to 0 to disable the wait.” CLAUDE_CODE_LOOP_KEEPALIVE: “when its second or later iteration ends with nothing scheduled”. CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH: “in UTF-16 code units (default: 61440, i.e. 60 KB)”. The page has no row for OTEL_EXPORTER_OTLP_TIMEOUT; its limit comes from the Claude Code CHANGELOG, 2.1.323: “Fixed OpenTelemetry exports failing when a proxy took over 10 seconds to reach the collector; it now has 25 seconds, also the most that OTEL_EXPORTER_OTLP_TIMEOUT can allow (previously 30)”. ↩↩↩↩↩

  115. Claude Code documentation, fetched November 25, 2026. Settings files and precedence: “Settings precedence, highest first: managed settings, command line, project local, shared project, user.”; “Other flags, such as --model, set one thing for the session and aren’t part of this stack”; “When you set the same list key, such as permissions.allow, in more than one file, Claude Code combines the lists instead of picking one”; “Claude Code also keeps a fifth file, ~/.claude.json, that it writes for itself; you don’t need to edit it. It holds your account details, MCP server configurations, per-project state such as trust decisions, and the global config keys that /config writes for you.” Authentication: “On macOS, credentials are stored in the encrypted macOS Keychain.”; “On Linux, credentials are stored in ~/.claude/.credentials.json with file mode 0600.”; “On Windows, credentials are stored in %USERPROFILE%\.claude\.credentials.json”. Create custom subagents, frontmatter table: background, “Set to true to keep this subagent in the background even when Claude asks to wait for it. By default, custom subagents Claude spawns from the main conversation already start in the background”; autoCompactWindow, “Lower the auto-compact window for this subagent to a token count of 100000 or more. Requires Claude Code v2.1.296 or later”; disallowedTools, “An entry with a specifier, such as Bash(git push *), still removes the whole tool”; isolation, “By default, the copy branches from your default branch rather than the parent session’s HEAD.” ↩