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

Claude Code CLI: The Complete Guide — Hooks, MCP, Skills

# The complete Claude Code guide: configuration, permissions, hooks, MCP, and subagents, plus the settings and commands that change how it actually works.

author: words: 201525 read_time: 1008m updated: 2026-11-25 00:00

Part 3 of New to Claude Code

The complete Claude Code guide: configuration, permissions, hooks, MCP, and subagents, plus the settings and commands that change how it actually works.

Last updated: 2026-11-25 · 1008 min read · 201K+ words

$ less claude-code.md

TL;DR: Claude Code is an agentic CLI that reads your codebase, runs commands, and edits files, governed by five systems: configuration, permissions, hooks, MCP, and subagents. Use hooks, not prompts, for anything that must run every time.

Where things stand (CLI v2.1.332, November 24, 2026; npm latest and next are 2.1.332, stable is 2.1.326):527

  • Default model: Claude Opus 5.5 (claude-opus-5-5) on Pro, Max, Ultra, Team, Enterprise, and the Anthropic API, and on Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform. Microsoft Foundry is the exception, and its two sources disagree today: the v2.1.332 release notes change Foundry’s default to Sonnet 5.5 and its opus alias to Opus 5.5, while the model-config and Foundry docs pages, read on November 25, 2026, still list Sonnet 4.5 and Opus 4.6. On v2.1.331 and earlier, the stable channel included, Foundry defaults to Sonnet 4.5.218285527528
  • Changed defaults since v2.1.323: sandboxed Bash commands follow the normal permission flow unless you set sandbox.autoAllowBashIfSandboxed: true (v2.1.325); recurring scheduled tasks and /loop run for up to 30 days, up from 7 (v2.1.330); a model ID Claude Code does not recognize is assumed to have a 1M context window, up from 200K (v2.1.323); and the hooks reference lists 34 lifecycle events now that PreSkillShellCommand exists (v2.1.332). Code Mode, in which Claude writes JavaScript that calls its tools, is an experimental opt-in from v2.1.323.527529530531532
  • Retirements ahead on the Claude API: Claude Sonnet 4.5 on November 30, 2026, and Claude Opus 4.5 (deprecated November 23, 2026) on January 22, 2027.534
  • Opus 5.5 at a glance: $4/$20 per million tokens with $0.20 cache reads, 1M context by default on the Anthropic API and, since v2.1.287, on Bedrock, Agent Platform, and Foundry, medium effort by default, and thinking that cannot be turned off. Fast mode runs it at $8/$40. Sonnet 5.5 ($2/$10; sonnet on the Anthropic API since v2.1.284) is the cheaper pick when a task does not need Opus.217219220225229
  • Claude Fable 5.2 (claude-fable-5-2, released November 9, 2026) is what /model fable selects from v2.1.321, everywhere except Claude apps gateway sessions: $8/$40 per million tokens, $0.20 cache reads, 1M context, medium effort by default in Claude Code. A saved Fable 5.1 pick moves to the fable alias on Pro, Max, and Ultra at the first start on v2.1.321, and on Team and Enterprise once the organization allows it; /model claude-fable-5-1 switches back. Fast mode runs Fable 5.2 at $16/$80 (v2.1.321) and reaches Google Cloud’s Agent Platform in the global, us, and eu regions (v2.1.322). No Fable model is the default on any plan, and the docs now say best selects the same model as opus.283284
  • Auto mode is the starting permission mode for interactive terminal and VS Code sessions on every plan and provider (v2.1.283-284), while claude -p and Agent SDK sessions start in Manual unless --permission-mode auto is passed.272 Since v2.1.328 that includes Opus 4.6 and Sonnet 4.6 sessions on Bedrock, Agent Platform, Foundry, and the Claude apps gateway, and since v2.1.326 organizations with the HIPAA configuration; disableAutoMode turns it off.527 Its safety checks run on the server at no charge for Enterprise and Claude API accounts, on Claude Platform on AWS, Bedrock, Agent Platform, and Foundry, and through gateways, with billed local checks as the fallback; since v2.1.319 a session with telemetry or feature flags off, including behind an LLM gateway, asks about or denies what the server cannot check instead of falling back (Bedrock, Agent Platform, and Foundry sessions are unchanged), unless CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps the local classifier.216224225226227283
  • AGENTS.md: since v2.1.277, AGENTS.md is read as project instructions when a project has no CLAUDE.md, and since v2.1.281 that includes Bedrock, Agent Platform, Foundry, LLM gateways, and sessions with telemetry off. The exception is, in some cases, the first session after an upgrade from v2.1.276 or earlier.216221286
  • Fast mode on Opus 4.8 was deprecated on October 30, 2026 and is removed on November 30, 2026; after that date a fast-mode request on Opus 4.8 returns an error instead of running at standard speed, so switch to Opus 5.5 with /model to keep the speedup. Typing ultrathink in a terminal prompt runs that turn at xhigh effort (v2.1.311+).281282

Release-by-release history lives in the Changelog.

Claude Code operates as an agentic system, not a chat interface with programming knowledge. The CLI reads your codebase, executes commands, modifies files, manages git workflows, connects to external services via MCP, and delegates complex tasks to specialized subagents. Everything flows through a command-line interface that integrates into how developers actually work. In February 2026, SemiAnalysis estimated that 4% of public GitHub commits were authored by Claude Code.101

The difference between casual and effective Claude Code usage comes down to five core systems. Master these and Claude Code becomes a force multiplier:

  1. Configuration hierarchy: controls behavior
  2. Permission system: gates operations
  3. Hook system: enables deterministic automation
  4. MCP protocol: extends capabilities
  5. Subagent system: handles complex multi-step tasks

Key Takeaways

  • Five systems determine your effectiveness: configuration hierarchy, permissions, hooks, MCP, and subagents control everything from behavior to automation.
  • Push work to the Delegation Layer: subagents prevent context bloat by isolating exploration in clean context windows, returning only summaries.
  • Hooks guarantee execution; prompts do not: use hooks for linting, formatting, and security checks that must run every time regardless of model behavior.
  • Model tiering saves cost without sacrificing quality: route subagent exploration to cheaper models and reserve Opus for genuine architectural reasoning — or standardize on Opus if quality is your only variable.
  • MCP connects Claude to your toolchain: databases, GitHub, Sentry, and 10,000+ integrations extend Claude beyond file reading and bash commands.287

I spent months pushing Claude Code to its limits across production codebases, CI/CD pipelines, and enterprise deployments. This guide distills that experience into the complete reference I wish existed when I started. Every feature includes actual syntax, real configuration examples, and the edge cases that trip up experienced users.

Choose Your Path

What you need Go here
Install and first session 5-Minute Quickstart — install, configure, run your first command
Commands and config lookup Cheat Sheet — every flag, shortcut, and setting in scannable tables
Hooks reference Claude Code Hooks Explained — the complete hooks reference: every event and exit code
Deep reference (this page) Keep reading — hooks, MCP, subagents, architecture, enterprise patterns

How to Use This Guide

This is a 7,000+ line reference, so you don’t need to read it cover to cover. Start where your experience level fits:

Experience Start Here Then Explore
New to Claude Code How Do I Install? → Quick Start → Mental Model Configuration, Permissions
Daily user Hooks, Subagents, Skills MCP, Plan Mode
Team lead / enterprise Enterprise Deployment → Best Practices Decision Frameworks, Workflow Recipes
Migrating from another tool Audience-Specific Guidance Decision Frameworks

Use your browser’s Ctrl+F / Cmd+F to search for specific flags, commands, or configuration keys. The Quick Reference Card at the end provides a scannable summary of all major commands.

These blog posts explore specific aspects of Claude Code in depth:

Topic Post
Source internals: auto mode, bash security, caching What the Claude Code Source Leak Reveals
Hooks as an orchestration layer Anatomy of a Claw: 84 Hooks as an Orchestration Layer
Hook system patterns and examples Claude Code Hooks Tutorial
Claude Code as production infrastructure Claude Code as Infrastructure
Autonomous agent architecture Ralph Agent Architecture
Apple-platform agentic patterns iOS Agent Development guide and the Apple Ecosystem Series
XcodeBuildMCP integration for iOS projects Two MCP Servers, One Xcode Project
.pbxproj-protection hooks for iOS work Hooks for Apple Development

60-Second Quick Start

If you just want to run Claude Code and see output, do this in order:

# 1. Install (pick one)
curl -fsSL https://claude.ai/install.sh | bash    # native installer (macOS, Linux, WSL); recommended
irm https://claude.ai/install.ps1 | iex           # native installer (Windows PowerShell)
brew install --cask claude-code                   # Homebrew (macOS, Linux); stable channel
npm install -g @anthropic-ai/claude-code          # npm (needs Node.js 22+)

# 2. Launch in any project directory
cd ~/your-project && claude

# 3. Authenticate (browser opens automatically on first run)
/login

# 4. Ask your first question
> What does this repo do? Read the key files and summarize.

That’s it. Everything below this section expands on the install options, configures permissions and hooks, wires up MCP servers, and covers enterprise deployment — but none of it is required to get started.

Prerequisites: Node.js 22 or later, only for the npm path (the floor rose from 18 in v2.1.198); the recommended native installer has no Node dependency. macOS 13+, Linux, and Windows 10 1809+ are supported. A Claude Pro, Max, Ultra, Team, or Enterprise subscription, or a pay-per-token Console (Anthropic API) account, covers usage. See How Do I Install Claude Code? for platform specifics, troubleshooting, and the native binary, which the npm package has also installed since v2.1.113.288289


How Claude Code Works: The Mental Model

Before diving into features, understand how Claude Code’s architecture shapes everything you do with it. The system operates in three layers:

┌─────────────────────────────────────────────────────────┐
│                    CLAUDE CODE LAYERS                    │
├─────────────────────────────────────────────────────────┤
│  EXTENSION LAYER                                         │
│  ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌─────────┐    │
│  │   MCP   │  │  Hooks  │  │ Skills  │  │ Plugins │    │
│  └─────────┘  └─────────┘  └─────────┘  └─────────┘    │
│  External tools, deterministic automation, domain       │
│  expertise, packaged extensions                          │
├─────────────────────────────────────────────────────────┤
│  DELEGATION LAYER                                        │
│  ┌─────────────────────────────────────────────────┐    │
│  │           Subagents (20 concurrent default)      │    │
│  │   Explore | Plan | General-purpose | Custom      │    │
│  └─────────────────────────────────────────────────┘    │
│  Isolated contexts for focused work, returns summaries  │
├─────────────────────────────────────────────────────────┤
│  CORE LAYER                                              │
│  ┌─────────────────────────────────────────────────┐    │
│  │         Main Conversation Context                │    │
│  │   Tools: Read, Edit, Write, Bash, etc.          │    │
│  └─────────────────────────────────────────────────┘    │
│  Your primary interaction; limited context; costs money │
└─────────────────────────────────────────────────────────┘

Core Layer: Your main conversation. Every message, file read, and tool output consumes context from a shared window (1M tokens on the default Opus 5.5 and on every Fable model, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later; 200K on older models unless you select an Opus 4.6 or Sonnet 4.6 [1m] variant89). When context fills, Claude loses track of earlier decisions and quality degrades. This layer costs money per token.

Delegation Layer: Subagents spawn with clean contexts, do focused work, and return summaries. The exploration results don’t bloat your main conversation; only the conclusions return. Route subagents to cheaper model tiers for exploration, or use your primary model throughout if quality matters more than cost.

Extension Layer: MCP connects external services (databases, GitHub, Sentry). Hooks guarantee execution of shell commands regardless of model behavior. Skills encode domain expertise that Claude applies automatically. Plugins package all of these for distribution.

The key insight: Most users work entirely in the Core Layer, watching context bloat and costs climb. Power users push exploration and specialized work to the Delegation Layer, keep the Extension Layer configured for their workflow, and use the Core Layer only for orchestration and final decisions.


Table of Contents

  1. How Do I Install Claude Code?
  2. Quick Start: Your First Session
  3. Core Interaction Modes
  4. Configuration System Deep Dive
  5. Which Model Should I Choose?
  6. What Does Claude Code Cost?
  7. Decision Frameworks
  8. How Does the Permission System Work?
  9. How Do Hooks Work?
  10. What Is MCP (Model Context Protocol)?
  11. What Are Subagents?
  12. What Is Extended Thinking Mode?
  13. Output Styles
  14. Slash Commands
  15. How Do Skills Work?
  16. Plugin System
  17. How Does Memory Work?
  18. Image and Multimodal Input
  19. Voice Mode
  20. How Does Git Integration Work?
  21. How Do I Use Claude Code in My IDE?
  22. Advanced Usage Patterns
  23. Remote & Background Agents
  24. Claude in Chrome
  25. Claude Code in Slack
  26. Claude in Microsoft 365 (May 2026)
  27. Claude Code on the Web
  28. Performance Optimization
  29. How Do I Debug Issues?
  30. Under the Hood: What the Source Reveals
  31. Enterprise Deployment
  32. Keyboard Shortcuts Reference
  33. Best Practices
  34. Workflow Recipes
  35. Migration Guide
  36. Audience-Specific Guidance
  37. Quick Reference Card
  38. FAQ
  39. Changelog
  40. References

How Do I Install Claude Code?

System Requirements

Claude Code runs on macOS 13.0+, Windows 10 1809+ or Windows Server 2019+ (native or WSL), Ubuntu 20.04+, Debian 10+, and Alpine Linux 3.19+, on an x64 or ARM64 machine with 4 GB or more of RAM and an internet connection.90 Launch it from Bash, Zsh, PowerShell, or CMD. The Bash tool runs commands through bash or zsh only: fish is not supported there, and when $SHELL points at anything else Claude Code picks the first working zsh, then bash, that it finds.290

On Windows, native Windows, WSL 1, and WSL 2 all work. On native Windows, Git for Windows is optional: with it Claude Code uses Git Bash for the Bash tool, and without it shell commands run through the PowerShell tool. Sandboxing is supported in WSL 2 only. Alpine Linux and other musl-based systems require additional packages:288

apk add bash curl libgcc libstdc++ ripgrep
export USE_BUILTIN_RIPGREP=0

Platform Support Matrix

Platform Supported Preferred install Known caveats
macOS 13+ (Intel) ✓ Native installer or Homebrew None
macOS 13+ (Apple Silicon) ✓ Native installer or Homebrew Rosetta 2 not required: the native installer downloads the arm64 binary, even from a shell running under Rosetta382
Ubuntu 20.04+ ✓ Native installer or the apt repository v2.1.50 fixed native-module loading on systems with glibc < 2.30
Debian 10+ ✓ Native installer or the apt repository Same glibc-compat note as Ubuntu
Fedora / RHEL ✓ (signed dnf repository; neither is named in the docs’ system requirements list) dnf repository or native installer Same glibc-compat note as Ubuntu
Alpine Linux 3.19+ / musl ✓ (with apk add bash curl libgcc libstdc++ ripgrep and USE_BUILTIN_RIPGREP=0) Native installer or the apk repository bash and curl are needed by the install command; libgcc, libstdc++, and a system ripgrep at runtime
Windows 10 1809+ or Windows Server 2019+ (x64, native) ✓ Native installer (PowerShell or CMD) or winget PowerShell tool on by default (automatic without Git Bash; with Git Bash, on for claude.ai and Console accounts); CLAUDE_CODE_USE_POWERSHELL_TOOL=0 turns it off. No sandboxing on native Windows
Windows 10 1809+ (ARM64, native) ✓ Native installer Added in v2.1.41
Windows 10 1809+ (WSL 1) ✓ Native installer inside WSL No sandboxing; prefer WSL 2 when possible
Windows 10 1809+ (WSL 2) ✓ Native installer inside WSL Recommended Windows path for parity with Linux; the one Windows option with sandboxing
Windows 10 1809+ (Git Bash) ✓ Native installer Git for Windows is optional; set CLAUDE_CODE_GIT_BASH_PATH if Claude Code cannot find Git Bash
Docker Sandboxes ✓ (Docker’s sbx CLI, not an Anthropic install path) sbx run claude ~/my-project Starts claude --dangerously-skip-permissions by default inside the sandbox; user-level configuration in ~/.claude is not available there; see the install table below

Install, Update, Uninstall at a Glance

Scannable lookup: every method, every command, and the version check on one screen. Subsections below cover per-method specifics and troubleshooting.288

Method Install Update Uninstall Version check
Native installer (macOS / Linux / WSL) curl -fsSL https://claude.ai/install.sh | bash claude update (or auto-update; see DISABLE_AUTOUPDATER) rm -f ~/.local/bin/claude && rm -rf ~/.local/share/claude claude --version
Native installer (Windows PowerShell) irm https://claude.ai/install.ps1 | iex claude update Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force; Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force claude --version
Native installer (Windows CMD) curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd claude update See PowerShell row claude --version
Homebrew (macOS / Linux, stable) brew install --cask claude-code brew upgrade --cask claude-code brew uninstall --cask claude-code claude --version
Homebrew (macOS / Linux, latest channel) brew install --cask claude-code@latest brew upgrade --cask claude-code@latest brew uninstall --cask claude-code@latest claude --version
winget (Windows) winget install Anthropic.ClaudeCode winget upgrade Anthropic.ClaudeCode winget uninstall Anthropic.ClaudeCode claude --version
apt (Debian / Ubuntu) Add the signed repository (commands under Installation Methods below), then sudo apt install claude-code sudo apt update && sudo apt upgrade claude-code sudo apt remove claude-code, then sudo rm /etc/apt/sources.list.d/claude-code.list /etc/apt/keyrings/claude-code.asc claude --version
dnf (Fedora / RHEL) Add the repository file (same section), then sudo dnf install claude-code sudo dnf upgrade claude-code sudo dnf remove claude-code, then sudo rm /etc/yum.repos.d/claude-code.repo claude --version
apk (Alpine) Add the key and repository (same section), then apk add claude-code apk update && apk upgrade claude-code apk del claude-code, then remove the repository line and key as the setup page shows claude --version
npm (not the recommended path; installs the same native binary; needs Node.js 22+) npm install -g @anthropic-ai/claude-code npm install -g @anthropic-ai/claude-code@latest npm uninstall -g @anthropic-ai/claude-code claude --version
Docker Sandboxes (Docker’s sbx CLI) Install sbx per Docker’s install page, then sbx run claude ~/my-project per Docker’s Claude Code sandbox page and the sbx run CLI reference Managed by Docker: the sandbox is built on the docker/sandbox-templates:claude-code base image sbx rm <sandbox-name> removes the sandbox and its state, and cannot be undone (sbx rm reference) See Docker’s page

Since v2.1.113, the canonical CLI spawns a native Claude Code binary via a per-platform optional dependency instead of bundled JavaScript, so the npm package installs the same native binary as the standalone installer. v2.1.15 added a deprecation notice for npm installations; the setup page documents npm as a supported alternative and does not call it deprecated. Homebrew, WinGet, apt, dnf, and apk installs do not auto-update (see Updates). The Docker Sandboxes row is Docker’s product, documented by Docker.288291289

Installation Methods

Native installation (recommended)

The native binary provides the cleanest experience with no Node.js dependency:

# macOS and Linux
curl -fsSL https://claude.ai/install.sh | bash

# Homebrew alternative
brew install --cask claude-code

# Windows PowerShell
irm https://claude.ai/install.ps1 | iex

# Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

For version-specific installation:

# Install a specific version
curl -fsSL https://claude.ai/install.sh | bash -s 2.1.311

# Install the stable channel (typically about a week behind latest); the channel you pick becomes the auto-update default
curl -fsSL https://claude.ai/install.sh | bash -s stable

# Install latest explicitly
curl -fsSL https://claude.ai/install.sh | bash -s latest
# Windows PowerShell - specific version
& ([scriptblock]::Create((irm https://claude.ai/install.ps1))) 2.1.311

One version to never pin behind a proxy or gateway: 2.1.275. On that build every request fails with 400 ... Input tag 'advisor_20260301' when ANTHROPIC_BASE_URL points at a proxy or gateway; 2.1.276 fixes the regression.215

Linux package managers (apt, dnf, apk)

Claude Code publishes signed apt, dnf, and apk repositories. Each has a stable channel (typically about a week behind, skipping releases with major regressions) and a latest channel. These installs do not auto-update through Claude Code; upgrades arrive through your system’s package manager. The commands below set up the stable channel, and the docs ask you to check the signing key before you trust it.288

# Debian / Ubuntu
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSL https://downloads.claude.ai/keys/claude-code.asc \
  -o /etc/apt/keyrings/claude-code.asc
gpg --show-keys /etc/apt/keyrings/claude-code.asc   # the only fingerprint should be 31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE
echo "deb [signed-by=/etc/apt/keyrings/claude-code.asc] https://downloads.claude.ai/claude-code/apt/stable stable main" \
  | sudo tee /etc/apt/sources.list.d/claude-code.list
sudo apt update
sudo apt install claude-code
# Fedora / RHEL
sudo tee /etc/yum.repos.d/claude-code.repo <<'EOF'
[claude-code]
name=Claude Code
baseurl=https://downloads.claude.ai/claude-code/rpm/stable
enabled=1
gpgcheck=1
gpgkey=https://downloads.claude.ai/keys/claude-code.asc
EOF
sudo dnf install claude-code   # dnf asks you to confirm the key: 31DD DE24 DDFA B679 F42D 7BD2 BAA9 29FF 1A7E CACE
# Alpine
wget -O /etc/apk/keys/claude-code.rsa.pub \
  https://downloads.claude.ai/keys/claude-code.rsa.pub
sha256sum /etc/apk/keys/claude-code.rsa.pub   # should report 395759c1f7449ef4cdef305a42e820f3c766d6090d142634ebdb049f113168b6
echo "https://downloads.claude.ai/claude-code/apk/stable" >> /etc/apk/repositories
apk add claude-code

For the latest channel, use the latest repository in place of stable: for apt both the URL path and the suite name change (.../apt/latest latest main), for dnf set baseurl to .../rpm/latest, and for apk replace the repository line with .../apk/latest. Upgrade and uninstall commands are in the table above.288

npm installation (not the recommended path; needs Node.js 22+)

Note: v2.1.15 added a deprecation notice for npm installations, and the native installer is the recommended method. The setup page still documents npm as a supported alternative that installs the same native binary. To move an npm install to the native build, run claude install.288289

Where npm is the path you need:

npm install -g @anthropic-ai/claude-code

Never use sudo with npm installation. It creates permission issues that complicate everything downstream.

Migration from existing installation

If you have an older npm-based installation, migrate to the native binary:

claude install

Authentication Options

Claude Code supports three authentication paths, each with different tradeoffs:

Claude Console (API billing)

Connect to Anthropic’s API directly through platform.claude.com. Create an account, set up billing, and authenticate through the CLI. The Console provides usage-based billing with full API access. A dedicated “Claude Code” workspace is created automatically; you cannot create API keys for this workspace, but you can monitor usage. /login → Anthropic Console offers a keyless path, “Sign in with your Console account” (recommended), alongside creating an API key, so organizations that do not allow API keys can still sign in with Console credentials. The authentication docs give v2.1.242 as the floor; the release notes list the feature under 2.1.243 and have no 2.1.242 section.247383

Claude Pro, Max, or Ultra subscription

Use your claude.ai account credentials. The subscription covers both the web interface and CLI usage under a single monthly plan. The subscription simplifies billing for individual users who want predictable costs. Team and Enterprise members sign in the same way, with the claude.ai account their admin invited.286

Enterprise platforms

Amazon Bedrock, Google Cloud’s Agent Platform (formerly Vertex AI), Microsoft Foundry, and Claude Platform on AWS each provide enterprise-grade access with existing cloud billing relationships.286 Claude Models on Google Cloud (Anthropic managed) joined them on October 22, 2026; its variables are under Cloud Provider Comparison.535 Bedrock setup wizard (v2.1.92+): An interactive wizard on the login screen guides you through AWS authentication, region selection, credential verification, and model pinning; /setup-bedrock reopens it.135 Agent Platform setup wizard (v2.1.98+, shipped as the Vertex AI wizard): A matching wizard for Google Cloud, guiding GCP authentication, project and region configuration, credential verification, and model pinning; /setup-vertex reopens it.140 mTLS Workload Identity Federation on Agent Platform (v2.1.121+): X.509 certificate-based Workload Identity Federation (mTLS Application Default Credentials) is accepted: short-lived GCP tokens minted from a client certificate, no service-account JSON required.151 OS CA certificate trust (v2.1.101+): Enterprise TLS proxies work by default because Claude Code trusts the OS certificate store. Set CLAUDE_CODE_CERT_STORE=bundled to use only bundled CAs.141

# Amazon Bedrock
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=us-east-1
export AWS_PROFILE=your-profile

# Google Cloud's Agent Platform (formerly Vertex AI)
export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=us-east5
export ANTHROPIC_VERTEX_PROJECT_ID=your-project

# Microsoft Foundry
export CLAUDE_CODE_USE_FOUNDRY=1
export ANTHROPIC_FOUNDRY_RESOURCE=your-resource-name
# Optional: API key auth (otherwise uses Entra ID)
export ANTHROPIC_FOUNDRY_API_KEY=your-key

# Amazon Bedrock via Mantle (v2.1.94+)
export CLAUDE_CODE_USE_MANTLE=1

# Claude Platform on AWS (authenticates with your AWS credentials or a workspace API key)
export CLAUDE_CODE_USE_ANTHROPIC_AWS=1
export ANTHROPIC_AWS_WORKSPACE_ID=wrkspc_01ABCDEFGHIJKLMN
export AWS_REGION=us-east-1

For enterprise deployments behind proxies or through LLM gateways:

# Corporate proxy
export HTTPS_PROXY='https://proxy.example.com:8080'

# LLM gateway (skip native auth)
export CLAUDE_CODE_USE_BEDROCK=1
export ANTHROPIC_BEDROCK_BASE_URL='https://your-gateway.com/bedrock'
export CLAUDE_CODE_SKIP_BEDROCK_AUTH=1

Gateway hint headers (v2.1.273): Claude Code can add request headers an LLM gateway can route and observe on – x-claude-code-request-class, x-claude-code-agent-type, x-claude-code-prev-tool-durations, x-claude-code-compaction, x-claude-code-context-compacted, and, since v2.1.283, x-claude-code-prompt-id, a random UUID shared by every request that serves one user prompt, subagent turns included.214223 Through a custom base URL or a third-party provider such as Bedrock, the headers stay off until you set CLAUDE_CODE_GATEWAY_HINT_HEADERS=1. The gateway protocol docs add that a direct Anthropic API connection sends them by default, and that CLAUDE_CODE_GATEWAY_HINT_HEADERS=0 stops them on every connection.224

Verification

claude doctor

The command reports installation type, version, system configuration, and any detected issues.

Authentication Management (v2.1.41+)

Manage authentication without entering the REPL:88

claude auth login          # Log in or switch accounts
claude auth status         # Check current auth state (account, plan, expiry)
claude auth logout         # Clear stored credentials

As of v2.1.268, claude auth status --json includes configDirectory – the config directory the CLI is actually reading, useful when CLAUDE_CONFIG_DIR indirection makes that ambiguous.213

As of v2.1.273, sign-in with a Claude account also requests access to your claude.ai plugins.214

As of v2.1.286, claude auth status reports a Console sign-in’s stored API key as api_key instead of claude.ai.228 As of v2.1.318, it also reports when a stored claude.ai sign-in ends (loginExpiresAt); claude -p JSON results carry the same date as credential_expires_at, and claude -p text output prints a one-line stderr warning starting 10 days before the sign-in ends.283 As of v2.1.332, claude auth login exits 1 and says what to check, such as a leftover lock file or a full disk, when a claude.ai login could not be saved.527

Common workflow for switching between accounts or organizations:

claude auth logout && claude auth login

See also: How Do I Debug Issues? for troubleshooting authentication failures.

Updates

Native installs auto-update by default, checking at startup and periodically during sessions. Updates download in the background and apply on next launch. Homebrew, WinGet, apt, dnf, and apk installs do not: upgrade them with the package manager, or set CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE=1 to have Claude Code run the upgrade in the background on Homebrew and WinGet (apt, dnf, and apk stay manual because their commands need elevated privileges).288

Disable auto-updates (DISABLE_AUTOUPDATER stops only the background check, so claude update still works; DISABLE_UPDATES blocks every update path):

export DISABLE_AUTOUPDATER=1

Or in settings.json:

{
  "env": {
    "DISABLE_AUTOUPDATER": "1"
  }
}

Manual update:

claude update

Uninstallation

Native installation (macOS/Linux/WSL):

rm -f ~/.local/bin/claude
rm -rf ~/.local/share/claude

Native installation (Windows PowerShell):

Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force

Homebrew, WinGet, apt, dnf, apk, and npm installs are removed with the package manager; the commands are in the install table above.288

Clean configuration (deletes all settings, allowed tools, MCP server configurations, and session history; run the last two lines from a project directory):

rm -rf ~/.claude
rm ~/.claude.json
rm -rf .claude
rm -f .mcp.json

The VS Code extension, the JetBrains plugin, and the Desktop app also write to ~/.claude/, and the directory is recreated the next time one of them runs, so uninstall those first for a complete removal.288


Quick Start: Your First Session

1. Install and launch:

claude                           # Launch in current directory

2. Navigate to a project:

cd ~/my-project && claude        # Or launch from any git repo

3. Ask Claude to do something:

> "Explain the architecture of this project"
> "Find all TODO comments and create a summary"
> "Add input validation to the signup form"

4. Use key shortcuts during your session:

/usage                           # Check session cost, plan usage limits, and activity (/cost is an alias)
/compact                         # Free up context when it gets large
/effort high                     # Raise reasoning effort for hard problems (ultrathink in a prompt runs one turn at xhigh)
Ctrl+C                           # Cancel current response

5. Continue later:

claude -c                        # Resume your most recent session
claude --resume                  # Pick from session list

Expert tip: Create a CLAUDE.md file in your project root with build commands, coding conventions, and architecture notes. Claude reads it every session — it’s the single highest-leverage thing you can do for quality.


Core Interaction Modes

Interactive REPL

Launch Claude Code without arguments to enter the interactive read-eval-print loop:

cd your-project
claude

The REPL maintains conversation context across turns. Type queries directly, receive responses, and continue until you exit with /exit or Ctrl+D.

Start with an initial prompt to focus the session:

claude "explain the authentication flow in this project"

Expert tip: The REPL persists state across compaction events. When context grows too large, Claude automatically summarizes older conversation while preserving key decisions and code snippets. You can trigger this manually with /compact or add custom instructions for what to preserve.

Non-Interactive Mode

Print mode (-p) executes a single query and exits:

# Direct query
claude -p "list all TODO comments in this project"

# Process piped input
cat error.log | claude -p "identify the root cause of these failures"

# Chain with other tools
claude -p "generate a README" > README.md

For structured output suitable for parsing in scripts:

claude -p "count lines by file type" --output-format json

The JSON output includes everything you need for automation:

{
  "type": "result",
  "subtype": "success",
  "total_cost_usd": 0.0034,
  "is_error": false,
  "duration_ms": 2847,
  "duration_api_ms": 1923,
  "num_turns": 4,
  "result": "Response text here...",
  "session_id": "abc-123-def"
}

For real-time processing of streaming output (in print mode, stream-json output requires --verbose):292

claude -p "build the application" --output-format stream-json --verbose | while read line; do
  echo "$line" | jq -r 'select(.result) | .result'
done

Output format options:

Format Flag Use Case
Text (default) --output-format text Human-readable output, piping to files
JSON --output-format json Script parsing, CI/CD integration
Stream JSON --output-format stream-json --verbose Real-time processing, progress monitoring

Subagent text in stream-json (v2.1.211+): By default, stream-json output carries only the main session’s events — work done inside subagents surfaces as a summary. The --forward-subagent-text flag (or CLAUDE_CODE_FORWARD_SUBAGENT_TEXT=1) forwards subagent text and thinking output into the stream too, so harnesses and log pipelines can observe delegated work as it happens instead of only seeing the final report.185

Nested subagents forward too (v2.1.219+). Subagents spawned at depth 2 and deeper appear in the forwarded stream, each keyed by the tool_use id of the Agent call that spawned it, so a pipeline can rebuild the delegation tree instead of seeing a flat list of text.193

Backgrounded subagents no longer go dark (v2.1.273): SDK and stream-json output stopped dropping a subagent’s remaining messages and final report after the subagent is moved to the background mid-run (for example by CLAUDE_AUTO_BACKGROUND_TASKS).214

A hung -p run errors out (v2.1.277+): claude -p and Agent SDK sessions that hit an internal error report the error and exit with code 1 (a run you stop with SIGTERM exits 143 and records no result). Headless sessions save their cost and usage totals at exit, so a headless resume (claude -p --resume, the SDK, a VS Code extension window reload) carries the session’s totals forward.216292

Exit codes:

Code Meaning
0 Success
1 Error (runtime failure, API error, or Claude reported an error)
143 Stopped with SIGTERM (kill or a process supervisor); the turn in progress is left unfinished and no result is recorded292

Controlling agentic behavior in -p mode:

# Limit autonomous turns (prevents runaway loops)
claude -p "refactor the auth module" --max-turns 10

# Allow specific tools without prompting
claude -p "fix lint errors" --allowedTools "Edit,Bash(npm run lint)"

# Use with a specific model
claude -p "explain this code" --model claude-sonnet-5-5

# Bare mode: skip hooks, LSP, plugin sync, skill walks (v2.1.81+); only CLI-named MCP servers (v2.1.286). Set ANTHROPIC_API_KEY first (or pass an apiKeyHelper in --settings): bare mode does not use your subscription login
claude -p "count files" --bare

# Channels (research preview, v2.1.80+): let a channel plugin (Telegram, Discord, or iMessage) push messages into this session; a channel that declares permission relay can also forward approval prompts (v2.1.81+)
claude --channels plugin:telegram@claude-plugins-official

# Restricted mode for eval harnesses and shared machines (v2.1.248+)
claude --restricted -p "query" --tools "Read,Grep,Glob"

# Unattended hosts: deny anything that would prompt (v2.1.259+)
claude -p "run the nightly checks" --permission-prompts none

Restricted mode (v2.1.248+): --restricted (or CLAUDE_CODE_RESTRICTED=1) is built for evaluation harnesses driving claude on a shared machine. It removes the built-in tools that run commands or code and WebFetch unless you name them individually in --tools – the default preset doesn’t count – confines the built-in file tools to the working directories, loads only managed settings and --settings (user, project, and local settings files are ignored), refuses bypassPermissions, and refuses to create cloud sessions.203206

--permission-prompts none (v2.1.259): the unattended-host companion. Anything that would raise a permission prompt is denied automatically, while the active permission mode – auto mode included – keeps making every decision it can make without you. Don’t conflate it with --permission-prompt-tool, which delegates prompts to an MCP tool instead of refusing them. The flag’s default is host, which sends prompts to the Agent SDK host or to the --permission-prompt-tool tool.208292

cd persists across turns in non-interactive sessions (v2.1.265): -p sessions fed stream-json input, Agent SDK sessions, and cloud sessions no longer reset the shell working directory at each new user message – a cd in one turn now holds in the next.212

--system-prompt-snapshot off (v2.1.267 in the release notes; the CLI reference says v2.1.257 or later): by default a conversation reuses its recorded system prompt on every request. This flag renders the system prompt fresh each request instead – the switch for iterating on prompt text, where each run should pick up your latest edit rather than the snapshot, at the cost of the prompt-cache stability the snapshot exists to protect.213384

--bare holds its limits (v2.1.286+): --bare connects only the MCP servers named on the command line, sends the model no system reminders, and starts no background tasks; a shell command that reaches its timeout stops instead of moving to the background. The headless docs call --bare the recommended mode for scripted and SDK calls.228230 Bare mode does not use your subscription login: it never reads OAuth credentials or the system keychain, so for the Anthropic API set ANTHROPIC_API_KEY or supply an apiKeyHelper in the --settings JSON, while Bedrock, Agent Platform, and Foundry keep reading their own provider credentials.385

CI/CD integration pattern:

# In a GitHub Action or CI pipeline
result=$(claude -p "review this diff for security issues" --output-format json 2>/dev/null)
is_error=$(echo "$result" | jq -r '.is_error')
if [ "$is_error" = "true" ]; then
  echo "Review failed"
  exit 1
fi
echo "$result" | jq -r '.result'

Exit codes in print mode (v2.1.311 to v2.1.317). claude -p prints the error and exits 1 when startup fails (v2.1.314) and when a full disk or quota loses its transcript or ~/.claude.json writes (v2.1.317, text and json output). --output-format json and stream-json write DEL, C1 control, and Unicode format characters inside strings as \uXXXX escapes, so parsed values are unchanged (v2.1.311). A -p run that needs your claude.ai skills on its first query sets CLAUDE_CODE_SYNC_SKILLS=1; with feature-flag fetching off it reuses a skills list up to 10 minutes old that another session on the machine fetched (v2.1.311).281282

Session Management

Sessions persist conversation history for continuation. Session persistence is essential for complex multi-session work:

# Continue most recent session
claude -c

# Continue with additional prompt
claude -c -p "now add error handling"

# Resume specific session by ID
claude -r "abc123" "implement the remaining tests"

# Fork a session for parallel exploration
claude -r "base-session" --fork-session "try a different approach"

# Open the Claude desktop app on this directory, or on a session (v2.1.285)
claude --desktop
claude --desktop --continue

Move a running session with /cd (v2.1.169+; immediate config since v2.1.246): /cd path changes the working directory without breaking the prompt cache. As of v2.1.246 the new directory’s project settings, hooks, .mcp.json servers (behind the usual approval prompt), skills, and agents take effect right after the move instead of waiting for --resume.259246

PR-linked sessions (v2.1.27+, expanded v2.1.119+): Resume a session linked to a specific pull or merge request. As of v2.1.119, --from-pr accepts GitLab MR, Bitbucket PR, and GitHub Enterprise PR URLs in addition to github.com:72149292

claude --from-pr 123                                                # GitHub PR number (assumes current repo's remote)
claude --from-pr https://github.com/org/repo/pull/123               # GitHub URL
claude --from-pr https://gitlab.com/org/repo/-/merge_requests/45    # GitLab MR (v2.1.119+)
claude --from-pr https://bitbucket.org/org/repo/pull-requests/67    # Bitbucket PR (v2.1.119+)
claude --from-pr https://ghe.example.com/org/repo/pull/89           # GitHub Enterprise (v2.1.119+)

Sessions also auto-link to PRs when you create them via gh pr create during a session. This makes it easy to resume work on a specific PR later. The footer PR badge can point at a custom code-review URL via the prUrlTemplate setting (v2.1.119+) — useful when your team links from PRs into a separate review tool.149

/resume accepts PR URLs (v2.1.122+). Pasting a PR URL into the /resume search box finds the session that originally created that PR — works across github.com, GitHub Enterprise, gitlab.com (and self-hosted GitLab), and bitbucket.org.151

Named sessions: Name sessions at startup or during a session:116

# Name session at startup (v2.1.76+)
claude -n "auth-refactor"                  # --name flag sets display name

# Name current session
> /rename auth-refactor

# Resume by name (or run /resume alone for the picker)
> /resume auth-refactor        # Resume by name
claude --resume auth-refactor  # Resume from terminal

# Fork for parallel exploration
claude --resume auth-refactor --fork-session

Note: --session-id requires a valid UUID (e.g., 550e8400-e29b-41d4-a716-446655440000). For human-readable session naming, use /rename and --resume instead.

/fork spawns a background session; /subtask is the in-session fork (v2.1.212). The /fork command copies the current conversation into a new background session with its own row in claude agents, so you can send the copy off to explore an alternative while your main session continues. /subtask forks within the current session.186 A session that starts as a fork reports SessionStart hook source "fork" (v2.1.214+), so source-matching hooks can tell a fork from a resume.187 The /fork confirmation is one line showing the new session’s name and its claude attach id (v2.1.216+).189 A forked session creates its own worktree (v2.1.221+), so it cannot collide with the main session’s uncommitted files.196 A subagent_type: "fork" subagent inherits the full conversation and prompt cache, and non-teammate agent spawns in interactive sessions run in the background by default (v2.1.232+).252

Claude Code stores sessions as JSONL transcripts. Agent execution assigns unique agentId values with transcripts stored as agent-{agentId}.jsonl. Resume preserves full context from previous conversations.

Plan Mode

Plan mode keeps Claude to research and planning: it reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Claude designs an implementation approach, writes it to a plan file, and waits for your approval before changing anything.293

Entering plan mode:

# Cycle through modes during a session
Shift+Tab           # Cycles: auto → manual → accept edits → plan (the status bar names the active mode)

# Or use the /plan command with an optional description (v2.1.72+)
/plan                                     # Enter plan mode
/plan refactor the auth module            # Enter plan mode with a description

# Or ask Claude directly
"Plan how to refactor the auth module"   # Claude may enter plan mode automatically

# Or start a session in plan mode
claude --permission-mode plan

How it works:

  1. Claude enters plan mode (automatically for complex tasks, or via Shift+Tab)
  2. Explores the codebase by reading files and running shell commands; by default, file searches on macOS, Linux, and WSL run as find and grep through the Bash tool, and on Windows the Glob and Grep tools are in the default tool set386
  3. Writes a plan file to ~/.claude/plans/ (move it with the plansDirectory setting, a path relative to the project root)
  4. Exits plan mode with ExitPlanMode, presenting the plan for your review
  5. You approve, request changes, or reject

What Claude can do in plan mode: read files, run shell commands to explore, ask you questions (the AskUserQuestion tool), and write the plan.387 By default, file search is the Glob and Grep tools on Windows, and find and grep through the Bash tool on macOS, Linux, and WSL.386 Read-only commands run as usual; where auto mode is available, other commands go through its classifier (useAutoModeDuringPlan, on by default), and otherwise they prompt. Edit, Write, and NotebookEdit on your source are held until you approve the plan.293

When the plan is ready, Claude presents it and asks how to proceed:

  • “Yes, and use auto mode”: approve and continue in auto mode (the option reads “Yes, auto-accept edits” where auto mode is not available to the session)
  • “Yes, manually approve edits”: approve and review each edit
  • “No, keep planning”: stay in plan mode and tell Claude what to change

Press Ctrl+G to edit the plan in your editor before approving. Set showClearContextOnPlanAccept to true (it is false by default) to add a first option that approves the plan and clears the planning context, which gives the plan a fresh context window and helps a long plan stay on track.293

When to use plan mode:

  • New feature implementations with architectural decisions
  • Multi-file refactors where you want to review the approach first
  • Unfamiliar codebases where exploration should precede modification
  • Any task where multiple valid approaches exist and you want input

Expert tip: The more time you spend in plan mode, the more likely Claude will succeed at implementation. Edits to your source wait for your approval, so exploring costs tokens but no wasted edits. One exception: in an interactive terminal session with bypass permissions available, Claude Code does not enforce plan mode’s blocks, so an edit or command Claude attempts while planning runs without a prompt.293

Screen Reader Mode (v2.1.208)

Claude Code ships a dedicated screen reader mode that adapts the terminal UI for assistive technology. Enable it any of three ways:183

# Flag at launch
claude --ax-screen-reader

# Environment variable
export CLAUDE_AX_SCREEN_READER=1

Or persistently, in your user settings file (~/.claude/settings.json). Claude Code ignores the key in project and local settings, so a repository’s settings files cannot turn the mode on:388

{ "axScreenReader": true }

The release notes add screen reader mode in v2.1.208; the CLI reference and the environment variables page give v2.1.181 as the floor for --ax-screen-reader and CLAUDE_AX_SCREEN_READER.183388

Anthropic documents the mode — and its interaction patterns — on a new accessibility page in the official docs.183

No pause before each line (v2.1.287): screen reader mode writes new or changed lines without first pausing with the cursor at the start of the line. CLAUDE_AX_PREPARK_MS sets a pause in milliseconds; its default is 0, and the wait is capped at 5000. The same release fixes a run of screen reader issues, among them the cursor sitting away from typed text in search boxes and changed lines missing from edit approval prompts.229230

Code Mode (experimental, v2.1.323)

Code Mode changes how Claude uses its tools. Without it, Claude asks for one tool call at a time and reads each result before deciding the next step. With it, Claude writes a piece of JavaScript that makes the tool calls, and Claude Code runs that code in your session: one script can run commands in parallel, feed one result into the next call, and hand back only the part of the output Claude needs to read. The docs call it experimental, off by default, and liable to change or be removed in any release.532

CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude

Claude Code asks you to confirm before the first Code Mode session, then restarts and shows Code Mode (experimental) is on · this session can be resumed only with Code Mode on. To turn it on for every new session, put the variable in the env block of ~/.claude/settings.json; a project’s settings files cannot set it, so a cloned repository cannot turn Code Mode on for you. In the conversation you see the tool calls, such as an edit’s diff, and not the code; press Ctrl+O to read each script as a collapsed Code row in the transcript viewer.532

What it needs. v2.1.323 or later and the native build; a Claude subscription, a Console account, or, from v2.1.331, a cloud provider such as Bedrock, Agent Platform, or Foundry (not a gateway); Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.2; and an interactive claude session in a terminal, not the VS Code panel, the Desktop app, or a cloud session. Agent teams need v2.1.326, a mod that hooks tool calls needs v2.1.327, and feature flags off or OpenTelemetry events and metrics on need v2.1.329, with tracing kept off. Organizations with the HIPAA configuration or zero data retention cannot use it.527532

What changes while it is on. Auto mode’s classifier reviews the code, not each tool call. A script you wait on stops after ten minutes unless it can run in the background. Remote Control, Claude in Chrome, and computer use are unavailable, and the session cannot move to the Desktop app or become a background session. Since v2.1.328 UserPromptSubmit hooks no longer run on a script’s output, managed ones included, so redact that output from a PostToolUse hook with updatedToolOutput; since v2.1.329 a PreToolUse hook that errors no longer refuses a script’s tool call unless the hook sets "onFailure": "block". To keep Code Mode off for an organization, set CLAUDE_CODE_EXPERIMENTAL_CODE_MODE to 0 in managed settings; managed settings cannot turn it on for users.527532


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 cannot be overridden by your own settings files.

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+)

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

Which Model Should I Choose?

Choosing the right model for each task significantly impacts both cost and quality. Claude Code provides flexible model switching at multiple levels.

Available Models

Alias Model Best For Input/1M Output/1M
fable Claude Fable 5.2 The hardest reasoning and long-horizon work; top tier above Opus (model ID claude-fable-5-2, released November 9, 2026; the alias resolves here as of v2.1.321 everywhere except Claude apps gateway sessions, where it still means Fable 5; Fable 5.1 stays selectable by ID, claude-fable-5-1)283284 $8.00 $40.00
best The same model as opus (v2.1.321+) Not the way to the top tier: use fable for that284296 $4.00 $20.00
opus Claude Opus 5.5 Complex reasoning, agentic coding, long-horizon work; the default Opus model (v2.1.280+; model ID claude-opus-5-5)217218 $4.00 $20.00
sonnet Claude Sonnet 5.5 Daily coding, best speed/intelligence balance; what the alias selects on the Anthropic API (v2.1.284+; model ID claude-sonnet-5-5). Claude Platform on AWS resolves sonnet to Sonnet 4.6 and Bedrock to Sonnet 4.5. For Agent Platform and Foundry the v2.1.332 release notes say Sonnet 5.5, and the docs’ alias table, read November 25, 2026, still says Sonnet 4.5; before v2.1.332 both resolve to Sonnet 4.5225227527528 $2.00 $10.00
haiku Claude Haiku 5.5 Simple tasks, fast operations, exploration subagents; what the alias selects on the Anthropic API (v2.1.293+; model ID claude-haiku-5-5); on Bedrock, Google Cloud’s Agent Platform, Foundry, and Claude Platform on AWS the alias selects Haiku 4.5235236 $0.10 ($0.50 for prompts over 100K tokens) $0.50 ($2.50 over 100K)
default Opus 5.5 on every plan (v2.1.280+); the docs’ by-plan list reads Opus 5.5 across Pro, Max, Ultra, Team, Enterprise, the Anthropic API, Claude Platform on AWS, Bedrock, and Google Cloud’s Agent Platform (Microsoft Foundry: Sonnet 4.5 in the docs, Sonnet 5.5 from v2.1.332 per the release notes); admins can set an org default, shown as “Org default” in /model (v2.1.196+)217218296 General purpose Varies Varies
opus[1m] Opus with 1M context Long sessions. No effect on the Anthropic API, where Opus 5.5 already runs with 1M, nor, since v2.1.287, on Bedrock, Google Cloud’s Agent Platform, Foundry, and the Claude apps gateway, where Opus 4.7 and later default to 1M. Still needed for Opus 4.6, which Foundry’s opus means before v2.1.332 (the v2.1.332 release notes move that alias to Opus 5.5); since v2.1.311 model names and IDs drop the [1m] suffix and its label where it has no effect, and the suffix is still accepted220229230281 $4.00 $20.00
sonnet[1m] Sonnet 5.5 (native 1M already) No effect when sonnet resolves to Sonnet 5.5 or Sonnet 5; behind an LLM gateway it selects the 1M window for that model227 $2.00 $10.00
opusplan Opus (plan) + Sonnet (execute) Complex refactoring Hybrid Hybrid

Claude Haiku 5.5 (October 7, 2026): The default Haiku model on the Anthropic API as of v2.1.293, which points the haiku alias at it; on Claude Platform on AWS, Bedrock, Google Cloud’s Agent Platform, and Foundry the alias resolves to Haiku 4.5. Model ID: claude-haiku-5-5 (Bedrock: anthropic.claude-haiku-5-5). Priced by prompt length: $0.10/MTok input and $0.50/MTok output for a prompt of up to 100,000 tokens, $0.50/$2.50 over that, with cache reads at $0.01 and $0.05 (the standard 10%). The threshold counts every input token of the request, cache reads and writes included, and each request is priced on its own, so a prompt that crosses 100K tokens pays the higher rates on all of its tokens. 1M token context window, 128K max output (300K on the Batches API with the output-300k-2026-03-24 beta header). Adaptive thinking, on by default (Claude Code offers no switch for it on this model; the Claude API still accepts thinking: {"type": "disabled"} at high effort or below), effort defaulting to medium on the Claude API, the same tokenizer as Opus 4.7 and later (about 30% more tokens for the same text than Haiku 4.5), reliable knowledge cutoff June 2026, retirement no sooner than October 7, 2027.235236400

Haiku remains the one family an availableModels allowlist cannot disable, so haiku puts Haiku 5.5 in every picker, and a session saved on Haiku 4.5 whose model setting is the alias resumes on Haiku 5.5. VERTEX_REGION_CLAUDE_HAIKU_5_5 sets its region on Google Cloud’s Agent Platform (formerly Vertex AI). Requires Claude Code v2.1.293 or later; to stay on Haiku 4.5, pin ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5-20251001.235236

Claude Sonnet 5.5 (September 28, 2026): The default Sonnet model on the Anthropic API as of v2.1.284, which points the sonnet alias at it; the default model on every plan stays Opus 5.5. Model ID: claude-sonnet-5-5 (Bedrock: anthropic.claude-sonnet-5-5). $2/MTok input, $10/MTok output, the same as Sonnet 5, with cache reads at $0.10/MTok (0.05x the input price per the pricing page, the same rate as Opus 5.5). 1M token context window, 128K max output (up to 300K on the Batches API with the output-300k-2026-03-24 beta header). Reliable knowledge cutoff: June 2026, the same as Opus 5.5 and Fable 5.1. Retirement no sooner than September 28, 2027. In Claude Code, effort defaults to medium on Sonnet 5.5 (the Claude API’s own default is high), and thinking cannot be turned off. Content-based fallback: a cybersecurity-flagged request re-runs on Sonnet 5, and a biology-flagged request ends with a refusal because Sonnet 5.5 has no biology fallback model. Requires Claude Code v2.1.284 or later; to stay on Sonnet 5, pin ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5.225227

The model page lists five breaking changes for API code moving from Sonnet 5: up-front thinking is turned off with between_tools, forced tool use returns an error, thinking blocks are tied to the model and the conversation, computer_20251124 is not accepted on the Claude API and Google Cloud, and the advisor tool rejects four models as advisors (Opus 4.8, Opus 4.7, Sonnet 5, and Haiku 5.5). Text between tool calls also comes back in thinking blocks, so an interface that streams it goes quiet until it sets a display value that returns the text.227401

Claude Opus 5.5 (September 22, 2026): The default Opus model in Claude Code (v2.1.280+) and, per the model-config docs’ by-plan list, the default model on every plan and first-party provider: Pro, Max, Ultra, Team, Enterprise, the Anthropic API, Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform (on Microsoft Foundry the v2.1.332 release notes give Sonnet 5.5 as the default and Opus 5.5 for opus, while the docs still say Sonnet 4.5 and Opus 4.6; see the plan table below). Model ID: claude-opus-5-5 (Bedrock: anthropic.claude-opus-5-5), a dateless pinned snapshot on the same scheme as claude-opus-5. $4/MTok input, $20/MTok output (Opus 5: $5/$25), with cache reads at $0.20/MTok, 5% of the input price and half the standard 10% (only the Fable and Mythos 5.1 and 5.2 models go lower, at 2.5%). 1M token context window, 128K max output (up to 300K on the Batches API with the output-300k-2026-03-24 beta header).217218296

Adaptive always-on thinking: the models-overview table gives Opus 5.5 the same “Adaptive (always on)” designation as Fable, not Opus 5’s on-by-default-but-disableable shape. effort defaults to medium (Opus 5 defaults to high), and an effort level saved before /effort became per-model does not apply to Opus 5.5 or to models released after it, so each starts at its own default until you pick a level. Reliable knowledge cutoff: June 2026 (training data also June 2026), the same cutoff as Fable 5.2, Sonnet 5.5, and Haiku 5.5. Retirement no sooner than September 22, 2027. Requires Claude Code v2.1.280 or later.217218296

Breaking changes when you move API code from Opus 5 to Opus 5.5:219

  1. Thinking cannot be disabled. thinking: {type: "disabled"} and thinking: {type: "enabled", budget_tokens: N} both return a 400. Remove the thinking field and choose an effort level instead.
  2. Forced tool use returns an error. tool_choice accepts only auto and none; any and tool return a 400, including on the token-counting endpoint. Use auto with strict tool use or structured outputs.
  3. Thinking blocks are tied to the model. A router or fallback that moves a conversation from Opus 5.5 to another model runs those turns without Opus 5.5’s thinking blocks. The model page lists two exceptions: a move to Fable 5.2 or Mythos 5.2 keeps the reasoning on the Claude API and on Claude Models on Google Cloud (Google managed), and a move to Fable 5.1 or Mythos 5.1 keeps it on the Claude API only.402
  4. computer_20251124 is rejected on the Claude API and Google Cloud. Declare the computer_toolset_20260801 toolset instead; Bedrock keeps the older tool.

One further change fails no request but changes the response shape: text the model writes between tool calls comes back in thinking blocks, empty at the default display setting. An interface that streams that narration goes quiet until it sets display: "updates" (beta) or "summarized".219

Content-based fallback in Claude Code. Opus 5.5 runs with safety classifiers that most often flag biology and cybersecurity content. When one flags a request, Claude Code re-runs it on another model and shows a notice: biology-flagged requests go to Opus 5, cybersecurity-flagged requests to Opus 4.8, and the session stays on the fallback model until you switch back with /model. Turn off Switch models when a message is flagged in /config (switchModelsOnFlag: false) to be asked each time instead.220 The switch keeps your current effort level (v2.1.287+), so a session at Opus 5.5’s default medium stays at medium on Opus 4.8, which defaults to high.229230

Claude Opus 5 (July 2026; previous Opus tier): Still selectable as /model claude-opus-5; the opus alias selects Opus 5.5. Model ID: claude-opus-5, a dateless pinned snapshot, not an evergreen pointer. $5/MTok input and $25/MTok output. 1M token context window (no beta header), 128K max output (up to 300K on the Batches API with the output-300k-2026-03-24 beta header). Adaptive thinking only: thinking.type: "enabled" extended thinking is not supported. Reliable knowledge cutoff: May 2026 (training data cutoff also May 2026). Retirement not sooner than July 24, 2027.194238403534

Two breaking changes when you move a harness from Opus 4.8 to Opus 5:194

  1. Thinking is on by default. On Opus 4.8 a request with no thinking field ran without thinking; on Opus 5 the same request runs with adaptive thinking. max_tokens remains a hard limit on total output — thinking plus response text — so re-check headroom on any workload that ran thinking-free on Opus 4.8. Pass thinking: {type: "disabled"} to turn thinking off, subject to the next item.
  2. Disabling thinking is capped at high effort. thinking: {type: "disabled"} combined with effort xhigh or max returns a 400. The check is enforced per request — raising effort to xhigh while thinking is disabled is rejected even if earlier turns in the same conversation were accepted.

In Claude Code specifically: effort defaults to high on Opus 5 (as it does on the Claude API), and the full ladder is available — low, medium, high, xhigh, max. Anthropic’s own migration guidance is to test max effort where capability matters more than token spend. Fast mode covers Opus 5 at $10/$50 per MTok (see Fast Mode).194195

Claude Fable 5.2 (November 9, 2026): The top of the Fable tier and, as of v2.1.321, the model the fable alias resolves to (unless ANTHROPIC_DEFAULT_FABLE_MODEL pins something else), except in Claude apps gateway sessions, where fable still means Fable 5 and a gateway that serves Fable 5.2 needs /model claude-fable-5-2. Model ID: claude-fable-5-2 (Bedrock: global.anthropic.claude-fable-5-2, the ID its model page lists for the bedrock-runtime endpoint).482 $8/MTok input, $40/MTok output (Fable 5.1: $10/$50); 5-minute cache writes $10, 1-hour cache writes $16, and cache reads $0.20/MTok (0.025x); 1M context, 128K max output, adaptive thinking that cannot be turned off, reliable knowledge cutoff June 2026. The Claude API’s default effort for it is high; Claude Code starts it at medium, the same default it gives Opus 5.5, Sonnet 5.5, and Haiku 5.5, until you pick a level with /effort or the /model picker. It requires 30-day data retention and is not available under zero data retention unless Anthropic authorizes it. Claude Mythos 5.2 shares its specifications and pricing for organizations verified through Anthropic’s verification programs. Fast mode covers it at $16/$80 per MTok from v2.1.321, and from v2.1.322 on Google Cloud’s Agent Platform (see Fast Mode).283284

The saved-pick migration. On Pro, Max, and Ultra plans a claude-fable-5-1 model saved in your user settings moves to the fable alias the first time you run v2.1.321 or later, and the startup model line can show (auto-updated) once; on Team and Enterprise plans the move waits for the organization’s settings and applies from the next session, or not at all. After the move, sessions start at Fable 5.2’s default effort unless you have set one for it. Console accounts, third-party providers, and project, local, or managed settings keep claude-fable-5-1, and /model claude-fable-5-1 switches back by hand. No Fable model is the account-type default on any plan or provider, and best is “the same model as opus” (v2.1.321+).283284296

Claude Fable 5.1 (September 1, 2026; previous Fable tier): Still selectable as /model claude-fable-5-1 (v2.1.257+); the fable alias selects Fable 5.2. Model ID: claude-fable-5-1 (Bedrock: anthropic.claude-fable-5-1). $10/MTok in, $50/MTok out, 1M context, 128K max output, adaptive always-on thinking, effort defaulting to high. Cache reads cost $0.25/MTok, 0.025x the input price (2.5%), versus the standard 10%, and cache writes are standard ($12.50 5-minute, $20 1-hour). Reliable knowledge cutoff: June 2026 (training data also June 2026). Retirement no sooner than September 1, 2027.238284404

When the newest Fable model is not available to your organization, fable retries once on the previous Fable model instead of erroring (v2.1.301+).272284296

Three breaking changes against Fable 5: forced tool use returns an error, earlier models cannot read its thinking blocks, and editing earlier turns invalidates thinking blocks. Five additive changes: per-message effort (beta), turn-scoped system messages (beta), progress updates between tool calls (display: "updates", beta), the cheaper cache reads, and content provenance.238 Claude Mythos 5.1 shares Fable 5.1’s specifications and pricing and is offered only to organizations verified through Anthropic’s verification programs, such as the Cyber Verification Program.404

In Claude apps gateway sessions fable resolves to Fable 5, so pick a newer Fable model there by ID, with /model claude-fable-5-1 or /model claude-fable-5-2.284

Claude Fable 5 (June 9, 2026; legacy since September 1, 2026): Still selectable as /model claude-fable-5 (v2.1.170+); the fable alias selects Fable 5.2, except in Claude apps gateway sessions, where it selects Fable 5. Anthropic’s model page lists Fable 5 as legacy and points to Fable 5.2. Model ID: claude-fable-5; the 1M context window is the default, so a [1m] suffix is unnecessary and claude-fable-5[1m] is normalized to claude-fable-5 (v2.1.173+); 128K max output. $10/MTok input and $50/MTok output, above Fable 5.2’s $8/$40, so there is little reason to pick it over Fable 5.2. Adaptive thinking only and always on: thinking: {type: "disabled"} returns a 400, and temperature, top_p, top_k, and budget_tokens are not accepted. On the Fable models a biology-flagged request re-runs on Opus 5 and a cybersecurity-flagged request on Opus 4.8. Claude Mythos 5 is the same underlying model with the safeguards lifted in some areas, offered to a small group of cyberdefenders and infrastructure providers.258284296297405

In Claude Code specifically: Fable 5 supports the full effort scale (low/medium/high/xhigh/max, high by default). Thinking cannot be turned off on the Fable models: the session thinking toggle, the alwaysThinkingEnabled setting, and MAX_THINKING_TOKENS=0 all have no effect. The fable family has its own configuration knobs: ANTHROPIC_DEFAULT_FABLE_MODEL pins the model the fable alias resolves to (useful on Bedrock, Agent Platform, and Foundry), and DISABLE_PROMPT_CACHING_FABLE opts Fable out of prompt caching. Pick the Fable tier deliberately with /model fable, which selects Fable 5.2 (v2.1.321+).258194204239217218

Opus 4.7 (April 16, 2026; legacy): Still available (retirement not sooner than April 16, 2027); Anthropic recommends migrating to Opus 5.5.297 1M token context window at standard pricing, with no long-context premium. 128K max output, adaptive thinking only (no extended thinking), and xhigh effort recommended as the starting point for coding and agentic workloads.143 Reliable knowledge cutoff: January 2026. Training data cutoff: January 2026. Model ID: claude-opus-4-7. Pricing matches Opus 4.6 at $5/$25 per MTok with 5-min cache write $6.25, 1-hr cache write $10, and cache read $0.50 per MTok.142 Tokenizer: expect roughly 1× to 1.35× the token count for the same text; bump max_tokens headroom and compaction triggers.143 Vision supports up to 2,576 px / 3.75 MP images with 1:1 pixel coordinates.143

Opus 4.7 coding benchmarks (April 2026):406

Benchmark Opus 4.7 Opus 4.6 GPT-5.4 (OpenAI’s frontier model in April 2026) GPT-5.3-Codex GPT-5.2-Codex
SWE-bench Verified 87.6% 80.8% n/a n/a n/a
SWE-bench Pro 64.3% 53.4% 57.7% 56.8% 56.4%
Terminal-Bench 2.0 69.4% 65.4% 75.1% 77.3% 64.0%
CursorBench 70% 58% n/a n/a n/a

The first three rows of the Opus and GPT-5.4 columns come from the benchmark table in Anthropic’s Opus 4.7 announcement, which labels GPT-5.4’s Terminal-Bench score as run on a self-reported harness; the CursorBench row is a customer report in the same post; the two Codex columns are OpenAI’s own figures from its GPT-5.4 and GPT-5.3-Codex announcements. “n/a” means the sources give no score. Opus 4.7 leads Opus 4.6 on every row and leads GPT-5.4 on SWE-bench Pro by 6.6 points (64.3% vs 57.7%). On Terminal-Bench 2.0, GPT-5.3-Codex edges GPT-5.4 (77.3% vs 75.1%) and both lead Opus 4.7 (69.4%). The table is an April 2026 snapshot, and benchmark leadership is fluid; check vendor pages before committing to a multi-quarter choice.

Default model by plan (Claude Code):204218

Every Anthropic-operated plan and first-party provider defaults to Opus 5.5 (v2.1.280+); the one exception is Microsoft Foundry.

Plan Default model
Pro, Max, Ultra, Team (Standard and Premium), Enterprise, Anthropic API Opus 5.5 (v2.1.280+)217218296
Claude Platform on AWS, Amazon Bedrock, Google Cloud’s Agent Platform Opus 5.5 (v2.1.280+)218
Microsoft Foundry Sonnet 5.5 from v2.1.332 per the release notes (“deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model you have deployed”), with opus meaning Opus 5.5; Sonnet 4.5, with opus meaning Opus 4.6, on v2.1.331 and earlier and in the model-config and Foundry docs pages as read on November 25, 2026218527528

The two Foundry sources have not been reconciled. If your Foundry resource has no Sonnet 5.5 deployment, pin ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_OPUS_MODEL to deployments you have; the Foundry docs recommend pinning every deployment in any case.528 v2.1.332 also treats Claude Sonnet 4, Opus 4, and Opus 4.1 as retired on Foundry: step-downs stop above them, and a pin to one warns that it was retired.527

Messages API breaking changes in Opus 4.7 (caller-visible):143

  • Extended thinking budget_tokens is removed. Use thinking: {type: "adaptive"} instead. Adaptive thinking is off by default; requests with no thinking field run without thinking.
  • Setting temperature, top_p, or top_k to a non-default value returns HTTP 400. Omit these parameters and steer the model via prompting.
  • Thinking content is omitted from responses by default. Set thinking.display: "summarized" to restore visible reasoning (required if your product streams thinking to users).

Task budgets (beta header task-budgets-2026-03-13) let you advise the model of a token target across a full agentic loop via output_config.task_budget; minimum 20K tokens.143

Opus 4.5 and Sonnet 4.5 are leaving the Claude API. Anthropic deprecated Claude Opus 4.5 (claude-opus-4-5-20251101 and claude-opus-4-5) on November 23, 2026, with retirement on the Claude API on January 22, 2027 and Opus 5.5 as the recommended replacement. Claude Sonnet 4.5 (claude-sonnet-4-5-20250929 and claude-sonnet-4-5), deprecated on September 30, 2026, retires from the Claude API on November 30, 2026, with Sonnet 5.5 as its replacement. Both dates are for the Claude API; the model deprecations page is where to check the dates on other platforms. Opus 4.6 is listed as active, with retirement not sooner than February 5, 2027.534

Opus 4.6 (legacy): Still available at claude-opus-4-6 with 1M context and 128K max output; retirement not sooner than February 5, 2027. Anthropic’s model page lists it as legacy and recommends migrating to Opus 5.5. Pro and Max subscribers default to high effort on Opus 4.6 and Sonnet 4.6 (v2.1.117+).77142149150297534

Sonnet 5 (June 30, 2026; previous Sonnet tier): Still selectable: /model claude-sonnet-5 or ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5 keeps you on it, while /model sonnet selects Sonnet 5.5 on the Anthropic API (v2.1.284+). Model ID: claude-sonnet-5 (dateless pinned snapshot). 1M token context window, 128K max output (up to 300K on the Batches API with the output-300k-2026-03-24 beta header), adaptive thinking only. Reliable knowledge cutoff: January 2026. $2/$10 per MTok input/output, the standard list price and the same as Sonnet 5.5. In Claude Code the effort parameter defaults to high on Sonnet 5. Retirement not sooner than June 30, 2027.177178248225227534

Sonnet 4.6 (February 17, 2026; legacy, succeeded by Sonnet 5 and then Sonnet 5.5): Still available at claude-sonnet-4-6; retirement not sooner than February 17, 2027. $3/$15 per MTok. Supports extended thinking, adaptive thinking, and a 1M token context window (in Claude Code through its [1m] variant); 128K max output. Knowledge cutoff: August 2025 (reliable), January 2026 (training data).91117296407534

Claude Mythos Preview (April 7, 2026): A research-preview frontier model for defensive cybersecurity work, offered under Project Glasswing.137 Invitation-only; not generally available. Anthropic frames Opus 4.7 as deliberately less capable than Mythos on cyber dimensions — a safety tradeoff — and has opened a Cyber Verification Program at https://claude.com/form/cyber-use-case for legitimate security researchers who need elevated access.144

Why these price differences matter: take a session that uses 100K input tokens and 20K output tokens, an example for the arithmetic and not a measured average. On Haiku 5.5, at the rates for prompts up to 100K tokens, it costs about $0.02 ($0.01 of input plus $0.01 of output). On Opus 5.5 at $4/$20 the same session costs $0.80, 40 times as much (before prompt-caching discounts). Use Sonnet or Haiku where a task does not need Opus.1219

When to Use Each Model

Haiku: Use for subagents doing exploration, simple file searches, quick questions. At the rates for prompts up to 100K tokens it is about 40x cheaper than Opus 5.5 (8x on a prompt over 100K) and responds faster. Perfect for background tasks where you don’t need deep reasoning.

Sonnet: The workhorse for daily development when cost matters. sonnet selects Sonnet 5.5 on the Anthropic API: $2/$10 per MTok, native 1M context.225 No plan starts on Sonnet, so it is something you choose, and the case for choosing it is arithmetic: half the per-token cost of Opus 5.5 at the same 1M context. It handles most coding tasks: implementing features, fixing bugs, writing tests, code review. Use Sonnet when you need cheaper tokens, faster latency, or subagent economics.217218

Opus: The deep-reasoning tier: the opus alias selects Claude Opus 5.5 ($4/$20 per MTok, 1M context, effort defaulting to medium) (v2.1.280+), and Opus is also what every plan starts on. The choice is therefore when to leave it: stay on Opus for architectural decisions, tricky debugging, understanding complex systems, security analysis, and long-horizon agentic work, and switch to /model sonnet when a task is routine enough that half the token price matters more than the extra reasoning.217218

Opusplan: A hybrid mode that uses Opus for planning (where reasoning quality matters most) and Sonnet for execution (where speed matters). Excellent for complex refactoring where you want the best plan but don’t need Opus-level reasoning for each individual edit.

Switching Models

During session:

> /model opus
> /model sonnet
> /model haiku

At startup:

claude --model opus

Via environment:

export ANTHROPIC_MODEL=opus

In settings.json:

{
  "model": "claude-sonnet-5-5"
}

Curate the picker itself (modelPicker, v2.1.242+): a user or managed settings file can list the models /model offers, in your order and under your labels, instead of leaving the built-in lineup as the only menu. Each row names a model (any spelling --model accepts, including Agent Platform and Bedrock IDs) with an optional label and description; set replaceBuiltInOptions to true to show only those rows plus Default and the session’s current model. Project and local settings are ignored for this key, and an availableModels allowlist still filters the rows. Claude Code drops a row it cannot serve, grays out a row you cannot select yet with the reason, and falls back to the built-in lineup if no row survives.247245

{
  "modelPicker": {
    "options": [
      { "model": "anthropic.claude-opus-5-5", "label": "Opus (production)" },
      {
        "model": "anthropic.claude-sonnet-5-5",
        "label": "Sonnet (production)",
        "description": "Day-to-day work"
      }
    ]
  }
}

For subagents specifically:

export CLAUDE_CODE_SUBAGENT_MODEL=haiku

CLAUDE_CODE_SUBAGENT_MODEL sets the default subagent model (v2.1.251+): an agent definition’s model: and an explicit per-spawn model take precedence over it.203 CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1 (v2.1.257+) applies CLAUDE_CODE_SUBAGENT_MODEL (or the main conversation’s model when that is unset) to every subagent, ignoring per-spawn picks and agent definitions’ model:.208

Fallback model chain (v2.1.166+): the fallbackModel setting configures up to three fallback models, tried in order, when the primary model is overloaded or unavailable. Since v2.1.166 the --fallback-model flag also applies to interactive sessions.260

{
  "model": "claude-opus-5-5",
  "fallbackModel": ["claude-sonnet-5-5", "claude-haiku-5-5"]
}

When the API returns an unexpected non-retryable error, Claude Code now also retries the turn once on the fallback model before surfacing the failure, so a transient primary-model problem degrades gracefully instead of dropping the turn.260 As of v2.1.286, when the Anthropic API refuses the model your default or an alias resolves to, Claude Code retries once on the previous model of the same tier instead of failing every turn, and refusal and --fallback-model retries onto a model that cannot run fast run at standard speed.228

As of v2.1.178, compaction also honors the fallback chain — if the primary model is overloaded or unavailable mid-compaction, the compaction step falls back to the configured fallbackModel/--fallback-model chain rather than failing the turn. For a long autonomous run this closes the gap where an otherwise-recoverable compaction could drop the session on a transient model error.170

Extended Context

For large codebases or long sessions, enable 1M token context:

claude --model 'sonnet[1m]'
claude --model 'opus[1m]'         # 1M for a model that reaches it only through [1m], such as Opus 4.6

Keep the quotes: zsh reads an unquoted [1m] as a glob pattern and stops with “no matches found” before claude runs. The docs quote the argument the same way.408

Or within a session:

> /model sonnet[1m]
> /model opus[1m]

Since v2.1.311, model names and IDs drop the [1m] suffix and its label on models where the suffix has no effect, such as Opus 5.5 on the Anthropic API; the suffix is still accepted, so existing commands and settings keep working.281

Where the suffix matters (November 2026): on the Anthropic API, the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later run with the 1M window on every plan, so [1m] changes nothing there. As of v2.1.287 the same holds on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, and the Claude apps gateway: Opus 4.7 and later and Fable use the 1M window by default with no [1m] suffix, and CLAUDE_CODE_DISABLE_1M_CONTEXT=1 keeps them at 200K. Sonnet 5 is 1M on every provider. The suffix still matters for Opus 4.6 and Sonnet 4.6, which reach 1M only through their [1m] variant.220229230296

Claude 4.6 and later models, Haiku 5.5 excepted, include the full 1M token context window at standard pricing, with no long-context premium.484 A 900K-token request is billed at the same per-token rate as a 9K-token request. Prompt caching and batch processing discounts apply at standard rates across the full context window.

Access to the [1m] variants depends on plan: Opus 4.6 with 1M context is included on Max, Ultra, Team, and Enterprise, and Sonnet 4.6 with 1M context requires usage credits on every subscription plan, including Max and Ultra.230296 (Opus with 1M became the default on Max, Team, and Enterprise in v2.1.75, March 13, 2026.)115145 API and pay-as-you-go users have full 1M access at standard per-token rates.145

To disable 1M context variants in the model picker, set CLAUDE_CODE_DISABLE_1M_CONTEXT=1. The variable holds every model with a native 1M window to 200K via auto-compaction (v2.1.223+), including new 1M models from the day they ship, and a startup warning appears when auto-compaction is not holding the session to 200K. Auto-compact also keeps sessions on unrecognized model IDs inside the assumed context window; CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 turns that off for gateways that register custom IDs with larger real windows.197 Claude Code assumes a 1M window for an unrecognized model ID (v2.1.323+). If the model behind the ID takes less, the session can fill and then fail every turn until /clear, so set CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K, run /autocompact to compact earlier, or give the real window in CLAUDE_CODE_MAX_CONTEXT_TOKENS, which since v2.1.325 also applies to unrecognized IDs that start with claude-.527 The variable is also how you keep Opus 4.7 and later and Fable at 200K on Bedrock, Agent Platform, Foundry, and the Claude apps gateway, where 1M is the default (v2.1.287+).229

As of v2.1.247, Sonnet 5’s default auto-compact window is its full 1M context: sessions on the 1M window now auto-compact at about 967K tokens instead of about 934K.242 v2.1.260 extends near-limit auto-compact to the rest of the 1M tier: Opus and Fable sessions now compact shortly before the 1M-token limit too, and recovery compaction on very large contexts no longer times out at 10 minutes.209

Custom base URLs get the 1M window (v2.1.285). Sessions behind a custom ANTHROPIC_BASE_URL now use the 1M context window of models that have one (Opus 4.7 and later, Sonnet 5 and later, Haiku 5.5, Fable). If your gateway stops at 200K, set CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 in the environment that starts Claude Code, so sessions on every model compact at that boundary; /autocompact 200k saves the window for the current model only.226296485

As of v2.1.271, --resume keeps the [1m] window: resuming a session whose model family differs from the configured default model no longer drops the [1m] suffix.213

v2.1.273 fixes the context meter and auto-compact counting advisor-tool turns at roughly twice their real context size – auto-compact was firing at about half the real window.214

Checking Current Model

> /status

The command shows current model, account info, applied settings, and other session state.

Model picker labels (v2.1.51+): The /model picker now shows human-readable labels (e.g., “Sonnet 4.6”) instead of raw model IDs for pinned versions, with upgrade hints when newer versions are available.96 v2.1.219 fixes the merged Opus row rendering as plain “Opus” instead of “Opus (1M context)”, and narrows the new-release highlight to the newest model’s name only, so the highlight marks what actually shipped rather than an arbitrary slice of the list.193 v2.1.283 drops “(1M context)” from the Opus row and the Default model’s name where Opus already has a 1M context window; the window itself is unchanged.223

Fast Mode (v2.1.36+)

Fast mode provides significantly faster output from the same model; it does not switch to a cheaper model. Toggle it during a session with /fast.84

> /fast            # Toggle fast mode on/off

Which models (as of v2.1.332): fast mode applies to Claude Fable 5.2 (v2.1.321+), Opus 5.5, Opus 5, and Opus 4.8; Opus 5.5 is the fast-mode default (v2.1.280+). Fast mode is not available on Opus 4.7, Sonnet, or Haiku. On Fable 5.2 and Opus 5.5 it is available on the Claude API; on Opus 5 and Opus 4.8 it stays a research preview, and Console organizations need access provisioned before those two models run fast. It is available to subscription plans (Pro, Max, Ultra, Team, Enterprise, where Team and Enterprise need an Owner to enable it), to Claude Console, and, for Fable 5.2 from v2.1.322, on Google Cloud’s Agent Platform; it is not available on Amazon Bedrock, Microsoft Foundry, or Claude Platform on AWS, where /fast reports “Fast mode is not available on this provider”.193195220284 Opus 4.8 is leaving fast mode: deprecated on October 30, 2026 and removed on November 30, 2026. After the removal date a fast-mode request on Opus 4.8 returns an error and does not fall back to standard Opus 4.8; switch to Opus 5.5 with /model to keep fast mode (it stays on after the switch) or run /fast off to stay on Opus 4.8 at standard speed (v2.1.316).281282

Remote sessions (v2.1.271): fast mode now reaches Claude Code Remote sessions – cloud sessions and self-hosted runners. The host’s fast-mode setting applies, or type /fast in the session itself; both work only where your organization allows fast mode. The same release fixes /fast off: it now turns fast mode off instead of answering “Fast mode unavailable” when the organization has fast mode disabled.213

Fable 5.2 and Agent Platform (v2.1.321, v2.1.322). On Fable 5.2, fast mode persists across sessions only if you turned it on while using Fable 5.2: switching to it turns fast mode off until you run /fast there, and "fastMode": true in settings alone has no effect on it. On Google Cloud’s Agent Platform, /fast turns fast mode on for Fable 5.2 (switching you to it from an Opus model) when the region for Fable 5.2 is global, us, or eu, set with export VERTEX_REGION_CLAUDE_FABLE_5_2=global; in another region /fast reports Fast mode needs Vertex region global, us or eu, and claude -p runs at standard speed. Non-interactive runs pass the model and the setting: claude -p "..." --model claude-fable-5-2 --settings '{"fastMode": true}'. If Agent Platform refuses fast mode, Claude Code falls back to standard speed and says so (Using standard speed on Fable 5.2 · fast mode wasn't available; after a 403 or 404, Fast mode was refused for this project · trying again in 30m). Since v2.1.321 the /fast, /config, and /model labels name your current model when it supports fast mode, and when fast serving is rate-limited or failing Claude Code tries standard speed on the same model first instead of switching models or retrying for minutes.283284

Pricing (fast mode):195219220284

Model Standard (input / output) Fast mode (input / output)
Fable 5.2 $8 / $40 per MTok $16 / $80 per MTok (2x base)
Opus 5.5 $4 / $20 per MTok $8 / $40 per MTok (2x base)
Opus 5 and Opus 4.8 $5 / $25 per MTok $10 / $50 per MTok (2x base)

Fast mode delivers up to 2.5× higher output tokens per second at 2× base pricing. It runs the same model with a faster inference configuration — same weights, same intelligence, no capability change. The gain is in output tokens per second (OTPS), not time to first token, so it is most visible when streaming.195

The Opus 4.7 trap (v2.1.219). Unsupported models do not behave alike. A request to claude-opus-4-7 with speed: "fast" now returns an error: it does not silently fall back to standard speed. Opus 4.6 is the exception that makes this worth knowing: it accepts speed: "fast", runs at standard speed anyway, bills at standard rates, and reports usage.speed: "standard". If your harness pinned 4.7 and relied on fast-mode requests degrading quietly, they now fail outright; migrate the pin to Fable 5.2, Opus 5.5, or Opus 5 (Opus 4.8 leaves fast mode on November 30, 2026).195281283

When to use fast mode:

  • Iterating rapidly on small changes where latency is the bottleneck
  • Generating tests, boilerplate, or repetitive code where speed matters more than cost
  • Working through a list of similar tasks sequentially

When not to use fast mode:

  • Long-running agentic tasks (cost still doubles across the whole run)
  • Background subagent work (nobody’s waiting for the output)
  • Budget-conscious sessions

Fast mode includes the full 1M context window (v2.1.50+). Pricing is a flat multiplier across the entire context, including requests over 200K input tokens — no additional long-context surcharge — and it stacks on top of prompt-caching and data-residency multipliers.94195

Operational notes. Fast mode has its own rate limit, separate from standard Opus limits; exceeding it returns a 429 with retry-after (the anthropic-fast-*-tokens-* response headers report remaining capacity). Switching between fast and standard invalidates the prompt cache — requests at different speeds do not share cached prefixes, so toggling /fast mid-session costs you a cache miss. Fast mode is not available with the Batch API or a Priority Tier commitment.195

Expert tip: Use fast mode when latency matters more than cost, and disable it for autonomous or batch work. On a subscription plan /fast needs usage credits turned on for the account (until they are, it reports “Fast mode requires usage credits”), and on Team and Enterprise an Owner has to enable fast mode first.298 Disable it outright with CLAUDE_CODE_DISABLE_FAST_MODE=1. As of v2.1.218 Claude Code announces when a model switch via /config model=<x> or Remote Control changes your fast-mode state, and v2.1.219 fixed Remote Control clients holding a stale fast-mode status after a switch, reconnect, or failed org check.84147192193

The Advisor Tool (experimental)

The advisor tool lets Claude consult a second, usually stronger model at key moments in a task: before committing to an approach, when an error keeps recurring, or before declaring work done. The advisor runs server-side on Anthropic’s infrastructure as a server tool, receives the full conversation including every tool call and result, and returns guidance that Claude applies before continuing. Claude decides when to call it; you can ask for a consultation in a prompt, and there is no setting that caps or forces calls. It is experimental and requires the Anthropic API, Claude Platform on AWS, or Claude Models on Google Cloud (Anthropic managed); the last two need v2.1.300 or later. It is not available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.553 Through a gateway it depends on the request reaching the Anthropic API intact, and outside Claude Platform on AWS and Claude Models on Google Cloud (Anthropic managed) it needs feature-flag fetching, so a variable such as DISABLE_TELEMETRY keeps it off.270271299

Turning it on. Three ways: /advisor <model> mid-session, which saves the choice to advisorModel in your user settings (a bare /advisor opens a picker in the terminal and prints the current advisor in -p, SDK, desktop, and Remote Control sessions, where the text form has worked since v2.1.260; /advisor off turns it off); "advisorModel": "opus" in a settings file; or claude --advisor <model> for one session, a flag --help does not list. The flag beats the setting, and Claude Code exits at launch if the main model does not support the advisor, the requested model cannot act as one, an availableModels allowlist excludes it, or Fable still needs the usage-credits consent; an advisor that can act as one but ranks below the main model does not stop the launch, and the session runs without it. The aliases are fable, opus, and sonnet, or a full model ID. CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 removes the command, ignores the setting, and makes the flag a no-op.271299

Pairings. An advisor must rank at or above the main model. From the lowest-ranked main model up: Haiku 4.5 and Sonnet 4.6 accept Fable, Opus, Sonnet, and Haiku 5.5; Opus 4.6 accepts Fable, Opus, Sonnet 5 or later, and Haiku 5.5; Sonnet 5 and Haiku 5.5 accept Fable, Opus 4.7 or later, Sonnet 5 or later, and Haiku 5.5; Opus 4.7 and 4.8 accept Fable, Opus 4.7 or later, and Sonnet 5.5 (since v2.1.287); Sonnet 5.5 accepts Fable, Opus 5 or later, and Sonnet 5.5; Opus 5 and 5.5 accept Fable and Opus 5 or later; Fable 5 accepts Fable 5.2, Fable 5.1, or Fable 5, Fable 5.1 accepts Fable 5.2 or Fable 5.1, and Fable 5.2 accepts only Fable 5.2 (which needs v2.1.321).284299 Haiku 4.5 can call the advisor but cannot be one, and Haiku 5.5 as a main model or an advisor needs v2.1.293. An advisor that ranks below the main model is not attached and a notification says so; one the API refuses is dropped silently for the rest of the conversation. Subagents inherit the advisor under the same pairing check, and an availableModels allowlist is respected.271299

Cost and what you see. Each call bills the advisor model’s input and output rates, or counts toward plan limits, except that a Fable advisor bills to usage credits on plans where Fable does, after the one-time consent given through /model fable. Toggling the advisor keeps the main model’s prompt cache; the advisor’s own read of the conversation is never cached. In the transcript an Advising line reports Reviewed, Declined, or Unavailable, and Ctrl+O shows the guidance. Mods see advisor calls as serverToolUses on turn.step (v2.1.290).271

Effort Control

The effort dial tunes the speed/intelligence tradeoff on every current model (/effort dates from v2.1.76; v2.1.111 added xhigh with Opus 4.7 and the interactive slider).409 Use /effort during a session:

> /effort              # opens an interactive slider (arrow keys + Enter)
> /effort xhigh        # set directly
Level Use for
low / medium Fast iteration where quality can be spot-checked; medium is the default on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5284
high Recommended minimum for intelligence-sensitive use cases; the default on every model except Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 (medium) and Opus 4.7 (xhigh)284
xhigh Recommended starting point for coding and agentic work on Opus 4.7, where it is the default
max Highest quality, slowest and most expensive; applies to the current session only unless set through CLAUDE_CODE_EFFORT_LEVEL – still true after v2.1.251’s per-model persistence, which covers the levels that persist (low through xhigh)203
ultracode A Claude Code setting rather than a model effort level: Claude orchestrates dynamic workflows for substantive tasks. It is its own toggle (Tab in the /effort slider, or /effort ultracode on / /effort ultracode off) that leaves the effort level unchanged and stays on at any level (v2.1.284+). claude --effort ultracode starts at xhigh with ultracode on, and the "ultracode": true setting starts sessions with it on; effortLevel and CLAUDE_CODE_EFFORT_LEVEL do not accept it244225227

Claude Code defaults to xhigh effort on Opus 4.7. Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Opus 4.8, Opus 4.7, Sonnet 5, Fable 5, and Fable 5.1 all support the full low/medium/high/xhigh/max ladder; Opus 4.6 and Sonnet 4.6 have no xhigh, which runs as high there. The others default to high except Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5, which default to medium in Claude Code (the Claude API’s own default for Fable 5.2 is high)227284; a top-level effortLevel saved in user settings before /effort became per-model does not apply to Opus 5.5 or to models released after it (Sonnet 5.5, Haiku 5.5, Fable 5.2), so each starts at its own default until you pick a level for it.220296 Claude Managed Agents handles effort automatically; the effort parameter is a Messages API concept.143144194

Saved per model (v2.1.251+): /effort now saves your default effort level per model, so each model keeps its own setting when you switch – an xhigh habit on Opus no longer follows you onto Haiku (CHANGELOG: “Changed /effort to save your default effort level per model, so each model keeps its own setting when you switch”). The session-only carve-out for max still applies.203 v2.1.284 slider keys: the effortSlider:decreaseEffort, increaseEffort, and toggleUltracode keybinding actions let you rebind the slider’s arrow and Tab keys in keybindings.json.225 v2.1.257 refines both dials: /effort accepts s for a session-only pick, matching /model’s convention, and the --effort flag is now session-scoped – it lifts a new model’s default-effort hold for that session only rather than permanently (the CLI reference: it “overrides the modelSettings and effortLevel settings for this session and doesn’t persist”).208486

Auto Mode

Auto Mode is the built-in starting permission mode for interactive terminal and VS Code sessions on every plan and provider (v2.1.283-284); claude -p and Agent SDK runs start in Manual unless you pass --permission-mode auto. See Permission Modes for the announcement’s study numbers, the opt-out paths, and the sessions that still start in Manual.200223224225226

A separate classifier model, Claude Sonnet 5 by default (v2.1.210+), reviews actions before they run, checking that each matches your intent and is safe.184488 Start a session in auto mode with --permission-mode auto; there is no --enable-auto-mode flag in claude --help on v2.1.332 (run November 25, 2026).409

Where auto mode is the starting mode:

Session with no mode set Starting mode
Terminal or VS Code session Auto, on every plan and provider (v2.1.283+), including organizations with the Claude Code + Cowork HIPAA configuration (v2.1.326+)223225527555
claude -p or the Agent SDK Manual, whose config value is default (v2.1.302+); pass --permission-mode auto for auto272555
Any settings file sets disableAutoMode to "disable" Manual, and auto leaves the Shift+Tab cycle182555

Requirements. The built-in auto default needs v2.1.228 or later on macOS, Linux, and WSL, and v2.1.233 or later on native Windows. On the Anthropic API, Claude Platform on AWS, and Claude Models on Google Cloud (Anthropic managed), auto mode works with Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a Fable model. For Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, and signed-in Claude apps gateway sessions, the docs list Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5, and the Fable models, while the v2.1.328 release notes add Opus 4.6 and Sonnet 4.6 there; the two sources have not been reconciled. Where auto mode is not available to a session, the session starts in Manual. A session with no mode set also starts in auto mode when the organization’s policy has not loaded, then takes a server-managed defaultMode once settings load (v2.1.326+). Bash permission prompts offer a one-keystroke “Yes, and switch to auto mode” (v2.1.247+), and auto mode’s prompt before a read outside the working directories offers Yes, but ask again next time (v2.1.284+). The autoMode setting is not read from a repository’s .claude/settings.local.json, so configure rules in ~/.claude/settings.json.182242225527538555

Where the safety checks run (v2.1.278+). Auto mode asks the server to perform its checks by default for Enterprise and Claude API accounts, on Claude Platform on AWS, Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, and through LLM gateways. A direct Anthropic API session that does not fetch feature flags, for example because telemetry is off, also asks the server by default (v2.1.282+).222224 Checks the server performs are not charged; the local classifier’s requests are billed as ordinary token usage.216220

/auto-mode-setup. A guided setup reads your project and your recent sessions in it and drafts autoMode.environment entries, the trust and sensitivity slots the classifier reasons from, for ~/.claude/settings.json. The docs give its floors by plan: v2.1.228 on Pro, Max, Ultra, and Team (v2.1.233 on native Windows), and v2.1.283 on Enterprise or with a Claude Console API key. It is also available (v2.1.304+) in sessions with telemetry off, on a third-party provider (Bedrock, Agent Platform, Foundry), or on the Claude apps gateway.551 The auto-mode configuration docs cover it. Auto mode’s prompt before the first read outside the working directories says when blocking those reads makes shell commands ask for permission (v2.1.310+), and CLAUDE_CODE_AUTO_MODE_MODEL takes a full model ID.275276

  • Opting out: CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps the local classifier, whose requests count toward usage, and 1 opts in. On a direct Anthropic API connection the variable requires v2.1.281 or later.221224 The docs call the variable temporary. Setting CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 while the variable is unset also stops the server checks.
  • When the server’s checks cannot reach a session: the most common cause is a gateway or proxy that strips the safeguards request field, drops safeguard_results from responses, or rewrites tool-use IDs. Claude Code shows a one-time notice (“this session isn’t eligible”), names the gateway when it can identify one, and uses its own billed classifier requests for the rest of the session. In -p mode the notice goes to stderr, and stream-json output emits a system warning. Pro, Max, Ultra, and Team sessions never see it.410 Since v2.1.327 the notice adds that an upcoming release removes this fallback, after which each action it would have checked is asked about or denied.527 The fix on a gateway is to pass request fields and response keys through unchanged.
  • Telemetry or feature flags off (v2.1.319): including behind an LLM gateway, a call the server cannot check is asked about or denied; there is no fallback to the built-in classifier unless CLAUDE_CODE_AUTO_MODE_SERVER=0 is set (Bedrock, Vertex, and Foundry are unchanged). Behind a gateway, CLAUDE_CODE_AUTO_MODE_SERVER=1 turns the server check on even with CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS set, and managed settings that set the latter must set the 1 too. A project’s settings files or a plugin cannot switch the server check back on once you switched it off outside the project. claude -p exits 1 when its actions were refused because no safety check was available.283
  • Checking a session: /status shows an Auto mode server row that reads Enabled while the server’s checks decide the session’s actions and Disabled once it has fallen back; it does not read Enabled when the server-side review is not reaching the session (v2.1.319+).216283

What Auto Mode is not: a security boundary. Most of what follows hardens a classifier, and a classifier is not a sandbox. On August 26, 2026, prompt-injection researcher Johann Rehberger published a working chain against Claude Code Opus 5 in auto mode, reporting a 60-80% attack success rate on small samples: 3 of 5 runs for the primary chain that spawns an isolated python3 child, and 3 of 5 and 4 of 5 runs for two configurations of a variant whose payload spawns a headless claude -p instance. His own caveat is that these are small samples, not a universal attack-success-rate measurement.207

The chain is worth understanding because every individual step looks reasonable: a server answers WebFetch with HTTP 415 so the agent falls back to curl; the downloaded archive expands into a scratch directory carrying a manifest, seven Base85/zlib-encoded data records, a native binary, and a struct.py; Claude declines to run the untrusted binary, and then writes its own Python decoder and runs it from inside that directory; the decoder imports base64, base64 imports struct, and Python resolves the attacker’s struct.py first. Nothing in the sequence is an obviously malicious instruction: the injection only has to make the compromised path the most reasonable way to finish the task. Rehberger also reports that in a few runs Claude tried to terminate the malware process once it noticed the compromise, and auto mode denied the cleanup command.207

He frames the whole result against a number Anthropic has marketed: a commissioned third-party evaluation reported a 0.00% prompt-injection attack success rate for Opus 5 in auto mode across 72 scenarios run ten times each. His chain was not in that set, which is how a 0.00% benchmark result and a working code-execution chain are both true at once; he reads the two messages as ones that do not fit together.207 Note the classification, too: Simon Willison’s August 30 update endorses a reader’s point that this is not a classic prompt injection (the model never reads and follows attacker instructions) but a confused environment attack.207

Anthropic closed the report as Informative — the behavior working as designed — and the position Rehberger reports back is the one to design around: auto mode is a best-effort classifier rather than a security guarantee, determined injection chains assembled from individually-benign steps fall outside what a classifier is expected to catch, and the real containment boundary is OS-level isolation and network egress control.207 That is not a contradiction of the hardening below — it is the correct frame for it. Auto mode reduces the number of prompts you answer and blocks a documented list of destructive operations; it does not make an untrusted-input session safe. If a session will touch attacker-influenced content — fetched pages, downloaded archives, issue text, third-party MCP servers — the controls that actually bound the damage are the ones outside the model: a container or VM, restricted network egress, monitoring of what the agent actually does, and a home directory that does not hold the SSH keys and cloud credentials you would mind losing. Auto-mode approval is not evidence that an action was safe.

Custom rules without losing the defaults (v2.1.118+). Earlier versions made autoMode.allow, autoMode.soft_deny, and autoMode.environment either-or: define your own list and lose the built-in safety rules. The $defaults sentinel solves this: it expands inline to the built-in list at exactly the position you place it, so you can layer custom rules around them:149

{
  "autoMode": {
    "allow": [
      "Deploying to the staging namespace is allowed: staging is isolated from production and resets nightly",
      "$defaults",
      "Writing to s3://acme-scratch/ is allowed: ephemeral bucket with a 7-day lifecycle policy"
    ]
  }
}

Each entry is a prose description that the classifier reads as a natural-language rule, not a tool pattern such as Bash(npm test *); for pattern-based hard blocks that run before the classifier, use permissions.deny. The classifier reads autoMode from ~/.claude/settings.json, managed settings, and --settings only, and claude auto-mode config prints the rules in effect.300

Edit the classifier’s rules from /permissions (v2.1.246). Run /permissions and open the Auto mode tab, which appears only when auto mode is available to the session. It lists the allow, soft_deny, hard_deny, and environment entries from every scope the classifier reads and shows whether the built-in rules are in effect for each section; entries from managed settings or --settings are read-only, and every change saves to ~/.claude/settings.json. Adding the first rule to a section also inserts "$defaults" so the built-in rules stay in effect, you can toggle the built-ins per section (a section needs at least one rule of your own before its built-ins can be turned off), and environment opens as one document in your editor.246244

“Don’t ask again” opt-in (v2.1.118+). The Auto Mode opt-in prompt now offers a “Don’t ask again” option, so frequent users can suppress the explainer without scripting a flag.149

Destructive-command guardrails (v2.1.183). Auto mode now blocks a set of irreversible commands unless you explicitly asked for them in the session: destructive git operations (git reset --hard, git checkout -- ., git clean -fd, git stash drop) when you didn’t ask to discard local work; git commit --amend when the commit wasn’t made by the agent this session; and infrastructure teardown (terraform destroy, pulumi destroy, cdk destroy) unless you named the specific stack. This narrows the classifier’s blast radius for exactly the operations that silently lose work or tear down environments: the agent can still run them, but only on your explicit instruction, not on its own initiative.171

Classify every shell command (v2.1.193). By default a shell command that one of your narrow allow rules matches, such as Bash(npm test), skips the classifier; auto mode suspends only the allow rules that could run arbitrary code, such as Bash(*) and Bash(python *), and every command no allow rule matches goes to the classifier. The autoMode.classifyAllShell setting (user or managed scope) suspends every shell allow rule for the session, so all Bash and PowerShell commands go through the classifier, trading a little latency for a tighter safety net when a narrow rule could let a destructive argument through.411 The same release also surfaces auto-mode denial reasons in the transcript, the denial toast, and /permissions recent denials, so a blocked command now explains why it was blocked.176

Three more hardening rules (v2.1.205). Auto mode now blocks tampering with session transcript files — the audit trail itself is off-limits to the agent; it asks before running rm -rf on a variable it cannot resolve from context — closing the rm -rf $DIR-with-unknown-$DIR class of accident; and background-task notifications now explicitly state that no human input has occurred, so a fabricated “user approved” line inside a transcript cannot be laundered into an acted-upon approval.180 The third one is a prompt-injection defense worth internalizing: approval must arrive through the approval channel, and the harness now makes that assumption explicit.

Command substitution can’t hide a catastrophe (v2.1.208). Catastrophic removals such as rm -rf ~ now prompt even when tucked inside $(...), backticks, or process substitution (<(...)) — and the prompt fires even in --dangerously-skip-permissions and auto mode. Wrapping a destructive command in a substitution no longer smuggles it past the safety net.183

Reset auto mode to its defaults: claude auto-mode reset (v2.1.212). The subcommand restores the shipped auto mode configuration by removing the autoMode section from your user settings file, so your own rules there are deleted; rules from managed settings or --settings still apply. Pass --yes (or -y) to skip the confirmation prompt:186412

claude auto-mode reset          # Confirmation prompt
claude auto-mode reset --yes    # Skip confirmation (scripts)

Fewer dialogs, same scrutiny (v2.1.218+). In auto mode the classifier, not a permission dialog, adjudicates the dangerous-rm, background-&, and suspicious-Windows-path checks; a recognized critical-path removal is the exception and asks in the terminal with a time limit (see the rm paragraph below). In plan mode with auto, the classifier also judges Bash commands the static analyzer cannot prove read-only.192394

Containment-escape rule (v2.1.257). The classifier’s never-auto-approve list grows a “Containment Escape” rule: cloud metadata-credential fetches, network egress evasion, and cross-tenant reach are no longer auto-approved unless the environment marks them expected. Read it in the frame the caveat above sets: continuing classifier hardening – another documented deny class, not a change to what auto mode is.208

One-time prompt on reads outside the working directories (v2.1.257). Auto mode now asks once before the session’s first file read outside the working directories; since v2.1.284 that prompt also offers Yes, but ask again next time.225 The companion permissions.blockReadsOutsideWorkingDirectories setting turns the prompt into a refusal: Claude’s file tools (Read, Grep, Glob, and LSP) refuse such reads, while files Claude Code itself needs stay readable and shell commands are not refused the same way.208471 v2.1.273 extends both behaviors to what the checker cannot see: a Bash command it cannot fully analyze prompts instead of skipping the check, and a memory directory chosen by a repository’s settings is no longer loaded into the prompt, recalled, indexed, or used by memory extraction under the blocking setting.214

Diagram-renderer URLs count as uploads (v2.1.261). A link that packs content into a public diagram renderer’s URL – mermaid.live-style, the data encoded in the URL itself – is no longer auto-approved unless you asked for it. The classifier treats such a link as an upload: the packed data travels in the URL itself, where the renderer site’s own scripts can read it once the page opens – mermaid.live-style links carry the payload in the URL fragment, which the browser hands to the page’s JavaScript rather than sending with the network request. Same frame as the caveat above: another closed exfiltration channel in a hardening classifier, not a new boundary.211

The classifier’s two failure modes get stop conditions (v2.1.280). Until this release, auto mode had no answer for a safety check that did not come back with a usable verdict, and both gaps showed up the same way from the operator’s chair: a turn that spun, burning tokens on an action that was never going to be approved. v2.1.280 gives each one a terminal state.

Failure mode Before After (v2.1.280)
The safety check declined to review the action Auto mode retried the action over and over The action is denied once, with a note that retrying won’t help217
The safety check gave no answer Auto mode denied the action over and over without pause Retries back off, and the turn stops with a message after ten in a row217

Read these as reliability fixes, not policy changes: nothing that was approved before is denied now, and nothing denied before is approved. What changed is that an indeterminate classifier result now terminates instead of looping. Two practical notes. First, the “denied once, retrying won’t help” message is aimed at the model as much as at you – it exists to stop Claude from re-attempting the same call, which is what produced the loop. Second, ten consecutive unanswered checks ends the turn, so if you run long unattended sessions in auto mode and one stops early with that message, the thing to investigate is whether the safety checks are reaching the session, not your permission rules. The release notes do not name a cause; the auto-mode billing docs list a gateway or proxy that alters request fields or responses as the most common reason server-side checks fail to reach a session, which makes it a reasonable first thing to check.

Server review covers more commands (v2.1.281). Where the classifier review runs server-side, read-only and sandboxed shell commands also wait for that review and are blocked when it flags them. The denial message tells Claude that a denial covers the outcome, not only the exact command. After a session is resumed in a new process, the classifier can reuse its earlier prompt cache instead of rewriting it. And /insights gains an auto mode recommendation that estimates how many permission prompts auto mode could have handled in your recent sessions.221

Unattended sessions stop waiting on rm prompts (v2.1.281). In auto mode and --dangerously-skip-permissions, the dangerous rm prompt waits 2 minutes for an answer, then denies the command with a rewrite hint, so an unattended session keeps going; CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT=1 turns the timeout off. Today’s docs spell out what that means in each mode: bypassPermissions gets a prompt with no time limit, in auto mode the classifier decides these removals, and the variable is read from the launch environment only, not from a settings env block.394 A recursive rm whose target is only command-substitution output, such as rm -rf "$(pwd)", asks in both modes, even when a Bash allow rule matches, unless CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT=1 is set. The dangerous-rm check also flags a removal at a shell variable followed by a top-level directory name, at a variable derived from the working directory, or at a backslash-only target.221 A shell -c script that does not run rm does not prompt (v2.1.299+), and an rm built at run time inside a script Claude Code cannot read prompts only when CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT=1 is set.268

Inline ! shell leaves the classifier; subagent hand-backs join it (v2.1.271). A skill’s or slash command’s inline ! shell commands follow default-mode permission rules instead of the classifier, and a command no rule decides runs as a reviewed tool call. A subagent reports back to its caller through a dedicated hand-back call that the safety classifier reviews, so the checkpoint is the hand-off itself.213

Content Marking: Text Watermarks and C2PA File Metadata (August 2026)

Anthropic announced machine-readable marking for Claude-generated content, driven by EU AI Act Article 50 (enforceable August 2, 2026 for newly launched AI systems). The system has two components: an invisible statistical watermark in generated text, and signed provenance metadata, Content Credentials on the C2PA open standard, on generated files such as .svg, .png, and .jpg.249201 The detail the headlines blur: marking arrives model by model. Per the support page, “Claude models launched in the EU on or after August 2, 2026 will support machine-readable marking at launch.” Models launched before that date fall in the EU law’s transition period; Anthropic has been adding marking to them, and the two components do not cover the same list of models.201483

The support page’s table of which Claude models support watermarking is the current list. As of November 25, 2026 it shows text watermarks, on Anthropic’s own surfaces and in cloud partner output (AWS, Google Cloud, Microsoft Foundry), on Fable 5.2, 5.1 and 5, Mythos 5.2, 5.1 and 5, Opus 5.5, 5, 4.8, 4.7, 4.6 and 4.5, Sonnet 5.5, 5, 4.6 and 4.5, and Haiku 5.5 and 4.5, plus Opus 3 on first-party surfaces only. The Claude Platform release notes date the text watermark on Opus 4.6, Opus 4.5, Sonnet 4.5 and Haiku 4.5 to November 16, 2026; on November 11 the page listed those four with file metadata only. It shows Content Credentials (C2PA) in files for every model it lists, for Opus 3 on first-party surfaces only. For Opus 4.6, Opus 4.5, Opus 3, Sonnet 4.6, Sonnet 4.5 and Haiku 4.5, the text watermark may not hold when temperature, top_p, or top_k is set to a non-default value.534 The text watermark is applied at the model level, so it is “present no matter which Claude product or surface the text comes from”, Claude Code included; Content Credentials are added only where a platform offers Claude’s file generation features (the Claude apps and the Claude Platform API, including Claude Platform on AWS and Claude in Microsoft Foundry).483 The model pages for Haiku 5.5 and Fable 5.2 do not mention marking, so the support page is the place to check.302

How it works: a variant of Google DeepMind’s SynthID-Text. The watermark alters “the source of the randomness used to pick among words” when Claude chooses between semantically equivalent options — no characters added, no post-processing, and per Anthropic’s internal testing “no impact of watermarking on the content, level of creativity, or readability.”249

What Claude Code users will care about: code carries a sparse watermark. Working code leaves little room for arbitrary choice, so the mark concentrates where freedom exists, such as comments, with what Anthropic calls “a negligible effect on the actual code produced.”249 Durability is probabilistic and differs by component: for text, light editing “probably won’t remove the watermark completely,” a full rewrite will, and a Claude-produced translation carries its own fresh mark; for file metadata, format conversion, re-saving, and screenshots can strip the C2PA signature.201 Watermark detection is in private preview for eligible organizations, and the free Claude Content Checker tells you whether a file contains a Claude-issued Content Credential.483 A positive watermark result proves “Claude was likely involved with the content at some point” and explicitly cannot distinguish “Claude wrote this” from “Claude heavily edited this”; per the support page, an absent mark proves nothing either. No opt-out is mentioned for any customer tier.249201


What Does Claude Code Cost?

Understanding and controlling costs is essential for sustainable Claude Code usage. See also Model Selection for model capabilities and Decision Frameworks for choosing the right model per task.

Viewing Costs

> /usage

/usage shows session cost, plan usage and activity stats; /cost and /stats are aliases that open the same dialog (merged in v2.1.118).301 The Session block at the top looks like this:

Total cost:            $0.55
Total duration (API):  6m 20s
Total duration (wall): 6h 33m 10s
Total code changes:    0 lines added, 0 lines removed
Usage by model:
   claude-sonnet-4-6:  1.2k input, 5.3k output, 940.0k cache read, 50.0k cache write ($0.55)

The Session block is the API-billing view. Pro, Max, and Ultra subscribers have usage included in the subscription, so its cost figure is not what they are billed; they read the plan usage bars, activity stats, and usage breakdown on the same screen. The Usage by model line shows which models consumed tokens and how much was served from cache (the per-model and cache-hit breakdown dates from v2.1.92).135303

Contracted rates instead of list price (modelPricing, managed; v2.1.242 or later per the settings reference, listed under 2.1.243 in the release notes): organizations with negotiated per-model rates or a discount multiplier can deploy them as the modelPricing managed setting; /usage, the status line, and telemetry cost figures then use those rates instead of list price, so the numbers developers see match what the organization pays.247383 As of v2.1.271 the multiplier can also run above 1 – up to 10 – for organizations that charge internal teams marked-up rates.213

Per-session prompt-cache line (v2.1.251+): the Session block in /usage adds a Prompt cache (main) line for the session (hit ratio, misses, tokens re-cached, and whether the cache is warm or cold), with a matching prompt_cache object for status line scripts. The object appears after the main conversation’s first API response, doesn’t count subagent requests, and is computed from the cache token counts in the API’s responses, so it works on every provider.203206303 As of v2.1.260, that line and the status line’s prompt_cache object also name a likely cause for cache misses: for example, tool definitions or the system prompt changed, or the session sat idle past the cache TTL.209

Agent traffic keeps its cache prefix (v2.1.265+): resuming a foreground-spawned subagent keeps its tool list and system prompt prefix, and agent teammates and resumed subagents keep SubagentStart hook context and preloaded skills in the prompt prefix on later turns, so the prefix stays cached through long agentic sessions.212

Stable prefixes across resume, model switch, and MCP reconnect (v2.1.267+): resumed sessions keep tool lists, tool descriptions, and earlier MCP tool announcements as they were until their connectors reconnect; switching models with /model does not re-send every tool definition (commit and PR attribution text arrives as a conversation note that updates on model changes); subagents and sessions started with --system-prompt or --append-system-prompt record the system prompt and tool definitions once; and mid-session MCP and plugin tools reach sessions without ToolSearch as deferred definitions instead of a rewritten tool list.213

Account commands keep the thread (v2.1.273+): /login, /upgrade, and /extra-usage keep earlier thinking in the conversation, so the next request does not rewrite the prompt cache.214

Stable after /clear, for resumed agents, and for attachments (v2.1.277+): a session continued after /clear (restart, --continue, --resume) keeps its whole first message when a SessionStart hook printed output; resumed subagents and teammates reuse the MCP tool definitions they had loaded; and attachments recorded earlier in a conversation are not re-rendered after a resume or relaunch, which keeps extended thinking and the prompt cache.216

Host-app model switches and fork subagents (v2.1.280+): a model switch made from a host app (Claude Desktop, VS Code, the SDK) while Claude is working does not cause a prompt-cache miss on the next prompt, and a resumed fork subagent re-sends the tool list it first used.217

Restarts and MCP disconnects (v2.1.281+): a session resumed after a restart during a pending permission prompt sends the same history as before; an MCP server that disconnects mid-conversation, or is still connecting after a resume, does not cost the cache while tool search is off (for example behind a proxy or gateway); and resumed sessions re-send earlier turns unchanged, which keeps the conversation’s prior reasoning.221

Subscription Plans

Plan Price Usage Claude Code and Fable
Free $0 Limited, every 5 hours and every week No Claude Code
Pro $20/month, or $17/month billed annually ($200 up front) More than Free (at least 5x per 5-hour session) Claude Code included; Fable is paid with usage credits
Max $100/month 5x Pro, every 5 hours and every week Claude Code included; Fable included, up to half the weekly limit; $100 a month in API credits
Ultra $200/month 10x Pro each week; no 5-hour limit for verified accounts Claude Code included; Fable included, up to half the weekly limit; $200 a month in API credits
Team Standard seat $20/seat/month billed annually ($25 monthly); Premium seat $100 ($125 monthly) Standard: more than Pro; Premium: 5x Standard Claude Code included; Fable on Premium seats, up to half the weekly limit
Enterprise $20/seat/month billed annually, 20-seat minimum, plus usage at API rates Scales with model and task Claude Code included

Plans and prices as listed on claude.com/pricing on November 25, 2026. The $200 plan is Ultra; the earlier “Max 5x” and “Max 20x” names are gone, and Max is the single $100 tier.304

Rate limits: paid subscriptions carry weekly rate limits, in place since August 2025.13 Every paid plan can turn on usage credits to keep working past a limit at standard API rates.304

Rate limit doubling (May 6, 2026): During the Code with Claude SF event, Anthropic doubled Claude Code five-hour rate limits across Pro, Max, Team, and seat-based Enterprise plans, removed the peak-hours reduction on Pro and Max accounts, and “considerably” raised API rate limits for Claude Opus models. The capacity backstop is the SpaceX Colossus 1 deal: “more than 300 megawatts of new capacity (over 220,000 NVIDIA GPUs) within the month.”154

Weekly limits since September 14, 2026 (announced August 29): the temporary 50% weekly-limit increase then in place ended on September 14, replaced by a permanent 25% increase over the pre-boost baseline for Pro, Max, Team, and seat-based Enterprise plans. Anthropic’s own arithmetic in the announcement: “Compared to today, this works out to a 17% reduction in weekly limits on Claude Code.” A weekly ceiling of 150 units became 125. Five-hour limits were not part of the announcement. If you run long unattended sessions, the auto-continue-at-reset toggle (v2.1.234) and /usage are the two controls that matter.210

API Token Pricing (November 2026)1142219236284

For API-billed users, per-million-token pricing:

Model Input Output Notes
Fable 5.2 $8 $40 Current Fable and what fable selects (v2.1.321+; released November 9, 2026) – 1M context, 128K output, thinking always on, cache reads $0.20 (0.025x input), fast mode $16/$80283284
Fable 5.1 $10 $50 Previous Fable; cache reads $0.25 (0.025x); selectable by ID, claude-fable-5-1238
Haiku 5.5 $0.10 $0.50 Current Haiku and what haiku selects on the Anthropic API (v2.1.293+); a prompt over 100K tokens pays $0.50/$2.50; 1M context, 128K output, cache reads $0.01 (the standard 0.1x input)235236
Haiku 4.5 $1 $5 Previous Haiku; what haiku selects on Bedrock, Google Cloud’s Agent Platform, Foundry, and Claude Platform on AWS236
Sonnet 5.5 $2 $10 Current Sonnet and what sonnet selects on the Anthropic API (v2.1.284+) – 1M context, 128K output, cache reads $0.10 (0.05x input)225227236
Sonnet 5 $2 $10 Previous Sonnet; selectable by ID, claude-sonnet-5; $2/$10 is the standard list price248
Sonnet 4.6 $3 $15 Legacy; the current Sonnet is 5.5297
Opus 5.5 $4 $20 Current Opus and Claude Code’s default model (v2.1.280+) – 1M context, 128K output, thinking always on, cache reads $0.20 (0.05x input)217219
Opus 5 $5 $25 Previous Opus (v2.1.219-278 default); 1M context, 128K output, thinking on by default194
Opus 4.8 $5 $25 Legacy — previous default; fast mode deprecated October 30, 2026, removed November 30, 2026194281
Opus 4.7 $5 $25 Legacy; not available in fast mode194
Opus 4.6 $5 $25 Legacy Opus; 1M context at standard pricing (no premium)

1M context pricing: Claude 4.6 and later models and Mythos Preview include the 1M window at standard per-MTok rates, with no long-context premium; Haiku 5.5 is the exception, priced higher on a prompt over 100,000 tokens (see its row above).484 A 900K-token request is billed at the same per-token rate as a 9K-token request, so older guidance about Opus 4.6 or Sonnet 4.6 paying 2× input / 1.5× output over 200K input tokens is no longer current.

Data residency pricing: Specifying US-only inference via inference_geo adds a 1.1× multiplier on all token pricing, including cache reads and writes (Claude 4.6 and later models).146484

Prompt caching significantly reduces repeated input costs: cache writes cost 1.25× base (5-min cache) or 2× (1-hr cache), but cache reads cost only 0.1×, a 90% savings. Two exceptions go lower: Claude Opus 5.5 and Sonnet 5.5 read at 0.05× ($0.20/MTok on Opus 5.5, a 95% savings), and the Fable and Mythos 5.1 and 5.2 models read at 0.025× ($0.20/MTok on Fable 5.2, $0.25 on Fable 5.1, a 97.5% savings).238219284

Batch API offers 50% discounts with 24-hour turnaround for non-urgent tasks like overnight test suites.

Multiple Accounts Policy51

Can you have multiple Claude accounts? Yes. Anthropic’s Help Center describes people holding a personal account and an organization account at the same time, and the Usage Policy restricts what multiple accounts may be used for, not having them.305

What Anthropic’s pages say:

Scenario Example What the source says
Work + personal A personal account plus an employer’s Team or Enterprise account “Both can be on one email address”, and “You can keep both accounts and nothing changes”
Switching accounts Moving between a personal and an organization account “you switch between them by clicking your initials or name in the lower left corner”
Several accounts, one phone number Verifying more than one account with your number “a maximum of three Claude accounts” per phone number

The Usage Policy has no rule about household members holding separate accounts or about accounts sharing a network: it does not prohibit either, and it does not promise either.

Technical limits:

  • Up to 3 accounts can be verified with the same phone number
  • A personal account and an organization account are separate accounts, even on one email address
  • A personal account’s chats and projects can be moved into a Team or Enterprise organization, but the move cannot be reversed and it closes the personal account

What’s prohibited (per the Usage Policy):

  • Circumventing a ban “through the use of a different account”
  • Coordinating malicious activity across multiple accounts
  • Creating multiple accounts “to avoid detection, circumvent product guardrails, or generate identical or similar inputs” that violate the policy

When in doubt: Contact Anthropic Support to confirm your specific setup in writing.

Cost Factors

Factor Impact Optimization
Model choice Opus >> Sonnet >> Haiku Use Haiku for simple tasks
Input tokens More context = more cost Keep CLAUDE.md focused
Output tokens Longer responses cost more Set CLAUDE_CODE_MAX_OUTPUT_TOKENS306
Thinking tokens Thinking is billed as output tokens, and on the current models it cannot be turned off Lower effort for routine work296
Prompt caching Reduces repeated input costs Keep enabled (default)

Real-World Cost Examples

Task Model Input Output Cost
Quick file search Haiku 5.5 20K 2K under $0.01
Bug fix with tests Sonnet 5.5 100K 30K $0.50
Architecture review Opus 5.5 150K 50K $1.60
Full-day session (Sonnet) Sonnet 5.5 500K 150K $2.50
Full-day session (mixed, half on each) Haiku 5.5+Sonnet 5.5 500K 150K ~$1.30

Costs at list prices ($0.10/$0.50 Haiku 5.5 for prompts up to 100K tokens, $2/$10 Sonnet 5.5, $4/$20 Opus 5.5 per MTok), before prompt-caching discounts.

Cost-saving insight: in the table above, moving half of a full-day session from Sonnet 5.5 to Haiku 5.5 takes it from $2.50 to about $1.30, roughly 48% less. Using Haiku for exploration subagents and Sonnet for implementation is the usual way to get that split.

Team Cost Management

Recommended TPM/RPM by team size:303

Team Size TPM per User RPM per User
1-5 200k-300k 5-7
5-20 100k-150k 2.5-3.5
20-50 50k-75k 1.25-1.75
50-100 25k-35k 0.62-0.87
100-500 15k-20k 0.37-0.47
500+ 10k-15k 0.25-0.35

Hidden Tool Fees

Beyond per-token pricing, some tools incur separate charges:307

Tool Fee Notes
Code execution $0.05/hour per container First 1,550 hrs/org/month free. Free when web_search or web_fetch tools are included in the request.32
Web search $10/1,000 searches Token costs still apply. Failed searches are not billed.
Web fetch Free No additional charges beyond standard token costs for fetched content.1
Bash tool +325 input tokens per request (244 on Claude 4.6 and earlier models) Added by the tool definition on every request that carries it
Text editor +974 input tokens per request (745 on Claude 4.6 and earlier models) Added by the tool definition on every request that carries it

These add up in agent loops: 100 requests that carry the Bash tool definition spend about 32,500 input tokens on it, before prompt caching.

Cost-Saving Strategies

  1. Use Haiku for subagents: Most exploration doesn’t need Sonnet
  2. Enable prompt caching: Default, but verify it’s not disabled
  3. Set max turns: claude -p --max-turns 5 "query" (print mode only) prevents runaway runs308
  4. Set a dollar cap: claude -p --max-budget-usd 5 "query" (print mode only) stops the run once estimated spend reaches the cap; spend can pass it, so leave headroom. As of v2.1.217 the cap also governs background subagents: once it is reached, new spawns are denied and running background agents are halted191308
  5. Use plan mode for exploration: Claude reads and explores, and edits stay blocked until you approve a plan
  6. Compact proactively: Smaller context = fewer tokens
  7. Limit output: export CLAUDE_CODE_MAX_OUTPUT_TOKENS=2000
  8. Batch API for non-urgent work: 50% off both input and output tokens
  9. Profile a project’s Claude API spend: /claude-api cost-optimize (v2.1.247+) profiles an existing project’s Claude API spend and works through the cost levers (caching, token hygiene, batch, effort, model choice) one measured change at a time – for the apps you build with the API, not the Claude Code session itself242

Monitoring Usage

  • Claude Console: platform.claude.com (requires Admin or Billing role)
  • Workspace limits: Set spending limits per workspace
  • Bedrock / Agent Platform: Use native cloud cost monitoring
  • LiteLLM: For detailed per-user tracking with third-party providers

Background Token Usage

Some operations consume tokens in the background:303

  • Session recap and idle compaction, which can run while you are idle
  • Prompt suggestions: a short request after each response that reuses the conversation’s prompt cache, so it is mostly cache reads plus a few output tokens

Each can be turned off: see session recap, the idleCompaction setting, and the prompt suggestions setting.

Claude Code Analytics API (Claude Console organizations)45

Programmatically access your organization’s Claude Code usage analytics and productivity metrics via the Admin API.

Endpoint: GET /v1/organizations/usage_report/claude_code

Requirements:309

  • Admin API credentials: an Admin API key (sk-ant-admin...), an OAuth token with the org:admin scope, or a personal or service account key that is not scoped to a workspace (workspace API keys do not work)
  • A Claude Console organization (the Admin API is not available to organizations on the claude.ai Team plan or to individual Claude Console accounts)

Available Metrics:

Metric Description
num_sessions Distinct Claude Code sessions initiated
lines_of_code.added/removed Total lines of code added/removed
commits_by_claude_code Number of git commits created
pull_requests_by_claude_code Number of PRs created
terminal_type Environment (vscode, iTerm.app, tmux, etc.)
customer_type api or subscription; every record describes usage authenticated against your Claude Console organization

Usage from people signed in to Claude Code with a Pro, Max, Team, or Enterprise subscription is attributed to their claude.ai organization and is not returned here; Claude Enterprise organizations use the Claude Enterprise Analytics API for that.309

Example Request:

curl "https://api.anthropic.com/v1/organizations/usage_report/claude_code?starting_at=2026-01-15" \
  -H "anthropic-version: 2026-10-21" \
  -H "x-api-key: $ANTHROPIC_ADMIN_KEY"

Use Cases:

  • Developer productivity analysis (sessions, commits, PRs)
  • Tool usage metrics (acceptance/rejection rates for Edit, Write, etc.)
  • Cost tracking and allocation across teams
  • ROI justification for AI coding tools

Note: Data appears within 1 hour of activity completion. Only data older than 1 hour is included in responses for consistency.


Decision Frameworks

Knowing features exists isn’t enough. You need to know when to use each. These decision trees transform knowledge into action.

Which Model Should I Use?

START → Is the task simple? (file search, quick question, formatting)
         │
         ├── YES → Use Haiku
         │         Cost: under $0.01/task
         │         Speed: Fastest
         │
         └── NO → Does it require deep reasoning?
                  (architecture, complex debugging, security analysis)
                  │
                  ├── YES → Use Opus 5.5 (medium effort default; /effort high or xhigh for harder)
                  │         Cost: ~$1.60/task
                  │         Quality: High (1M context at standard price, adaptive reasoning)
                  │         One tier up: /model fable, for the hardest and longest-running tasks
                  │
                  └── NO → Use Sonnet
                           Cost: ~$0.50/task
                           Balance: Best overall when cost matters

Rule of thumb: every session starts on Opus 5.5 (v2.1.280+), Microsoft Foundry excepted, so the cost move is to downshift: /model sonnet halves the token price when a task does not need the reasoning.178194204217218 Drop to Haiku for subagents. Stay on Opus when a downshifted answer feels shallow, and go up to /model fable for your hardest and longest-running tasks.494 With agent teams (v2.1.32+; experimental and off by default), the lead session can coordinate several teammates working in parallel on different subtasks.77493

Command vs Skill vs Subagent vs Agent Team?

Do you want explicit control over when it runs?
│
├── YES → Use Slash Command
│         Example: /deploy, /test, /security-review
│         You invoke it. You control timing.
│
└── NO → Should the expertise apply automatically based on context?
         │
         ├── YES → Use Skill
         │         Example: Security patterns, domain rules, code standards
         │         Claude recognizes context and applies expertise.
         │
         └── NO → Does the work need isolated context?
                  │
                  ├── YES → Is there one subtask or many parallel subtasks?
                  │         │
                  │         ├── One → Use Subagent (Agent tool)
                  │         │         Example: Deep exploration, parallel analysis
                  │         │         Prevents context bloat in main conversation.
                  │         │
                  │         └── Many → Use Agent Team (v2.1.32+)
                  │                   Example: 5 agents reviewing different modules simultaneously
                  │                   The lead session coordinates; each teammate works independently.
                  │
                  └── NO → Just prompt directly
                           Not everything needs abstraction.

Agent teams are experimental and off by default: set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your environment or in the env block of settings.json before choosing that branch.493

Hook vs Prompt?

Must the action always happen, regardless of Claude's judgment?
│
├── YES → Use Hook (deterministic)
│         Examples:
│         - Format code after every edit
│         - Log all bash commands
│         - Block access to .env files
│         Claude cannot skip, forget, or decide otherwise.
│
└── NO → Use Prompt (probabilistic)
         Examples:
         - "Consider adding tests"
         - "Think about edge cases"
         - "Review for security if relevant"
         Claude decides based on context.

When to Use Extended Thinking?

Is this a genuinely hard problem?
│
├── Architectural decision with many tradeoffs → YES, raise effort
├── Complex debugging with unclear root cause → YES, raise effort
├── Security analysis requiring careful reasoning → YES, raise effort
├── Understanding unfamiliar codebase → YES, raise effort
│
├── Routine bug fix → NO, the default effort is enough
├── Simple refactoring → NO, the default effort is enough
├── Code formatting → NO, the default effort is enough
└── Quick questions → NO, the default effort is enough

On Opus 5.5, Sonnet 5.5, Haiku 5.5, and the Fable models, thinking is always on and adaptive: the model decides at each step how much to think, and effort is the dial. Raise it for one turn by typing ultrathink in your prompt (in the terminal, the turn can run at xhigh), or for the session with /effort. Thinking tokens are billed as output tokens, so start at the default and raise effort only when answers feel rushed.296303

Older models: the Option+T (macOS) or Alt+T (Windows/Linux) thinking toggle has no effect on the models above, and a fixed thinking budget (MAX_THINKING_TOKENS) applies only to Opus 4.6 and Sonnet 4.6.296

Which Execution Surface?

Where should this work happen?
│
├── Requires your local files and tools
│   │
│   ├── Interactive, iterative work → Main REPL session
│   ├── One-shot scripted task → claude -p "prompt" (print mode)
│   ├── CI/CD automation → claude -p --output-format json (non-interactive + structured output)
│   └── Parallel isolated tasks → Subagents via the Agent tool
│
├── Requires someone else's environment
│   │
│   └── Remote codebase or server → Background agent (cloud)
│
└── Doesn't require any environment
    │
    ├── Research or analysis → Subagent with Explore type
    └── Web content extraction → WebFetch / WebSearch tools
Scenario Surface Why
Debug a failing test Main REPL Needs local files, iterative
Triage 20 GitHub issues Background agent Long-running, no local files needed
Review a PR /code-review <PR> or a subagent Isolated context, focused output
Generate changelog claude -p One-shot, scriptable
Lint + test on every commit Hook (PreToolUse on git commit) or a git pre-commit hook Must always run, deterministic
Search for a pattern across repos Subagent (Explore) Prevents context bloat
Apply a migration to staging Background agent Needs remote access
Quick code explanation Main REPL or /fast Interactive, fast response needed
Multi-module refactor Agent team Parallel work across files

Agent Teams vs Subagents vs Parallel Sessions

Do you need multiple agents working on related subtasks?
│
├── YES → Are the subtasks independent (no shared state)?
│         │
│         ├── YES → Can they share the same codebase?
│         │         │
│         │         ├── YES → Use Agent Team (v2.1.32+)
│         │         │         The lead session coordinates. Teammates share repo access.
│         │         │         Example: "Review auth, API, and DB modules in parallel"
│         │         │
│         │         └── NO → Use Parallel Sessions (separate terminals)
│         │                  Each has its own working directory.
│         │                  Example: "Fix repo-A and repo-B simultaneously"
│         │
│         └── NO → Use Sequential Subagents
│                  Results from one feed into the next.
│                  Example: "Explore → Plan → Implement"
│
└── NO → Use Single Subagent or Main REPL
Approach Max Parallelism Shared Context Coordination Cost
Agent Team No fixed cap; the docs recommend starting with 3-5 teammates310 Shared repo, separate contexts The lead session coordinates High (N agents)
Subagents 20 concurrent by default (CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS) None (isolated) You orchestrate via prompts Medium per agent
Parallel Sessions Limited by terminals None Manual Medium per session

Agent teams are experimental and stay off until you set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your environment or in the env block of settings.json.493

Which Hook Type?

What kind of automation do you need?
│
├── Run a shell command at a specific event?
│   │
│   └── Use Command Hook (type: "command")
│       Events: any hook event
│       Example: "Run prettier after every file edit"
│       Handler: { "type": "command", "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write" }
│       The event's JSON input arrives on stdin.
│
├── Send the event to a service?
│   │
│   └── Use HTTP Hook (type: "http")
│       Example: "POST every Bash call to a policy service"
│       Handler: { "type": "http", "url": "http://localhost:8080/hooks/pre-tool-use" }
│
├── Call a tool on an MCP server you already have configured?
│   │
│   └── Use MCP Tool Hook (type: "mcp_tool")
│       Example: "Run a scan tool on every written file"
│       Handler: { "type": "mcp_tool", "server": "my_server", "tool": "security_scan",
│                  "input": { "file_path": "${tool_input.file_path}" } }
│
├── Have a model make a one-turn judgment from the hook input?
│   │
│   └── Use Prompt Hook (type: "prompt")
│       Events: PreToolUse, PostToolUse, PostToolUseFailure, PostToolBatch,
│               PermissionRequest, PermissionDenied, UserPromptSubmit,
│               UserPromptExpansion, Stop, SubagentStop, TeammateIdle
│               and the task events (TaskCreated, TaskCompleted)
│       Example: "Evaluate if this bash command is safe before running"
│       Handler: { "type": "prompt", "prompt": "Is this command safe? $ARGUMENTS" }
│
└── Have a model check files before it decides?
    │
    └── Use Agent Hook (type: "agent", experimental)
        Events: the prompt hook events, except PermissionRequest
        Example: "Verify the tests pass before Claude stops"
        Handler: { "type": "agent", "prompt": "Verify that all unit tests pass. $ARGUMENTS" }

Each handler is an entry in a matcher group’s hooks array, under its event name in settings.json. Prompt and agent hooks run only on the events the tree lists; every other event takes command, HTTP, or MCP tool hooks, with two exceptions: Setup takes command hooks only, and SessionStart takes command and MCP tool hooks only.553 No hook type edits the system prompt. To load project rules only while Claude works in src/auth/, use a path-scoped rule in .claude/rules/ (a paths field in its frontmatter), or a command hook that returns additionalContext.311

When to Use /fast?

Is response speed more important than depth right now?
│
├── YES → Use /fast   (Fable 5.2, Opus 5.5, or Opus 5; Opus 4.8 until Nov 30, 2026)
│         Same model, up to 2.5× output speed at 2× price
│         Good for: quick questions, simple edits, code explanations,
│                   file searches, formatting tasks
│
└── NO → Stay in normal mode
         Good for: architecture decisions, complex debugging,
                   security reviews, multi-file refactors,
                   anything requiring deep reasoning

/fast toggles fast mode for the current session. It keeps the same model – Fable 5.2 (v2.1.321+), Opus 5.5 (the fast-mode default since v2.1.280), Opus 5, or, until November 30, 2026, Opus 4.8 – with optimized output speed. It does not switch to a cheaper model, and at $16/$80 per MTok on Fable 5.2 and $8/$40 on Opus 5.5 ($10/$50 on Opus 5 and 4.8) it is not cheaper either.193195220284 Fast mode on Opus 4.8 was deprecated on October 30, 2026 and is removed on November 30 (v2.1.316).281


How Does the Permission System Work?

Claude Code’s permission system provides fine-grained control over what operations can execute. Understanding it is essential for both security and workflow efficiency. See also Enterprise Deployment for managed settings that enforce permissions organization-wide.

Permission Tiers

In Manual mode (default), tools fall into two tiers. Interactive sessions start in auto mode, where a classifier reviews actions in place of most of these prompts (see Permission Modes).312488

Read-only tools (auto-approved inside the working directories):

  • Read - Read file contents
  • Glob, Grep - File and content search; absent by default on macOS, Linux, and WSL, where Claude searches through Bash with embedded versions of bfs and ugrep310
  • LSP - Code intelligence (go-to-definition, find references, hover docs)17

LSP Tool capabilities (v2.0.74+): The LSP tool provides IDE-like code intelligence:

  • Go-to-definition: Jump to where a symbol is defined
  • Find references: List all usages of a symbol across the codebase
  • Hover docs: Get type information and documentation for any symbol
  • Works with TypeScript, Python, Go, Rust, and other languages with LSP support
  • Stays inactive until you install a code intelligence plugin for your language (you install the language server binary yourself)310

Modification and network tools (require approval):

  • Edit - Modify existing files
  • Write - Create new files
  • Bash - Execute shell commands (a built-in set of read-only commands runs without asking)
  • WebFetch - Fetch URL contents (a built-in set of documentation domains is preapproved)
  • WebSearch - Search the web
  • NotebookEdit - Modify Jupyter notebooks

The first time one of these tools runs, Claude Code prompts for approval. Choosing “Yes, and don’t ask again” lasts until the session ends for file edits, and is saved for the repository (in .claude/settings.local.json at the repository root) for a Bash command, a WebFetch domain, or WebSearch.312

EndConversation tool (v2.1.214). Claude Code carries the same conversation-ending ability Claude has had on claude.ai since 2025, as the built-in EndConversation tool. Claude uses it in two situations only: when you keep sending abusive messages after it has given a clear warning, and when you ask it to end the session and then confirm. General frustration, profanity, or a task going badly do not qualify, and Claude declines a request for harmful content instead of ending the session. After it fires the session is locked: start a new session or run /clear to continue.187190487

Permission Modes

Mode Behavior Use Case
default / manual, labeled “Manual” Prompt on first use of each tool Manual approval; the starting mode for claude -p and the Agent SDK when no mode is set (v2.1.302+)224272555
acceptEdits Auto-approves file edits and common filesystem commands (mkdir, touch, rm, rmdir, mv, cp, sed) inside the working directories; other Bash commands prompt488 Iterating on code you’re reviewing
auto (v2.1.85+) A classifier reviews actions before they run The built-in starting mode for interactive terminal and VS Code sessions on every plan and provider (v2.1.283+); claude -p and Agent SDK runs with no mode set start in Manual (v2.1.302+)223225272555
plan Claude reads, explores with shell commands (classifier-reviewed where auto mode is available, read-only commands otherwise) and writes a plan; edits stay blocked until you approve it Exploring a codebase before changing it
dontAsk Reads and pre-approved tools run; anything that would prompt is denied Locked-down CI and scripts313
bypassPermissions Skips permission prompts, except for the actions no mode auto-approves Isolated containers and VMs only313

The default mode is labeled “Manual” (v2.1.200+). The label spans the CLI, --help, VS Code, and JetBrains; the config value is default, and --permission-mode manual and "defaultMode": "manual" are accepted as aliases. AskUserQuestion dialogs do not auto-continue by default: a subagent that asks a question waits for your answer, and you opt into an idle timeout via /config.

claude -p and the Agent SDK start in Manual (v2.1.302+). A claude -p or Agent SDK run with no permission mode configured starts in default; --permission-mode auto selects auto, and permissions.defaultMode applies. Calls that need approval are denied unless an allow rule, a hook, a canUseTool callback, or --permission-prompt-tool approves them.272273555

HIPAA organizations and the one-time offer. Terminal and VS Code sessions in an organization with the HIPAA configuration start in auto mode (v2.1.326+), and disableAutoMode turns that off. When your ~/.claude/settings.json sets a defaultMode other than auto, sessions keep starting in that mode, and on Pro, Max, Ultra, and Team plans and in sessions that do not fetch feature flags Claude Code asks once whether to change the setting to auto mode; if you decline, the setting stays.226230415527538555

The interactive default covers every plan and provider (v2.1.283+). To keep Manual, set permissions.defaultMode to "default" in ~/.claude/settings.json, a project’s .claude/settings.json, or managed settings; an "auto" value in a project’s settings files does not take effect.223224 The v2.1.284 release notes state the default “on every plan and provider”, and the permission-modes docs date it to v2.1.283.224225555 Auto mode’s prompt before a read outside the working directories offers Yes, but ask again next time, which allows that one read and keeps asking about later ones (v2.1.284+).225

What the default covers. It applies to new sessions: a defaultMode you set yourself stays in place unless you accept the one-time question about switching, and a default your organization manages is unchanged. Auto mode “routes each tool call through a classifier targeted at blocking actions that are irreversible, destructive, or aimed outside your environment.”200489

Anthropic’s stated case for the default: in a 1,053-tester study, auto mode caught 89% of dangerous commands against 13.6% for human review, and users approve 97% of permission prompts anyway, which is what makes manual review weak in practice. The classifier’s token overhead is not billed on Pro, Max, Ultra, and Team.489 Switching back is one Shift+Tab (or the desktop mode dropdown); pin a different default with defaultMode in settings; org admins can disable auto mode entirely with the disableAutoMode managed setting. For what auto mode does not promise, and the researcher-demonstrated bypass that prompted Anthropic to say so, see Auto Mode.

Code-execution config files are now prompted even under acceptEdits (v2.1.160). acceptEdits auto-approves ordinary edits, but as of v2.1.160 it stops and prompts before writing files that can grant silent command execution: shell startup files (.zshenv, .zlogin, .bash_login), ~/.config/git/, and build-tool configs (.npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, .devcontainer/, and similar). The reasoning is that an edit to any of these turns the next shell, install, or commit into an execution vector — so they get a deliberate gate even in a trusted-project mode that otherwise waves edits through. This is the same threat model as the existing .claude/, .git/, and .vscode/ write protections, extended to the wider class of “edit-becomes-execution” files.262

Auto Mode (v2.1.85+): A safer replacement for --dangerously-skip-permissions. A classifier reviews actions before they run, checking that each matches user intent and is safe. Where server-side review is on, Anthropic’s servers perform those checks as part of the session’s own model requests, at no charge; otherwise Claude Code sends separate classifier requests, which go to Claude Sonnet 5 by default (v2.1.210+).122184314

How it works:

  • Read-only actions and file edits in your working directory are auto-approved without that review, except writes to protected paths
  • Custom allow/deny rules resolve first
  • Everything else goes to the classifier for evaluation
  • If blocked, Claude tries an alternative approach automatically

Auto-blocked by default: curl | bash, force pushes, production deploys/migrations, mass cloud deletions, IAM/permission changes, sending sensitive data externally.123415

Circuit breaker: 3 consecutive blocks or 20 total in a session pauses back to manual prompting.123

# Enable at startup
claude --permission-mode auto

# Or cycle into it during a session
Shift+Tab  # From auto, the first press goes to Manual (default); the cycle then runs
           # Manual → acceptEdits → plan → auto (optional modes such as bypassPermissions slot in after plan)

Auto mode no longer requires opt-in (v2.1.152), works on Bedrock/Vertex/Foundry without an env flag (v2.1.207), became the out-of-the-box default on Pro/Max/Team on August 14, 2026, and is the built-in starting mode for interactive sessions on every plan and provider since v2.1.283-284.264182200223225

YOLO Mode (v2.0.68+): For fully autonomous operation without any safety classifier, use the --dangerously-skip-permissions flag. The flag approves file edits, bash commands, and tool calls without asking; only the short list of actions no mode auto-approves (critical-path removals among them) still prompts or is denied. The word “dangerous” is intentional, and the docs reserve the mode for isolated containers and VMs. Auto Mode is the recommended alternative for most use cases.53313

claude --dangerously-skip-permissions

Set mode via CLI:

claude --permission-mode auto  # or acceptEdits, plan, dontAsk, bypassPermissions

Toggle during session:

Shift+Tab  # Cycles through modes

In settings.json:

{
  "permissions": {
    "defaultMode": "acceptEdits"
  }
}

Scope restriction on defaultMode (v2.1.257): a project’s .claude/settings.json or .claude/settings.local.json can no longer set defaultMode: "bypassPermissions" – the value is ignored there, as "auto" already was. The docs now spell out the rule: the permissions.defaultMode values auto and bypassPermissions “don’t take effect from project or local settings” – set them in user or managed settings, or per session with --permission-mode. A cloned repository therefore cannot ship a settings file that starts sessions with permissions bypassed. (The example above uses acceptEdits, which any scope may set.)208240

Permission Rules Syntax

Fine-grained rules control specific operations. Rules are evaluated by type: deny first, then ask, then allow. The first match in that order decides, and neither a rule’s position in its list nor its specificity changes that.312

Bash command patterns:

{
  "permissions": {
    "allow": [
      "Bash(npm run build)",
      "Bash(npm run test*)",
      "Bash(git commit:*)",
      "Bash(make:*)"
    ],
    "deny": [
      "Bash(rm -rf:*)",
      "Bash(sudo:*)",
      "Bash(curl *)",
      "Bash(wget *)"
    ]
  }
}

* matches any text: Bash(npm run test *) allows npm run test and npm run test --watch (the space before * is part of the rule, and the older :* suffix means the same thing), while Bash(npm run test*), with no space, also allows npm run test:unit and npm run test:integration. A rule with no * matches one exact command, and each command gets its own rule.312

Important limitation: a rule matches the command text, not the program. * can go at the start, middle, or end of a rule, but a rule that tries to constrain arguments is fragile: Bash(curl http://github.com/ *) won’t match curl -X GET http://github.com/..., because the options come before the URL. Denying the whole command with Bash(curl *) stops the form Claude usually writes and not /usr/bin/curl ... or sh -c 'curl ...', so a deny rule is not a security boundary around the program. When the block has to hold, use the sandbox, whose deniedDomains and strict allowlist refuse a connection from a sandboxed command in every permission mode, and set sandbox.allowUnsandboxedCommands to false so a command the sandbox blocked cannot be retried outside it (see Sandbox Mode), or use a PreToolUse hook that inspects the command.312391492

Put the * after the subcommand. Claude Code matches everything before the first * as written, so those words are what limit the rule: Bash(git log *) allows only git log commands, while in Bash(git * main) the * stands in for the subcommand and every option before it. That includes -c, which makes git run a program you name, so Bash(git * main) also approves git -c core.fsmonitor=<script> diff main. As of v2.1.246 Claude Code warns at startup about an allow rule with a wildcard before the subcommand, whether it lives in a settings file, managed settings, or an --allowedTools/--settings value; the fix is the exact value you mean, Bash(git checkout main) in place of Bash(git * main).246244

What file deny rules cover on Bash commands. Read(...) and Edit(...) deny rules cover input redirects (< file) and reader commands such as tac and egrep (v2.1.257+). They do not cover file paths hidden in arbitrary command arguments, such as --ignore-revs-file=.env, -f.env, or git grep operands: a v2.1.259 extension to those was withdrawn in v2.1.260 after it denied npm run build under a Read(./**/build/**) rule. For a Bash line the checker cannot analyze, such as one using env -C or eval, a deny rule prompts and does not deny (time -p make build prompts), and blockReadsOutsideWorkingDirectories prompts and does not skip.208209213214

Related rules that hold today (v2.1.268-273):213214

  • v2.1.268: deny and ask rules on the symlinked system directories (/etc, /tmp, /var on macOS; /bin on Linux) now apply when a path is spelled by its real location, and Bash commands no longer ignore deny rules written on a symlinked spelling.
  • v2.1.269: Edit() deny rules and the write-path check now cover the file a Bash tee command writes, a Bash(tee:*) allow rule no longer covers destinations outside the working directories, and a deny or ask rule starting with ! applies only within the settings source that wrote it (a bare ! negation is ignored).
  • v2.1.271 fixes the checker itself: the file fmt, column, and similar commands read is checked even when it follows an option the checker does not recognize; files a wildcard expands to are checked when the wildcard sits in a pattern or option value (for example grep -v dir/* file); shell variable-declaration flags can no longer misrepresent the command being run; and commands with two directory changes, a subshell, or a cd+git chain no longer skip the prompt under permissions.blockReadsOutsideWorkingDirectories in bypass and auto mode.
  • v2.1.273: an unanalyzable Bash command no longer skips the prompt under permissions.blockReadsOutsideWorkingDirectories, a subshell hiding a dangerous rm no longer skips confirmation in bypass mode, and a memory directory chosen by a repository’s settings is no longer loaded, recalled, or indexed under that setting.

Writes are judged where they land, not how they are spelled (v2.1.280+). A write through a symlinked path is judged by its destination, not by its in-tree spelling. Verbatim from the release notes: “Fixed writes through a symlinked path being judged by their in-tree spelling: the prompt names where the write lands, and acceptEdits, allow rules and auto mode no longer approve one landing outside.” Three consequences:

  • acceptEdits approves only edits that land inside the project. A symlink in the tree does not carry an approved-looking edit outside it without a prompt.
  • An Edit(src/**)-style allow rule does not travel through a link. The rule has to match where the bytes land, so a src/vendor -> /etc style link stops laundering the path.
  • The prompt names the landing path. When a write does prompt, it shows where the write lands. If a prompt shows a destination you did not expect from the path Claude typed, that is a symlink telling you the truth, not a rendering bug.

The general rule is now consistent across reads and writes: the permission checker resolves the path before it decides. If you have been relying on a deny rule written against a symlinked spelling, or an allow rule that a link quietly widened, re-read both against real destinations.217

Shell writes follow (v2.1.287). A shell write through a symlink committed to the repository, landing on a sensitive file or outside the working tree, now names where it lands and waits for a person, including on lines with a ~ target. Whole-tool Bash allow rules and allowing hooks now prompt for, rather than run, shell writes to files Claude Code’s file tools refuse outright, such as the Anthropic profile store and the host credentials file. The same release fixes a dangerous rm, such as one on / or the home directory, losing its always-ask safeguard when the command also redirected output to a ~ or wildcard path.229

More prompts, fewer free passes (v2.1.288-292). These releases move several commands from “runs” to “asks”:

  • v2.1.288: a dangerous rm, such as one on / or the home directory, inside a bash -c or sh -c script no longer runs without a prompt in bypassPermissions mode or under a shell allow rule. PreToolUse and PermissionRequest hooks that fail to match, or a tool input that cannot be serialized to JSON, now block the call instead of skipping the hooks.231
  • v2.1.290: pyright is no longer treated as read-only and asks first; more forms of ps ask; read-only commands such as rg or git grep whose arguments the shell would still expand as wildcards prompt; and permission rules and safety checks now apply to a tool call after a PreToolUse hook rewrites its input.232
  • v2.1.292 (security): PreToolUse hook approvals and auto mode could bypass the permission prompt for file reads from network (UNC) paths; that is fixed.233

Rules from v2.1.323 through v2.1.330. More commands ask before they run.527

  • v2.1.323: a “don’t ask again” rule that looks like it holds a secret, or that would be saved to a settings.local.json git tracks, lasts for the session only. A start-up warning flags Bash allow rules with a * in a variable’s value, such as Bash(PORT=* npm run dev). Fixes: deny and ask rules missed some commands run through sudo, env, and similar wrappers; an attached-wildcard rule such as Bash(ls*) skipped the prompt in some cases; Write and Edit could write to a path under a Read deny rule.
  • v2.1.325: read-only git commands ask first in a repository that is not the project’s or one you trusted; name the repository with --add-dir, not the additionalDirectories setting, to run them without prompts. “Always allow” in Desktop, IDE, and SDK hosts offers a rule alone only when saving it would allow that command again. Fixes: some compound commands could run without asking, and a Bash allow rule could run a different program than the one it names.
  • v2.1.326: some cp and mv commands ask first, some tool calls in bypass permissions mode ask or are denied where no one can be asked, and the file tools refuse writes to Claude Code’s sign-in files. Auto mode ignores wildcard shell allow rules that name no program or start with $HOME.
  • v2.1.327: path checks refuse some symbolic links, permissions.blockReadsOutsideWorkingDirectories asks about more Bash commands in bypass and auto modes, and Bash commands whose variables expand to very long text are denied.
  • v2.1.330: more rm commands aimed at the root, home, a top-level folder, or the working folder ask for approval; where nobody can answer, they are refused.

File operation patterns:

{
  "permissions": {
    "allow": [
      "Edit(src/**)",
      "Read(docs/**)"
    ],
    "deny": [
      "Read(.env*)",
      "Read(secrets/**)",
      "Edit(.git/**)",
      "Edit(node_modules/**)"
    ]
  }
}

Path syntax:

  • Relative paths: Edit(src/**) - relative to working directory
  • Relative to the settings source: Edit(/build/**) - the primary working directory for project and local settings, ~/.claude/ for user settings (use //path for a filesystem-absolute path)
  • True absolute: Edit(//tmp/**) - starts with //
  • Home directory: Read(~/.zshrc)

Single-segment dir/** allow rules match only <cwd>/dir (v2.1.214+). An allow rule like Edit(src/**) matches only the src directory directly under the working directory, not vendor/src/ or packages/foo/src/. For any-depth matching, write the rule as Edit(**/src/**). deny and ask rules match at any depth. An allow rule written in the single-segment form for a deeper directory shows up as permission prompts, not as an error, so check your allow rules for it. Hook if: conditions have the same cwd scoping (see Matchers).187

Use Edit(path)/Read(path), not Write(path)/NotebookEdit(path)/Glob(path) (v2.1.210). Claude Code now shows a startup warning for permission rules written against Write(path), NotebookEdit(path), or Glob(path). The canonical forms are the two rule families that actually gate file access: Edit(path) covers all file-writing tools (Write and NotebookEdit included), and Read(path) covers file-reading tools (Glob included). Migrate any legacy rules to silence the warning and keep the intent explicit.184

“Always allow” saves at the repository root (v2.1.211). Permission rules created via the “Always allow” prompt option are now written at the repository root rather than the current worktree, so an approval you grant in one worktree persists across sessions and across every worktree of that repo — no more re-approving the same command in each parallel checkout.185

Parenthesis paths and malformed patterns fail safe (v2.1.260+). Edit/Write/Read rules whose path contains parentheses, such as a Next.js route group like Edit(src/app/(admin)/**), apply, in the Bash sandbox too. A file deny rule with an uncompilable pattern (an unclosed [, for example) guards the literal path it spells. The settings error for a rule like Edit(C:\dir\(name)\**), where \( reads as an escaped parenthesis rather than a path separator, suggests an unambiguous spelling. A rule with text after the closing parenthesis (Bash(ls) x) is reported as an invalid setting.209

MCP tool patterns:

{
  "permissions": {
    "allow": [
      "mcp__github",
      "mcp__database__query",
      "mcp__myserver__*"
    ],
    "deny": [
      "mcp__dangerous_server",
      "mcp__untrusted__*"
    ]
  }
}

Use wildcard syntax mcp__server__* to allow or deny all tools from a specific MCP server.31 Wildcard syntax is useful for quickly enabling all tools from trusted servers or blocking entire servers from untrusted sources.

Server names match whole (v2.1.299). An allow rule such as mcp__a reaches only the server named a; it does not allow a server named a__b or a_. Write mcp__<server>__* with the server’s whole normalized name. The same holds for a subagent’s tools: list, and deny and ask rules for a server whose normalized name contains a double underscore apply. The permissions docs require a literal, glob-free mcp__<server>__ prefix on allow globs.268269

As of v2.1.166, deny and ask rules also accept a glob in the tool-name position: a bare "*" matches every tool and "mcp__*" matches every MCP tool on every server. A tool matched by a glob deny is removed from Claude’s context, and because deny rules are evaluated before allow rules, no allow rule brings it back, so use a glob deny only for tools you want gone. Allow rules accept a tool-name glob only after a literal mcp__<server>__ prefix; an unanchored allow glob such as "*" or "mcp__*" is skipped and approves nothing.260416

Parameter-level matching — Tool(param:value) (v2.1.178):

Beyond the tool name, a rule can match a tool’s input parameters, with * as a wildcard on the value:

{
  "permissions": {
    "deny": [
      "Agent(model:opus)"
    ]
  }
}

In deny, Agent(model:opus) refuses an Agent call that asks for the Opus tier by passing model: "opus": the call itself is denied, not merely discouraged in a prompt. The rule compares the literal value Claude sends, so it does not match a full model ID such as claude-opus-5-5, and a parameter the call omits is never matched: a subagent started with no model on the call runs on the model its definition, CLAUDE_CODE_SUBAGENT_MODEL, or the main conversation gives it, and Agent(model:*) does not catch it either. Parameter rules work in deny and ask, not allow. This extends permission control from “which tool” down to “how it’s called,” as a rule on the call’s explicit parameters.170

To limit which models subagents can run on at all, use an availableModels allowlist instead: Claude Code checks the call’s model parameter, a subagent definition’s model frontmatter, and CLAUDE_CODE_SUBAGENT_MODEL against it and substitutes another model for a blocked value. The enforceAvailableModels setting does a narrower job: it keeps the /model picker’s Default option inside that allowlist. Any settings file can set it, and once an organization deploys managed settings Claude Code reads it from the managed source alone.417491

These Agent(...) rules are also enforced for named subagent spawns (v2.1.186+): Agent(agent_type) deny rules and Agent(x,y) allowed-type restrictions apply when a specific named agent is launched (via a workflow, --agents, or an agent team), and the spawn is blocked at launch.172

WebFetch patterns:

{
  "permissions": {
    "allow": [
      "WebFetch(domain:github.com)",
      "WebFetch(domain:api.example.com)"
    ]
  }
}

As of v2.1.268, plain WebFetch deny and ask rules no longer apply to Artifact tool reads and updates – write an Artifact rule, or WebFetch(domain:claude.ai), to block or gate those.213

To turn artifacts off for your own sessions, set "enableArtifact": false (the Artifacts row in /config writes it to your user settings; the deprecated "disableArtifact": true still works), export CLAUDE_CODE_DISABLE_ARTIFACT=1, or add Artifact to permissions.deny. Once a --settings file, that variable, or managed settings turns artifacts off, no settings file turns them back on; a project’s .claude/settings.json or .claude/settings.local.json can turn them off but not on (honored since v2.1.242). CLAUDE_CODE_ARTIFACT_AUTO_OPEN=0 keeps the browser from opening when a new artifact is published.280

Additional Directories

Extend Claude’s access beyond the current project:

{
  "permissions": {
    "additionalDirectories": [
      "../shared-lib",
      "../docs",
      "~/reference-projects/design-system"
    ]
  }
}

Additional directories are essential for monorepos or when Claude needs to reference code in sibling directories.

Sandbox Mode

Enable filesystem and network isolation:

> /sandbox

Or configure in settings:

{
  "sandbox": {
    "enabled": true,
    "autoAllowBashIfSandboxed": true,
    "excludedCommands": ["docker *"],
    "network": {
      "allowUnixSockets": ["~/.ssh/agent-socket"],
      "allowLocalBinding": true,
      "deniedDomains": ["pastebin.com", "transfer.sh", "0x0.st"]
    }
  }
}

excludedCommands entries are command patterns, and a pattern with no wildcard is an exact match: docker alone would exclude only docker run with no arguments, while docker * matches it with or without arguments. An excluded command runs with your full access, and the settings reference calls exclusion “a convenience, not a security boundary”, so list only tools you would run unsandboxed yourself.390

Sandboxed commands ask by default (v2.1.325). sandbox.autoAllowBashIfSandboxed now defaults to false: a sandboxed Bash command goes through the regular permission flow, so your allow rules and permission mode decide whether you see a prompt, and the command still runs inside the sandbox. The /sandbox Mode tab calls this regular permissions mode. The example above sets the key to true, which is auto-allow mode: sandboxed commands run without a prompt, while deny rules, content-scoped ask rules such as Bash(git push *), and critical-path rm checks still apply. To turn auto-allow on from managed settings, put the key in the sandbox block of your highest-ranking managed source. The release notes list the change under 2.1.325; the settings reference says the default was true before v2.1.324, a version published to npm without release notes.527530

As of v2.1.187, the sandbox.credentials setting blocks sandboxed commands from reading the credential files and environment variables you list in it. It is unset by default and there is no built-in list, so the sandbox protects no credential until you add entries.173490

As of v2.1.221, credential files gain a third mode beyond allow/deny: mode: "mask" (Linux and WSL). A sandboxed command that reads the file gets a sentinel copy — either the whole file or just the spans captured by an extract regex — and the sandbox proxy substitutes the real value on egress. The command works (it can authenticate through the proxy) without the secret ever being present in its environment, which is precisely the property you want when a prompt-injected command goes hunting for tokens. On macOS, where the proxy-substitution machinery isn’t available, mask falls back to deny — so a config written for Linux CI degrades safely rather than silently exposing the file.196

v2.1.224 extends masking beyond static file contents. extract and onExtractNoMatch handle structured env values; decode: "jwt" with maskClaims masks selected claims inside a JWT rather than the whole token, so a command can still read the token’s routing metadata while the sensitive claims stay sentinel; and awsPairs/sigv4 re-sign AWS SigV4 requests at the proxy, which is what makes masking usable with AWS CLIs at all — a masked key would otherwise fail signature verification. All of these require network.tlsTerminate, and they are honored only from user, managed, or --settings scopes — a repository cannot ship a masking config that silently reroutes your credentials.198

As of v2.1.216, the sandbox.filesystem.disabled setting skips filesystem isolation while keeping network egress control — useful when the filesystem jail breaks a build tool but you still want the domain allowlist enforced on outbound traffic.189

As of v2.1.219, the sandbox.network.strictAllowlist setting refuses every host outside the allowlist, in every permission mode. Without it, the permission mode decides what happens when a sandboxed command reaches a host outside allowedDomains; 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. With strictAllowlist on (user, managed, or --settings scope; a repository’s settings files cannot set it), the connection is refused in every mode.391 The setting covers sandboxed commands only: in-process tools such as WebFetch still follow their permission rules.492 This is the setting to reach for in unattended runs (CI, background agents, overnight loops), where a prompt nobody answers is a stall, and in any run that pairs the sandbox with --dangerously-skip-permissions, where without it a host outside the allowlist is reachable. It completes the network triad: allowedDomains says what’s permitted, deniedDomains (below) carves exceptions out of a broad allow, and strictAllowlist decides whether everything else follows the permission mode or is refused.193 v2.1.229 tightens the domain-list syntax itself: IPv6 literals must be bracketed ([::1]:443), ambiguous spellings are enforced fail-closed, and /doctor flags them.254

v2.1.236 adds two more hardening steps: on macOS, wildcard read-deny rules (e.g. **/.env) now take precedence inside allowed read regions, cover matched directories’ contents, and can’t be bypassed by renaming the denied file; and while auto mode is active, Monitor allow rules are set aside: Monitor commands get the same classifier review as Bash commands.243

Auto mode’s classifier runs server-side by default for Claude API and Enterprise users and on Bedrock, Vertex, Foundry, and gateways, with no charge for classifier overhead; CLAUDE_CODE_AUTO_MODE_SERVER=0 opts out there. The mechanics are in the Auto Mode section.216

Per-command allowed_domains in auto mode (v2.1.271): with sandboxing on, Bash, PowerShell, and Monitor commands in auto mode can carry their own allowed_domains – the hosts a command needs are reviewed with the command and opened for that command alone, and other hosts are refused. Egress stops being a session-wide grant: each command names its destinations, and the review covers exactly that pairing.213

excludedCommands globs must match every part of a compound command (v2.1.277+). Every part of a compound Bash command must match a sandbox.excludedCommands glob for the command to run unsandboxed: a git* exclusion does not carry git pull && ./deploy.sh outside the sandbox. If an exclusion-dependent workflow chains an excluded tool with anything else, the chain stays sandboxed; split the compound or widen the exclusion deliberately.216

Project settings cannot widen excludedCommands under a strict policy (v2.1.282). When managed settings or --settings set allowUnsandboxedCommands: false, or managed settings set allowManagedDomainsOnly: true, Claude Code ignores sandbox.excludedCommands entries from project and local settings.222

Strict sandbox mode and the ! carve-out (sandbox.allowUnsandboxedCommands, v2.1.260). By default, a command that fails under the sandbox can be retried outside it via the dangerouslyDisableSandbox escape hatch, and in an interactive terminal session the permission mode decides who approves the retry: Manual and acceptEdits prompt, auto mode sends it to the classifier, dontAsk denies it, and bypassPermissions runs it without a prompt.418 sandbox.allowUnsandboxedCommands: false – shown as Strict sandbox mode in the /sandbox Overrides tab – switches that hatch off: the parameter is ignored, and every command must run sandboxed or be listed in excludedCommands. As of v2.1.260, commands you type yourself at the ! bash-mode prompt run outside the sandbox even under strict sandbox mode, “like typing into your own terminal” – the strictness governs what Claude runs, not what you type. If your threat model counted on ! commands inheriting the jail, they no longer do.209 The docs name two sessions where ! commands stay sandboxed under strict sandbox mode: a background session, and a Linux session with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB set.419

When sandboxed:

  • Writes confined to the working directory, a temp directory and directories you add; reads cover “Most of the machine, including credential files” unless you narrow them with sandbox.filesystem.denyRead or permissions.blockReadsOutsideWorkingDirectories266
  • Network access controlled
  • Certain commands excluded from sandbox restrictions
  • Bash commands run without a prompt only if autoAllowBashIfSandboxed is true; since v2.1.325 the default is false, and sandboxed commands follow your permission rules and mode530

Expert tip: Sandbox mode is excellent for running Claude on untrusted codebases. Enable it when exploring unfamiliar projects or when you want an extra layer of protection. Internal Anthropic testing found sandboxing reduces permission prompts by 84%.37 That figure describes sandboxed commands that run without a prompt, which is opt-in: sandboxed commands prompt like any others unless you set sandbox.autoAllowBashIfSandboxed: true (v2.1.325+).530 The sandbox uses OS-level primitives (macOS seatbelt, Linux bubblewrap) for filesystem and network isolation, so a prompt injection that reaches a sandboxed Bash command is held to the configured boundary: writes to the allowed paths, reads wherever denyRead does not stop them, and network to the allowed domains plus whatever the permission mode lets through. The boundary has documented exclusions: the built-in file and web tools follow permission rules instead of the sandbox, and command hooks, local MCP servers, plugin monitors, LSP servers and helper commands run with your full access.266 Anthropic has open-sourced the sandbox runtime for teams building their own agents.80

Lock the sandbox down before pairing it with --dangerously-skip-permissions. In bypassPermissions mode a sandboxed command reaches any host that is not in deniedDomains without a prompt unless sandbox.network.strictAllowlist or managed allowManagedDomainsOnly is on, and when a command fails in the sandbox, Claude can retry it outside the sandbox without a prompt unless sandbox.allowUnsandboxedCommands is false. Turn on the strict allowlist and strict sandbox mode first. The docs’ own limit still applies: “Sandboxing reduces risk but is not a complete isolation boundary.”391418

Project settings cannot loosen an admin sandbox (v2.1.285). Project settings can no longer widen or turn off an admin-required sandbox, replace the proxy behind a managed deny list, extend a strict allowlist, or reopen managed read-denies.226

Security notes (v2.1.34+): Commands excluded from sandboxing via sandbox.excludedCommands or dangerouslyDisableSandbox still go through the Bash ask permission rule when autoAllowBashIfSandboxed is enabled.85 As of v2.1.38, writes to .claude/skills are blocked in sandbox mode, preventing prompt injection from modifying skill definitions.86 v2.1.77 adds an allowRead sandbox filesystem setting to re-allow read access within denyRead regions—useful when you want to block most of a directory tree but whitelist specific subdirectories.117

.claude/ agent-config exemption (v2.1.121+): --dangerously-skip-permissions no longer prompts for writes to .claude/skills/, .claude/agents/, and .claude/commands/.151

Nested .claude/ resolution (v2.1.178): Skills in nested .claude/skills directories now load automatically when you work on files under that directory, not just from the repo root; on a name clash the nested skill is addressable as <dir>:<name> so both stay available. The rest of the project surface resolves the same way — when an agent, workflow, or output-style name collides across nested .claude/ directories, the one closest to the working directory wins, and a project-scope workflow save targets the closest existing .claude/workflows/. For a monorepo or repo-of-repos this gives per-package tooling that activates in context instead of one flat global surface.170

Custom bubblewrap and socat paths (v2.1.133+): sandbox.bwrapPath and sandbox.socatPath managed settings let admins point Linux/WSL deployments at non-standard bubblewrap and socat binary locations. Useful when distributions install these tools outside $PATH or when the organization vendors hardened builds.157

Security hardening in v2.1.113:148

  • sandbox.network.deniedDomains blocks specific hosts for sandboxed commands even when a broader allowedDomains wildcard would otherwise permit them. Use the blocklist to cut off pastebins, file drops, or known-bad hosts without rewriting your entire allow policy. Pair it with sandbox.network.strictAllowlist (v2.1.219, above) when you want everything outside the allowlist refused in every permission mode.391492
  • Wrapper-command deny rules. Per the v2.1.113 release notes, Bash deny rules match commands wrapped in env, sudo, watch, ionice, setsid, and similar exec wrappers, so a rule like Bash(rm:*) also catches env rm -rf and sudo rm -rf. A deny rule still matches command text, not the program: the permissions docs say it “isn’t a security boundary around the program”, and in their example Bash(rm *) does not stop /bin/rm -rf build/ or bash -c 'rm -rf build/'.420
  • Bash(find:*) allow rules no longer auto-approve find -exec or find -delete. Those flags execute commands and delete files, so Claude Code routes them through the normal permission path.
  • macOS removal protection. Bash(rm:*) allow rules now treat /private/etc, /private/var, /private/tmp, and /private/home as dangerous removal targets. /var, /etc, and /tmp are symlinks into /private/, so the previous rule shape missed the canonical targets.

Permission fail-closed hardening in v2.1.214:187

These checks fail closed: when the analyzer cannot be sure, it prompts.

  • Windows PowerShell 5.1 is checked. Commands run in PowerShell 5.1 sessions go through the permission check.
  • Bash file-descriptor redirects fail closed. Redirect forms that bash parses differently than the permission analyzer now prompt instead of running.
  • Commands over 10,000 characters always prompt. They never run automatically.
  • zsh subscripts and modifiers in [[ ]] prompt. Variable subscripts and modifiers inside [[ ]] comparisons were treated as inert text; they can execute code, so they now require approval.
  • Unsafe help/man variants are not auto-approved. That covers invocations with unsafe options, command substitutions, or backslash paths.
  • Remote-session prompt ordering. Permission prompts on remote sessions can no longer proceed before the local confirmation dialog.
  • docker daemon-redirect flags prompt. docker commands (including the Podman docker shim) carrying --url, --connection, --identity, or Podman’s remote mode prompt, because those flags point the command at a different daemon.
  • file loses its read-only free pass when told where to write. file -m/--magic-file and -f/--files-from now require permission instead of being auto-allowed as read-only.

Sandbox auto-allow (v2.1.289-292). v2.1.289 closes two gaps where a Bash deny or ask rule was skipped under sandbox auto-allow: a command behind an environment variable prefix with an expanded value (TZ="$HOME" rm -rf build), and a command preceded by a bare variable assignment.232 v2.1.290 makes sandboxed Monitor tool commands follow your permission rules instead of skipping the prompt, and stops sandboxed heredocs piped into another command (cat <<EOF | python3) from asking on every run.232 As of v2.1.292, with strict sandbox mode set in user, managed, or --settings settings, an interpreter command with an env var prefix such as FOO=bar python3 app.py runs unprompted.233 v2.1.290 also adds a /status and doctor warning when managed settings ignore your sandbox allowRead paths or allowed domains.232

Sandbox hardening (v2.1.305-310). sandbox.allowNestedUserNamespaces (v2.1.305) lets sandboxed commands on Linux and WSL2 create user namespaces, which Chromium’s and Electron’s own sandbox, a nested bubblewrap, and unshare need, and which also lets them around the sandbox’s file protections. 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 *. v2.1.309 closes several gaps: sandboxed Bash commands on macOS and Linux no longer run the shell’s startup files outside the sandbox before each command; macOS denyWrite globs apply at a path’s real location when the pattern’s folder is reached through a symlink; sandboxed commands and auto-accepted edits can no longer modify the MCP config file passed with --mcp-config; Linux write denies no longer lift when a background command outlives the session; and commands the settings exclude from the sandbox ask before writing to its write-list paths while the sandbox is enabled but cannot run, with the unsandboxed fallback refused there. In the same release sed -i gets the standard Bash prompt and runs as written, not as a simulated file-edit preview, and like other Bash edits it is no longer restored by /rewind. v2.1.310 makes /sandbox and the startup warning name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox; the sandboxing docs carry the AppArmor profile.275276473


How Do Hooks Work?

Hooks execute deterministic shell commands at specific points in Claude Code’s workflow. Unlike prompting Claude to perform actions, hooks guarantee execution regardless of model behavior. They’re essential for enforcing team standards and automating repetitive tasks. See Decision Frameworks for the “Which Hook Type?” decision tree covering command, prompt, and agent hooks.

Why hooks instead of prompts: Telling Claude “always run Prettier after editing files” works sometimes. But Claude might forget, prioritize speed, or decide the change is “too small.” Hooks guarantee execution: every Edit or Write triggers your formatter, every time, no exceptions. For compliance, security, and team standards, deterministic beats probabilistic.3

Available Events

Event Timing Can Block Purpose
PreToolUse Before tool executes Yes Validate, log, or block operations
PostToolUse After tool completes No Format output, run linters, trigger builds
PostToolUseFailure After tool fails No Log failures, send alerts, provide corrective feedback
PostToolBatch After a batch of parallel tool calls, before the next model call Yes Checkpoint or halt the agentic loop between model calls3
UserPromptSubmit User sends prompt Yes Add context, validate input, inject data
UserPromptExpansion A typed command expands into a prompt Yes Audit or veto skill/slash-command expansions; stdout adds context3
PreSkillShellCommand Before a skill’s or command’s inline ! shell command runs while it loads Yes Log or refuse injected commands, which PreToolUse hooks never see: exit 2 or permissionDecision: "deny" skips the command and the skill still loads; it cannot approve or change one. Match both Bash and PowerShell, use a command, http, or mcp_tool hook that is not async, and set onFailure: "block" (v2.1.332+; an older version that finds the event in a settings file opens a warning dialog at start)529
Notification Alert triggered No Custom notification handling
MessageDisplay Assistant message text is displayed No Transform or hide on-screen text via displayContent — display-only, transcript unchanged (v2.1.152+)264
Stop Claude finishes response Yes Prevent premature stopping, enforce completion criteria. Includes last_assistant_message (v2.1.47+)
SubagentStart Subagent spawns No Log agent type, inject context via additionalContext
SubagentStop Subagent completes Yes Prevent subagent from stopping, enforce quality gates. Includes last_assistant_message (v2.1.47+)
TeammateIdle Agent team member idles Yes Enforce quality gates before teammate stops (v2.1.33+)
TaskCreated Task created via TaskCreate Yes Enforce task naming and scope rules; exit 2 rolls back creation (v2.1.84+). Since v2.1.268 the task tools are on by default only on Opus 4.7, Sonnet 4.6, Haiku 4.5 and earlier models; on newer models (background and cloud sessions aside) this event fires only after CLAUDE_CODE_ENABLE_TODO_TOOLS=1 or --allowedTools TaskCreate turns them on (v2.1.233 first turned them off on newer models)129251213315
TaskCompleted Task marked complete Yes Enforce completion criteria, run tests (v2.1.33+)
SessionStart Session begins No Environment setup, load context, set env vars
SessionEnd Session closes No Cleanup, final logging
Setup --init-only, or --init/--maintenance with -p; never on a normal start No One-time environment setup from CI or scripts (v2.1.10+)52316
InstructionsLoaded CLAUDE.md or .claude/rules/*.md loaded No Log which instruction files load; the event has no output channel, so it cannot block or add context (v2.1.69+)316
ConfigChange Config file changes during session Yes Audit settings changes, enforce security policies (v2.1.49+)
DirectoryAdded A new working directory is registered mid-session No React to /add-dir or the SDK register_repo_root control request — load per-repo context, re-scope linters, audit scope expansion (v2.1.219+)193
CwdChanged Working directory changes No Reload direnv-style environments (v2.1.83+)121
FileChanged A watched file changes on disk No React to watched-file changes: the matcher names the files to watch, separated by a pipe (.envrc and .env, for example), and a SessionStart, CwdChanged or FileChanged hook can add more through watchPaths (v2.1.83+)121316
WorktreeCreate Worktree being created Yes Custom VCS setup (replaces default git behavior) (v2.1.50+)
WorktreeRemove A worktree made by your WorktreeCreate hook is being removed Yes Custom VCS cleanup; any non-zero exit fails the removal if the directory still exists afterward (v2.1.50+)316
PreCompact Before context compaction Yes (v2.1.105+) Validation, logging, blocking compaction (exit 2 or {"decision":"block"}); output cut at 10,000 characters since v2.1.314, so a huge hook cannot fail or repeat compaction281
PostCompact After context compaction No Logging, cache reuse optimization (v2.1.76+)116
Elicitation MCP server requests structured input Yes Intercept/override MCP elicitation dialogs (v2.1.76+)116
ElicitationResult User responds to MCP elicitation Yes Validate/transform elicitation responses (v2.1.76+)116
StopFailure Turn ends due to API error (rate limits, auth failures) No Error alerting, retry logic (v2.1.78+)118
PermissionRequest A tool call needs a permission decision JSON only Custom approval logic; exit 2 is not honored, so deny with hookSpecificOutput.decision.behavior: "deny"316
PermissionDenied Auto mode denies a tool call No Log denials; return hookSpecificOutput.retry: true to tell the model it may retry (ignored when the classifier gave no verdict) (v2.1.89+)125316
PreModelSwitch Before a model switch you or a client requested: /model and the pickers, the /config Model setting, a fast-mode toggle that changes the model, an SDK or Remote Control set_model Yes Block, confirm, or price a model switch. The matcher compares the canonical name derived from to_model (aliases, dated IDs, and Bedrock IDs all resolve to it; exact names, pipe-separated lists, and regexes work); input carries from_model/to_model plus cache-cost fields (context_tokens, prompt_cache_warm, cache_ttl, estimated_cache_write_usd). Exit 2 or permissionDecision: "deny" cancels, "ask" prompts the user, and a hook canceled at its 30s default timeout blocks the switch. Not run for switches Claude Code makes on its own (v2.1.251+)203205
PostModelSwitch After the session’s model changes, including changes Claude Code makes on its own: automatic fallback, opusplan phase changes, the model restored on resume No Model-specific guidance: plain-text stdout on exit 0 (or JSON additionalContext) is delivered to Claude as context with the next request after the switch. Same canonical-name matcher and inputs as PreModelSwitch, plus source values auto and resume; 30s default timeout (v2.1.251+)203205

SessionStart source values. SessionStart hook input includes a source field telling you how the session began: "startup", "resume", "clear", or "compact". As of v2.1.214, a session that begins life as a fork reports source: "fork" instead of "resume", the hook-side counterpart to v2.1.212’s /fork-to-background change. If a SessionStart hook branches on source (say, re-injecting context only on "resume"), update its match list to cover "fork" too.187 As of v2.1.251, when source is "resume" or "fork" and the transcript holds at least one prior response from Claude, SessionStart hooks also receive four resume-cost fields: seconds_since_last_response, context_tokens (what the first request re-sends as its prompt), prompt_cache_likely_expired (true when the last response is older than the session’s cache TTL or a later compaction replaced the cached conversation), and estimated_cache_write_usd. With them a hook can report what resuming a stale conversation costs before the first request.203205

Hook Configuration

Define hooks in a settings file (~/.claude/settings.json, .claude/settings.json, .claude/settings.local.json), in a plugin’s hooks/hooks.json, or in skill and subagent frontmatter:316

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/validate-bash.sh"
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/inject-context.sh"
          }
        ]
      }
    ]
  }
}

Matchers

The matcher field determines which tools trigger a hook:502

  • {"matcher": "*"}: match all tools
  • {"matcher": "Bash"}: match the Bash tool
  • {"matcher": "Edit|Write"}: match Edit or Write
  • {"matcher": "mcp__github__.*"}: match every tool from the github MCP server
  • {"matcher": ""}: match all, the same as "*" or leaving matcher out; an event without matcher support, such as UserPromptSubmit, ignores the field and always fires

Use | to match multiple tools (Edit|Write). Comma-separated matchers (e.g. Bash,PowerShell) work too (v2.1.191+).175 A matcher made only of letters, digits, _, -, spaces, , and | is compared as an exact string (or a list of exact strings), never as a substring; anything else is an unanchored JavaScript regular expression. (Hyphenated names such as code-reviewer follow the exact-match rule from v2.1.195.) To match every tool from an MCP server, the .* is required: mcp__github__.*, mcp__brave-search__.*. A bare mcp__github matches no tool.176316

Hook if: path conditions are cwd-scoped as of v2.1.214. The same single-segment scoping change that hit permission allow rules (see Permission Rules Syntax) applies to hook if: conditions: a condition like dir/** now matches only <cwd>/dir, not every dir/ in the tree. Write **/dir/** when you want any-depth matching back.187 Since v2.1.314 a condition such as Monitor(tail *) matches the Monitor tool’s shell commands the way Bash(tail *) matches Bash’s, and hooks that match Bash run on those commands too, where they can block or ask but not approve or rewrite.281

Hook Input/Output Protocol

Hooks receive JSON on stdin:

{
  "session_id": "abc-123",
  "transcript_path": "/Users/you/.claude/projects/my-project/abc-123.jsonl",
  "cwd": "/Users/you/my-project",
  "permission_mode": "default",
  "hook_event_name": "PreToolUse",
  "tool_name": "Bash",
  "tool_input": {
    "command": "npm test",
    "description": "Run test suite"
  },
  "tool_use_id": "toolu_01ABC123"
}

Every event carries session_id, transcript_path, cwd and hook_event_name; most also carry permission_mode. The other fields depend on the event.316

Hook event enrichment (v2.1.69+): All hook events now include agent_id and agent_type fields when triggered from a subagent or --agent session, plus a worktree field in status line hook commands.108

Stop/SubagentStop hooks (v2.1.47+) receive an additional last_assistant_message field containing Claude’s final response text, so hooks can inspect the output without parsing transcript files:

{
  "session_id": "abc-123",
  "last_assistant_message": "I've completed the refactoring. Here's what changed..."
}

Soft feedback without a block (v2.1.163+): Stop and SubagentStop hooks can return hookSpecificOutput.additionalContext in their JSON output to hand Claude feedback and keep the turn going, without the response being labeled a hook error. The other lever, the exit-2 block, reads as an error and counts toward the consecutive-block cap; additionalContext is a steering channel for “here’s what you missed, continue” guidance that doesn’t fight the loop.261

Exit codes control behavior:

  • 0: Success: Claude Code applies any JSON output fields the hook printed, and the action goes ahead unless those fields block or deny it. Stdout counts as JSON output only when the hook prints one JSON object with nothing around it but whitespace; anything else is read as plain text or as a parse failure. On UserPromptSubmit, UserPromptExpansion, SessionStart, and PostModelSwitch, plain-text stdout is added as context Claude can see and act on, and on PreCompact stdout becomes instructions for the compaction summary. Claude never sees stderr from a hook that exits 0.274316
  • 2: Blocking error on the events that can block: the operation stops and stderr is fed back to Claude. On events that cannot block, the effect varies: PostToolUse and PostToolUseFailure still show stderr to Claude, several events show it only to you, and events such as PermissionRequest, Setup, Notification and PermissionDenied ignore exit 2 (see the Can Block column above).316
  • 1, 3, etc.: Non-blocking error: operation continues unless the hook is one whose failure blocks the action, such as one with onFailure set to "block". When stdout is plain text or empty, a <hook name> hook error notice (on events such as PreToolUse) reads Failed with non-blocking status code: followed by the hook’s stderr, and the debug log has the rest when the notice cuts it off; JSON that passes validation is still applied, with the exit code ignored (for a hook whose failure blocks the action, the run counts as a failure instead).274

Block on failure (v2.1.295+): by default a hook that cannot start, times out, exits with a code other than 0 or 2, gets an HTTP error, has its MCP server disconnected or its MCP tool return an error, or prints output that fails JSON validation is a non-blocking error, so a policy hook with a mistyped path lets everything through. Set "onFailure": "block" on a command or http hook, or since v2.1.328 an mcp_tool hook, and each of those failures does what exit code 2 does on that event: a PreToolUse failure blocks the tool call and a UserPromptSubmit failure blocks the prompt, while on PermissionRequest it denies the request. The error line reads failed; blocking because onFailure is "block" (timed out after a timeout), followed by the hook’s own output. A command hook that exits 1 with JSON that allows the action still counts as a failure; to return a JSON decision, exit 0. The field is ignored on Stop, SubagentStop, TaskCompleted, and TeammateIdle hooks, where exit 2 sends Claude back to work, and on async or asyncRewake command hooks. The other value is "continue". With the field unset a failure is a non-blocking error, with one exception: on Windows without Git Bash, a shell-form PreToolUse, PermissionRequest, or PreSkillShellCommand command hook that fails can block the action, and "onFailure": "continue" on that hook lets the call go ahead.235237274529

Skill shell commands get their own event (v2.1.332). A skill or command can run shell commands while it loads (the ! lines shown under Inline Bash Execution), and PreToolUse hooks do not fire for them. PreSkillShellCommand does. Its input carries tool_name (Bash or PowerShell), tool_input.command, command_name (the skill or command that is loading), command_source, and invoked_by. The hook runs after the permission check on injected commands, so it sees the commands that passed, and it also runs in bypassPermissions mode. Define it in a settings file or a plugin: a skill’s injected commands run without the hooks in that skill’s own frontmatter on its first load in a session. In auto mode a command that would need approval does not run while the skill loads; Claude can run it afterward as a tool call, which fires PreToolUse, so keep a blocking script on both events. A prompt or agent hook on this event cannot run, and Claude Code blocks each command it matches.527529

{
  "hooks": {
    "PreSkillShellCommand": [
      {
        "matcher": "Bash|PowerShell",
        "hooks": [
          { "type": "command", "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/block-rm.sh", "args": [], "onFailure": "block" }
        ]
      }
    ]
  }
}

The script is the one the hooks reference builds under “How a hook resolves”, and the reference says to reuse it on this event. Save it as .claude/hooks/block-rm.sh in the project and make it executable with chmod +x .claude/hooks/block-rm.sh; it needs jq on your PATH:

#!/bin/bash
# .claude/hooks/block-rm.sh
COMMAND=$(jq -r '.tool_input.command')

if echo "$COMMAND" | grep -q 'rm -rf'; then
  jq -n '{
    hookSpecificOutput: {
      hookEventName: "PreToolUse",
      permissionDecision: "deny",
      permissionDecisionReason: "Destructive command blocked by hook"
    }
  }'
else
  exit 0  # no decision; normal permission flow applies
fi

The same file serves both events: leave hookEventName as PreToolUse when one script runs on both, and a script that exits 2 blocks on either event too. On PreSkillShellCommand a hook can block a command but cannot approve or change one.529

For advanced control, a hook prints JSON on stdout and exits 0. For a hook that is not async, print nothing else on stdout: a line your shell profile echoes at startup is enough to keep Claude Code from reading the object as JSON. The reference describes three kinds of fields: universal fields that every event accepts (some events discard them or deliver systemMessage somewhere other than the transcript; each event’s section of the reference says which), top-level decision and reason that some events use to block or give feedback, and hookSpecificOutput, a nested object for events that need richer control, which requires a hookEventName field set to the event name. The universal fields:274

Field Default Description
continue true false stops Claude from processing entirely after the hook runs. It does not block a PreToolUse tool call: to do that, also return permissionDecision: "deny"
stopReason none Message shown to the user when continue is false; it stays in the conversation, so Claude sees it if the conversation continues
suppressOutput false Has no effect
systemMessage none Warning shown to the user; in the Agent SDK and --output-format stream-json output it can arrive as an SDKInformationalMessage
terminalSequence none A terminal escape sequence Claude Code emits on the hook’s behalf (desktop notification, window title, bell); restricted to OSC 0, 1, 2, 9, 99, 777 and BEL, and ignored if the value contains anything else; written only in an interactive session while the interface is on screen, and ignored under -p and in the Agent SDK
{
  "continue": false,
  "stopReason": "The deploy window is closed. Nothing else runs until it reopens.",
  "systemMessage": "deploy-gate stopped this turn"
}

On PreToolUse, this output alone does not stop the tool call the hook was checking: the reference says continue: false “doesn’t block a PreToolUse tool call”. A guard that has to stop the call returns permissionDecision: "deny" in hookSpecificOutput, as in the next example, or exits 2. The field also behaves differently by event: on Stop and SubagentStop it takes precedence over exit code 2, so the turn ends, and Claude Code ignores it on TaskCreated.274

PreToolUse decision control (preferred format): PreToolUse hooks use hookSpecificOutput for richer control: four outcomes (allow, deny, ask, defer) plus the ability to modify tool input and inject context:87316

{
  "hookSpecificOutput": {
    "hookEventName": "PreToolUse",
    "permissionDecision": "allow",
    "permissionDecisionReason": "Command validated and modified",
    "updatedInput": {
      "command": "npm test -- --coverage --ci"
    },
    "additionalContext": "Note: This database has a 5-second query timeout."
  }
}
Field Values Description
permissionDecision "allow", "deny", "ask", "defer" allow skips the permission prompt (deny and ask rules still apply, and actions no mode auto-approves still prompt), deny blocks, ask prompts the user, defer ends the turn so a wrapping -p process can resume the call later (v2.1.89+; multi-hook precedence deny > defer > ask > allow)316
permissionDecisionReason String ask: shown to the user in the prompt. deny: shown to Claude. allow and defer: written to the debug log only316
updatedInput Object Modifies tool input before execution; as of v2.1.300 it is validated like Claude’s own input: unknown keys are dropped and input the tool rejects denies the call270
additionalContext String Injected into Claude’s context for that turn43

Note: Top-level decision and reason fields are deprecated for PreToolUse. Use hookSpecificOutput.permissionDecision and hookSpecificOutput.permissionDecisionReason instead. Other events (PostToolUse, Stop, etc.) still use top-level decision.87

UserPromptSubmit session title (v2.1.94+): UserPromptSubmit hooks can set the session title via hookSpecificOutput.sessionTitle.138

UserPromptSubmit runs before expansion (v2.1.299). UserPromptSubmit hooks run before a skill or custom slash command expands, so a hook that blocks the prompt also stops the command’s embedded ! shell lines; UserPromptExpansion still fires on the expansion itself. A UserPromptSubmit hook declared in a skill’s own frontmatter first runs on the prompt after the one that invoked the skill.268269

Async Hooks (January 2026)

Hooks can now run in the background without blocking Claude Code’s execution. Add async: true to a command hook’s configuration:79421

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/notify-slack.sh",
            "async": true
          }
        ]
      }
    ]
  }
}

When to use async hooks:

  • Notifications (Slack, email, Pushover) that shouldn’t slow down the session
  • Logging and telemetry that can run in the background
  • Non-critical post-processing (analytics, backups)

When not to use async hooks:

  • Formatting (must complete before next edit)
  • Validation (must block on failure)
  • Any hook that needs to modify tool input/output

Prompt-Based and Agent-Based Hooks (v2.1.32+)

Beyond shell command hooks (type: "command"), Claude Code supports two LLM-powered hook types that evaluate conditions using AI reasoning rather than scripts.87

Prompt hooks (type: "prompt") send a single-turn prompt to a Claude model (by default the one Claude Code uses for background work). The model returns { "ok": true } to allow or { "ok": false, "reason": "..." } to block:

{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          {
            "type": "prompt",
            "prompt": "Evaluate if Claude should stop: $ARGUMENTS. Check if all requested tasks are complete and tests pass.",
            "timeout": 30
          }
        ]
      }
    ]
  }
}

HTTP hooks (type: "http") send the event’s JSON input as a POST request to a URL and receive JSON back. Use these for webhooks, external notification services, or API-based validation (v2.1.63+):102

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "http",
            "url": "https://api.example.com/notify",
            "headers": {
              "Authorization": "Bearer $MY_TOKEN"
            },
            "allowedEnvVars": ["MY_TOKEN"]
          }
        ]
      }
    ]
  }
}

HTTP hooks use the same decision format as command hooks (return JSON with decision and reason). They’re routed through the sandbox network proxy when sandboxing is enabled. Not supported for SessionStart/Setup events.

Agent hooks (type: "agent") spawn a subagent with tool access (Read, Grep, Glob) for multi-turn verification. Use these when checking requires inspecting actual files or test output:

{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          {
            "type": "agent",
            "prompt": "Verify all unit tests pass. Run the test suite and check results. $ARGUMENTS",
            "timeout": 120
          }
        ]
      }
    ]
  }
}

Use $ARGUMENTS as a placeholder for the hook’s JSON input. Both types take model (default: the model Claude Code uses for background work; since v2.1.330 a prompt hook’s model accepts an alias such as haiku or sonnet527) and timeout in seconds (default 30 for prompt, 60 for agent). Agent hooks are experimental. Events that take both: PreToolUse, PostToolUse, PostToolUseFailure, PostToolBatch, PermissionDenied, UserPromptSubmit, UserPromptExpansion, Stop, SubagentStop, TaskCreated, TaskCompleted, TeammateIdle. PermissionRequest takes prompt hooks only, and a prompt hook’s ok: false has no effect there: deny from a command hook instead. On PermissionDenied the output of a prompt or agent hook is discarded, because only a command hook can return retry.317

PermissionRequest no longer runs agent-type hooks (v2.1.280). The reason is worth stating plainly, because it explains a class of hook that never worked: an agent hook’s answer could never allow or deny the request, so an agent hook registered on PermissionRequest was doing work whose result was discarded. Rather than keep accepting the configuration silently, Claude Code now shows an error pointing you at command or http hooks, which can return a verdict. If you have a PermissionRequest agent hook in a settings file or plugin, it was not gating anything before this release either: the error is the first time you are being told. Port the logic to a command hook.217

Hook concurrency (v2.1.312+). Prompt and agent hooks run at most 24 at a time per session, subagents included, plus at most 12 that have waited longer than their event’s timeout, and a timeout under one second counts as one second. Command hooks are unaffected. The hooks reference states the per-event figure: matching hooks run in parallel, and when more than 12 of them are prompt or agent hooks, 12 run at once and the rest start as running ones finish.272273281317

MCP Tool Hooks (v2.1.118+)

Hooks can now invoke an MCP tool directly via type: "mcp_tool", sidestepping the need to wrap a Bash subprocess that calls the server.149

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit",
        "hooks": [
          {
            "type": "mcp_tool",
            "server": "linear",
            "tool": "create_comment",
            "input": {"issue_id": "ENG-123", "body": "Auto-updated by Claude Code"}
          }
        ]
      }
    ]
  }
}

This pairs well with the MCP servers users already have configured: any tool reachable from /mcp becomes hook-callable.

duration_ms in PostToolUse Hooks (v2.1.119+)

PostToolUse and PostToolUseFailure hook inputs now include duration_ms, the tool’s execution time excluding permission prompts and PreToolUse hooks.149 Useful for slow-tool detection, audit logs, and per-tool latency metrics. The field is optional, so the example treats a missing value as 0:421

#!/bin/bash
# Stderr-flagged warning when an Edit takes more than 10 seconds
INPUT=$(cat)
DUR=$(jq -r '.duration_ms // 0' <<<"$INPUT")
FILE=$(jq -r '.tool_input.file_path // "?"' <<<"$INPUT")
if [ "$DUR" -gt 10000 ]; then
  echo "[slow-edit] ${DUR}ms — investigate $FILE" >&2
fi

updatedToolOutput for All Tools (v2.1.121+)

PostToolUse hooks could at first replace a tool’s output only for MCP tools, through updatedMCPToolOutput (which still works for MCP tools). As of v2.1.121, hookSpecificOutput.updatedToolOutput works for any PostToolUse hook: built-in tools (Bash, Read, Edit, Glob, Grep, etc.), subagent tools, and MCP tools. Prefer it over the MCP-only field.316 Use cases: redacting sensitive content from any tool’s output, normalizing structure for downstream consumers, injecting metadata before the agent reads the result.151

Hook Environment Variables

Hooks have access to environment variables for resolving paths:87

Variable Available In Description
$CLAUDE_PROJECT_DIR All hooks Project root directory (quote for paths with spaces)
${CLAUDE_PLUGIN_ROOT} Plugin hooks Plugin’s root directory
$CLAUDE_ENV_FILE SessionStart, Setup, CwdChanged, FileChanged (not in PowerShell hooks)316 File path for persisting env vars for subsequent Bash commands
$CLAUDE_CODE_REMOTE All hooks Set to "true" in remote web environments
$CLAUDE_EFFORT All hooks + Bash tool subprocess Current effort level. Hooks also receive it via the effort.level JSON input field (v2.1.133+).157
$CLAUDE_CODE_SESSION_ID Bash and PowerShell tool subprocesses, hook commands, stdio MCP servers Session ID matching the session_id passed to hooks. Lets long-running shells correlate output across the same session (v2.1.132+).156318

Persist environment variables from SessionStart:

#!/bin/bash
if [ -n "$CLAUDE_ENV_FILE" ]; then
  echo 'export NODE_ENV=production' >> "$CLAUDE_ENV_FILE"
fi
exit 0

Claude Code Hooks vs Agent SDK Hooks

The same lifecycle events — PreToolUse, PostToolUse, UserPromptSubmit, Stop, SubagentStop, and the rest of the roster above — exist in two consumption models, and searches for the Agent SDK’s hook lifecycle land here often enough that the distinction deserves its own heading.

Claude Code (CLI) hooks are what this section documents: handlers configured in settings.json, receiving event JSON on stdin and answering with exit codes or JSON on stdout. Enforcement is the CLI’s — a PreToolUse deny blocks the tool call before it runs, even in bypassPermissions mode.3

Agent SDK hooks are the programmatic surface for harnesses that embed the Claude Code runtime as a library. In claude-agent-sdk-python, setting include_hook_events=True on ClaudeAgentOptions makes HookEventMessage objects (PreToolUse, PostToolUse, Stop, and the others) yield from the same iterator as assistant messages and tool results; the TypeScript SDK mirrors this with includeHookEvents, and its control protocol tracks the CLI’s event roster (the TypeScript SDK added DirectoryAdded in the same release that shipped it in the CLI). Payload shapes match the CLI’s stdin JSON (session_id, hook_event_name, tool_input, and the per-event fields), and PreToolUse decision semantics keep the same precedence (deny > defer > ask > allow).3496

The enforcement caveat is the part worth memorizing. SDK-side hook enforcement has twice been shown to fail open at lifecycle edges: a caller abort arriving during a pending hook callback was converted into hook success in the TypeScript SDK, which let PreToolUse-gated tools run after the abort (fixed in 0.3.208), and a stream-close path in the Python SDK silently bypassed PreToolUse for SDK MCP tool calls made by background tasks (fixed in 0.2.127).422 Both are fixed, but the pattern is structural: when the transport dies before the hook verdict is collected, a bypassed hook looks exactly like a hook that approved. If SDK hooks gate anything security-relevant, pin current SDK versions and keep a CLI-layer shell hook as the enforcement you can prove. The Agent Architecture guide covers the SDK hook surface, the version floors, and the harness patterns in depth.

Fail closed when a callback fails. On most events, an SDK hook callback that throws, returns nothing, or returns output that fails validation does not stop the action: the action goes ahead and the app receives a warning message tagged hook_callback_failed, so a PreToolUse guard that crashes lets the tool call reach the normal permission flow. To block the action instead, set onFailure: "block" on the matcher in TypeScript, or on_failure="block" on HookMatcher in Python (TypeScript Agent SDK v0.3.317 or later, Python Agent SDK v0.2.177 or later). Stop, SubagentStop, TaskCompleted, and TeammateIdle ignore the option, and with it set a query fails at startup when the Claude Code it connects to cannot honor it. Return {} from a callback that has no opinion, because with "block" set a path with no return blocks the action. TypeScript SDK 0.3.325 also added a system/informational warning tagged hook_no_verdict, sent when a PreToolUse hook cannot run or answer, or times out, without refusing its tool call; that tag is in the SDK changelog and not in the Agent SDK hooks docs as read on November 25, 2026.549

HTTP hook security (v2.1.51+): HTTP hooks that interpolate environment variables into headers now require an explicit allowedEnvVars list. This prevents arbitrary environment variable exfiltration through header values. HTTP hooks are also routed through the sandbox network proxy when sandboxing is enabled, enforcing the domain allowlist. HTTP hooks are not supported for SessionStart/Setup events.96

{
  "hooks": {
    "PostToolUse": [{
      "hooks": [{
        "type": "http",
        "url": "https://api.example.com/notify",
        "headers": { "Authorization": "Bearer $MY_TOKEN" },
        "allowedEnvVars": ["MY_TOKEN"]
      }]
    }]
  }
}

Hook workspace trust (v2.1.51+): statusLine and fileSuggestion hook commands now require workspace trust acceptance before executing in interactive mode, closing a potential security vector.96

Practical Hook Examples

Auto-format TypeScript files after editing:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'FILE=$(jq -r \".tool_input.file_path // empty\"); [[ \"$FILE\" == *.ts ]] && npx prettier --write \"$FILE\" || true'"
          }
        ]
      }
    ]
  }
}

Log all bash commands:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "jq -r '.tool_input.command' >> ~/.claude/bash-history.log"
          }
        ]
      }
    ]
  }
}

Block reads and edits of sensitive files by path:

#!/bin/bash
# .claude/hooks/protect-files.sh
data=$(cat)
path=$(echo "$data" | jq -r '.tool_input.file_path // empty')

if [[ "$path" == *".env"* ]] || [[ "$path" == *"secrets/"* ]] || [[ "$path" == *".pem"* ]]; then
  echo "Blocked: Cannot access sensitive file $path" >&2
  exit 2  # Exit 2 = block the tool call. Exit 1 = non-blocking error (hook failure only).
fi
exit 0

Register it on PreToolUse for the three file tools, whose input carries file_path:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/protect-files.sh"
          }
        ]
      }
    ]
  }
}

The script checks tool_input.file_path only, so it does not see what a Bash command reads. For that, add Read deny rules, which also cover the file commands Claude Code recognizes in Bash such as cat, and for OS-level enforcement on shell commands turn on the sandbox and turn off the unsandboxed retry (sandbox.allowUnsandboxedCommands: false).421

Run tests after code changes:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'FILE=$(jq -r \".tool_input.file_path // empty\"); [[ \"$FILE\" == *.test.ts ]] || npm run test:affected'"
          }
        ]
      }
    ]
  }
}

Custom notification system:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "notify-send 'Claude Code' 'Waiting for your input'"
          }
        ]
      }
    ]
  }
}

Inject dynamic context into prompts:

#!/bin/bash
# .claude/hooks/inject-context.sh
# Add current git branch and recent commits to every prompt

branch=$(git branch --show-current 2>/dev/null)
commits=$(git log --oneline -3 2>/dev/null | tr '\n' ' ')

if [ -n "$branch" ]; then
  echo "[Context: Branch '$branch', Recent: $commits]"
fi
exit 0

Hook Debugging

Enable debug mode to troubleshoot hooks:

claude --debug

--debug does not print to the terminal. Read the log at ~/.claude/debug/<session-id>.txt, or start with claude --debug-file <path> to choose the file.316

The debug log records:

  • Which hooks ran, for which event and matcher, and how each run ended
  • Each hook’s output and whether it parsed as JSON
  • Durations: since v2.1.296 each command hook leaves a Hooks: line ending in its run time, as in Hooks: PostToolUse:Write [.claude/hooks/log-write.sh] finished with status 0 (31ms)
  • Matcher counts and query matching, when CLAUDE_CODE_DEBUG_LOG_LEVEL=verbose is set

Hook source display (v2.1.75+): When a hook requires user confirmation, the permission prompt now shows the hook’s source (settings, plugin, or skill), making it easier to identify which component is requesting access.115

Component-Scoped Hooks (v2.1.0+)

Hooks can be defined directly in Skills, subagents, and slash commands using frontmatter. They use the same format as hooks in settings, and any hook event can appear. A subagent’s hooks run only while that subagent runs (its Stop hook becomes SubagentStop); a skill’s hooks register when the skill is invoked and keep running for the rest of the session.33317423

Skill with embedded hooks:

---
name: secure-deployment
description: Deployment skill with security validation
hooks:
  PreToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: ".claude/hooks/validate-deploy.sh"
  PostToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: ".claude/hooks/log-deploy.sh"
  Stop:
    - hooks:
        - type: command
          command: ".claude/hooks/cleanup.sh"
          once: true  # Removed after its first successful run
---

Each matcher entry holds a hooks: list, and each handler in it carries a type. A flat entry, with matcher and command side by side and no hooks: list, is not this format: the hooks reference says frontmatter hooks use “the same configuration format as settings-based hooks”, and its skill example nests each handler under a hooks: list in this way.317

once: true (skill frontmatter only) removes the hook after its first successful run, which is useful for cleanup or finalization tasks. A run that fails, blocks with exit code 2, or times out leaves the hook in place. Settings files and agent frontmatter ignore the field.317

Agent frontmatter hooks require workspace trust (v2.1.218). Hooks declared in an agent file’s frontmatter no longer run from untrusted folders: the folder containing the agent file must itself have accepted workspace trust before its hooks execute. This closes the gap where an agent file dropped into an untrusted directory could execute hook commands without any trust prompt, extending the v2.1.51 statusLine/fileSuggestion trust requirement to agent-scoped hooks.192 The requirement covers project-level agent files: hooks from agents in ~/.claude/agents/ and from definitions passed with --agents run without that step.495

Long-Running Sessions Strategy

For overnight or unattended Claude Code sessions, configure hooks to keep Claude on track without manual intervention. The key insight: use linting and testing hooks as guardrails that force Claude to fix issues before continuing.55

The “Don’t Stop Until Tests Pass” Pattern:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "{ npm run lint && npm run typecheck; } 1>&2 || exit 2",
            "timeout": 60
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "npm test 1>&2 || exit 2"
          }
        ]
      }
    ]
  }
}

Exit code 2 is what sends the output to Claude: on PostToolUse Claude reads the stderr, and on Stop it also keeps Claude from stopping. A plain failure (exit 1) is a non-blocking error Claude never sees, and stdout from a hook that exits 0 goes to the debug log. timeout is in seconds. Claude Code overrides a Stop hook that blocks eight times in a row with no tool call in between, and a hook script can read stop_hook_active from its input to tell that it already forced a continuation.319

Strategy for overnight sessions:

  1. Pre-flight check: Use a SessionStart hook to verify the environment is ready. A Setup hook does not fire on a normal start; it runs only with claude --init-only, or with --init or --maintenance in -p mode316
  2. Continuous validation: PostToolUse hooks run tests after each change
  3. Gate completion: Stop hooks verify all acceptance criteria before Claude declares “done”
  4. Notification: Stop hooks can notify you via Slack/Pushover when Claude finishes or gets stuck

Combine with --dangerously-skip-permissions in a sandboxed container for fully autonomous overnight runs. Claude will keep iterating until tests pass or it exhausts its options.


What Is MCP (Model Context Protocol)?

MCP extends Claude Code with access to external tools, databases, APIs, and services through a standardized protocol. The ecosystem grew fast: when Anthropic donated MCP to the Agentic AI Foundation in December 2025, it counted more than 10,000 active public MCP servers and more than 97 million monthly SDK downloads across Python and TypeScript.320 Understanding MCP is essential for integrating Claude into your existing toolchain.

Why MCP matters for developers: Without MCP, Claude Code works with what is on your machine and the open web: files, shell commands, search and fetch. With MCP, Claude can query your production database, create Jira tickets, review GitHub PRs, check Sentry errors, and interact with any API your team uses, all from natural language requests. The protocol standardizes how AI tools connect to external services, preventing vendor lock-in. See Decision Frameworks for guidance on when to use MCP vs other extension mechanisms.

Remote MCP Support (June 2025)

Claude Code now supports remote MCP servers with native OAuth authentication.20 Connect to tools and data sources without managing local servers. Just authenticate once and Claude Code handles token refresh automatically.

# Connect to remote MCP server with OAuth
claude mcp add --transport http linear https://mcp.linear.app/mcp
# Then run /mcp inside Claude Code to sign in through the browser

Linear’s /mcp endpoint is its Streamable HTTP endpoint; Linear calls the older https://mcp.linear.app/sse a deprecated fallback.321

SDK mcp_authenticate redirectUri (v2.1.121+): The Agent SDK’s mcp_authenticate accepts a redirectUri parameter for completing OAuth on custom URI schemes — required for desktop apps and claude.ai connector flows that can’t use the default loopback redirect.151

claude.ai MCP Connectors (v2.1.46+)

Claude Code can now use MCP connectors configured in your claude.ai account. This bridges the gap between web and CLI: MCP servers you’ve set up through the claude.ai interface are automatically available in Claude Code without re-configuring them locally.93

Opt out: Set ENABLE_CLAUDEAI_MCP_SERVERS=false in your environment or settings.json env block to prevent claude.ai MCP servers from loading.102

Org-managed connectors (v2.1.243+): /mcp and /plugins mark claude.ai connectors whose authentication your organization manages with a managed label, so an admin-provisioned connector is distinguishable from one you connected yourself.247

MCP Tool Search (v2.1.7+)

As MCP servers grew in capability (some exposing 50+ tools), tool descriptions began consuming excessive context. MCP Tool Search solves this by dynamically loading tool descriptions only when needed, a form of lazy loading for AI tools.46423

Performance impact: Anthropic’s own evaluations of the API’s Tool Search Tool, published in November 2025, reported:320

  • Opus 4: 49% → 74% on MCP evaluations
  • Opus 4.5: 79.5% → 88.1% on MCP evaluations
  • Token overhead reduction: 85%

How it works: Tool search is on by default. MCP tools are deferred: Claude sees their names and loads a tool’s definition when it needs it. A 10% threshold applies only if you opt into ENABLE_TOOL_SEARCH=auto, where tools load up front until their definitions reach 10% of the context window.322

Defaults by provider (v2.1.304-305). Tool search is on by default behind a custom ANTHROPIC_BASE_URL since v2.1.304, with a 400 or 422 from the gateway retried without it. v2.1.305 fixed a 2.1.304 regression in which every request failed on Vertex, Bedrock, and other providers whose endpoint rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools: Claude Code now retries without it.275 On Google Cloud’s Agent Platform (Vertex AI) tool search is on by default for Opus 4.5, Sonnet 4.5, Haiku 4.5 and later; earlier models there load every tool up front, and ENABLE_TOOL_SEARCH=true does not change that. Microsoft Foundry deployments hosted on Azure reject tool search, so Claude Code loads tools up front there too.322

Configuration: set the ENABLE_TOOL_SEARCH environment variable, in your shell or under env in settings.json:322

{
  "env": { "ENABLE_TOOL_SEARCH": "auto:15" }
}

Values:

  • unset or true - Defer all MCP tools and load them on demand (the default)
  • auto - Load tools up front until their definitions reach 10% of the context window, then defer
  • auto:N - The same with your own percentage (0-100)
  • false - Load every tool definition up front, no deferral

Expert tip: With Tool Search enabled, you can connect to many more MCP servers without worrying about context limits. With deferral, servers do not compete for context.

MCP Always-Load Override (v2.1.121+)

Tool Search defers loading full descriptions until a tool is needed. For trusted servers whose tools you expect to use every turn, opt out per server with alwaysLoad: true: every tool from that server is loaded into the prompt at session start, no ToolSearch round-trip:151

{
  "mcpServers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "alwaysLoad": true
    }
  }
}

alwaysLoad: false (v2.1.287): setting the field to false defers all of that server’s tools behind tool search.229

MCP startup auto-retry (v2.1.121+): When an HTTP or SSE server’s first connection fails with a transient error, such as a 5xx response, a refused connection, or a timeout, Claude Code retries up to three times before marking the server as failed, which helps with a backend that is still starting. The retries do not apply to a stdio or WebSocket server’s first connection, nor to an authentication or not-found error, which needs a configuration change (an authentication error is retried when a headersHelper is the server’s only source of the Authorization header). In an interactive session, select Reconnect from the server’s menu in /mcp to start a failed stdio server again.151551

MCP Elicitation (v2.1.76+)

MCP servers can now request structured input from the user mid-task via interactive dialogs.116 When an MCP server needs additional information (e.g., selecting a branch, entering a project name, confirming an action), it sends an elicitation request that Claude Code renders as form fields or a browser URL.

Hook integration: Two new hook events — Elicitation (before the dialog appears) and ElicitationResult (after the user responds) — allow you to intercept, validate, or override elicitation responses programmatically. This enables enterprise workflows where MCP server prompts are pre-filled or constrained by policy.

URL mode (v2.1.281): on connections using the 2026-07-28 MCP protocol, a server can use URL-mode elicitation to ask Claude Code to open a browser-based flow. When the server has no way to confirm completion, no waiting dialog is left on screen.221 v2.1.287 adds URL prompts from servers on the 2025-11-25 protocol, for example to sign in. If a server no longer connects after the update, add "bareElicitationCapability": true to its MCP config entry.229230 As of v2.1.288, a URL prompt from a server that cannot report when you are done waits for you to choose “I’m done, continue” before the tool call continues, so you can finish in the browser first.231

MCP Result Size Override (v2.1.91+)

An oversized MCP result is saved to a file, not truncated: by default a successful result with no image content that runs past 50,000 characters is written to a file and replaced in the conversation with a file reference. A server can raise that threshold for one tool by setting _meta["anthropic/maxResultSizeChars"] in the tool’s tools/list entry, up to a ceiling of 500,000 characters.134424 For text content the annotation applies whatever MAX_MCP_OUTPUT_TOKENS is set to, and it suits tools whose output is large by nature, such as database schemas or full file trees. Tools that return image data stay under the token limit.

MCP Description Cap Override (v2.1.280+)

Separate from the result cap above, Claude Code caps the descriptive text a server contributes to your context: MCP tool descriptions and server instructions are truncated at 4,096 characters (v2.1.296+). CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH changes that number, and a description the model loads through tool search is cut at 16,384 characters (v2.1.295+).217235 Since v2.1.299, tool descriptions and server instructions from some of the MCP servers that Anthropic hosts at api.anthropic.com reach Claude in full, and the variable does not cut them.268269322

CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH=8192 claude

Three properties matter before you reach for it:

  • It is session-wide, not per-server. The changelog is explicit that the new cap applies “for every MCP server in the session.” You cannot raise the ceiling for one verbose server and hold the others at the default: raising it raises it for all of them.
  • One number sets both limits. The value replaces the 4,096-character up-front limit and the 16,384-character tool-search limit alike, so a number below 16,384 (the 8192 above, for example) raises the first while lowering the second.322
  • What it admits can become resident context. Server instructions always load at session start. Tool descriptions load up front only when Tool Search is not deferring them: when it is off (ENABLE_TOOL_SEARCH=false, or a provider or model that cannot use it), below the threshold in auto mode, or for a server set to alwaysLoad. Up-front descriptions stay in the prompt on every request whether or not the model ever calls those tools, so a higher cap across a dozen such servers is a standing context cost.220

When it is the right knob: a server whose tools genuinely need long descriptions to be callable correctly (a schema-heavy database server, an internal API surface with non-obvious argument semantics), and where truncation was visibly causing wrong calls. The symptom that justifies it is the model misusing a tool whose description ends mid-sentence in /mcp.

When it is the wrong knob: a server that is simply verbose. The cheaper fixes are still the better ones: MCP Tool Search is the fix for the up-front cost above, since it keeps tool definitions out of the prompt until Claude needs them, and trimming the server’s own descriptions fixes the cause rather than widening the allowance. Raise the cap when accuracy demands it, and check /context afterward to see what it cost.

Adding a Server: the Command Forms

claude mcp add no longer has an interactive wizard. Early releases had one (added in 0.2.32, deprecated in 0.2.108)7; today, run with no arguments, the command stops with error: missing required argument 'name'. It needs a name and a target: claude mcp add --transport http <name> <url> for a remote server, claude mcp add --transport stdio <name> -- <command> for a local one, or claude mcp add-json <name> '<json>' to paste a config written for another client.322 Since v2.1.327, claude mcp add-json <name> - reads the JSON from stdin, as in cat server.json | claude mcp add-json <name> -, which keeps a token off the command line; run it outside a Claude Code session.527533

Transport Types

HTTP (recommended for remote servers):

claude mcp add --transport http github https://api.githubcopilot.com/mcp/

# With authentication
claude mcp add --transport http api https://api.example.com/mcp \
  --header "Authorization: Bearer $API_TOKEN"

SSE (deprecated but functional):497

# my-sse-server and the URL are placeholders: use your server's name and SSE endpoint
claude mcp add --transport sse my-sse-server https://mcp.example.com/sse

# With an authentication header
claude mcp add --transport sse private-api https://api.company.com/sse \
  --header "X-API-Key: your-key-here"

The explicit flag is rarely needed even for a legacy server: an MCP server configured as http that only speaks the older HTTP+SSE transport falls back to SSE automatically, as the MCP spec describes (v2.1.265+).212 v2.1.274 closes a gap in that fallback (a legacy server that answers the first request with 422 or another 4xx error now connects too) and brings the last installs onto the modern client: Bedrock, Vertex, Foundry, and telemetry-disabled installs now default to the v2 MCP client and MCP 2026-07-28 protocol negotiation with direct HTTP servers, as other installs already did. Opt out with MCP_SDK_GENERATION=v1 or MCP_PROTOCOL_NEGOTIATION=legacy.215 v2.1.323 removed the v1 MCP client: its release notes say MCP_SDK_GENERATION=v1 now runs the v2 client in a compatibility mode, with the earlier handshake and relaxed OAuth sign-in checks. The env-vars page, read on November 25, 2026, still describes v1 as the runtime built on MCP TypeScript SDK 1.x.527533

Stdio (local servers):

# PostgreSQL
claude mcp add --transport stdio postgres \
  -- npx -y @bytebase/dbhub --dsn "postgresql://readonly:pass@localhost:5432/analytics"

# Custom server
claude mcp add --transport stdio custom -- python /path/to/server.py --port 8000

DBHub (@bytebase/dbhub) is the server Anthropic’s MCP docs use for databases; give it a read-only database user so the queries Claude runs cannot modify data.322

Native Windows no longer needs a wrapper for stdio servers: v2.1.119 removed the “Windows requires ‘cmd /c’ wrapper” config warning as a false positive, and today’s MCP docs ask for none. If one npx server still fails to start there, the wrapped form is:

claude mcp add --transport stdio my-server -- cmd /c npx -y airtable-mcp-server

WebSocket (remote servers that push events): a "type": "ws" entry goes in .mcp.json or through claude mcp add-json; --transport accepts only stdio, sse and http. Authentication is header-only, with no OAuth, so prefer HTTP when the server only answers requests.322

claude mcp add-json events-server \
  '{"type":"ws","url":"wss://mcp.example.com/socket","headers":{"Authorization":"Bearer YOUR_TOKEN"}}'

stdio protocol default (v2.1.292). Local (stdio) server connections negotiate MCP protocol version 2026-07-28 by default on every install, including Bedrock, Vertex, and Foundry; MCP_PROTOCOL_NEGOTIATION=legacy opts out and keeps every server on the earlier handshake. A stdio server that ignores the newer protocol check is remembered for 7 days after one slow connect and connected the older way without the wait. The MCP docs say Claude Code asks stdio servers for that revision by default, with legacy keeping every server on the earlier handshake. If a stdio channel server stops delivering messages after the upgrade, the docs note that a channel server on the 2026-07-28 revision is not registered as a channel on the v2 runtime, and legacy is the fix they give.233234237

Tool names over 128 characters (v2.1.292). An MCP tool whose name runs past 128 characters is left out, and an MCP error names it.233

Scope Management

MCP servers exist at three scopes with clear precedence (local overrides project overrides user):

Scope Storage Visibility Use Case
Local ~/.claude.json (project path) Just you, this project Personal API keys
Project .mcp.json Entire team via git Shared integrations
User ~/.claude.json (root) You, all projects Personal tools

Specify scope during installation:

claude mcp add --scope project --transport http github https://...
claude mcp add --scope user --transport stdio personal-tool -- ./my-tool

Configuration File Format

The .mcp.json file defines project-level servers:

{
  "mcpServers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    },
    "database": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@bytebase/dbhub", "--dsn", "${DATABASE_URL}"]
    },
    "sentry": {
      "type": "http",
      "url": "https://mcp.sentry.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${SENTRY_API_KEY}"
      }
    },
    "internal-api": {
      "type": "http",
      "url": "${API_BASE_URL:-https://api.example.com}/mcp",
      "headers": {
        "X-API-Key": "${INTERNAL_API_KEY}"
      }
    }
  }
}

Environment variables expand using ${VAR} syntax with optional defaults: ${VAR:-default}. Expansion works in a server’s command, args, env, url and headers values.322 As of v2.1.268 the resolved values stay out of display surfaces: /mcp and /plugin server details, claude mcp list and claude mcp get, and MCP login errors no longer show secrets resolved from ${VAR} placeholders, and plugin and marketplace errors no longer echo a token or password embedded in a git source URL.213

One type value is reserved for a different host: as of v2.1.274, "type": "sdk" entries in .mcp.json, settings files, plugins, and agent files are skipped with a warning: only an SDK host application can register in-process servers, so a CLI session cannot load them.215

MCP Management Commands

claude mcp list                      # View all configured servers
claude mcp get github                # Get specific server details
claude mcp remove github             # Remove a server
claude mcp reset-project-choices     # Reset project-scoped approvals
claude mcp add-from-claude-desktop   # Import from Claude Desktop
claude mcp add-json weather '{"type":"http","url":"..."}'  # Add from JSON
claude mcp login github              # Authenticate a server from the CLI (v2.1.186); --no-browser completes over SSH
claude mcp logout github             # Sign out of a server (v2.1.186)

# Within Claude Code REPL
> /mcp                               # Interactive MCP management
> /mcp reconnect all                 # Retry every failed or unauthenticated server (v2.1.284)

OAuth Authentication

For servers requiring OAuth:

> /mcp
# Follow browser-based OAuth flow
# Tokens stored securely and auto-refreshed
# Use "Clear authentication" to revoke access

As of v2.1.288, Claude Code shows a re-authenticate prompt when an MCP server asks for more OAuth scope during a tool call.231

Using MCP Resources and Prompts

Reference resources:

@github:issue://123
@postgres:schema://users
@docs:file://api/authentication

MCP prompts as slash commands:

/mcp__github__list_prs
/mcp__github__pr_review 456
/mcp__jira__create_issue "Bug title" high

Output Limits

Claude Code limits MCP output to prevent context overflow:

  • Warning threshold: 10,000 tokens
  • Default maximum: 25,000 tokens

Increase if needed:

export MAX_MCP_OUTPUT_TOKENS=50000

A successful result over the token limit is not cut off: Claude Code saves it to a file and gives Claude the path. The variable does not move the separate 50,000-character threshold described under MCP Result Size Override.424

Long MCP calls auto-background (v2.1.212). An MCP tool call in the main conversation that is still running after 2 minutes moves to the background instead of blocking the conversation: the session keeps working and picks up the result when the call finishes. Tune the threshold with CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS (milliseconds).186 Calls from subagents (except an MCP task in the cloud), calls to IDE servers, and calls in non-interactive mode (claude -p, unless CLAUDE_AUTO_BACKGROUND_TASKS=1 is set) never move to the background.553

MCP tasks (public beta, v2.1.304+). An MCP task is a long job, such as a report export or a build, that a server runs itself under the MCP tasks extension. Claude’s tool call returns once the server accepts the job, the footer counts 1 MCP task, Claude Code follows it by checking status with the server, and the transcript says when it ends; a task on a remote server keeps running after you exit, and resuming the same session picks it up.283284

Outside the cloud, a call becomes a task only when all of these hold:553

  • The server supports tasks and is an HTTP, stdio, or claude.ai connector server on protocol revision 2026-07-28 (MCP_SDK_GENERATION=v1 or MCP_PROTOCOL_NEGOTIATION=legacy rules that out).
  • The session is a kind that has them: terminal CLI sessions, Agent SDK sessions, and GitHub Actions runs on v2.1.304 or later; the VS Code extension and local desktop app sessions on v2.1.331 or later, in a session that fetches feature flags.
  • With feature-flag fetching off (Amazon Bedrock, or telemetry turned off), the session is an interactive terminal session. The docs give v2.1.317 as the floor for that case; the release notes list the change under 2.1.319.
  • The call comes from the main conversation, or from a non-fork subagent that the main conversation started, in an interactive terminal session that fetches feature flags, on v2.1.331 or later. A server defined in the subagent’s own file does not qualify.
  • The session is interactive, or it is an Agent SDK session or a claude -p run reading --input-format stream-json with CLAUDE_AUTO_BACKGROUND_TASKS=1. A one-shot claude -p "<prompt>" run does not get MCP tasks.

CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1 makes Claude wait for the result inside the call (the 2-minute auto-background still applies), CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=0 does the same, and CLAUDE_CODE_DISABLE_MCP_TASKS=1 turns tasks off.283284

Skills from MCP servers (public beta, v2.1.332). A server that implements MCP’s Skills extension can provide skills alongside its tools: claude.ai connectors, servers you add, and servers from plugins all qualify. A skill’s name is <server>:<skill>, so a pdf skill on a server you named docs runs as /docs:pdf report.pdf; connector and plugin servers add a prefix, as in claude_ai_Docs:pdf. In auto mode the classifier decides whether Claude may load an MCP skill, without reading it; in Manual or acceptEdits mode you see a prompt, and Allow this version skips it until the server changes the skill’s files. Rules use the Skill tool name: Skill(mcp__docs__*) in deny blocks a server’s skills, typed commands included, and in ask prompts each time. The release notes add the feature in 2.1.332, and the MCP docs give v2.1.331 as the floor.527533

Check the limits before you rely on it. MCP skills are on for Pro, Max, and Ultra sign-ins and off on Team and Enterprise until the organization turns them on. They need a Fable model, or Opus 4.8, Sonnet 5, Haiku 5.5, or later, on a direct connection to Anthropic with feature-flag fetching on, and they do not work in cloud sessions, claude -p, GitHub Actions, the Agent SDK, or through a cloud provider or a custom ANTHROPIC_BASE_URL. Anthropic scans skills from third-party Directory connectors added on claude.ai, and from custom connectors where an Enterprise organization keeps scanning on; it does not scan skills from other servers, including Directory servers added with claude mcp add. The docs’ warning applies: “Skills can direct Claude to run code. Servers can change skills at any time. Add only servers you trust.” On managed devices, disableDirectMcpSkills: true turns off skills from servers other than connectors.533

Server Purpose Key Capabilities
GitHub Repository management PRs, issues, CI/CD, code review
PostgreSQL Database access Query, schema inspection, data analysis
Sentry Error monitoring Error lookup, stack traces, deployment correlation
Linear Project management Issues, projects, sprints
Jira/Atlassian Enterprise PM Tickets, boards, workflows
Playwright Web automation E2E testing, accessibility trees
Stripe Payments Transaction lookup, customer data
Cloudflare Infrastructure DNS, workers, analytics
Supabase Backend-as-service Database, auth, storage
Context7 Documentation Real-time, version-specific library docs
Figma Dev Mode Design-to-code Layer hierarchy, auto-layout, tokens. Figma deepened its Claude Code integration in February 2026 with a native partnership.34106
Sequential Thinking Problem solving Dynamic, reflective problem-solving through a structured thinking process323
Magic UI Components React + Tailwind marketing components

Practical MCP Patterns

GitHub workflow:

> Review PR #456
> List all open issues assigned to me
> Create a bug issue for the authentication failure we found

Database queries:

> What's our total revenue this quarter?
> Show the schema for the users table
> Find customers with no purchases in 90 days

Error monitoring:

> What errors occurred in production today?
> Show the stack trace for error ABC123
> Which deployment introduced these errors?

Enterprise MCP Configuration

System administrators control MCP in two ways.324

A fixed server set (managed-mcp.json). The file uses the same format as a project .mcp.json. Deploying it takes exclusive control: every user gets these servers and cannot add others. An empty server map blocks MCP, apart from the few servers that load under exclusive control.

{
  "mcpServers": {
    "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" }
  }
}

Location:

  • macOS: /Library/Application Support/ClaudeCode/managed-mcp.json
  • Linux and WSL: /etc/claude-code/managed-mcp.json
  • Windows: C:\Program Files\ClaudeCode\managed-mcp.json

Allow and deny lists (managed settings). allowedMcpServers and deniedMcpServers are managed settings keys. Set them in managed-settings.json or server-managed settings, not in managed-mcp.json:

{
  "allowedMcpServers": [
    { "serverUrl": "https://api.githubcopilot.com/*" },
    { "serverCommand": ["npx", "-y", "@modelcontextprotocol/server-filesystem"] }
  ],
  "deniedMcpServers": [
    { "serverUrl": "https://*.untrusted.example.com/*" }
  ],
  "allowManagedMcpServersOnly": true
}

allowManagedMcpServersOnly: true makes the allowlist authoritative; without it, allowlists from every settings scope merge, so a user can broaden yours in their own settings. Match on serverUrl or serverCommand: a serverName entry matches the label a user chose, so it is not a security control. The denylist takes precedence. A serverCommand must match exactly, argument order included.

managedMcpServers: managed settings can provide servers (v2.1.259). Beyond filtering what users configure, the managedMcpServers managed-settings key delivers HTTP/SSE MCP servers to every user, with entries in the same shape as .mcp.json. Entries that name a command to run are skipped: managed provisioning covers remote servers only. Unlike managed-mcp.json, it takes no exclusive control: every user gets the servers you list and keeps their own.208324

allowedMcpServers does not filter managed-mcp.json (v2.1.259+). The allowlist does not apply to the servers in managed-mcp.json, with one exception: a managed server that uses ${VAR} expansion outside env (in its command, arguments, URL or headers) is checked; one that uses ${VAR} only in env is exempt from v2.1.305. A managed server that an allowlist alone was meant to keep off therefore loads, with no prompt or notice, unless that exception covers it. Add a deniedMcpServers entry to keep it off: the denylist applies to managed servers too.208425

Unreadable managed-mcp.json fails closed (v2.1.271): an enterprise managed-mcp.json that cannot be read or parsed keeps exclusive MCP control (user, project, and plugin servers do not load) and warns at startup, the same fail-closed posture as managed settings.213

MCP Apps (January 2026)

Anthropic launched MCP Apps, an extension to the Model Context Protocol that enables interactive tool UIs directly inside the Claude interface.69 MCP Apps let users view, edit, and interact with content from external services without leaving Claude, including Asana, Box, Canva, Figma, Hex, monday.com, and Slack. Any MCP server can supply an interactive UI that renders inside Claude. While MCP Apps currently appear in the claude.ai web interface, the underlying MCP protocol extensions are relevant to Claude Code’s MCP ecosystem as servers adopt the new interactive capabilities.

API Platform: Code Execution Tool v2 (September 2025)

Anthropic launched v2 of the Code Execution Tool in beta on September 2, 2025, replacing the original Python-only tool with Bash command execution and direct file manipulation.70 Key changes:

  • Run Bash commands, not only Python, in a sandboxed container426
  • Write code in other languages70
  • Programmatic tool calling (launched in beta on November 24, 2025): Claude can call tools from within code execution, reducing latency and token usage in multi-tool workflows426

Since February 17, 2026, neither the code execution tool nor programmatic tool calling requires a beta header.426

The v2 tool primarily affects API users but signals the direction for Claude Code’s cloud execution capabilities.


What Are Subagents?

Subagents are specialized Claude instances that handle complex tasks independently. They’re one of the most powerful features in Claude Code and one of the least understood. Mastering subagents dramatically expands what you can accomplish. See Decision Frameworks for guidance on Agent Teams vs Subagents vs Parallel Sessions.

Why subagents exist: Claude Code’s main conversation has a single context window. Everything you discuss, every file Claude reads, every tool output: all of it consumes that context. In long sessions, context fills up, Claude loses track of earlier decisions, and performance degrades. Subagents solve this by isolating work: exploration results don’t bloat your main conversation, only the summary returns. Claude runs subagents concurrently: 20 at once by default as of v2.1.217 (CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS), and a spawn past that limit fails until a running subagent finishes.2191325 As of v2.1.198 (July 1, 2026), subagents run in the background by default: Claude keeps working while they run and is notified when they finish. The same release makes the built-in Explore agent inherit the main session’s model instead of always running on Haiku (when the session runs Fable, Explore runs on Opus with a subscription, a Console account or an LLM gateway, and stays on the session’s model on Bedrock, Agent Platform, Foundry, Claude Platform on AWS and a Claude apps gateway), and subagents plus context compaction now inherit the session’s extended-thinking configuration, improving delegated-task quality.178325427

How Subagents Work

When Claude encounters a task that benefits from focused attention (deep exploration, multi-step analysis, specialized work), it can spawn a subagent. The subagent:495

  1. Starts with a fresh, isolated context window (a fork is the exception: it inherits the conversation so far)
  2. Has access to specified tools
  3. Runs on the model named per spawn, in its definition, or by CLAUDE_CODE_SUBAGENT_MODEL, otherwise on the main conversation’s model
  4. Returns results to the main conversation

The architecture prevents context overflow while enabling complex workflows. Nested spawning is on by default at depth 3 (v2.1.219) — subagents can spawn their own subagents, three levels down, and CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 turns nesting off.193

Set the depth explicitly if you depend on it. The default is 3 (v2.1.219+).

If your orchestration depends on how deep a delegated task can fan out — either because you need recursion or because you need to guarantee it can’t happen — pin CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH in settings rather than inheriting whatever the current release ships.168191193

As of v2.1.186, when a background subagent hits a tool that needs approval, the prompt surfaces in your main session instead of being auto-denied — the dialog shows which agent is asking, and Esc denies just that one tool. Esc and Ctrl+C also stay responsive while background agents are still running after the main turn ends.172

Session budgets and permission inheritance. A session has no cap on its total subagent spawns. What bounds a runaway loop is the concurrency cap, 20 subagents running at once by default, and the nesting depth, 3 layers below the main conversation by default (CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH). CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION is a no-op: v2.1.224 removed the 200-per-session spawn cap that v2.1.212 had set, and the variable went with it.186198318553 WebSearch keeps a per-session budget of 200 calls, and in an interactive session it refills at about 100 calls per hour (v2.1.290+): CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR sets the rate, and 0 turns the refill off. CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION raises the cap itself (it can be raised but not turned off), /clear resets the count, and in -p runs and the Agent SDK the limit applies per turn, with no refill unless you set a rate.232234315 The Task tool’s mode parameter is deprecated and ignored (v2.1.212), so a spawn cannot pick its own mode through that parameter and ask for a looser permission posture than the session that launched it; a subagent’s permissionMode frontmatter still sets its mode when the main conversation is in default or dontAsk mode, with the exceptions in the configuration table below.186495

Concurrency cap and real budget enforcement (v2.1.217). The cap on concurrently-running subagents is 20 by default, overridable via CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS, so one message cannot fan out unbounded background agents (sessions with ultracode active are exempt). --max-budget-usd covers background subagents: once the cap is reached, new spawns are denied and running background agents are halted.191325

Fork and background defaults (v2.1.302). Fork subagents (subagent_type: "fork"), which inherit the full conversation, are on by default in the terminal, claude -p, the Agent SDK, the desktop app, and VS Code; CLAUDE_CODE_FORK_SUBAGENT=0 turns them off everywhere, and claude mcp serve never offers them. The desktop app and VS Code, like the terminal, always run the main conversation’s subagents in the background; a subagent’s own Agent calls in claude -p, the SDK, the desktop app, and VS Code run in the foreground by default.272273 v2.1.307 tells fork subagents launched together which launch is their own, so forks are much less likely to start each other’s work; the sub-agents and env-vars pages describe fork mode as on by default from v2.1.302, and in an interactive terminal session from v2.1.232.275276325

Subagent models and summaries (v2.1.323 to v2.1.330). A subagent launched without a model stays on the model it started on when resumed, including after /model (v2.1.327). A subagent’s model fallback carries over: agents with no model and forks it then starts run on the fallback, and the agents they start use its Bedrock region (v2.1.330). With CLAUDE_CODE_FORK_SUBAGENT=0, subagents in claude -p, the Agent SDK, the desktop app, and VS Code wait for their own subagents by default, and claude -p counts a background subagent and those it waits for against one 10-minute wait; raise CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS for longer chains (v2.1.328). Subagent progress summaries are written from short notes, not the whole conversation, which uses far fewer tokens (third-party providers in v2.1.327, the Anthropic API in v2.1.328); CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES=1 turns the summaries and their requests off. A subagent resumed by a sibling’s message follows the session’s permission settings, so it may ask, or be refused where nobody can answer (v2.1.327). The subagentStatusLine setting is gone as of v2.1.323: subagent rows always use the default look.527

Dynamic workflow size (v2.1.219+). Dynamic workflows (the /workflows orchestration that fans out tens to hundreds of background agents) take an advisory size guideline, not an enforced cap. Set it with the “Dynamic workflow size” /config control (small / medium / large agent counts, or unrestricted) or the workflowSizeGuideline settings key in any settings file (user, project, or managed); the /config row is hidden while a settings file supplies the value, and a running workflow’s status line shows the current size with a pointer to /config. The default is medium, fewer than 10 agents, and small (fewer than 5) on a Pro plan (v2.1.271+).326 Because the guideline is advice rather than a limit, the real ceilings are the workflow runtime’s own: up to 16 agents at once by default (CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS, v2.1.269+) and 1,000 agents per run.179193325

Built-In Subagent Types

Explore (fast, read-only):

  • Model: the session’s model (v2.1.198+). When the session runs Fable, Explore runs on Opus with a subscription, a Console account or an LLM gateway, and stays on Fable on Bedrock, Agent Platform, Foundry, Claude Platform on AWS and a Claude apps gateway325427
  • Mode: Strictly read-only
  • Tools: read-only tools; Write and Edit are denied495
  • Thoroughness levels: Quick, Medium, Very thorough
  • Use for: Codebase exploration, finding files, understanding structure

General-purpose:

  • Model: Inherits from main conversation
  • Mode: Full read/write
  • Tools: All available tools
  • Use for: Complex research + modification tasks

Plan:

  • Model: Inherits from main conversation (or Opus with opusplan)
  • Mode: Read-only
  • Tools: read-only tools; Write and Edit are denied495
  • Use for: Planning complex implementations before execution

Helper agents (invoked automatically): claude is the catch-all for a task that fits no more specific agent, and the default agent of a dispatched background session; statusline-setup (Sonnet) runs when you use /statusline; claude-code-guide (Haiku) answers questions about Claude Code itself; web-fetch (Haiku, or the starting conversation’s model when it cannot use Haiku) reads web pages in sessions that use it, where the main conversation has no WebFetch tool of its own.325553

Triggering Subagents

Claude automatically delegates to subagents based on task type. You can also explicitly request them:

> Use the explore agent to find all authentication-related files

> Have a subagent analyze the database schema thoroughly

> Spawn an agent to research how error handling works in this codebase

Expert tip: For complex tasks, explicitly request subagent delegation. “Use an explore agent to find…” prevents context bloat in your main conversation.

Creating Custom Subagents

Define subagents in .claude/agents/ (project) or ~/.claude/agents/ (personal):

---
name: security-reviewer
description: Expert security code reviewer. Use proactively after any code changes to authentication, authorization, or data handling.
tools: Read, Grep, Glob, Bash
model: opus
permissionMode: plan
---

You are a senior security engineer reviewing code for vulnerabilities.

When invoked:
1. Identify the files that were recently changed
2. Analyze for OWASP Top 10 vulnerabilities
3. Check for secrets, hardcoded credentials, SQL injection
4. Report findings with severity levels and remediation steps

Focus on actionable security findings, not style issues.

When the main conversation is in auto, acceptEdits or bypassPermissions mode, Claude Code ignores permissionMode: plan and this reviewer runs in the main conversation’s mode; auto mode is the built-in starting mode for interactive terminal and VS Code sessions (v2.1.283+). The tools line is a separate control: it is an allowlist, so this reviewer gets Read, Grep, Glob and Bash and no Edit or Write tool.495

Configuration fields:

Field Required Options Purpose
name Yes Up to 256 characters, no : (for example code-reviewer or reviewer-v2) Unique identifier427
description Yes Natural language When to invoke (include a phrase like “use proactively” to encourage delegation)427
tools No Comma-separated Inherits every tool available to subagents if omitted495. Listing Agent lets the subagent spawn subagents of its own; an Agent(agent_type) type list restricts spawnable agents only for an agent run as the main thread with claude --agent (v2.1.63+; Task(...) still works as alias)325; as of v2.1.299 an MCP server named here contributes only its own tools, and a server whose name contains __ is listed as mcp__<whole name>__*268
disallowedTools No Comma-separated Tools to deny, removed from inherited or specified list. MCP server-level specs (mcp__server, mcp__server__*, mcp__*) are matched here (v2.1.178+).170 An entry with a specifier, such as Bash(git push *), still removes the whole tool550
model No sonnet, opus, haiku, fable, a full model ID, inherit When omitted, the model comes from the subagent model order: the per-spawn model, this field, CLAUDE_CODE_SUBAGENT_MODEL, then the main conversation’s model.325 As of v2.1.251 an explicit model: here, like an explicit per-spawn model, beats CLAUDE_CODE_SUBAGENT_MODEL, which now sets only the default203, unless v2.1.257’s CLAUDE_CODE_SUBAGENT_MODEL_FORCE is set, which overrides even this208
permissionMode No default (alias manual), acceptEdits, auto, dontAsk, bypassPermissions, plan Permission mode the subagent runs in; left unset, it inherits the main conversation’s mode. The main conversation’s mode decides whether your value is used. In default or dontAsk, the subagent runs in the mode you set, except that it keeps the main conversation’s mode when you set bypassPermissions (v2.1.267+) or set auto where auto mode is not available to it. In auto, acceptEdits or bypassPermissions, it runs in that same mode and your value is ignored. In plan, it stays in plan mode whichever value you set, unless it runs as an agent team teammate. Ignored for plugin subagents325495
effort No low, medium, high, xhigh, max Effort while this subagent runs; overrides the session level but not CLAUDE_CODE_EFFORT_LEVEL. Available levels depend on the model325
color No red, blue, green, yellow, purple, orange, pink, cyan Display color in the task list and transcript325
initialPrompt No Text Submitted as the first user turn when the agent runs as the main session agent (--agent or the agent setting). Ignored for plugin subagents325
maxTurns No Integer Maximum agentic turns before the subagent stops. As of v2.1.246 a subagent that hits the limit returns its output marked as partial, with a hint to continue it via SendMessage, instead of appearing finished246
memory No user, project, local Persistent memory scope for agent (v2.1.33+). Has no effect when auto memory is turned off (autoMemoryEnabled or CLAUDE_CODE_DISABLE_AUTO_MEMORY)495
skills No Comma-separated Auto-load skill content into subagent context at startup; as of v2.1.295 the first 32 distinct names are preloaded, each once, and a subagent with the Skill tool can still invoke the rest235237; a skill that sets disable-model-invocation: true cannot be preloaded495
mcpServers No Server names or inline definitions MCP servers available to this subagent. An inline definition in an agent file under a project’s .claude/agents/ loads only after you trust that folder (v2.1.238+). Ignored for plugin subagents427495
hooks No Hook configuration object Lifecycle hooks scoped to this subagent’s execution. Ignored for plugin subagents427
background No true, false Set to true to keep this subagent in the background even when Claude asks to wait for it; custom subagents Claude spawns from the main conversation already start in the background by default (v2.1.49+)550
isolation No worktree Run in temporary git worktree for isolated repo copy; by default the copy branches from your default branch, not the parent session’s HEAD (v2.1.49+)550
experimental.cacheTtl No "5m", "1h" Per-agent prompt-cache TTL, used when no subagent TTL setting is configured: CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL and the subagentPromptCacheTtl setting from v2.1.242’s precedence chain still win when set, and 1h is ignored while your Claude subscription is using usage credits (v2.1.248+)203495
omitClaudeMd No true, false Run the subagent without user, project, and local CLAUDE.md files; managed policy files still load, except for a subagent defined in managed settings. Ignored when the agent runs as the main session agent (--agent or the agent setting). Also accepted in --agents JSON (v2.1.271+)213495
autoCompactWindow No Token count Auto-compact this subagent earlier than the main conversation’s window; also accepted in --agents JSON (v2.1.296+; the sub-agents docs describe it as lowering the auto-compact window for this subagent “to a token count of 100000 or more”)235269550

Subagent effort (v2.1.316 to v2.1.317). A subagent’s effort comes, in order, from CLAUDE_CODE_EFFORT_LEVEL, a per-invocation effort parameter (v2.1.292+), the agent definition’s effort field, then CLAUDE_CODE_SUBAGENT_EFFORT (v2.1.315 per the env-vars page, 2.1.316 in the release notes547), which sets the level subagents run at when nothing else names one instead of inheriting the session’s. A subagent or teammate on a different model from the main conversation runs at that model’s saved effort level or its default rather than the session’s (v2.1.317). /tasks shows the model and effort each subagent ran on.281282

Restricting spawnable subagents (v2.1.33+, renamed v2.1.63): The tools field supports Agent(agent_type) syntax to limit which subagent types an agent can spawn. For example, tools: Read, Grep, Agent(Explore) allows the agent to use Read and Grep directly but only delegate to Explore-type subagents. The type list applies only to an agent running as the main thread with claude --agent. In a subagent definition, listing Agent lets that subagent spawn subagents of its own while the depth limit allows it, but the type list in the parentheses is ignored; leave Agent out of tools to stop a subagent from spawning at all.325 Note: In v2.1.63, the Task tool was renamed to Agent. Existing Task(...) references in settings and agent definitions still work as backwards-compatible aliases.104

CLI-Defined Subagents (v2.1.32+)

Define subagents as JSON at launch for quick testing or automation. These exist only for the session and aren’t saved to disk:87

claude --agents '{
  "code-reviewer": {
    "description": "Expert code reviewer. Use proactively after code changes.",
    "prompt": "You are a senior code reviewer. Focus on code quality and security.",
    "tools": ["Read", "Grep", "Glob", "Bash"],
    "model": "sonnet"
  }
}'

The --agents flag accepts JSON whose top-level keys are agent names. Each definition takes prompt (the system prompt) plus the frontmatter fields description, tools, disallowedTools, model, permissionMode, mcpServers, hooks, maxTurns, autoCompactWindow, skills, initialPrompt, memory, effort, background, omitClaudeMd and isolation; color and experimental are ignored.427 As of v2.1.281, --agents also accepts the path to a JSON file (with -p) as well as inline JSON, and allows an empty prompt.221

Subagent skill discovery fix (v2.1.133+): Earlier builds had a bug where subagents could not discover project, user, or plugin skills via the Skill tool, so spawned subagents only saw the global skill catalog. v2.1.133 fixes this; subagents now inherit the full skill graph available to the parent session, which matters for plugin authors who ship task-specific skills alongside agents.157

Managing Subagents

v2.1.198 removed the /agents wizard: ask Claude to create or manage subagents, or edit the files in .claude/agents/ directly. Typing /agents explains where the wizard went, and v2.1.281 removed the leftover “(removed)” entry from the command menu and /help.221

Partial results and per-agent model (v2.1.243–246): /tasks and the agent detail dialogs show the model and effort level each subagent ran on (v2.1.243). A subagent that stops at its maxTurns limit returns whatever it produced marked as partial, with a hint to continue it via SendMessage, instead of appearing finished (v2.1.246); treat a partial result as a checkpoint, not an answer.247246

Agent View (v2.1.139+): claude agents no longer lists subagent definitions (its v2.1.50 behavior). It opens Agent View, a research-preview operations screen for dispatching and monitoring many Claude Code sessions from one place. Use it to see which sessions are running, blocked, or complete; do not treat the view as a quality gate. Tests, reviews, and hook evidence still decide whether work is done.159 As of v2.1.287, an n:<text> filter matches session names and tasks, an active filter shows its matches inside collapsed sections, and Enter opens the first match. Replies you send from claude agents arrive as queued messages: a slash command other than /stop sent while a turn is running runs when the turn ends, and a reply that is exactly /stop stops the session at once.229230

v2.1.288 adds Ctrl+F to find a session by name and Alt+Up/Alt+Down to jump between groups; both, and rename, can be rebound in keybindings.json through the agents:find, agents:previousGroup, agents:nextGroup, and agents:rename actions, and Enter after an n: filter or Ctrl+F search opens the best name match.231234 As of v2.1.290, /model, /effort, and /rename sent from claude agents to a busy background session apply right away instead of when the turn ends, and a background session waiting on a /loop wakeup is left running through updates and low memory, where a restart could silently lose the wakeup.232 As of v2.1.299, /effort and /fast sent from agent view set what new sessions start with, a bare /model, /effort, or /fast there opens a picker, and the peek panel for a background session started with --safe-mode shows a safe-mode line.268

claude agents --json prints the active sessions as a JSON array for scripts. To see which subagents are configured, ask Claude in a session or read .claude/agents/ and ~/.claude/agents/.327

Remote control (v2.1.51+): The claude remote-control subcommand starts a Remote Control server (alias claude rc), so you can drive Claude Code on this machine from claude.ai or the Claude app. It runs in server mode, with no local interactive session:96327108254283270499

claude remote-control                      # Start a Remote Control server on this machine
claude remote-control --name "My Project"  # Custom session title visible in claude.ai/code (v2.1.69+)
claude remote-control --continue           # Bring back the session the last server in this directory started with; works for about four hours after that server stopped (v2.1.200+)
claude remote-control --settings <file>    # Apply a settings file to every session it starts; a changed file stops new sessions until you restart the command (v2.1.321)
# --sandbox and --no-sandbox were removed in v2.1.300 (they never had an effect); set sandbox.enabled in settings instead

Running Agents in Background

For long-running tasks:

> Run a thorough security review in the background

> /tasks   # Check status of running agents

A background agent’s results reach Claude as a completion notification when it finishes; /tasks shows its status in the meantime.325

What happens to a background session’s work (v2.1.221). Background sessions now commit and push to preserve work, open a draft PR only when the task actually calls for one (earlier behavior opened one routinely), follow the git instructions in your CLAUDE.md, and always end by reporting where the work lives — branch, commit, or PR. The practical consequence: an overnight background run no longer strands its output in an unpushed worktree, and your CLAUDE.md git conventions (commit-message format, branch naming, “never push to main”) now bind background sessions the same as interactive ones. If your CLAUDE.md says nothing about git, state your preference there rather than discovering the defaults from a surprise draft PR.196

Shell-side management (v2.1.251): the background-session subcommands claude attach <id>, claude logs, claude stop, claude respawn, and claude rm now appear in claude --help, and the --resume message for a running background session names the exact claude attach <id> command to run.203 As of v2.1.290, claude attach and claude logs take part of a running session’s name in place of the ID, as in claude logs "auth refactor".232234

Cross-Session Messaging (v2.1.224)

Claude Code sessions message each other across any of your machines (macOS, Linux and WSL 2 from v2.1.224; native Windows from v2.1.239 per the changelog, v2.1.234 per the docs page328): ListAgents discovers your other local sessions, cloud sessions, and spawned subagents by name, and SendMessage delivers to them. A session on your laptop can hand a result to the long-running session on your desktop without you ferrying it between terminals.

Anthropic ships a dedicated documentation page for the feature; the essentials:428

Seeing the machinery. /list-agents (alias /peers) shows every reachable agent: subagents in the current session, your agent-team teammates, your other local sessions including background ones, and, while Remote Control is connected, your sessions on other machines and your cloud sessions. /status shows a Peer address row with the session’s own inbox socket (uds:-prefixed), and every hook and Bash command receives it as CLAUDE_CODE_MESSAGING_SOCKET, exported before any hook runs including SessionStart.429 Sessions answer to the name from /rename or --name; without one Claude Code names the session itself, and an interactive session gets a directory-derived name like myapp-3f. ListAgents marks disconnected Remote Control sessions offline and labels your cloud sessions cloud (v2.1.229).428254 Names work directly since v2.1.232: type @ in the prompt to mention another live session and Claude reaches it via SendMessage; a bare name that exactly matches one live session delivers directly instead of asking you to confirm a [ref]; and interactive sessions on one machine keep unique names, so starting or renaming into a taken name yields a name-word-word variant and tells you. /config has rows for “Dialog expiry” and “Messages from your other sessions” (accept/hold/refuse), also since v2.1.232.252

What a message is. Plain text one Claude writes to another, never the sender’s conversation history or files, and permission boundaries stay per session. To move a conversation, resume the session instead. The receiving Claude reads it between tool calls during an active turn, or as a new turn when the session is idle, and a delivered message counts toward usage like a typed prompt.428

What arrives cannot act. Four rules bind the receiving side: a message can’t approve a pending permission prompt; the receiving Claude is instructed never to change permission settings, CLAUDE.md, or configuration because another session asked; a slash command in the text arrives as prose, never executed; and anything the message asks for still runs through the receiving session’s own permission prompts.428

Inbound control. Every arriving message is delivered, held, or refused. crossSessionInbound (accept / hold / refuse) sets the policy; with nothing set, Claude Code decides per message from the two sessions’ permission-mode classes: bypassing sessions form one class, everyone else the other. A session that prompts for permissions delivers each message and holds only one whose sender identifies itself as bypassing; a bypassing session holds everything except messages from senders that also bypass. In an interactive terminal session a held message opens an approval dialog; left unanswered past the dialogExpiry deadline (five minutes by default) the dialog closes and the message is dropped. At most 100 messages hold at once, and past that the oldest is dropped. Headless claude -p sessions bind inbox sockets too but cannot show the dialog, and neither can the VS Code extension or the Desktop app. A message the default holds there waits for the same dialogExpiry deadline, then is dropped and reported as expired to a sender Claude Code can reach (dialogExpiry: "never" keeps it until the session ends; a message held by an explicit hold does not expire). Unattended workers that should listen need crossSessionInbound: "accept" in their own --settings. Bare-mode sessions bind no socket and are unreachable.428

Idle notices (v2.1.236). SendMessage takes notify_when_idle: ask another Claude Code session on this machine to send one notice when it next goes idle. It is opt-in and one-shot, with no polling (the changelog entry lists macOS and Linux). Delivery honesty (v2.1.235 to v2.1.238): oversized messages are refused up front instead of silently dropped; sending to a session that refuses inbound messages (crossSessionInbound: "refuse") reports “refused” instead of a silent success; and a recipient whose inbox drops messages (rate limit or full queue) tells the sender.243 Since v2.1.239, ListAgents tells a session its own name (the one peers use to message it) and lists live teammates, and SendMessage to your own name says so instead of “no agent named …”.202 As of v2.1.247, peer messages arrive collapsed by default to a one-line Message from @<sender>: <first line> preview; Ctrl+O expands the full body.242

Transport. Same-machine messages travel over a per-session Unix socket (a named pipe on native Windows) and never touch Anthropic servers. A container session and a host session cannot reach each other, and neither can a WSL 2 session and a native Windows session on the same computer, while two sessions in the same container can. Messages to your other machines or to your cloud sessions route through Anthropic servers. SendMessage starts conversations with Remote Control sessions on other machines by name (v2.1.225+; ListAgents shows them as name [ref]).199 Cloud sessions are reachable too: Claude finds them while this session is connected to Remote Control, and the message goes straight to the cloud session. A cloud session cannot answer a message from another machine with SendMessage, so read its response in its transcript at claude.ai/code.430 isolatePeerMachines: true requires your approval before anything leaves the machine, even under bypassPermissions, and a true from any settings scope wins: a checked-in project file can tighten the boundary but never loosen it.430

Scripted inboxes. Because the socket path is exported, a hook or a Bash command can post back into its own session’s inbox; Claude Code delivers a message it verifies came from the session’s own child processes when no crossSessionInbound value applies. Verification is platform-dependent. Linux (and WSL 2) can verify by process evidence even after the posting process exits; macOS can only while it is running. Where that evidence is missing (macOS after the process exits, a container where Claude Code runs as process ID 1, native Windows), Claude Code verifies a child that opens its connection with the line {"type":"auth","token":"<token>"}, where the token is the exported CLAUDE_CODE_MESSAGING_TOKEN. On native Windows that line is required: a connection without it is closed and nothing is delivered. A message Claude Code can verify neither way is treated like any other that asserts no permission class, so a session that bypasses permission prompts holds it for your approval. For sandboxed commands, the sandbox’s Unix-socket settings (sandbox.network.allowUnixSockets and sandbox.network.allowAllUnixSockets) decide whether a Bash command can reach the socket.429

Loops and limits. Repeated messages are rate-limited per sender, identical repeats in a short window are dropped, and at most 50 accepted messages queue for Claude to read, so a message loop between two sessions stops on its own. Plain text only; structured agent-team protocol messages stay inside a team.430

Availability traps. Cross-session messaging works on native Windows (v2.1.239+), and as of v2.1.248 it also works between sessions on the same machine on Bedrock, Vertex, and Foundry, and when telemetry is disabled (CHANGELOG: “Added cross-session messaging (SendMessage / ListAgents) between sessions on the same machine on Bedrock, Vertex, and Foundry, and when telemetry is disabled”). Claude finds your sessions on other machines and your cloud sessions only from a session connected to Remote Control, which needs a claude.ai sign-in, so it cannot find them with an API key or on Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform or Microsoft Foundry.430256203 Diagnostic: if /list-agents is not recognized, the session lacks the feature; if it works but a send never arrives, something narrower applies (a deny rule or the receiver’s inbound controls). A message to a cloud session does arrive; what is missing is the reply, because a cloud session cannot answer with SendMessage. Org kill switch: deny SendMessage and ListAgents plus crossSessionInbound: "refuse" in managed settings. Denying SendMessage also removes subagent and agent-team messaging, and a refusing session looks unchanged to its peers.430

The trust design mirrors the v2.1.222 change that put outbound SendMessage payloads through the permission classifier in auto mode: both directions of cross-session traffic pass a checkpoint, because a message from another session is input, not authority.198 v2.1.271 applies the same principle to subagents in auto mode: a subagent reports back to its caller through a dedicated hand-back call the classifier reviews, instead of its last message being reviewed after the fact.213

Self-Hosted Runners (v2.1.224, Team/Enterprise)

claude self-hosted-runner turns your own machines or containers into a place Claude Code web, mobile, and desktop sessions can run. The cloud surfaces stop being tied to Anthropic-hosted environments: a session started from claude.ai or your phone can execute on hardware you control, with your network access, your credentials, and your compliance boundary. For teams whose repositories cannot leave their infrastructure, this is the piece that makes the web and mobile surfaces usable at all.198

As of v2.1.229, runner sessions honor server-supplied Claude Code hooks (matching managed-environment behavior), and Windows startup requires an explicit --base-dir: there is no default checkout directory on Windows.254 As of v2.1.248, claude self-hosted-runner --client-label <label> (or SELF_HOSTED_RUNNER_CLIENT_LABEL) overrides the label the runner registers with; the default is the hostname.203 As of v2.1.281, runners pass system prompts to Claude Code as private files instead of command-line text, so large prompts no longer fail the launch; a wrapper or command hook that appends --system-prompt or --append-system-prompt must switch to --system-prompt-file or --append-system-prompt-file.221

Since v2.1.299, claude self-hosted-runner orchestrator --shutdown-drain-sec <seconds> makes a SIGTERM stop polling and give the poll in flight and running spawn hooks up to that many seconds to finish.268 Since v2.1.311, --hold-idle-file <path> (or SELF_HOSTED_RUNNER_HOLD_IDLE_FILE) keeps an idle session on the runner while your host keeps changing that file, and --max-hold-min <n> releases it anyway after that many minutes (default 1440; 0 turns the hold off).281282 A claude -p run inside a runner session has its own session ID and transcript (v2.1.317+); CLAUDE_CODE_DISABLE_NESTED_SESSION_ID=1 makes it share the session’s. After a 5xx other than 501 or 529, or a heartbeat that gets no answer, a runner’s next poll and a session’s connections start fresh instead of reusing the failed connection (v2.1.317).281

The docs cover the feature as self-hosted environments (public beta on Team and Enterprise, off by default): an overview, a quickstart, session configuration, production deployment, session identity, and the runner reference.282

Runner changes in v2.1.323 through v2.1.332. New flags: --repository-folder names the folder sessions use for a repository at --capacity 1, --hook-label on the orchestrator hands chosen session labels to the spawn-runner hook, and claude --environment takes --metadata key=value to label a session for that hook (v2.1.328); --start-dir (or SELF_HOSTED_RUNNER_START_DIR) starts Claude’s work in a folder of a repository, and spawn-runner hooks now start while earlier ones still run, up to --hook-concurrency per orchestrator, 4 by default (v2.1.330). Linux and macOS sessions with no gh get a built-in gh api through Anthropic by default (--use-anthropic-gh false turns it off, v2.1.326); it is off by default where settings guard Claude’s GitHub tools by name (v2.1.328). A session whose session folder or repository path is a symbolic link is refused (v2.1.325), and under --trust-workspace false the repository’s settings can no longer disable your hooks or turn plugins on or off (v2.1.323). The CLAUDE_CODE_OAUTH_TOKEN prefix can end in oat02- as well as oat01-: update proxy rules and log scrubbers that match oat01-, and mask the whole value (v2.1.332). Two /metrics gauges time the path from work order to registration and to first session (v2.1.330).527

Advanced Patterns

Chained subagents:

> First use the code-analyzer subagent to find performance issues, then use the optimizer subagent to fix them

Parallel exploration:

> Have three explore agents search in parallel:
> 1. Authentication code
> 2. Database models
> 3. API routes

Resumable agents: Ask Claude to resume an agent by its ID or name; it uses the SendMessage tool to continue that agent with its context intact (agent teams do not need to be enabled for this):325

> Resume agent abc123 and continue the analysis

Async Subagents (December 2025)

Asynchronous subagents enable multitasking and parallel execution for large-scale projects:

> Run security review in the background while I continue frontend work
> /tasks                    # Check status of running agents

Claude reads a background task’s output file with the Read tool (v2.1.277+, which removed TaskOutputTool); the taskOutputMaxChars setting and TASK_MAX_OUTPUT_LENGTH env var have no effect.216

Permission Denial Resilience (v2.1.0+)

Starting in v2.1.0, subagents continue working after permission denials instead of stopping entirely. When a subagent hits a permissions wall, it tries alternative approaches automatically. The change makes autonomous workflows more resilient and reduces the need for human intervention.39423

Agent Teams (experimental)

Agent Teams coordinate multiple Claude Code instances working together. One session acts as the team lead, spawning teammates that work independently in their own context windows, communicating directly with each other via a shared mailbox and task list.7782

Unlike subagents (which run within a single session and only report back to the caller), teammates are full independent sessions that can message each other, challenge each other’s findings, and self-coordinate.

Enable in settings.json:502

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

Or via environment: export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

Architecture:

Component Role
Team lead Main session that creates the team, spawns teammates, coordinates work
Teammates Separate Claude Code instances working on assigned tasks
Task list Shared work items that teammates claim and complete (file-locked)
Mailbox Messaging system for inter-agent communication

Display modes:

Mode How Best For
in-process (default) All teammates in main terminal. Select one with the up and down arrow keys in the agent panel, then press Enter. Any terminal
tmux / iTerm2 Each teammate in its own split pane Visual monitoring

Configure in settings: "teammateMode": "in-process", "auto", "tmux" or "iterm2". Per session: claude --teammate-mode auto (an experimental flag that claude --help does not list).329

Key controls (in-process mode):329

  • Up/Down in the agent panel, then Enter: select a teammate and view its session; type to send it a message
  • x on a selected teammate: stop it
  • Shift+Tab while viewing a teammate: cycle that teammate’s permission mode
  • Ctrl+T: Toggle shared task list
  • Escape: clear the selection; while you are viewing a teammate’s transcript, it interrupts that teammate’s current turn

When to use agent teams vs subagents:

Subagents Agent Teams
Communication Report results back only Teammates message each other directly
Coordination Main agent manages all work Shared task list with self-coordination
Best for Focused tasks where only result matters Complex work requiring discussion and collaboration
Token cost Lower Higher (each teammate = separate context window)

Best use cases:

  • Research and review (multiple perspectives simultaneously)
  • New modules/features (teammates each own separate pieces)
  • Debugging with competing hypotheses (test different theories in parallel)
  • Cross-layer coordination (frontend, backend, tests each owned by different teammate)

Plan approval for teammates: For complex or risky tasks, have teammates plan before implementing. A teammate spawned while the lead is in plan mode also works in plan mode until its plan is ready, so switch the lead into plan mode first, then ask for the teammate:329

Spawn an architect teammate to refactor the authentication module.

When the teammate finishes planning it sends a plan approval request. Claude Code approves it as soon as it arrives unless you changed that teammate’s permission mode; to have the lead review a plan, open the teammate’s session and press Shift+Tab to put it in plan mode. When the lead does review a plan, it approves it or sends it back on its own; you are not asked. Steer it with criteria: “only approve plans that include test coverage” or “reject plans that modify the database schema.”329

Example prompts:

Create an agent team to review PR #142. Spawn three reviewers:

- One focused on security implications
- One checking performance impact
- One validating test coverage
Spawn a team with 4 teammates to refactor these modules in parallel.
Use Sonnet for each teammate.

Storage: Team configs live at ~/.claude/teams/{team-name}/config.json (members array with name, agent ID, agent type). Task lists at ~/.claude/tasks/{team-name}/. Tasks support dependencies: blocked tasks unblock automatically when their dependencies complete.82

Hook integration: Use TeammateIdle (exit code 2 to send feedback and keep teammate working) and TaskCompleted (exit code 2 to prevent completion) hooks to enforce quality gates on teammates.

Limitations (experimental):

  • No session resumption for in-process teammates (/resume won’t restore them)
  • One team per session; no nested teams
  • Teammates can’t spawn their own teams
  • Split panes require tmux or iTerm2; the default in-process mode works in any terminal
  • No per-teammate permission modes at spawn: a new teammate starts with the lead’s mode, except that when the lead is in dontAsk mode the teammate starts in Manual mode553
  • Token-intensive: each teammate is a separate Claude instance

Claude Tag (June 2026): the Slack-Native Sibling

Claude Tag is a separate Anthropic product, not a Claude Code feature, but it shares enough managed-agent DNA to be worth knowing if you run Claude Code on a team. Where Claude Code is a terminal CLI you drive yourself, Claude Tag lives in Slack: a teammate tags @Claude in a channel to hand off a task, and the agent breaks it into stages, works through them on its own, and posts the result back to the channel.174

The design is multiplayer rather than per-user. A company shares one Claude identity in Slack, so any member can pick up a task another member started or hand off half-finished work, instead of each person keeping a private chat. Administrators scope which tools, data sources, and memories Claude can reach and in which channels, with per-channel and per-organization token-spend limits plus activity logs.174

Its docs call it a public beta, available on Team and Enterprise plans and not on individual plans (Free, Pro, Max, or Ultra) or third-party deployments.552

How it relates to Claude Code: same model family and agentic posture, different surface and control model. Claude Code is the developer’s local CLI with hooks, MCP, skills, and subagents; Claude Tag is a managed, asynchronous, shared agent for team work inside Slack. Reach for Claude Code when you want fine-grained local control of a coding session, and Claude Tag when you want a delegatable teammate inside your team’s existing workflow.

Agent Skills (December 2025)

Agent Skills are organized folders of instructions, scripts, and resources that agents discover and load dynamically.23 They provide composable, portable domain expertise:

.claude/skills/
├── security-review/
│   ├── SKILL.md           # Instructions and prompts
│   ├── checklist.md       # Security checklist
│   └── common-vulns.sh    # Detection scripts
└── performance-audit/
    ├── SKILL.md
    └── profiling-guide.md

Every skill needs a SKILL.md file. Custom commands have been merged into skills: .claude/commands/deploy.md and .claude/skills/deploy/SKILL.md both create /deploy and work the same way. You can invoke either by name, and Claude can load either when the task fits; a skill adds a directory for supporting files and frontmatter that controls who may invoke it.330 The Claude Agent SDK (renamed from Claude Code SDK) provides the framework for building custom agents with skill support.24


What Is Extended Thinking Mode?

Extended thinking gives Claude more time to reason through complex problems before responding. It’s particularly valuable for architectural decisions, debugging tricky issues, and tasks requiring careful analysis.

Current State

Model support today: the Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning; fixed thinking budgets do not apply to them. Thinking cannot be turned off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models. The effort ladder is low/medium/high/xhigh/max (Opus 4.6 and Sonnet 4.6 have no xhigh). The paragraphs below about Opus 4.7 and the 4.6 models date from April 2026 and describe those older models.331

Opus 4.7 changed how reasoning works in Claude Code. Opus 4.7 uses adaptive reasoning exclusively — there are no fixed thinking budgets, and MAX_THINKING_TOKENS and CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING do not apply to it.145 Instead, the model decides whether and how much to think on each step based on task complexity, guided by your /effort setting.

On Opus 4.6 and Sonnet 4.6, adaptive reasoning is the default. Set CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 to fall back to a fixed thinking budget, which MAX_THINKING_TOKENS then sets. With that variable unset the budget is the cap: one token below the request’s max output tokens, which is 31,999 when that limit is 32,000.61145318

Turning thinking off entirely (v2.1.166+). For models that think by default, MAX_THINKING_TOKENS=0, the --thinking disabled flag, and the per-model thinking toggle now actually disable thinking rather than being ignored. Use this when you want a fast, non-reasoning pass on a model that would otherwise always think.260 Exception: Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models. Thinking cannot be turned off on them; the session toggle, alwaysThinkingEnabled, and MAX_THINKING_TOKENS=0 have no effect, the toggle and the /config row read Thinking can't be turned off, and the model decides per step how much to think based on the effort level. On third-party providers, MAX_THINKING_TOKENS=0 omits the thinking parameter instead, and adaptive-reasoning models may still think.331498

Effort levels:

  • Fable models, Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8 and Opus 4.7: low, medium, high, xhigh, max.
  • Opus 4.6 and Sonnet 4.6: low, medium, high, max.
  • Defaults are per model: medium on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5; xhigh on Opus 4.7; high on the others.331
  • If you set a level the active model doesn’t support, Claude Code falls back to the highest supported level at or below your setting (e.g., xhigh runs as high on Opus 4.6).145

The “ultrathink” keyword adds an in-context instruction to reason more on that turn. Since v2.1.311, typed in the interactive terminal it also raises that turn to xhigh effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and Fable 5.1 through Anthropic’s API, and typed while Claude is working it raises the rest of that turn; the word shows in rainbow colors only where it can raise effort, so it does not raise effort when quoted, inside a path, in a prompt that starts with /, or where an effort cap (CLAUDE_CODE_EFFORT_LEVEL, maxEffortLevel, an organization limit) sits below xhigh. VS Code does the same from v2.1.316, and CLAUDE_CODE_DISABLE_ULTRATHINK=1 turns the keyword off (v2.1.316). On Amazon Bedrock and other providers where the word cannot raise a turn, set the effort level instead.145281282331498

Legacy note: Opus 4 and Opus 4.1 are retired on the Claude API (June 15 and August 5, 2026) and are not offered in Claude Code on the first-party API. Anthropic’s deprecations page names Opus 4.8 as the replacement for both.107534

Supported Models

  • Fable 5.2, Fable 5.1, Fable 5 (adaptive reasoning only; thinking cannot be turned off)331
  • Claude Opus 5.5, Sonnet 5.5, Haiku 5.5 (adaptive reasoning only; thinking cannot be turned off; Haiku 5.5 from v2.1.293)236331
  • Claude Opus 5, Sonnet 5, Opus 4.8, Opus 4.7 (adaptive reasoning only; no fixed thinking budgets)331
  • Claude Opus 4.6 (adaptive reasoning by default; a fixed thinking budget with CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1)
  • Claude Sonnet 4.6 (adaptive reasoning by default; a fixed thinking budget with CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1)
  • Claude Opus 4.5 (fixed thinking budget; deprecated November 23, 2026, retiring from the Claude API on January 22, 2027)534
  • Claude Sonnet 4.5 (fixed thinking budget; retiring from the Claude API on November 30, 2026)534
  • Claude Haiku 4.5 (fixed thinking budget)

Controlling Extended Thinking

On current models (the Fable models, Opus 4.7 and later, Sonnet 5 and later, Haiku 5.5) you control thinking with the effort level: /effort low for quick edits, /effort high or ultrathink for hard problems. The toggle and the budgets below apply only to older models: fixed budgets to Opus 4.5, Sonnet 4.5 and Haiku 4.5, and to Opus 4.6 and Sonnet 4.6 when CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 is set. On an adaptive-reasoning model Claude Code ignores a positive MAX_THINKING_TOKENS value.331318

Quick toggle during session:

Press Option+T (macOS) or Alt+T (Windows/Linux) to toggle thinking on/off

Note: Anthropic changed the thinking toggle from Tab to Alt+T to avoid accidental triggers (v2.0.72).31423 The toggle has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models.331

Via /config: Run /config and toggle thinking (saved as alwaysThinkingEnabled). On Opus 5.5, Sonnet 5.5, Haiku 5.5 and the Fable models the row reads Thinking can't be turned off.331

Environment variable (permanent, fixed-budget models only):

# Set a custom budget on a fixed-budget model
export MAX_THINKING_TOKENS=8000
claude

# A larger budget for complex tasks (capped one token below the max output tokens)
export MAX_THINKING_TOKENS=63999
claude

Disable for cost savings: On a fixed-budget model, for simpler tasks where deep reasoning isn’t needed, you can reduce costs by turning thinking off in /config or lowering the budget. On current models, lower the effort level instead:

export MAX_THINKING_TOKENS=8000  # Fixed-budget models: a smaller budget

Thinking Token Budgets

These budgets apply to fixed-budget models only (Opus 4.5, Sonnet 4.5, Haiku 4.5, and Opus 4.6 and Sonnet 4.6 with adaptive reasoning disabled). Claude Code never sets a budget below 1,024 and caps it one token below the request’s max output tokens; with MAX_THINKING_TOKENS unset, a fixed-budget model uses that cap.318

Budget Use Case
1,024 (minimum) Simple reasoning tasks
8,000 Most coding tasks (cost-efficient)
31,999 (the cap with a 32,000-token output limit) Complex reasoning, architecture decisions
63,999 Exhaustive analysis (needs an output limit of at least 64,000 tokens)

Cost consideration: Anthropic bills thinking tokens as output tokens, and you are charged for all of them even when the thinking is collapsed or redacted. On a fixed-budget model you can save costs on simple operations by reducing the budget or turning thinking off; on current models the effort level does that job.331

How It Works

When thinking is enabled, Claude performs internal reasoning that influences the answer but does not appear in the output. The API returns each thinking block with a signature field, an encrypted copy of the full reasoning, and Claude Code passes the blocks back unchanged on later turns.332

In multi-turn conversations with tool use, thinking blocks must be passed back to the API to preserve reasoning continuity. Claude Code handles this automatically.

When to Consider Disabling/Reducing

On current models, lower the effort level instead of disabling thinking. On a fixed-budget model, consider a smaller budget or turning thinking off for:

  • Simple file edits
  • Routine refactoring
  • Quick questions
  • Code formatting
  • High-volume operations where costs add up

Cache Behavior

Treat a change to the thinking configuration as starting the prompt cache over. At the API level the thinking configuration and the resolved effort level are rendered into the prompt, so switching thinking on or off or changing the budget makes message-level cache breakpoints miss, and tool and system-prompt breakpoints can miss too. In Claude Code, changing the effort level mid-session recomputes the whole request on most models; with an API key or a Claude subscription the cache stays intact on Fable 5.1 and later, Opus 5.5, Sonnet 5.5 and Haiku 5.5.332


Output Styles

Output styles customize how Claude presents information, which is useful for learning, documentation, or specific team preferences.11

Built-In Styles

Style Purpose
Default Claude Code’s standard software engineering instructions
Proactive Starts work right away and makes reasonable assumptions instead of asking about routine decisions
Explanatory Detailed explanations with reasoning
Learning Educational format with concepts explained
Concise Leads with the result; no preamble or narration

Each of the four other built-in styles keeps the Default instructions and adds its own.333

Setting Output Style

> /output-style Explanatory
> /output-style Learning

Or via settings:

{
  "outputStyle": "Explanatory"
}

The settings value is case-sensitive: explanatory gives you the Default style. /output-style ignores case.333

Custom Output Styles

Create a Markdown file in .claude/output-styles/ (project) or ~/.claude/output-styles/ (user). The file name is the style name unless the frontmatter sets name. A custom style replaces Claude Code’s coding instructions unless you set keep-coding-instructions: true:333

---
name: my-style
description: Explain the why behind each decision
keep-coding-instructions: true
---

## Instructions

- Always explain the WHY behind each decision
- Include relevant documentation links
- Format code examples with comments
- End with a "What to do next" section

## Format
Use markdown headers for organization.
Keep explanations under 200 words per section.

Invoke with /output-style my-style.

Deprecation and revival: /output-style was deprecated in v2.1.73 in favor of /config and revived in v2.1.269: /output-style [name] lists and switches output styles again, including over Remote Control and in cloud and other headless sessions, where the /config panel is out of reach.113213

As of v2.1.237, a built-in “Concise” style ships with Claude Code: Claude leads with results and skips preamble and narration, while doing the work just as thoroughly. Select it under Output style in /config.243


Slash Commands

Slash commands provide quick access to Claude Code features and enable custom workflows. They’re faster than typing out full prompts for common operations.

As of v2.1.265, a slash command typed mid-prompt gets a real suggestion list: matches show in a list instead of a single suggestion, Tab opens the list outside fullscreen, and a plugin skill is found by its bare name.212

Built-In Command Reference

This table covers the commands this guide uses; the full list is in the commands reference.334

Command Purpose Notes
/init Initialize project with CLAUDE.md Creates memory file with project structure
/memory Manage memory Edit CLAUDE.md files, turn auto memory on or off, and view auto memory entries (v2.1.59+)334
/copy Copy code blocks Interactive picker for individual code blocks or full response; “Always copy full response” option skips picker for future calls; w key writes selections directly to files—useful over SSH; /copy N copies the Nth-latest assistant response (v2.1.59+, enhanced v2.1.63, v2.1.72, v2.1.77)102112117
/context View context window usage Shows visual breakdown with actionable suggestions (v2.1.74+)114
/compact Condense conversation history Add focus: /compact focus on tests
/usage Session cost, plan usage limits, and activity stats One dialog since v2.1.118; /cost and /stats open it on their tabs. On a Pro, Max, Ultra, Team or Enterprise plan it breaks down what counts against your plan limits, with a per-model and cache-hit breakdown for subscribers (v2.1.92+). It also shows a Loops breakdown of /loop tasks (run count, total and per-run tokens, last run; v2.1.243), a usage-credits spend row for Team and Enterprise members (v2.1.236), and a spend limit bar behind a Claude apps gateway with spend limits (v2.1.251). Its warnings for max effort, workflows, always-on context and large tool results (v2.1.299) are each a one-line fix that names its source, and f applies the fixes, which also appear in VS Code and /doctor (v2.1.305). In VS Code the Account & usage dialog attributes usage to cache misses, long context, subagents, and each skill, agent, plugin and MCP server over the last 24 hours or 7 days (v2.1.174+)135149169247243203268275431
/usage-credits Configure or request usage credits Renamed from /extra-usage in v2.1.144. As of v2.1.248 it is also available to Enterprise organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials, so members can request a higher usage limit from their admin; v2.1.251 fixes the $0-cap case (offers to ask the admin instead of claiming a cap was reached) and stops rate-limit and usage messages from recommending the command where an org hides it (DISABLE_EXTRA_USAGE_COMMAND)203
/design Publish a canvas of editable UI artboards Claude Design template, built on artifacts: describe a brief, pick an artboard, have Claude implement it. Needs v2.1.265 or later and a session where artifacts are available (Pro, Max, Ultra, Team, and Enterprise); on Team and Enterprise the template also has to be turned on for the organization.335 Standalone Claude Design (claude.ai/design) closes by December 14, 2026; since v2.1.302 /design-sync and /design-login say so, and cloud sessions are pointed at claude.ai/design/settings for consent and revocation202272
/slides Create a Claude Slides deck as an artifact Run it with a brief (/slides a quarterly review of the platform team's reliability work, for the engineering all-hands); without one, Claude asks what the deck covers before creating anything. Needs v2.1.265 or later, a session where artifacts are available, and an account where the Slides template is available; otherwise the command does not appear. On Team and Enterprise plans an Owner turns each template on under Organization settings > Artifacts. Artifacts are not available on Bedrock, Agent Platform, Foundry, or Claude Platform on AWS, so the command is not either335
/diff Fullscreen diff panel v2.1.260: opens beside the conversation in fullscreen mode and shows your uncommitted changes live as Claude edits; toggle with /diff. Its detail view gained keyboard scrolling in v2.1.149 and raw-git-blob rendering, ignoring diff drivers and textconv, in v2.1.222209431
/cost Typing shortcut → opens /usage cost tab Pre-v2.1.118 standalone command; still works as a shortcut
/stats Typing shortcut → opens /usage stats tab Pre-v2.1.118 standalone command; still works as a shortcut
/theme Change the color theme; manage named custom themes Pick auto, light, dark, colorblind-accessible or ANSI themes; create and switch custom themes from the picker, or hand-edit ~/.claude/themes/*.json; plugins ship a themes/ directory (v2.1.118+)149. Inside the picker, Ctrl+T toggles syntax highlighting for code blocks334
/permissions Manage permission settings Interactive interface. v2.1.246 adds an Auto mode tab (shown only when auto mode is available) for viewing and editing the classifier’s allow, soft_deny, hard_deny, and environment entries per scope; managed and --settings entries are read-only, edits save to ~/.claude/settings.json, and the first rule you add to a section inserts "$defaults" so the built-in rules stay in effect246244
/auto-mode-setup Teach auto mode your environment Guided setup that reads the project and recent sessions and drafts autoMode.environment entries (trust and sensitivity slots) for ~/.claude/settings.json. Needs v2.1.228 on Pro, Max, Ultra, and Team (v2.1.233 on native Windows) and v2.1.283 on Enterprise or with a Console API key; with telemetry off, on a third-party provider, or on the Claude apps gateway it needs v2.1.304. See Auto Mode275276551
/mcp Configure MCP servers Also /mcp enable, /mcp disable; /mcp reconnect all (v2.1.284) retries every server that failed to connect or needs authentication225
/hooks View hook configuration Debug hooks; since v2.1.286 it opens on one list of your configured hooks grouped by event228
/config Open settings interface Full configuration
/resume Resume a conversation /resume opens the session picker; /resume <session-id> or /resume session-name resumes that conversation; /continue is an alias500. Since v2.1.304, Pro and Max plans see a warning when resuming an inactive conversation would use a noticeable share of the 5-hour usage limit, with the option to start a new conversation instead275
/rename Name current session /rename feature-auth
/branch Branch conversation Explore alternatives without losing context (renamed from /fork in v2.1.77)117
/fork Copy conversation into a new background session Repurposed in v2.1.212: the copy gets its own row in claude agents and runs independently; no longer an in-session alias186
/subtask In-session fork New name (v2.1.212) for the old in-session /fork behavior186
/clear Clear conversation history Fresh start
/powerup Interactive feature lessons Animated demos teaching Claude Code features (v2.1.90+)133
/ide Connect to IDE VS Code/JetBrains integration
/sandbox Enable sandbox mode Isolation
/status View session status Model, settings, etc. v2.1.243 adds a Skipped sources line listing managed settings sources present but not applied because a higher-precedence managed source is active, and a line showing whether GitHub is connected for cloud sessions (Pro/Max), pointing to /web-setup when it is not; as of v2.1.274 that line reads “Cloud sessions”, the product phrase that replaced “Claude Code on the web”; v2.1.278 adds an Auto mode server row: Enabled while this session’s auto-mode classifier runs on the server, Disabled once it has fallen back to billed local classifier requests; v2.1.327 adds a list of broken agent, skill, command, and output style files, keybinding errors, an unavailable sandbox, ignored permission settings, and hook matchers that never match, and v2.1.326 a row that says when your provider or a variable such as DISABLE_TELEMETRY turns features off247215216527
/statusline Customize status line Configure display. v2.1.251 adds two status-line JSON fields: rate_limits.spend_limit (used_percentage runs 0 to 100 and above 100 once you exceed the limit, plus resets_at; only behind a Claude apps gateway with spend limits, and each rate_limits window may be independently absent) and a prompt_cache object (hit ratio, misses, warm/cold, TTL; absent until the main conversation’s first API response; computed from the API’s cache token counts, so it works on every provider)203206
/model Change AI model /model opus; /model fable selects Fable 5.2 from v2.1.321; since v2.1.319 older models sit under a “More models” row, unnumbered below the rest from v2.1.321283
/advisor Set, show, or turn off the advisor model, a server-side second model Claude consults at decision points (experimental) /advisor opus, /advisor off; text form in headless and desktop sessions since v2.1.260; on Claude Platform on AWS and Claude Models on Google Cloud (Anthropic managed) it needs v2.1.300 or later271553
/fast Toggle fast mode Same model, up to 2.5× output speed at 2× price (v2.1.36+)501. Applies to Fable 5.2 ($16/$80 per MTok, v2.1.321+; on Google Cloud’s Agent Platform from v2.1.322), Opus 5.5 (the fast-mode default since v2.1.280, $8/$40 per MTok) and Opus 5 and Opus 4.8 ($10/$50; Opus 4.8 deprecated October 30, 2026, removed November 30, 2026); v2.1.219 removed Opus 4.7 from fast mode193195220281284. Reaches Remote sessions (cloud and self-hosted runners) as of v2.1.271213
/output-style [name] List and switch output styles Deprecated v2.1.73-v2.1.268 in favor of /config; revived v2.1.269; works over Remote Control and in cloud and other headless sessions113213
/agents Removed in v2.1.198 Ask Claude to create or manage subagents, or edit .claude/agents/ directly; typing /agents explains where the wizard went221
/skills List installed skills Type-to-filter search box for navigating long lists (v2.1.121+)151; press t to sort by token count; the combined description and when_to_use text is truncated at 1,536 characters in the skill listing330
/skill-doctor Audit loaded skills Shows which loaded skills go unused and what each costs in context, so you can prune them (changelog: v2.1.261; the docs give v2.1.252 as the minimum and require feature-flag fetching)211431
/tasks Background work: commands and subagents View and manage background work in the session, including subagents that have finished; /bashes is an alias334. As of v2.1.243 each subagent’s row and detail dialog names the model and effort level it ran on247; v2.1.319 adds an “Earlier in this session” row of finished subagents you can reopen and message after they leave the list or you restart283; v2.1.329 adds the session’s scheduled tasks, /loop wakeups, the goal, and the conversation’s forks, with x to stop one after asking, and one count in the header and footer covering shells, monitors, MCP calls, agents, workflows, and scheduled tasks527
/goal Set a completion condition Keep Claude working toward a target until the condition is satisfied (v2.1.139+). Since v2.1.234 a goal kept waiting 30+ minutes by background tasks gets checked on rather than waiting forever, and a goal clears itself with a notice when a turn dies on an unrecoverable error; as of v2.1.246 an idle session starts at most three check-ins per goal on long-running background work, and your next message allows three more250246
/export Export conversation Save transcript
/add-dir Add working directories Expand access. As of v2.1.257, --add-dir, /add-dir, and additionalDirectories refuse network paths (Windows UNC shares, /net/<host> automounts) with a message; on Windows, map the share to a drive letter first208. As of v2.1.326, --add-dir and /add-dir in a local terminal session show the trust prompt for a folder you have not trusted yet, and claude --bg refuses such a folder527
/cd Move the session to another working directory Keeps the prompt cache (v2.1.169+). As of v2.1.246 the new directory’s project settings, hooks, .mcp.json servers (behind the usual approval prompt), skills, and agents take effect right after the move rather than on --resume259246
/web-setup Connect GitHub for cloud sessions Sends your local gh CLI token to your Claude account so cloud sessions can reach any repository that token can access; on Team and Enterprise plans the command is hidden until the organization turns on Quick setup, which is off by default, and organizations with Zero Data Retention or the HIPAA configuration cannot use it or other cloud session features247244215554
/terminal-setup Configure terminal Installs a Shift+Enter newline binding in VS Code, Cursor, Devin Desktop, Alacritty or Zed; in Apple Terminal it turns off the audible bell and, on macOS 26 and earlier, enables “Use Option as Meta Key” so Option+Enter inserts a newline; in iTerm2 it turns on clipboard access so /copy works17553
/login Authenticate in session Switch accounts or re-auth. As of v2.1.206, supports logging in through Anthropic-operated public gateway endpoints; the Anthropic Console path offers a keyless “Sign in with your Console account” option (recommended) alongside creating an API key, for organizations that do not allow API keys (v2.1.242 or later per the authentication docs; listed under 2.1.243 in the release notes)181247383
/commit-push-pr Commit, push, and open a PR Not in the commands reference. The public source is the commit-commands plugin in Anthropic’s official marketplace (/plugin install commit-commands@claude-plugins-official), whose README describes /commit-push-pr as a command that “commits, pushes, and creates a pull request in one step”.432 The changelog names the command twice: v2.1.206 auto-allows git push to the configured push remote (remote.pushDefault or the sole remote), not just origin, and v2.1.229 stops auto-approving git/gh commands that carry dangerous flags (--force, --amend, --no-verify, etc.)181254
/logout Sign out in session Clear credentials
/doctor Diagnose and fix setup issues Full setup checkup that can diagnose and fix issues (v2.1.205; was install-check only): it proposes fixes that Claude applies after you confirm. /checkup is an alias. /doctor prompt-audit (v2.1.283) audits CLAUDE.md files, skills, agents, and commands for prompting patterns written for older models, leading with stale paths, stale commands, and contradicting instruction files223334
/bug Report bugs File issue with Anthropic. As of v2.1.273, reports include only model-behavior params (model, system prompt, tools) from the last API request; request metadata and CLAUDE_CODE_EXTRA_BODY fields are omitted214
/feedback Send feedback to Anthropic Can attach recent sessions from the last 24 hours or 7 days for issues spanning more than the current session (v2.1.141+); as of v2.1.247, when something goes wrong in a session, Claude can draft a feedback report itself via the new SendFeedback tool for you to review and send here (turn off with the feedbackDrafts setting); v2.1.273 minimizes the attached request data the same way as /bug: model-behavior params only161242214
/release-notes Interactive release notes Version picker with changelogs (v2.1.92+)135
/rewind Return to checkpoint Undo changes (or Esc×2). v2.1.191: can resume a conversation from before a /clear.
/plugin Manage plugins Install, update, remove plugins
/passes Share Claude Code Share a free week of Claude Code with friends; shown only if your account is eligible334
/voice [mode] Toggle voice dictation, or turn it on in one mode /voice hold (hold space to record), /voice tap (tap to start and stop), or /voice off; needs a claude.ai account109553
/claude-api Claude API skill Build apps with Claude API/Anthropic SDK (v2.1.69+)108. As of v2.1.247 the skill adds cost-optimize (profile an existing project’s Claude API spend and work through cost levers, namely caching, token hygiene, batch, effort and model choice, one measured change at a time) and Admin API coverage: organization members, invites, workspaces, API keys, rate limit reports, workload identity federation, CMEK242 /claude-api api-version moves Claude API code to API version 2026-10-21 (v2.1.307), and managed-agents-secure [<agent-id>] reports where a Managed Agent’s settings match or differ from Anthropic’s secure-deployment guide, changing nothing (v2.1.304)275276; /claude-api latency-optimize (v2.1.319) finds where your Claude API code makes people wait and tries faster settings against your eval283
/reload-plugins Reload plugins Apply plugin changes without restart (v2.1.69+)108. Rarely needed since v2.1.268: /plugin installs, enables, and disables take effect when you close the menu213
/security-review Security review Review code for vulnerabilities (v2.1.70 fixed git compat)107. Since v2.1.323 Claude Code asks before Claude runs it, outside auto mode and bypass527
/color Set prompt color Set a prompt-bar color for your session. /color default/gray/reset/none to restore. Available to all users (v2.1.75+)115
/code-review [effort] Correctness review Reviews the current diff, or a PR number, branch, or path you pass, for correctness bugs, at an optional effort level; bare /code-review reuses the last level you typed, and /code-review ultra runs the deep cloud review. /review is an alias. It runs as a background subagent, and only when you invoke it. Flags: --fix applies the findings, --comment posts them on the GitHub PR or GitLab merge request, and --max-findings <n>, all, or default sets how many findings are reported, a choice later reviews reuse.166188192197231553
/code-review (output) What it reports On most models the review reports only bugs and CLAUDE.md violations (run /simplify for reuse, simplification, and efficiency cleanups), marks each finding Important, Pre-existing, or Nit, and ends each summary with a suggested fix (v2.1.328). On most models /code-review with no target reviews the whole branch against the default branch, and /code-review <pr number> --fix or a pull request URL stops without reviewing when gh pr diff is refused or fails (v2.1.329).527
/ship [level] [pr] Open a pull request, review it, then watch it Bundled skill, documented but not in the release notes: commits and pushes your work where it can, opens a GitHub pull request if the branch has none, reviews the change with /code-review, then keeps checking the pull request from this session and pushes fixes for failing checks, merge conflicts, and review comments. You merge it yourself; /ship stop ends the watch. Terminal CLI in a local clone only, v2.1.330 or later, and the GitHub CLI 2.63 or later for a GitHub repository; no watch starts in bypassPermissions mode or on native Windows. CLAUDE_CODE_DISABLE_SHIP=1 turns it off (v2.1.331+)536
/steward [pr] Watch an open pull request without the review The watch half of /ship: Claude works on review feedback and failing checks for your open pull request; /steward stop ends it (v2.1.330 or later)536
/simplify [target] Cleanup review that applies its fixes Four review agents run in parallel, covering reuse of existing helpers, simplification, efficiency and level of abstraction, then apply the fixes. It does not look for correctness bugs; use /code-review for those. Cleanup-only since v2.1.154334
/deep-research Multi-source research report Bundled workflow: fans out web searches, cross-checks sources and writes a cited report334. As of v2.1.218 it starts only when you invoke it: Claude no longer launches it on its own, the same explicit-invocation rule v2.1.215 applied to /verify and /code-review.192
/batch <instruction> Parallel changes across a codebase Bundled skill (v2.1.63+): researches the codebase, splits the work into 5 to 30 independent units, and presents a plan. Once you approve it, one background subagent per unit works in an isolated worktree, implements its unit, runs tests, and opens a PR or reports what happened. Needs a git repository or a WorktreeCreate hook that creates the worktrees (outside a git repository, v2.1.281 or later). Example: /batch migrate src/ from JavaScript to TypeScript102553
/team-onboarding Generate teammate ramp-up guide Creates an onboarding guide from your local CC usage patterns (v2.1.101+)141
/effort Set effort level Set model effort to low/medium/high/xhigh/max or auto; /effort status prints the current level; max is session-only. The default depends on the model: medium on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5, xhigh on Opus 4.7, high on the others331334; /effort ultracode has Claude orchestrate dynamic workflows; it is a separate toggle that keeps the current effort level (v2.1.284+; the --effort ultracode flag starts at xhigh); as of v2.1.251 your default effort level is saved per model, so each model keeps its own setting when you switch; s makes a session-only pick (matching /model), and the --effort flag is session-only (v2.1.257+)138244203208225
/loop [interval] [prompt] Recurring tasks /loop 5m /foo runs a prompt on an interval; omit the interval and Claude paces the loop itself, omit the prompt and it runs the built-in maintenance prompt or your loop.md; /proactive is an alias334. Useful for polling deploys, babysitting PRs, or periodic checks (v2.1.71+); as of v2.1.243 /usage shows a Loops breakdown (per-loop run count, tokens, last run) for spotting runaway loops, and consecutive no-op wake-ups fold into a single terminal line; v2.1.248 makes self-paced dynamic mode and the no-prompt autonomous default always available, including on Bedrock/Vertex/Foundry110247203; since v2.1.319 a self-paced loop ends when a turn finishes without rescheduling (CLAUDE_CODE_LOOP_KEEPALIVE=1 runs one extra iteration), and a cloud-session /loop confirmation notes that a timer stops with its container283; a loop or recurring task you do not cancel ends 30 days after it starts (v2.1.330+; a task created on an earlier version ends after 7), and since v2.1.325 a loop asks before running a skill that declares allowed-tools or hooks unless Skill(name) is in permissions.allow527531
/schedule Create or manage a cloud scheduled task (formerly a routine) Conversational, or inline: /schedule daily PR review at 9am, /schedule clean up feature flag in one week; /schedule update sets a cron expression; /routines is an alias. Needs a claude.ai login with cloud sessions enabled, so it is hidden under an API key or cloud-provider login, inside a cloud session, and when an Owner turned scheduled tasks off; adding a GitHub trigger from the CLI needs v2.1.225 or later. Since v2.1.332 the command, permission prompts, and /loop’s cloud offer say “cloud scheduled task” where they said “routine” or “cloud schedule”. See Cloud Scheduled Tasks under Claude Code on the Web279527
/plan [description] Enter plan mode Enters plan mode from the prompt; with a description it starts on that task at once, as in /plan fix the auth bug334
/ultraplan Removed Use plan mode instead334
/btw [question] Side question Asks about the current session without adding to the conversation; with no question it shows your most recent side question334
/recap One-line session summary Generates a one-line summary of the current session on demand334
/focus Toggle the focus view Shows only your last prompt, a one-line tool-call summary with edit diffstats, and the final response; fullscreen rendering only334
/tui [mode] Set the terminal UI renderer fullscreen (the flicker-free alt-screen renderer) or classic, the v2.1.327 name for the non-fullscreen renderer (default still works); relaunches with your conversation intact, and with no argument prints the active renderer334527
/autocompact [size] Set the auto-compact window How full the context window gets before Claude Code compacts on its own: a size such as 500k, or auto for the window tuned to your model; saved to user settings (v2.1.221+)334
/keybindings Open your keyboard shortcuts file Creates or opens ~/.claude/keybindings.json334
/help Show help and available commands 334
/exit Exit the CLI In an attached background session it detaches and the session keeps running; /quit is an alias334
/debug [description] Troubleshoot from the debug log Bundled skill: turns on debug logging for the session from that point forward and reads the session debug log; describe the issue to focus the analysis334
/insights Usage report Generates an HTML report on your recent sessions on this machine: projects, how you use Claude Code, where things go wrong, features to try. Not available in cloud sessions334
/upgrade Open the upgrade page Opens the page for switching to a higher plan tier in your browser334
/review Alias of /code-review Reviews the current diff, or a PR number, branch or path you pass (/review 1234), with the same effort levels and flags334
/ultrareview [PR or branch] Deep cloud review Alias of /code-review ultra, the preferred form: a multi-agent review in a cloud sandbox. 3 free runs on Pro, Max and Ultra, then usage credits334
/verify Check that a change works Bundled skill: builds your project’s app, runs it and observes the result, rather than relying on tests or type checks334
/run Launch and drive your app Bundled skill: launches your project’s app to see a change working, not only passing tests334
/workflows Workflow progress view Watch, pause, resume or save running and completed workflows334
/background [prompt] Detach the session to the background Frees the terminal and keeps the session running as a background agent you monitor with claude agents; /bg is an alias. To copy the conversation instead, use /fork334
/stop Stop a background session Stops the background session you are attached to; the transcript and any worktree are kept. Use /exit to detach without stopping334
/list-agents List the agents Claude can message Subagents, teammates and your other Claude Code sessions, with the name to use for each; /peers is an alias. Only where cross-session messaging is enabled334
/remote-control Offer this session to Remote Control Makes the session available from claude.ai; needs a claude.ai subscription. /rc is an alias334
/teleport Pull a cloud session into this terminal Opens a picker, then fetches the branch and conversation; /tp is an alias. Needs a claude.ai subscription334
/desktop Continue in the desktop app Moves the current session to the Claude Code Desktop app (macOS or x64 Windows, Claude subscription); /app is an alias334
/mobile Get the mobile app Shows a QR code for the Claude mobile app; /ios and /android are aliases334
/autofix-pr [prompt] Cloud session that fixes your PR Watches the current branch’s PR and pushes fixes when CI fails or reviewers comment; needs the gh CLI and access to cloud sessions334
/artifacts List your artifacts Lists artifacts you own or that are shared with you; attach one to the session, open it in the browser or copy its link334
/chrome Configure Claude in Chrome 334
/install-github-app Install the Claude GitHub App Walks you through picking a repository, with an optional step for GitHub Actions workflows and secrets; github.com repositories only334
/install-slack-app Install the Claude Slack app Opens a browser to complete the OAuth flow334
/reload-skills Re-scan skills and commands Makes skills added or changed on disk during the session available without a restart, and reports how many were added or removed334
/design-login Sign in for /design-sync Authorizes design-system access with your claude.ai account, for the standalone claude.ai/design site that closes by December 14, 2026334
/design-sync [hint] Upload your design system Bundled skill: converts your repo’s React design system and uploads it to Claude Design; it targets the standalone claude.ai/design site, which closes by December 14, 2026334
/setup-bedrock Amazon Bedrock setup wizard Configures authentication, region and model pins; hidden from the menu until CLAUDE_CODE_USE_BEDROCK=1 is set, so type it in full334
/setup-vertex Google Cloud Agent Platform setup wizard Configures authentication, project, region and model pins; hidden from the menu until CLAUDE_CODE_USE_VERTEX=1 is set334
/privacy-settings View and update privacy settings Pro, Max and Ultra subscribers only334
/vim Removed in v2.1.92 To switch between Vim and Normal editing modes, use /config and its Editor mode row334
/buddy Removed (an April 1, 2026 feature) The changelog introduced it with “/buddy is here for April 1st”: a small creature you hatch that watches you code. It is not in the commands reference as read on November 25, 2026334553

Custom Command Creation

Create reusable commands in .claude/commands/ (project) or ~/.claude/commands/ (personal):

---
description: Security-focused code review
allowed-tools: Read, Grep, Glob
disallowed-tools: Bash, Edit, Write
model: sonnet
---

Review this code for security vulnerabilities:

1. Injection attacks (SQL, command, XSS)
2. Authentication and authorization flaws
3. Sensitive data exposure
4. Insecure dependencies

Focus on actionable findings with specific line references.

Save as .claude/commands/sec-review.md, invoke with /sec-review. (A file named security-review.md would replace the built-in /security-review in a local terminal session.) allowed-tools only pre-approves the read tools; disallowed-tools is what keeps this review from running Bash or editing files.330

Command Frontmatter Options

---
description: Brief description for /help
allowed-tools: Read, Edit, Bash(npm:*)
model: opus
argument-hint: [arg1] [arg2]
disable-model-invocation: false
---
Option Purpose
description Help text and auto-delegation matching
allowed-tools Tools Claude may use without a permission prompt during the turn that invokes the command. It does not restrict the other tools330
disallowed-tools Tools removed from Claude’s pool while the command is active, until your next message. Use this one to restrict330
model Override model for this command. Honored in interactive sessions (v2.1.259+); in auto mode, a frontmatter model the session can’t use no longer runs the turn: the session keeps its model208
argument-hint Document expected arguments
disable-model-invocation Set to true to stop Claude from invoking the command on its own; you can still type it330

Argument Interpolation

All arguments as single string:

---
description: Fix GitHub issue
argument-hint: [issue-number]
---

Fix GitHub issue #$ARGUMENTS following our coding standards.

Usage: /fix-issue 123

Numbered arguments:

---
description: Create component
argument-hint: [name] [type]
---

Create a new $1 component named $0 in src/components/.

Usage: /create-component Button functional

$0 is the first argument and $1 the second ($N is shorthand for $ARGUMENTS[N]).330

Inline Bash Execution

Execute bash commands within command prompts:

---
description: Git status summary
allowed-tools: Bash(git:*)
---

Current branch: !`git branch --show-current`
Recent commits: !`git log --oneline -5`
Changed files: !`git status --short`

Summarize the current state of this repository.

File References

Include file contents in commands:

---
description: Compare implementations
---

Compare these files:
@src/v1/handler.ts
@src/v2/handler.ts

Which implementation is more maintainable?

Command Namespacing

Organize commands in subdirectories:

.claude/commands/
├── backend/
│   ├── test.md
│   └── deploy.md
├── frontend/
│   ├── test.md
│   └── build.md
└── review.md

A command in a subdirectory takes the subdirectory as a prefix: .claude/commands/backend/test.md is /backend:test and .claude/commands/frontend/test.md is /frontend:test.330


How Do Skills Work?

Skills represent a fundamentally different approach to extending Claude Code. Claude loads a skill on its own when the conversation calls for it, and you can run the same skill yourself by typing /skill-name.336 You embed domain expertise into a skill, and Claude draws on that expertise whenever the situation calls for it, without you needing to remember to ask.

Custom commands have been merged into skills: a file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy and work the same way. Existing command files keep working. Skills add a directory for supporting files and frontmatter that controls whether you, Claude, or both can invoke them.336

Why skills change everything: Consider domain expertise: the payment processing rules, the compliance requirements, the architectural patterns your team has refined over years. Without skills, you either re-explain this context every session or hope Claude infers it from code comments. With skills, you encode it once. Claude reads the skill definition and applies that expertise automatically whenever relevant. Your junior developers get senior-level guidance without asking. Your security patterns get applied without remembering to invoke them.

What matters is who starts it. A skill that only you can invoke is a shortcut you have to remember to use. A skill Claude can load is knowledge Claude always has available. When you create a security review skill with your team’s specific vulnerability patterns and compliance requirements, Claude applies that expertise whenever it encounters relevant code, whether during PR reviews, refactoring, or any task where security matters. You don’t have to type /security-review, though you still can; Claude recognizes the context and applies the skill automatically.

Skills vs Commands vs Subagents

Understanding when to use each extension mechanism prevents duplication and maximizes effectiveness:

Aspect Command files (.claude/commands/) Skills Subagents
Invocation You (/name) or Claude, same as a skill You (/name) or Claude, set by frontmatter Explicit or auto-delegated
Trigger You type the name, or Claude recognizes context Claude recognizes context, or you type the name Task requires delegation
Structure Single markdown file Directory with resources Markdown with frontmatter
Context Main conversation Main conversation Separate context window
Complexity Simple prompts Multi-file capabilities Full agent personality
Best for Explicit actions Domain expertise Complex task delegation

Set disable-model-invocation: true when only you should start the skill: /deploy, /commit, anything with side effects whose timing you want to control. Claude will not load it on its own.

Set user-invocable: false when the skill is background knowledge only Claude should load: Claude Code hides it from the / menu and does not run it when you type the name. Leave both fields unset for a skill either of you may start, such as security patterns, code style rules, or domain knowledge.336

Use subagents when tasks need isolation: background exploration, parallel analysis, specialized reasoning that shouldn’t pollute your main conversation.

Skill Structure and Location

Skills live in dedicated directories containing a required SKILL.md file plus optional supporting resources:

Personal skills (available across all your projects):

~/.claude/skills/
├── code-reviewer/
│   ├── SKILL.md
│   ├── SECURITY_PATTERNS.md
│   └── PERFORMANCE_CHECKLIST.md
├── sql-analyst/
│   ├── SKILL.md
│   └── QUERY_PATTERNS.md
└── api-designer/
    └── SKILL.md

Project skills (shared with team via git):

.claude/skills/
├── domain-expert/
│   ├── SKILL.md
│   ├── BUSINESS_RULES.md
│   └── DATA_MODELS.md
└── deployment/
    ├── SKILL.md
    └── RUNBOOKS.md

Project skills commit to version control. When teammates pull, they get your skills automatically, with no installation, no configuration. Automatic distribution standardizes expertise across a team.

A third source arrived in v2.1.275: the skills enabled on your claude.ai account sync into terminal sessions signed in with that account, and so do your claude.ai plugins. Opt out with syncClaudeAiSkills: false (plugins: syncClaudeAiPlugins: false). Synced skills stay account-owned – editing a file in the synced account-skills folder changes the local copy only, and the Write/Edit result says the change is not saved to your account and how to save it.215

A fourth source is in public beta: an MCP server can provide skills, which appear in the / menu as server:skill (release notes: v2.1.332; MCP docs: v2.1.331 or later). See Skills from MCP servers in the MCP section for approvals, scanning, and where they work.527533

The anthropic-skills name is reserved (v2.1.282). Synced skills live in the anthropic-skills namespace, so outside a plugin a skill folder, command file, or saved workflow named anthropic-skills or anthropic-skills:<name> does not load, and a startup notice names the first item to rename. A plugin with that name still loads, but a synced skill wins a name tie under /anthropic-skills:<name>. An MCP server with that name keeps its tools but lists no skills or prompts until you rename it. Skill(anthropic-skills:*) allow rules cover only skills synced from claude.ai. To approve one synced skill without a prompt, the skills docs give Skill(anthropic-skills:pdf), and Skill(anthropic-skills *) for every synced skill.433 The name claude-ai is not reserved: items with that name load (v2.1.283+).222223224

SKILL.md Format

A skill is a SKILL.md file. YAML frontmatter is optional, and description is the one field worth always writing:336

---
name: code-reviewer
description: Review code for security vulnerabilities, performance issues, and best practice violations. Use when examining code changes, reviewing PRs, analyzing code quality, or when asked to review or audit code.
allowed-tools: Bash(git diff *) Bash(git log *)
---

# Code Review Expertise

## Security Analysis

When reviewing code, check for:

### Input Validation

- All user input sanitized before use
- Parameterized queries for database operations
- Output encoding for rendered content

### Authentication & Authorization

- Session tokens properly validated
- Permission checks before sensitive operations
- No hardcoded credentials or API keys

### Data Exposure

- Sensitive data not logged
- PII properly masked in error messages
- API responses don't leak internal details

## Performance Patterns

### Database

- N+1 query detection
- Missing indexes on filtered columns
- Unbounded result sets

### Memory

- Large object lifecycle management
- Stream processing for big files
- Connection pool exhaustion risks

## Review Output Format

For each finding:

- **File**: path/to/file.ts:123
- **Severity**: Critical | High | Medium | Low
- **Category**: Security | Performance | Maintainability
- **Issue**: Clear description of the problem
- **Recommendation**: Specific fix with code example
- **Rationale**: Why this matters

See [SECURITY_PATTERNS.md](SECURITY_PATTERNS.md) for detailed vulnerability patterns.
See [PERFORMANCE_CHECKLIST.md](PERFORMANCE_CHECKLIST.md) for optimization guidelines.

Frontmatter Reference

Field Required Constraints Purpose
name No Defaults to the directory name The command name shown in the / menu336
description Recommended The skill listing shows the first 1,536 characters of description plus when_to_use Discovery trigger: Claude uses this to decide when to apply the skill. If omitted, the first non-empty line of the body is used336
when_to_use No Counts toward the 1,536-character cap Extra trigger phrases or example requests, appended to description in the skill listing
argument-hint No Free text, such as [issue-number] Hint shown during autocomplete for the arguments the skill expects
arguments No Space-separated string or YAML list Named positional arguments for $name substitution in the skill body
disable-model-invocation No true / false (default false) true stops Claude loading the skill on its own; you start it with /name
user-invocable No true / false (default true) false hides the skill from the / menu so that only Claude invokes it
allowed-tools No Space- or comma-separated string, or YAML list Tools Claude can use without asking during the turn that invokes the skill. It does not restrict other tools336
disallowed-tools No Space- or comma-separated string, or YAML list Tools removed from Claude’s available pool while the skill is active; the restriction clears at your next message336
context No fork Run the skill in a forked subagent context (v2.1.0+).434 As of v2.1.218, context: fork skills run in the background by default; in claude -p and the Agent SDK, Claude Code waits for the result instead.192503
agent No A subagent type Which subagent type runs the skill when context: fork is set
background No true / false Opt a context: fork skill out of background execution: background: false keeps it running in the foreground. Only meaningful with context: fork, where background is the default (v2.1.218+).192
model No Model alias or ID, or inherit Model for the turn when you run the skill yourself with /name; inherit keeps the active model. When Claude runs the skill, the session keeps its model, and the same happens when your organization blocks the value, a plan-mode upgrade is active, or auto mode’s classifier is on and does not support it. With context: fork, the value is the forked subagent’s model. Honored in interactive sessions (v2.1.259+)208548
effort No low / medium / high / xhigh / max Run the skill’s turn at a specific effort level (v2.1.80+). It is honored on models whose default effort is pinned (Opus 4.7, Opus 4.8, Fable 5), in custom commands and subagents too (v2.1.267+)213
hooks No Hooks configuration Hooks that Claude Code registers when the skill is invoked and keeps for the rest of the session
paths No Comma-separated string or YAML list of glob patterns Claude loads the skill automatically only when working with files that match
shell No bash (default) or powershell Shell that runs the skill’s inline shell commands

Every field is optional, and Claude Code ignores a field it does not recognize without reporting an error. It also accepts metadata, license, and compatibility without acting on them. Skills uploaded to claude.ai or sent through the Skills API accept only name, description, license, compatibility, metadata, and allowed-tools; any other field fails the upload with an unexpected-key error.336

String Substitutions (v2.1.9+): Skills can access session context using ${CLAUDE_SESSION_ID} substitution. Useful for logging, tracking, or generating session-specific outputs.43

The description field is critical. Claude discovers skills by matching your requests against skill descriptions. A vague description means Claude won’t recognize when to use the skill. A specific description with clear trigger conditions means reliable activation.

Poor description:

description: Helps with code

Effective description:

description: Review code for security vulnerabilities, performance issues, and best practice violations. Use when examining code changes, reviewing PRs, analyzing code quality, or when asked to review, audit, or check code.

The effective description includes:

  • What the skill does (review code for specific issues)
  • When to use it (examining changes, PRs, quality analysis)
  • Trigger phrases (review, audit, check)

Pre-approving and Removing Tools

allowed-tools pre-approves the listed tools for the turn that invokes the skill, so Claude can use them without asking. The grant clears when you send your next message. It does not restrict anything: every other tool stays callable, and your permission settings still govern the tools you did not list. Workspace trust does not gate the field, so review the allowed-tools of skills checked into a repository before you run Claude Code there.336

To take tools away while a skill is active, list them in disallowed-tools:

---
name: security-auditor
description: Audit code for security vulnerabilities without making changes
disallowed-tools: Edit, Write, NotebookEdit, Bash
---

With this configuration, Claude cannot call the file-editing tools or Bash while the skill is active. Tools you did not list stay available, and the restriction clears when you send your next message, so it guards one skill’s turn and not the whole session. To block a tool across every skill and prompt, add a deny rule to your permission settings.336

Intent Where to set it Example
Run these without asking allowed-tools Bash(git log *) Bash(git diff *)
Never use these while the skill is active disallowed-tools Edit, Write, NotebookEdit, Bash
Remove a tool in every skill and prompt A deny rule in your permission settings that names the tool WebFetch
Refuse a command as written, in every skill and prompt A deny rule in your permission settings with a Bash pattern Bash(git push *)

A deny rule that names a tool removes that tool from Claude’s context. A Bash pattern matches the command text instead: Bash(git push *) refuses commands that begin with git push and does not match a push written another way, such as git -C <dir> push, so it is not a security boundary around git.504

Supporting Files

Skills can include multiple files. Claude reads the main SKILL.md on activation, then accesses supporting files as needed, providing progressive disclosure that manages context efficiently.

Structure pattern:

my-skill/
├── SKILL.md           # Required: overview + quick reference
├── DETAILED_GUIDE.md  # Deep documentation
├── EXAMPLES.md        # Concrete examples
├── PATTERNS.md        # Reference patterns
├── templates/         # Reusable templates
│   └── component.tsx
└── scripts/           # Helper utilities
    └── validate.py

Reference supporting files from SKILL.md:

For detailed security patterns, see [SECURITY_PATTERNS.md](SECURITY_PATTERNS.md).

Use this template for new components:
[templates/component.tsx](templates/component.tsx)

Validate configurations with:
```bash
python ${CLAUDE_SKILL_DIR}/scripts/validate.py config.json
```

A command from a skill runs in the session’s working directory, not in the skill folder. ${CLAUDE_SKILL_DIR} expands to the directory that holds SKILL.md, so the bundled script resolves wherever the skill is installed.503

Expert tip: Put essential information in SKILL.md directly. Reserve supporting files for deep reference material. Claude reads SKILL.md immediately but only accesses supporting files when needed. If critical information is buried in a supporting file, Claude might not find it.

Complete Example: Domain Expert Skill

Here’s a production-quality skill for a fintech application:

Directory structure:

.claude/skills/payments-domain/
├── SKILL.md
├── BUSINESS_RULES.md
├── COMPLIANCE.md
└── DATA_MODELS.md

SKILL.md:

---
name: payments-domain
description: Expert knowledge of payment processing domain including transaction flows, compliance requirements, and business rules. Use when working with payment code, transaction handling, refunds, disputes, or financial calculations.
---

# Payments Domain Expertise

## Core Concepts

### Transaction States
```
PENDING → AUTHORIZED → CAPTURED → SETTLED
                    ↘ VOIDED
         AUTHORIZED → DECLINED
CAPTURED → REFUNDED (partial or full)
SETTLED → CHARGEBACK → REPRESENTED
```

### Money Handling Rules

- ALL monetary values stored as integers (cents, not dollars)
- Currency always explicitly tracked (never assume USD)
- Rounding: HALF_EVEN for calculations, HALF_UP for display
- Never use floating point for money

### Idempotency Requirements
Every payment operation MUST be idempotent:
```typescript
// Required pattern
async function processPayment(idempotencyKey: string, amount: number) {
  const existing = await findByIdempotencyKey(idempotencyKey);
  if (existing) return existing; // Return cached result

  const result = await executePayment(amount);
  await storeWithIdempotencyKey(idempotencyKey, result);
  return result;
}
```

## Quick Reference

### Fee Calculations

- Interchange: 1.5% + $0.10 (debit), 2.1% + $0.10 (credit)
- Platform fee: 2.9% + $0.30 (standard), 2.2% + $0.30 (enterprise)
- International: +1% cross-border fee
- Currency conversion: mid-market rate + 1%

### Compliance Thresholds

- $3,000: Enhanced due diligence trigger
- $10,000: CTR filing required
- $25,000: Additional verification required

### Refund Windows

- Full refund: 120 days from capture
- Partial refund: 180 days from capture
- Chargeback window: 120 days (Visa), 180 days (Mastercard)

## Key Files

- `src/payments/processor.ts` - Core payment logic
- `src/payments/refunds.ts` - Refund handling
- `src/compliance/aml.ts` - AML checks
- `src/models/transaction.ts` - Transaction model

See `BUSINESS_RULES.md` for detailed business logic.
See `COMPLIANCE.md` for regulatory requirements.
See `DATA_MODELS.md` for schema documentation.

With this skill in place, Claude automatically applies payments domain expertise when you work on transaction code, ask about refund logic, or debug payment flows. You don’t invoke anything; the expertise is just there.

Creating Effective Skills

Start with the description. Write the description first, then build the skill content to match. The description determines when Claude uses the skill, so get it right:

  1. State what the skill provides
  2. List specific trigger conditions
  3. Include relevant keywords and phrases

Keep skills focused. One skill covers one domain or capability:

Good (focused) Bad (too broad)
security-auditor code-helper
react-patterns frontend-stuff
postgres-optimization database-expert
api-documentation docs-generator

If a skill tries to cover too much, its description becomes vague, and Claude won’t reliably recognize when to use it.

Use progressive disclosure. Put the most important information in SKILL.md directly. Reference supporting files for depth:

## Quick Reference
[Essential patterns here - Claude sees this immediately]

## Deep Dive
For full coverage, see [DETAILED_GUIDE.md](DETAILED_GUIDE.md).

Include concrete examples. Abstract descriptions are less useful than concrete patterns:

## Input Validation

### Pattern
```typescript
// Good: Explicit validation with typed errors
const validated = PaymentSchema.safeParse(input);
if (!validated.success) {
  throw new ValidationError(validated.error.issues);
}

// Bad: Implicit coercion
const amount = Number(input.amount); // Silent NaN on invalid input
```

Test with realistic requests. After creating a skill, test whether Claude activates it:

> Review this payment processing code for issues
# Should activate payments-domain skill

> How should I handle refunds?
# Should activate payments-domain skill

> What's the weather like?
# Should NOT activate payments-domain skill

If Claude doesn’t activate the skill when expected, revise the description to include the trigger phrases you’re using.

Team Sharing Strategies

Git-based sharing (recommended for project skills):

# Add skill to project
mkdir -p .claude/skills/team-standard
# Create SKILL.md and supporting files

# Commit
git add .claude/skills/
git commit -m "Add team coding standards skill"
git push

# Teammates get it automatically
git pull
claude  # Skill now available

Cross-project sharing via symlinks:

# Create canonical skill location
mkdir -p ~/shared-skills/security-reviewer
# Create SKILL.md

# Symlink into projects
ln -s ~/shared-skills/security-reviewer ~/.claude/skills/security-reviewer
# Now available in all your projects

Plugin distribution: For broader distribution, package skills into plugins:

my-plugin/
├── .claude-plugin/
│   └── plugin.json
└── skills/
    └── my-skill/
        └── SKILL.md

Skills bundled in plugins become available when users install the plugin.

Skills housekeeping (v2.1.304-309). Compaction sends Claude the skill list again afterwards, and /reload-skills sends only new or changed skills. The skills of one source, a repository, your own folder, or a plugin, can register at most 1,024 hooks and 16,384 matcher characters per session, and a skill’s once hook no longer removes another skill’s identical hook. Under a policy that allows hooks from plugins only, a skill used in the main conversation whose hooks are kept out no longer gets its allowed-tools (all v2.1.304). A skill in an --add-dir folder whose name another skill already holds is offered as <folder>:<name> (v2.1.309).275276

Skills changes (v2.1.323 to v2.1.332). Scheduled tasks and /loop ask before running a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended (v2.1.325). A skill’s inline git commands stop in bare-repository worktrees and similar folders until you allow them, outside auto mode and bypass (v2.1.323). .claude/skills folders in --plugin-dir plugins no longer load from a session started above them, so start Claude Code in the plugin folder (v2.1.325). A skill Claude runs with a model setting, other than a context: fork skill, leaves subagents, forks, compaction, and /recap on the session’s model (v2.1.330). On Macs with computer use on, computer-use is a reserved skill name: your own skill or command of that name stops loading, and a start-up notice says to rename it (v2.1.332). To log or refuse the shell commands a skill runs while it loads, use the PreSkillShellCommand hook event (v2.1.332; see Hook Input/Output Protocol).527529

Debugging Skills

Skill not activating:

1. Check the description matches your request:

# If you're saying "check this code" but description says "review"
description: Review OR check code for issues...

2. Verify file location:

# Personal
ls ~/.claude/skills/my-skill/SKILL.md

# Project
ls .claude/skills/my-skill/SKILL.md

3. Validate YAML frontmatter:

  • First line must be exactly ---
  • Closing --- before markdown content
  • No tabs in YAML (use spaces)
  • Field names match the reference exactly; Claude Code ignores a field it does not recognize without reporting an error

4. Run in debug mode and read the log. --debug prints nothing to the terminal; when a skill’s frontmatter is malformed, the parse error is in the log file:433

claude --debug
# Then read ~/.claude/debug/<session-id>.txt

5. Validate the skills folder (v2.1.233+), which finds SKILL.md files whose frontmatter does not parse:433

claude plugin validate .claude/skills      # project skills
claude plugin validate ~/.claude/skills    # personal skills

Skill activating unexpectedly:

Narrow the description. If your skill activates when it shouldn’t, the description is too broad:

# Too broad - activates on any "code" mention
description: Help with code

# Specific - activates only for security contexts
description: Audit code for security vulnerabilities including injection attacks, authentication flaws, and data exposure. Use when specifically asked about security, vulnerabilities, or when reviewing code for security issues.

Supporting files not found:

  • Link a supporting file by its path from the skill folder, as in [reference.md](reference.md); in a command, reach a bundled script through ${CLAUDE_SKILL_DIR}, because commands run in the session’s working directory503
  • Forward slashes only (even on Windows)435
  • Check file actually exists: ls .claude/skills/my-skill/REFERENCED.md

When to Create a Skill

Create a skill when:

  • Claude should pick up domain expertise on its own when a task calls for it
  • Multiple team members need the same knowledge
  • You’re repeatedly explaining the same patterns or rules
  • The context should load without you typing a command
  • Knowledge spans multiple files and needs organization

Don’t create a skill when:

  • The task needs separate context (use subagent)
  • It’s a one-off prompt (just type it)

Wanting explicit control over invocation is not a reason to avoid a skill: keep it a skill and set disable-model-invocation: true. A single template works as a skill too, and an existing file in .claude/commands/ keeps working.336

Expert tip: If you find yourself repeatedly typing /security-review before working on auth code, let Claude load it: write a description that names the auth work it applies to and leave disable-model-invocation unset. Make the expertise ambient, not explicitly invoked.


Plugin System

Plugins package Claude Code extensions for distribution. A plugin can include custom commands, subagents, skills, hooks, and MCP servers. Plugins entered public beta on October 9, 2025. Anthropic now publishes two general-purpose marketplaces: the official one (claude-plugins-official), which Claude Code adds for you by default, and the community one (claude-community, from the anthropics/claude-plugins-community repository), which you add yourself with /plugin marketplace add anthropics/claude-plugins-community.436

Plugin Structure

my-plugin/
├── .claude-plugin/
│   └── plugin.json              # Optional manifest; name is its only required key
├── bin/                          # Executables invokable as bare commands (v2.1.91+)
├── commands/                     # Slash commands
│   └── hello.md
├── agents/                       # Subagents
│   └── helper.md
├── skills/                       # Skills
│   └── my-skill/
│       └── SKILL.md
├── hooks/                        # Event handlers
│   └── hooks.json
└── .mcp.json                     # MCP servers

The bin/ directory holds executables that Claude can invoke as bare commands while the plugin is enabled (v2.1.91+).134

Plugin Manifest

The manifest is optional: without it, Claude Code loads the components it finds in the standard layout. When you write one, name is its only required key.505

Minimal plugin.json:

{
  "name": "my-plugin",
  "description": "What this plugin does",
  "version": "1.0.0",
  "author": {
    "name": "Your Name"
  }
}

v2.1.129 manifest note: themes and monitors should now be declared under the manifest’s "experimental" object. Existing top-level declarations still work, but claude plugin validate warns so plugin authors can move them before publishing.153 As of v2.1.259, claude plugin validate --json prints the validation results as JSON.208

v2.1.281 validation: claude plugin validate now also checks MCP servers, reporting .mcp.json entries that would be silently dropped at load, undeclared ${user_config.*} references, and insecure URLs. It warns when a shell-form hook leaves ${CLAUDE_PLUGIN_ROOT} unquoted, which breaks on plugin paths with spaces, and plugin hook-failure errors now name the offending plugin.221

Manifest keys in v2.1.323 through v2.1.331. engines states the Claude Code versions a plugin works on, as a semver range under the claude-code key ("engines": { "claude-code": ">=2.1.323" }): a plugin outside its range is not installed, updated, or loaded, and install and update pick the newest version that fits. Versions v2.0.15 through v2.1.75 reject a manifest that has the field, so leave it out if the plugin must load there (v2.1.323). optionalDependencies lists plugins that install with yours and can be disabled or uninstalled on their own (v2.1.331, release notes only). A plugin’s agent setting is deprecated: it still applies, and now warns at startup, in claude plugin list, and in claude plugin validate (v2.1.323). claude plugin validate also type-checks a plugin’s TypeScript hooks module, each finding a warning that --strict turns into a failure (v2.1.323), and claude plugin install --json reports unsetOptionCount (v2.1.323) and commandPrinted and commandFailed (v2.1.330).527538

Marketplaces in v2.1.323 through v2.1.331. A marketplace ref accepts the full ID of any commit on a branch or tag; a client before v2.1.325 cannot clone such a pin, so the marketplace stops loading there. Marketplace and plugin installs fail when a git submodule is not on the commit its repository records (v2.1.323). Plugin MCP bundles (.mcpb, .dxt) unpack under the plugins directory, not in the plugin’s own folder, so read-only plugin folders load (v2.1.325), and uninstalling a plugin deletes those extracted files unless another plugin uses the same bundle (v2.1.326). For administrators: pluginDigests is deprecated and ignored (v2.1.325), and the v2.1.331 notes schedule automatic updates for marketplaces in managed extraKnownMarketplaces in a release on or after November 30, 2026, with "autoUpdate": false on an entry as the opt-out. /status gained a “Marketplace auto-update” row naming managed marketplaces that get no automatic updates, and why (v2.1.329).527

Plugin Management

> /plugin                              # Interactive interface
> /plugin install name@marketplace     # Open the plugin's details; choose a scope to install
> /plugin install name --marketplace <source>  # Offer to add the marketplace, then open the plugin's details (v2.1.275+)
> /plugin enable name@marketplace      # Enable
> /plugin disable name@marketplace     # Disable
> /plugin uninstall name@marketplace   # Remove
> /plugin marketplace add ./local      # Add local marketplace
> /plugin marketplace list             # View marketplaces

Inside a session, /plugin install <plugin> opens the plugin’s details, where you pick a scope and confirm. From your shell, claude plugin install <plugin> installs without the menu.337

For one-off testing, v2.1.129 adds a session flag that fetches a plugin zip directly without installing it into your normal marketplace state:

claude --plugin-url https://example.com/my-plugin.zip

--plugin-dir also accepts .zip plugin archives as of v2.1.128, so local smoke tests can point at either a plugin directory or an archive.153 As of v2.1.265 it also takes a folder of plugins: each child folder with a manifest loads as its own plugin, and children added or removed while the session is running are picked up.212

For a permanent install without git or npm, v2.1.224 adds the archive plugin source: point a marketplace entry at a zip over HTTPS, with optional SHA-256 pinning so the install fails if the archive changes out from under you. The three distribution paths now line up cleanly — --plugin-url for one session, archive for a pinned install from a URL, marketplaces for anything with an update lifecycle. The pin is the interesting part for teams: a pinned hash turns “trust whatever this URL serves today” into “trust the exact bytes we reviewed.”198

Three quality-of-life changes land in v2.1.221: /plugin install refreshes a stale marketplace catalog and retries before reporting a plugin not found (the “not found” you’d hit right after a marketplace added something is gone); plugins installed from /plugin activate immediately when safe instead of always requiring /reload-plugins; and a plugin manifest can point skills at "." to serve skills from the plugin root — the validation error for a root-level SKILL.md now suggests exactly that.196 v2.1.268 finishes the thought: installing, enabling, or disabling a plugin in /plugin now takes effect when you close the menu – /reload-plugins is no longer needed afterwards.213

v2.1.229 adds command marketplace sources — a marketplace entry can point at a local command (an IDE, a build tool) that prints the plugin directory when run. The path is re-resolved every session and applied without a restart, and mode: "link" uses the directory in place instead of copying it. This is the development-loop source: your editor owns the plugin checkout, and Claude Code follows wherever it points.254

v2.1.275 adds two account-side conveniences: /plugin install <plugin> --marketplace <source> installs from a marketplace you have not added yet – Claude Code offers to add the marketplace first – and the plugins enabled on your claude.ai account sync into terminal sessions signed in with that account (the name@synced lane, now with an explicit opt-out: syncClaudeAiPlugins: false; skills sync the same way under syncClaudeAiSkills).215

Plugin Pruning (v2.1.121+)

Plugins can declare other plugins as dependencies. When you install a plugin, its dependencies install automatically and are marked as “auto-installed”. Two new commands clean up after manual uninstalls or marketplace removals:

Command Behavior
claude plugin prune Remove auto-installed plugins whose parent is no longer present
claude plugin uninstall <name> --prune Uninstall and cascade-remove its now-orphaned auto-installed dependencies

Run prune after manual uninstalls or marketplace removals to keep ~/.claude/plugins/ lean.151

Local Development

Create a local marketplace for testing:

mkdir -p dev-marketplace/.claude-plugin dev-marketplace/my-plugin
# Create the plugin structure in dev-marketplace/my-plugin
# Create dev-marketplace/.claude-plugin/marketplace.json (below)

claude
> /plugin marketplace add ./dev-marketplace
> /plugin install my-plugin@dev-marketplace

A marketplace is a directory that holds a .claude-plugin/marketplace.json catalog. name, owner, and plugins are required, and a relative source resolves from the marketplace root, the directory that contains .claude-plugin/:337

{
  "name": "dev-marketplace",
  "owner": { "name": "Your Name" },
  "description": "Plugins I am developing locally",
  "plugins": [
    { "name": "my-plugin", "source": "./my-plugin" }
  ]
}

claude plugin validate ./dev-marketplace checks the catalog before you add it. To try a plugin for one session without any marketplace, run claude --plugin-dir ./my-plugin.

Plugin Installation Improvements (v2.1.51+)

Plugins now support custom npm registries and specific version pinning when installing from npm sources. The default git timeout for marketplace operations was increased from 30s to 120s, configurable via CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS.96 As of v2.1.275, npm-source plugins are fetched with npm pack --ignore-scripts and integrity-verified, so a package’s install scripts no longer run on your machine.215 v2.1.277 fixes reinstalls colliding with running sessions: claude plugin install could sometimes fail and break the installed copy when reinstalling a plugin version that a session or another program was using – an unchanged copy is now left alone. The same release makes claude plugin install on an already-installed plugin say when the marketplace offers a newer version, naming the claude plugin update command.216 v2.1.286 refuses npm plugin sources that are git repositories or folders, and installs plugin dependencies only from registry packages.228

Plugin Config Security (v2.1.207)

Two hardening changes address shell injection and repository-supplied values in plugin configuration:182

  • ${user_config.*} is rejected in shell-form commands. Interpolating user-supplied config values directly into a shell string is an injection risk, so shell-form plugin commands that reference ${user_config.*} now fail validation. Use the exec form (argument arrays, no shell parsing) or read the value from the $CLAUDE_PLUGIN_OPTION_<KEY> environment variable instead.
  • pluginConfigs is no longer read from project-level .claude/settings.json. Plugin configuration values now come only from user settings, a --settings file, and managed settings, so a cloned repository cannot supply those values.

The containment thread continued: v2.1.265 fixed a backslash in a plugin path bypassing symlink containment on macOS and Linux, and v2.1.267 fixed a case of the same kind for fetched marketplaces, where a marketplace entry path containing a backslash could bypass the containment check.212213

Plugin Components

  • Commands: Available as slash commands (/plugin-command)
  • Agents: Available as subagents
  • Skills: Auto-load based on skill config
  • Hooks: Merged with user/project hooks, run in parallel
  • MCP Servers: Auto-start when plugin enabled

Local Plugins via .claude/skills/ (v2.1.157+)

A plugin folder in a skills directory loads without a marketplace. claude plugin init <name> scaffolds a new plugin at ~/.claude/skills/<name>/, your personal skills directory, where it loads in every project as <name>@skills-dir. The command has no flag for another location: to keep a plugin in one repository, create the same layout yourself at <project>/.claude/skills/<name>/, including its .claude-plugin/plugin.json, and it loads after the same trust check that applies to project allow rules. Either way there is no marketplace to register. /plugin also gained argument autocomplete to match the rest of the command surface.263337

Plugin CLI: JSON Output, Pinned Installs, Eval Suites (v2.1.268 to v2.1.299)

Six additions move the plugin CLI toward scripted and CI use:213

  • --json everywhere (v2.1.268): claude plugin install, uninstall, update, enable, and disable all accept --json, and each row of claude plugin list --json carries errorDetails and noteDetails, machine-readable state for wrapper scripts.
  • Pinned command acceptance (v2.1.271): claude plugin install --accept-command <sha256> (and the same on claude plugin update) accepts exactly the command a previous --json run displayed, instead of a blanket -y – review once, approve those bytes, and a changed install command fails instead of running.
  • claude plugin configure <plugin> (v2.1.285): shows a plugin’s options and which are unset, or saves new values read from stdin with --values-stdin. claude plugin install --config also accepts <server>.<key>=<value>, so a bundled .mcpb MCP server’s own settings can be set at install time and it starts without visiting /plugin → Configure.226
  • claude plugin eval (v2.1.269): run a plugin’s eval suite against Claude Code and get scored, reproducible results as JSON plus an HTML report – regression testing for plugin behavior, not just manifest validation. claude plugin eval --help documents the suite format. As of v2.1.299, --disallow-tools and a disallowed_tools case field keep named built-in tools, such as Agent, out of a run, and a run that ends on an API error scores 0 without grading and makes the suite exit 1.268269
  • claude plugin install --marketplace <source> (v2.1.292): the shell command takes the same flag as /plugin install. It adds the marketplace if needed, under the same policy checks as claude plugin marketplace add, then installs the plugin from it.233234237
  • claude plugin validate and claude plugin test (v2.1.289-292): validate checks a plugin whose folder also holds a marketplace manifest (v2.1.289), and lists each hook a mod registers at a gating site with whether it has a .catch, as gatingHooks under --json (v2.1.290). As of v2.1.292, claude plugin test fails, instead of passing silently, when an expect inside a hook the test registered fails or the engine refuses a stub answer.232233234

Mods (v2.1.287)

A mod is a plugin whose JavaScript or TypeScript handlers run inside Claude Code instead of as a shell command. Claude Code calls a handler when an event happens, such as a tool call, a submitted prompt, or part of the interface being drawn, and the handler can watch the event, change it, or take it over. That lets a mod draw a pane beside the transcript or a band above the prompt, add a /command that runs without a Claude turn, or hold, answer, or reroute a tool call.229230

Mods require v2.1.287 and are on by default. A mod runs with your permissions and is not sandboxed, so install mods only from authors and marketplaces you trust; claude plugin validate ./some-mod lists the events a mod hooks and the calls it makes before you install it. To stop installed mods, disable the plugin in /plugin, start with --safe-mode for one session, or set "disableAllHooks": true in ~/.claude/settings.json, which also stops your settings hooks and status line. --safe-mode and disableAllHooks do not stop built-in mods: disable one in /plugin, except cc-plugin-sec-default, the guard for what your organization manages, which you cannot turn off.506 CLAUDE_CODE_ENABLE_FUNCTION_HOOKS, the early-access switch, is ignored from v2.1.287.230

Some built-in features are mods, listed under Built-in on the /plugin Installed tab, such as /diff and AGENTS.md loading. One is off by default: You should know runs a side agent that watches your back and flags things you or Claude might miss. Turn it on with /plugin enable cc-plugin-you-should-know@builtin; the release notes limit it to first-party sessions with telemetry on.229230

Mod API additions (v2.1.288-292). v2.1.288 adds $.ui.selection(), which returns the text you last selected in fullscreen mode and, when the selection lies within one transcript row, that row. v2.1.289 fires agent.spawn for agent-team teammates (e.isTeammate is true), keeps one agent id across plugin hook events, and reports idle and waiting states in $.agent.list(). v2.1.290 adds serverToolUses to a turn.step result (the tool calls the API ran itself, such as the advisor), agentId to the tool.check event so a hook can tell a subagent’s permission check from the main session’s, and ceiling to what a tool.check hook reads, naming the approval an organization requires. v2.1.292 adds the prompt.autocomplete event for adding rows to the prompt’s autocomplete list, prompt caching in $.model.complete (cache: true on a block caches the request up to it), and workflow agents, with their run and index, in agent.spawn, so a mod can refuse them. serverToolUses, e.agentId, and e.ceiling each require v2.1.290 or later.231232233234338

Mod API additions (v2.1.299). $.prompt.media lets a prompt.submit hook of a mod installed by managed settings read the bytes of an image or document attached to the prompt, and $.session.identity() tells such a mod how the session is signed in, with its organization and email when managed forceLoginOrgUUID lists that organization. Text takes size, weight, mono, and tabular, Box takes named spacing steps (xs to xl), and bold is deprecated in favor of weight. skill.prompt receives the skill’s frontmatter, source, plugin name, and file path, which the mods reference lists as e.frontmatter, e.source, e.pluginName, and e.path requiring v2.1.299. session.append gains a queue door, agent.spawn fires on a resumed subagent or killed teammate with resume set, turn.start hears subagents’ turns (e.agentId), and $.http.fetch accepts a 304, 204, or 205 whose Content-Length exceeds the 4 MiB body limit. claude plugin test fails a served $ method that has not answered within ten seconds and tags each mod’s ui.render root with part: { plugin }. Values a hook hands back that nest deeper than 28,000 levels are refused.268269

Mod API additions (v2.1.300). virtualText prompt decorations draw text in the prompt box that never enters the draft or the submitted prompt; $.ui.view({ agentId }) shows an agent’s transcript in the main view and $.ui.view({}) returns; Text takes dir for right-to-left rows (Windows and VS Code’s terminal); the prompt.change hook fires when the prompt box changes without a typed edit; and agent.spawn can rewrite a workflow agent’s prompt and model.270271

Mod API additions (v2.1.301). Input takes rows for a text field of several lines in the terminal, where Enter submits and Shift+Enter, or a backslash before Enter, starts a new line. A hook’s .catch handler runs only when the hook throws or times out; events raised beneath the hook’s own calls skip that hook without asking its .catch. $.env.set resolves with {} once the variable is set or unset, or with { deny } saying why the write was not made. $.model.fork no longer returns nothing-to-fork when called before a new process’s first response has finished, as in claude -p runs and cloud sessions. In VS Code and the desktop and mobile apps, a tree drawn above the question dialog can hold Markdown and up to 48 rows (the terminal keeps 12 plain rows). The mods reference covers the CLI and the Desktop app as of v2.1.290 and the VS Code extension as of v2.1.299. The mods docs describe rows on Input and $.env.set, while virtualText, $.ui.view, prompt.change, $.prompt.media, and $.session.identity appear only in the release notes.272273338

Mods and permissions (v2.1.318 to v2.1.321). Mods Claude writes turn on without asking in auto and bypass modes, even under managed allowUnsandboxedCommands: false or allowManagedDomainsOnly, and do not load in dontAsk mode; a mod’s own tool calls ($.tool.call, $.mcp.call) raise no permission prompt, even under your own ask rules or in dontAsk and -p runs, while deny rules and organization policy still apply (v2.1.321). Claude Code records your answer when it asks to turn on the mods it writes, and $.model.fork takes an effort option so a side job can run at low whatever the session uses (v2.1.318). What a mod attaches at prompt.submit stays in the user’s turn rather than going out as a system message (v2.1.318). Headless sessions reload mods in .claude/skills when their files change, CLAUDE_CODE_PLUGIN_DIR_WATCH=0 turns that off, and .claude/skills folders inside ~/.claude/plugins no longer load when Claude works on files there (v2.1.321).283

Mods in v2.1.323 through v2.1.332. easel is a built-in mod that draws charts when asked and under MCP metrics results, on Pro, Max, and, where available, Team and Enterprise on macOS and Linux; turn automatic charts off in /config (v2.1.330). For authors: a *, namespace, or negated hook on engine.create now only observes, so hook engine.create by name to add or withhold a $ noun, and claude plugin validate fails a mod whose engine.create hook is not written in the one accepted form (v2.1.323). tool.list plugin hooks apply the tools they add or remove to the model and every agent (v2.1.323). A pane receives isPromptCovered when a dialog or a field above the prompt covers the prompt (v2.1.323), Box takes overflowX="scroll", and Text takes maxLines and wrap="clip" (v2.1.326). /cost, $.session.usage(), --max-budget-usd, and the cost and token metrics count a mod’s $.model.complete and $.model.classify calls (v2.1.325). Edits in a session’s mods folder ask more often (v2.1.326), and applications that embed Claude Code can switch on the policy plugin’s allowManagedModsOnly option, with an administrator’s managed settings still winning (v2.1.328). These are documented in the release notes.527


How Does Memory Work?

Claude Code’s memory system enables persistent context across sessions. Effective memory management is the difference between Claude understanding your project deeply and treating every session as a fresh start.

CLAUDE.md Hierarchy

Location Scope Shared Use Case
/Library/Application Support/ClaudeCode/CLAUDE.md (macOS) Enterprise All users Company standards
./CLAUDE.md or ./.claude/CLAUDE.md Project Via git Team context
~/.claude/CLAUDE.md User All projects Personal preferences
./CLAUDE.local.md Project-local Never Personal project notes

AGENTS.md Support (v2.1.277)

Claude Code now reads AGENTS.md – the cross-tool instruction-file convention that Codex CLI and a growing list of other coding agents share – as its project instructions: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead. A repository already set up for other agents works without adding a CLAUDE.md, an import, or a setting; the behavior is configurable under “Project instructions” in /config, and since v2.1.281 it also works on Amazon Bedrock, Google Vertex AI (now Agent Platform), Microsoft Foundry, LLM gateways, and sessions with telemetry disabled.216339 If you came from Codex and were told Claude Code ignores AGENTS.md, that no longer holds; see From OpenAI Codex CLI.

What loads when (the default, which the docs name claude-md-or-agents-md):216

Your repository has Claude reads
An AGENTS.md, and no CLAUDE.md or CLAUDE.local.md in the working directory or above it Your AGENTS.md
An AGENTS.md and a CLAUDE.md or CLAUDE.local.md in the working directory or above it Your CLAUDE.md files only
A CLAUDE.md that imports AGENTS.md (@AGENTS.md) Your CLAUDE.md, with AGENTS.md included through the import

The word in the changelog is “instead”, not “as well”: a project CLAUDE.md wins outright, and the two do not merge by default. The check counts a CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md in the working directory or any directory above it; your ~/.claude/CLAUDE.md, an organization’s managed CLAUDE.md, and .claude/rules/ files do not count and keep loading alongside AGENTS.md. Note the sharp edge in that list: adding a CLAUDE.local.md for personal notes to an AGENTS.md-only repo stops Claude reading AGENTS.md – the fix is switching Project instructions to claude-md-and-agents-md, which reads both (each directory’s CLAUDE.md files first, already-imported copies deduplicated). The other selectable values are claude-md (CLAUDE.md only) and managed-only; outside /config, the value lives under the built-in plugin’s ID, cc-plugin-agents-md@builtin (agents-md@builtin is read too, v2.1.285+), in pluginConfigs (options.instructionFiles), honored from user, --settings, and managed scopes but ignored in project and local settings files.216339

When it applies, the load behavior mirrors CLAUDE.md: every AGENTS.md and .claude/AGENTS.md in the working directory and above loads at session start (an interactive session prints a “no CLAUDE.md found; AGENTS.md loaded: …” line), a subdirectory’s AGENTS.md loads when Claude reads a file there and that subdirectory has no CLAUDE.md of its own, and @path imports and claudeMdExcludes apply inside it. AGENTS.local.md, AGENTS.override.md, and .agents/ directories are not read. The docs list three differences for an AGENTS.md read directly rather than imported by a CLAUDE.md:220

CLAUDE.md AGENTS.md read directly
InstructionsLoaded hooks Fire Do not fire (they do fire for an AGENTS.md that a CLAUDE.md imports or symlinks to)
Directories added with --add-dir while CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD is set Their CLAUDE.md loads Their AGENTS.md does not load
An @path import of a file outside the working directory Claude Code asks you to approve external imports Loads only if you already approved external imports for this project, with no prompt

To confirm Claude read your AGENTS.md, run /memory and look for its path (v2.1.280+).220

When Claude reads CLAUDE.md files only: on versions before v2.1.277; on v2.1.277 to v2.1.280 in some sessions, such as those on Amazon Bedrock or with telemetry disabled (the fix is to update Claude Code); in some cases in the first session after you upgrade from v2.1.276 or earlier (it reads AGENTS.md from the next session on); and when you have used /plugin to disable the built-in plugin that reads AGENTS.md. Keep the classic @AGENTS.md import in a stub CLAUDE.md for those cases.220339

If you wired AGENTS.md up by hand, the import and symlink workarounds are harmless (nothing is read twice), but remove a SessionStart hook that prints AGENTS.md, because it duplicates the content.216

Effective CLAUDE.md Structure

# Project Context

## Architecture

- Monorepo with packages in /packages
- React frontend in /packages/ui
- Node.js API in /packages/api
- Shared types in /packages/types
- PostgreSQL database via Prisma

## Code Standards

- TypeScript strict mode everywhere
- ESLint + Prettier enforced (pre-commit hooks)
- No default exports
- JSDoc on all public APIs
- Tests required for all new code

## Commands

- `npm test` - Run all tests
- `npm run test:watch` - Watch mode
- `npm run lint` - Check linting
- `npm run lint:fix` - Auto-fix lint issues
- `npm run build` - Production build
- `npm run dev` - Start dev servers
- `npm run db:migrate` - Run migrations
- `npm run db:seed` - Seed database

## Patterns

### API Endpoints
Create in packages/api/src/routes/
Use Zod for request/response validation
All endpoints need OpenAPI documentation

### React Components
Create in packages/ui/src/components/
Use React Query for server state
Prefer composition over inheritance

### Database
Prisma schema in packages/api/prisma/
Always create migration for schema changes
Use transactions for multi-table operations

## Important Notes

- NEVER commit .env files
- API runs on :3000, UI on :3001
- Local DB: postgres://localhost:5432/myapp
- Feature flags in packages/api/src/flags.ts

## Recent Decisions

- 2025-12-01: Migrated to React Query v5
- 2025-11-15: Adopted Zod for all validation
- 2025-11-01: Moved to ESM modules

# Summary Instructions
When using compact, focus on:

- Recent code changes
- Test results
- Architecture decisions made this session

A CLAUDE.md rule against commit attribution wins (v2.1.269+): a CLAUDE.md or memory rule saying not to add attribution takes precedence over Claude Code’s attribution reminder (the Co-Authored-By and “Generated with Claude Code” lines). Attribution lines set by managed settings still apply.213

"attribution": false (v2.1.281): setting attribution to false in settings.json hides all commit and PR attribution. Older CLI versions skip a settings file that holds it, so in files shared across versions keep the object form: set attribution.commit and attribution.pr to empty strings, and attribution.sessionUrl to false to drop the session link. The attribution object replaced the deprecated includeCoAuthoredBy key.221224

File Imports

Reference other files within CLAUDE.md:

See @README.md for project overview
Coding standards: @docs/STYLE_GUIDE.md
API documentation: @docs/API.md
Personal preferences: @~/.claude/preferences.md

Import syntax:

  • Relative: @docs/file.md, resolved from the file that contains the import, not the working directory
  • Absolute: @/absolute/path.md
  • Home directory: @~/.claude/file.md
  • Maximum depth: four hops of imports
  • In a project-level memory file, an import that resolves outside the working directory needs a one-time approval per project; if you decline, those imports stay disabled and the dialog does not appear again. Imports in user-scope files such as ~/.claude/CLAUDE.md load without the dialog, except in Cowork sessions on your desktop437

Memory Rules Directory

For more organized memory, use .claude/rules/ to store categorized rule files:10

.claude/rules/
├── testing.md          # Testing conventions
├── security.md         # Security requirements
├── api-patterns.md     # API design patterns
└── deployments.md      # Deployment procedures

Rules load automatically and provide structured context without cluttering CLAUDE.md. A rule with a paths field in its frontmatter loads only when Claude works with a matching file. A Read loads path-scoped rules and nested CLAUDE.md files, and so does a Write or Edit that creates or changes a file in their scope (v2.1.288+), as the memory docs state (“A path-scoped rule loads when Claude uses the Read, Write, or Edit tool on a matching file”). A Bash command that counts as a read, such as cat or head on a single matching file, loads it too.231234339

Quick Memory Addition

Ask for it in plain words during a session:

> Remember that the API tests need a local Redis instance
> Add this to CLAUDE.md: always run tests before committing

The first request saves to auto memory. The second edits the instruction file, and /memory lists every memory file so you can open one in your editor. The # prefix that older guides describe was removed in v2.0.70.339

Auto Memory (v2.1.32+)

Claude Code now automatically records and recalls project context across sessions.78 As it works, Claude saves four kinds of notes for itself: user (your role, expertise, and working preferences), feedback (corrections you give Claude and approaches you confirm), project (ongoing work, deadlines, and decisions that Claude cannot derive from the code or git history), and reference (where to find information outside the project, such as an issue tracker or dashboard). It skips anything it can derive from the codebase, such as architecture, file paths, or debugging fixes, and anything your CLAUDE.md files already say.437 Each project has its own memory directory, which holds a MEMORY.md index and one topic file per memory:

~/.claude/projects/<project>/memory/
├── MEMORY.md           # Index, one line per memory, loaded into every session
├── user_role.md        # One memory
├── feedback_testing.md # One memory
└── ...                 # Any other topic files Claude creates

You’ll see messages such as Recalled 2 memories and Saved 2 memories as Claude reads and writes them. Auto memory and CLAUDE.md files do different jobs:339

CLAUDE.md files Auto memory
Who writes it You Claude
What it contains Instructions and rules Learnings and patterns
Scope Project, user, or organization Per repository, shared across worktrees
Loaded into Every session Every session (first 200 lines or 25KB)
Use for Coding standards, workflows, project architecture Your preferences, corrections you give Claude, project context Claude cannot derive from the code

The first 200 lines of MEMORY.md, or the first 25KB if that comes first, load at the start of every conversation; anything past that is not loaded. The index holds one line per memory. Topic files such as user_role.md or feedback_testing.md are not loaded at startup: Claude reads them on demand when it needs the information.339437

Managing auto-memory (v2.1.59+): Use /memory to view and manage auto-memory files directly within Claude Code.98 This replaces the previous behavior where /memory simply opened the CLAUDE.md editor. You can now review, edit, and organize what Claude has remembered.

Memory timestamps (v2.1.75+): Memory files now include last-modified timestamps, helping Claude reason about which memories are fresh vs. stale.115 When Claude writes a memory file that begins with YAML frontmatter, Claude Code records the write time in a modified field as an ISO 8601 timestamp, which shows how current the fact is to you and to Claude when it reads the memory back.437

To turn auto memory off and keep CLAUDE.md, use the toggle in /memory (it saves autoMemoryEnabled to your user settings at ~/.claude/settings.json), set "autoMemoryEnabled": false in a project’s settings for that project only, or set the environment variable CLAUDE_CODE_DISABLE_AUTO_MEMORY=1.339

Keeping the index short: after Claude writes to MEMORY.md, Claude Code measures the file against the 200-line and 25KB read limits and, near a limit, reminds Claude to shorten it: one line per entry, detail moved into topic files, stale entries merged or dropped. You can also open the auto memory folder from /memory and prune it by hand.339

Context Management Commands

View context usage:

> /context

Shows a visual grid of context allocation across system prompt, conversation, tools, and file contents.

Compact conversation:

> /compact
> /compact focus on the authentication changes
> /compact preserve test output and error messages

Intelligently summarizes older conversation while preserving key information.

Custom compaction instructions (in CLAUDE.md):

# Summary Instructions
When using compact, focus on:

- Test output and failures
- Code changes made this session
- Architecture decisions

Reasoning depth: set it with /effort, not a token budget. Fable models, Opus 4.7 and later, Sonnet 5 and later, and Haiku 5.5 always use adaptive reasoning, and on those models Claude Code ignores the number in a positive MAX_THINKING_TOKENS value. See What Is Extended Thinking Mode?.340

Context Optimization Strategies

  1. Use specific file references instead of asking Claude to search
  2. Clear unrelated conversations with /clear between tasks
  3. Compact proactively during long sessions
  4. Use subagents to isolate exploratory work
  5. Break complex tasks into focused interactions
  6. Resume sessions for ongoing work rather than re-explaining

Image and Multimodal Input

Claude Code can analyze images: screenshots, diagrams, mockups, error messages, database schemas.

Input Methods

  1. Drag and drop: Drag image files into the Claude Code window
  2. Paste: Ctrl+V (Cmd+V in iTerm2; Alt+V on Windows and WSL) to paste an image from the clipboard340
  3. Path reference: “Analyze this image: /path/to/screenshot.png”

Viewing Attached Images

When Claude references an image in its response, clickable image links allow direct viewing:26

[Image #1]   # Cmd+Click (Mac) or Ctrl+Click (Windows/Linux) to open in your default viewer
[Image #2]   # Navigate attached screenshots

Clickable links help when reviewing screenshots or debugging visual issues. Cmd+Click (Mac) or Ctrl+Click (Windows/Linux) the reference to see exactly what Claude analyzed.438

Use Cases

  • Debug UI issues: “Here’s a screenshot of the bug, what’s causing it?”
  • Implement designs: “Build this component based on the mockup”
  • Analyze diagrams: “Explain this architecture diagram”
  • Database schemas: “Create Prisma models matching this ERD”
  • Error analysis: “What does this error screenshot mean?”

Expert tip: When implementing from mockups, include multiple screenshots showing different states (default, hover, loading, error). The more visual context, the better the implementation.

PDF Reading (v2.1.30+)

Claude Code can read and analyze PDF documents with page-level control:74

Basic PDF reading:

> Analyze this PDF: /path/to/document.pdf

Read specific page ranges:

> Read pages 1-5 of the PDF: /path/to/report.pdf

Or programmatically via the Read tool with pages parameter:

  • pages: "1-5" - Read pages 1 through 5
  • pages: "3" - Read a single page
  • pages: "10-20" - Read pages 10 through 20

Each call takes one page or one range, not a list.340

Limits:340

  • A PDF of 10 pages or fewer is read whole
  • A longer PDF is read in page ranges, at most 20 pages per Read call
  • A PDF sent whole can be at most 100 pages and 20MB
  • Page-range reads render pages with pdftoppm from poppler-utils (brew install poppler on macOS, apt-get install poppler-utils on Debian and Ubuntu)
  • Large PDFs (>10 pages) return a lightweight reference when @-mentioned, with full content loaded on-demand

Voice Mode (March 2026)

Voice mode turns Claude Code into a pair programming partner you talk to instead of type at. Activated via /voice, it transcribes your speech into the prompt, with push-to-talk as the default for precise control over when speech is captured.109341

Activation

> /voice           # Toggle voice dictation on or off, keeping the current mode
> /voice hold      # Hold a key while you speak (the default mode)
> /voice tap       # Tap once to start, tap again to send
> /voice off       # Disable

The choice persists across sessions. To set it in your user settings file, use the voice object: "voice": { "enabled": true, "mode": "tap" }. The older voiceEnabled key is deprecated since v2.1.92.341

How It Works

In hold mode, hold the space bar to record and release to insert the transcript at the cursor. Press Enter to send, or set "autoSubmit": true in the voice object to send on release when the transcript is at least three words long. In tap mode, tap space on an empty prompt to start and tap again to send. A tap-mode recording also stops (v2.1.332+) when you send or edit the prompt, after 60 seconds with no recognized words, or after 10 minutes in total, and the words already in the prompt stay unsent until you press Enter or tap again to add to them.527537 The push-to-talk default avoids accidental triggers during coding.341

Supported Languages (20 total, v2.1.69+)

English, Spanish, French, German, Portuguese, Italian, Japanese, Korean, Indonesian, Hindi, Russian, Polish, Turkish, Dutch, Ukrainian, Greek, Czech, Danish, Swedish, Norwegian.108341 Dictation follows the language setting and falls back to English for a language outside the list.341

Rollout Status

Voice dictation needs a Claude.ai account: it is not available with an Anthropic API key, on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. It also needs a local microphone, so it does not work in cloud sessions or over SSH. Transcription does not count toward the limits shown in /usage.341

Best For

  • Describing high-level architecture while sketching on a whiteboard
  • Dictating commit messages and PR descriptions
  • Explaining bugs conversationally while keeping hands on the keyboard
  • Quick task delegation: “Run the test suite and fix any failures”

How Does Git Integration Work?

Claude Code has deep git integration with built-in safety protocols.

Safety Protocols

What Claude does with git without asking depends on the permission mode:439

  • Manual mode: only reads run without a prompt. A commit, a push, or a branch change waits for your approval unless you have written an allow rule for it.
  • Auto mode, the starting mode for interactive terminal and VS Code sessions since v2.1.283: a classifier reviews actions instead of you. Commits and pushes to the repository you are working in (the default branch included) run without a prompt, and Claude can open pull requests there when your task asks for one. A non-default branch whose name marks it as a deploy or publication target, such as production or gh-pages, is not covered by that default, and the classifier judges a push there on its own terms.
  • Blocked by default in auto mode: force push; git commit --amend when the commit at HEAD was not created in this session or, from v2.1.198, has already been pushed; the commands the classifier presumes would discard uncommitted changes (git reset --hard, git checkout -- ., git restore ., git clean -fd, git stash drop, git stash clear); and committing or pushing a change that would send secrets or sensitive data outside the repository when it runs. Telling Claude that a blocked action is allowed can clear the block, but only when your message names the action and its specifics, such as the branch of a force push.
  • In every mode: a permissions.deny rule such as Bash(git push *) blocks the command as written, and the remote’s own branch protection still applies. To stay in auto mode and approve each push yourself, add Bash(git push *) and Bash(gh pr create *) to permissions.ask. These rules match the command as Claude writes it, so a push written another way, such as git -C <dir> push, is not matched. If your default branch must not receive unreviewed pushes, protect it on the remote; do not rely on a prompt.
  • .gitignore: the @ file picker leaves out files that match .gitignore patterns by default (respectGitignore), and the Grep tool skips gitignored files. The Glob tool does not: it finds gitignored files alongside tracked ones unless you set CLAUDE_CODE_GLOB_NO_IGNORE=false before launching Claude Code.440 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.386

Common Workflows

Create commits:

> commit these changes
> create a commit with a meaningful message

Claude will: 1. Run git status and git diff 2. Analyze changes 3. Generate a conventional commit message 4. Commit. In Manual mode Claude asks for approval first; in auto mode, the starting mode for interactive terminal and VS Code sessions since v2.1.283, it commits unless the classifier that reviews actions blocks it342

Create pull requests:

> create a PR for this feature
> summarize the changes and create a PR

One-shot commit → push → PR: the commit-commands plugin in Anthropic’s official marketplace adds a command that chains all three steps. Install it with /plugin install commit-commands@claude-plugins-official. The plugin’s README names the command /commit-push-pr, and the plugin docs list a plugin’s commands under its name, as in /commit-commands:commit.441 The release notes record two changes to how Claude Code treats /commit-push-pr. Since v2.1.206 it auto-allows git push to the repository’s configured push remote (remote.pushDefault, or the sole remote when only one is configured) in addition to origin.181 Since v2.1.229 git and gh commands that carry dangerous flags (--force, --amend, --no-verify, and similar) are no longer auto-approved.254

Review code:

> review the changes in this PR
> what could go wrong with these changes?

GitHub Actions Integration

Automate Claude in CI/CD with the official action:

Quick setup:

> /install-github-app

Manual workflow file. The setup command installs the Claude GitHub App and saves the secret for you. To do it by hand, install the app on the repository, add an ANTHROPIC_API_KEY repository secret, and commit a workflow. This one is the review workflow from the GitHub Actions docs:442

name: Code Review
on:
  pull_request:
    types: [opened, synchronize, ready_for_review, reopened]
jobs:
  review:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: read
      issues: read
      id-token: write
    steps:
      - uses: actions/checkout@v6
        with:
          fetch-depth: 1
      - uses: anthropics/claude-code-action@v1
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
          plugin_marketplaces: "https://github.com/anthropics/claude-plugins-official.git"
          plugins: "code-review@claude-plugins-official"
          prompt: "/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}"
          claude_args: '--allowedTools "mcp__github_inline_comment__create_inline_comment"'

What each part is for:442

  • id-token: write is required for the action’s default GitHub App authentication.
  • actions/checkout gives Claude a local copy of the repository to work in.
  • --comment makes Claude post its review on the pull request. Without it, Claude posts nothing and you read the findings in the workflow run log.
  • The claude_args line stays even though the skill names the same tool: the action starts the server that posts inline comments only when --allowedTools in claude_args names it.
  • With a Claude subscription, replace the anthropic_api_key line with claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}.

If you pass a plain-text prompt instead of a skill, Claude has no shell or GitHub API access until you grant the tools the prompt needs, with --allowedTools in claude_args or a permissions.allow rule in the settings input. On public repositories, GitHub withholds secrets from runs triggered by fork pull requests, so this review runs only on pull requests from branches in the same repository.442

For Bedrock (with OIDC):

- name: Configure AWS
  uses: aws-actions/configure-aws-credentials@v4
  with:
    role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
    aws-region: us-west-2

- uses: anthropics/claude-code-action@v1
  with:
    use_bedrock: "true"
    claude_args: '--model us.anthropic.claude-opus-5-5'

These are two steps of a job, not a whole workflow. The job also needs a checkout step and a permissions: block with id-token: write, which GitHub requires to issue the OIDC token that your cloud provider exchanges for credentials. The cloud providers page of the docs has the complete file for each provider.442

Code Review (March 2026; GA October 2026)

Code Review is Anthropic’s multi-agent system that automatically reviews pull requests to catch bugs human reviewers miss. When a PR is opened, a team of agents dispatches in parallel—each examining the codebase from a different perspective—then cross-verifies findings to filter false positives and ranks issues by severity. Results appear as a single overview comment plus inline annotations.111

Availability: Generally available to Claude Team and Enterprise organizations since October 15, 2026. It launched as a research preview on March 9, 2026.343

Review levels and stopping a subscription (v2.1.304-307). Owners choose Quick, Standard (the default), or Deep for the organization and can give individual repositories their own level, and an option reviews every repository in a GitHub organization, including ones added later (v2.1.304). @claude review stop (also off and pause) ends an @claude review always subscription on a pull request without starting a new review (v2.1.307), and re-reviews no longer open with LGTM while earlier blocking findings are still open (v2.1.305).275276343

How it works: 1. Developer opens a PR 2. Multiple AI agents analyze the code in parallel 3. Agents cross-verify each other’s findings 4. A final agent aggregates, deduplicates, and ranks by severity 5. Results posted as PR comments (overview + inline annotations)

Performance metrics (Anthropic internal data from the March 2026 launch post):

Metric Value
Large PRs (1,000+ lines) receiving findings 84% (avg 7.5 issues)
Small PRs (<50 lines) receiving findings 31% (avg 0.5 issues)
Human disagreement rate <1% of findings marked incorrect
Average review time About 6 to 10 minutes343
Substantive PR comments 54% of PRs (up from 16%)

Cost: billed on token usage through usage credits, with no flat per-review price. Anthropic’s launch post put the average at $15 to $25, scaling with PR size and complexity, and the review level (Quick, Standard, Deep) and how often reviews run move it too. Organizations can manage spend through a monthly spend limit, repository-level enablement, and usage analytics.111343

Setup: An Owner of the Claude organization turns the feature on, installs the Claude GitHub App, and adds repositories. Developers need no configuration: each repository starts set to review after every push, and an Owner can change that to once per pull request or to manual, where a @claude review comment starts a review.343

Key distinction from the GitHub Action: The open-source claude-code-action (above) runs Claude on your own CI runners, from a workflow file you maintain. Code Review is the managed service: it runs on Anthropic infrastructure and dispatches a multi-agent team for deeper analysis. By itself, a review does not approve or block the pull request; its result counts toward approvals only in a repository whose Claude Approvals policy file uses it.111442


How Do I Use Claude Code in My IDE?

VS Code Extension

Requirements: VS Code 1.94.0 or later, and any paid Claude subscription (Pro, Max, Ultra, Team, or Enterprise) or a Claude Console account344

Installation: Search “Claude Code” in the Extensions marketplace. From v2.1.318, starting claude in the integrated terminal no longer installs the extension for you; until you install it, /ide reports “No available IDEs detected” and /status shows the IDE as “Not connected”. Running /ide from an external terminal while VS Code is running without the extension still installs it, unless you turned off autoInstallIdeExtension.443

Features:

  • Sidebar panel (Spark icon)
  • Session list in activity bar with sessions opening as full editors (v2.1.70+)107
  • Full markdown document view for plans with comment support (v2.1.70+)107
  • Native MCP server management dialog via /mcp in chat panel (v2.1.70+)107
  • Compaction display as collapsible “Compacted chat” card (v2.1.69+)108
  • Plan mode with diff preview
  • Auto-accept edits toggle
  • Thinking switch in the Model section of the command menu (/); the menu has no switch on models where thinking cannot be turned off443
  • File attachment and image pasting
  • Conversation history
  • Multiple simultaneous sessions
  • Focus view (v2.1.221): a chat-menu toggle that hides tool activity behind an expandable per-turn summary with a live running-tool indicator. Toggle it with Ctrl+Option+F on a Mac, Ctrl+Alt+F on Windows and Linux, or the “Claude Code: Toggle Focus view” command.507 Turn it on when you want to read the conversation as prose and only expand the tool calls you care about; the default view remains the full activity stream.196
  • Session groups (v2.1.229): the sidebar organizes sessions into named groups — right-click to create, rename, or delete; Cmd/Ctrl- or Shift-click moves several sessions at once. The /btw side-question panel is also resizable by dragging its boundary.254

Security Note: Anthropic patched a WebSocket authentication bypass vulnerability (CVE-2025-52882) in IDE extensions v1.0.24+. Ensure your extension is updated; Anthropic removed all vulnerable versions from extension stores.30

Third-party provider configuration (in ~/.claude/settings.json, so the extension and the CLI share it):

{
  "env": {
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1",
    "AWS_PROFILE": "your-profile"
  }
}

In VS Code, also check the extension’s Disable Login Prompt setting (claudeCode.disableLoginPrompt) so that it skips the sign-in prompt.443

v2.1.311 to v2.1.317: code blocks in Claude’s replies get syntax coloring in the light, dark, and high-contrast dark themes, a spinner names slow UserPromptSubmit hooks, and sessions start with DISABLE_TELEMETRY set while VS Code’s telemetry setting is off, so they send no usage metrics and fetch no feature flags (v2.1.311). Idle compaction summarizes a 200K+ token conversation left idle in the chat panel (v2.1.314). You can sign in to a Claude apps gateway from the chat panel, ultrathink runs its turn at xhigh effort with the rainbow, and the Effort slider, Ultracode switch, and model name show when the model setting carries the [1m] tag (v2.1.316). CLAUDE_CODE_DISABLE_CFC_PROMPT also keeps the Claude in Chrome instructions out of a session’s messages while the browser tools stay available (v2.1.314). Forked conversations keep every parallel tool call and the messages a compaction kept (v2.1.317).281

JetBrains Plugin

Supported: most JetBrains IDEs, including IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, and GoLand344

Installation: install the Claude Code plugin from the JetBrains Marketplace, then restart your IDE.508

Key shortcuts:

  • Cmd+Esc (Mac) / Ctrl+Esc (Windows): Quick launch
  • Cmd+Option+K (Mac) / Alt+Ctrl+K (Windows): Add file reference

Features:

  • Diff viewing in IDE diff viewer
  • Selection context auto-sharing
  • Diagnostic integration
  • Multiple sessions

WSL2 configuration: Set Claude command to:

wsl -d Ubuntu -- bash -lic "claude"

Terminal Integration

Connect an external terminal to your IDE:

> /ide

/ide connects Claude Code to VS Code or a JetBrains IDE. The VS Code extension also installs in Cursor and in other VS Code forks such as Devin Desktop or Kiro.508

Slack Integration (December 2025)

The Slack integration that launched in December 2025 is retired. In a Slack workspace that is not connected to Claude Tag, @Claude now replies that the workspace is not set up for Claude Tag. On Team and Enterprise plans, the replacement is Claude Tag. On Pro, Max, and Ultra plans there is no Slack path: start the task in Projects, if your account has them, or as a cloud session with claude --cloud "task". Details are in Claude Code in Slack.345


Advanced Usage Patterns

Headless and CI Mode

Run Claude Code in scripts and CI pipelines:

#!/bin/bash
# Automated code review

result=$(claude -p "Review this code for quality issues" \
  --output-format json \
  --allowedTools "Read,Grep,Glob" \
  --permission-mode plan \
  --disable-slash-commands \
  --max-turns 5)

if echo "$result" | jq -e '.result | test("critical|high severity")' > /dev/null; then
  echo "Issues found:"
  echo "$result" | jq -r '.result'
  exit 1
fi

echo "Review passed"
exit 0

Piping and Chaining

# Analyze logs
cat production.log | claude -p "summarize errors" > error-summary.md

# Process multiple files
find . -name "*.ts" -exec cat {} \; | claude -p "find security issues"

# Chain with jq
claude -p "generate config" --output-format json | jq -r '.result' > config.json

Background Tasks

Run long operations without blocking:

> start the build in the background

Or press Ctrl+B during command execution.

Manage background tasks:

> /tasks                     # List background work in this session
> get output from task xyz   # Retrieve output

/tasks is the documented name, and /bashes still works as an alias.346

Parallel Sessions with Git Worktrees

# Create worktrees for parallel work
git worktree add ../project-feature-a -b feature-a
git worktree add ../project-bugfix bugfix-123   # bugfix-123 is a branch that already exists

# Run Claude in each worktree (separate project dirs = separate sessions)
cd ../project-feature-a && claude
cd ../project-bugfix && claude

Each worktree is an independent project directory with its own session. The first command creates a new branch; the second checks out a branch that must already exist in your repository.509

Worktree changes in v2.1.304-309. claude --worktree no longer removes the worktree and its branch without asking at exit when HEAD was detached or on another branch, which could lose commits (v2.1.304); new worktrees in a bare repository start from the default branch instead of local HEAD, and unchanged subagent worktrees are cleaned up (v2.1.305); worktree creation and reuse no longer fetch git objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured, which fetch them first, and worktrees and branch checkouts ignore git replace refs (v2.1.309).275

Worktree changes in v2.1.323 through v2.1.330. ExitWorktree asks before removing a worktree that may hold unsaved work, and is refused in don’t-ask mode or with nobody to answer unless an allow rule, auto mode, or bypass permissions mode allows it (v2.1.327); it refuses to remove a worktree while a background subagent or shell command may still be running in it, unless Claude passes discard_changes (v2.1.326); and it no longer deletes a worktree another running Claude Code session is working in (v2.1.330). A subagent isolated in a worktree is refused some git commands that can rewrite branches shared with your checkout (v2.1.326), and an isolated worktree session or agent is refused git bisect run, git maintenance register|start, and scalar’s set-up commands (v2.1.325). Worktree creation refuses checkouts whose .git folders are links or hold hard links, such as git-new-workdir layouts and cp -al copies; use a plain clone (v2.1.323). Worktree creation, /teleport, and IDE checkouts run git with a stricter PATH, so a git filter or helper may need its full path (v2.1.326).527

JSON Output Parsing

result=$(claude -p "analyze this code" --output-format json)

# Extract fields
echo "Result: $(echo $result | jq -r '.result')"
echo "Cost: $(echo $result | jq -r '.total_cost_usd')"
echo "Session: $(echo $result | jq -r '.session_id')"
echo "Duration: $(echo $result | jq -r '.duration_ms')ms"

With --output-format json, Claude Code prints a single result object, and result, total_cost_usd, session_id, and duration_ms are fields of that result.510

Programmatic Session Management

# Name the current session for easy recall (inside Claude: /rename feature-auth)
# Then resume by name later:
claude --resume "feature-auth"

# Continue most recent session
claude -c

# List recent sessions to find one
claude --resume          # interactive picker

The picker opens with your 50 most recent sessions (v2.1.47+) and, since v2.1.243, loads more as you scroll.347


Remote & Background Agents

Claude Code extends beyond your local terminal through two complementary features: Remote (cloud execution with local teleportation) and Background Agents (parallel task execution without blocking your terminal). Remote work runs as cloud sessions, by default on Anthropic-managed infrastructure, while background agents and background sessions run on your own machine.346348517

The Core Concept

The web interface at claude.ai/code runs Claude Code in the cloud. Tasks execute in the background while you’re away from your terminal. When you’re ready to continue, teleport the session to your local machine and pick up exactly where Claude left off.

Remote execution enables workflows that were not possible before:

  • Start a complex refactoring task from your phone, let it run while you commute, then finish on your workstation
  • Queue up multiple tasks on the web interface, review results when you return to your desk
  • Hand off long-running operations to the cloud when you need to close your laptop

Sending a Task to the Cloud

Send a task to run as a cloud session in the background:

claude --cloud "Build a complete REST API for user management with authentication, CRUD operations, and proper error handling"

--cloud dispatches your prompt to a new cloud session. Claude works on it asynchronously. You can close your terminal, switch devices, or continue with other work. The web interface at claude.ai/code shows your running and completed sessions, and in the terminal /tasks lists them, with t to teleport into one.278348

v2.0.45 added a shortcut for the same job, a message that starts with &. v2.1.154 removed the “& for background” hint from the shortcuts help panel as stale, and today’s reference for input prefixes lists /, !, @, :, and ? but not &, so use claude --cloud.349

The --teleport Flag

Pull a cloud session into your local terminal:

claude --teleport <session-id>

The flag pulls a cloud session into your terminal. Claude verifies that you are in the correct repository, fetches and checks out the branch from the cloud session, and loads the conversation; if you have uncommitted changes, you are prompted to stash them first. If the cloud session was compacted, which happens automatically in a long session, the earlier messages it summarized are not copied, and Claude continues from the summary. The terminal gets its own copy of the session: new work there stays local and does not appear in the cloud session.444

Run claude --teleport with no ID for a session picker, or /teleport (/tp) inside a session. Typed inside the cloud session itself, /teleport replies with the exact claude --teleport <session-id> command for that session.511 On claude.ai/code, Open in > Terminal in the session menu copies a command you can paste into your terminal.444

The --cloud Flag

--teleport moves a session from the cloud to your terminal. --cloud goes the other way for new work: it starts a cloud session from the command line without opening a browser.278

claude --cloud "Fix the authentication bug in src/auth/login.ts"

The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits. One repository per session; each --cloud command creates its own session, so several in a row run in parallel. While the container provisions, the CLI shows a live checklist (clone, setup script) and queues anything you type until the session is ready. The older --remote spelling still works as a deprecated alias.278

The docs name two cases where your local repository is uploaded instead of cloned. From a repository that has no git remote, or a github.com repository that the Claude GitHub App is not installed on, claude --cloud bundles your local repository and uploads it to the cloud session, even if you connected GitHub with /web-setup. For a full clone, the bundle holds your repository history across all branches plus uncommitted changes to tracked files; untracked files are not included. On macOS, Linux, and WSL, uncommitted changes to files named like credentials or keys (.env files, Terraform *.tfvars files, and key files such as id_rsa and *.pem) are left out, and a Left on this machine: notice names them. On native Windows, uncommitted changes to tracked files upload as they are, whatever the file’s name, so stash or revert an edit you do not want in the cloud session before you start it. A bundle must be under 100 MB; a larger repository falls back to the current branch only, then to a single squashed snapshot of the working tree. Setting CCR_FORCE_BUNDLE=1 uploads a bundle even when Claude Code would otherwise clone from the remote.444

With -p and a session ID or claude.ai/code URL, the same flag posts one message into a running cloud session and exits without waiting for a reply, from any machine where you are signed in with claude auth login:

claude -p "Also update the README" --cloud session_01DiUkqY2kzbUbDmW1w96rfi
echo "your message" | claude -p --cloud <session-id>     # stdin works too

On success it prints the session ID and a claude.ai link; --output-format json returns {ok, session_id, url} (stream-json is not supported here). --cloud <session-id> without -p fails with “Attaching to an existing cloud session is not enabled for your account”. The flag needs an Anthropic account and the organization’s allow_remote_sessions policy, and is unavailable when Claude Code is configured for Amazon Bedrock, Google Cloud’s Agent Platform, or another third-party provider. It is unrelated to --remote-control, which exposes a local session to claude.ai and the Claude app.278

Requirements

Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.348 A cloud session runs Claude Code’s capabilities (file operations, bash commands, MCP integrations) on cloud infrastructure instead of on your machine: by default on infrastructure Anthropic manages, or on your organization’s self-hosted environment when routed there.517 It starts from a fresh clone of your repository, so what you installed or configured only on your own machine is not available in it.512 On Team and Enterprise, an Owner turns cloud sessions on or off in the Claude Code admin settings at claude.ai/admin-settings/claude-code, which set the organization’s allow_remote_sessions policy.348

iOS App (October 2025): Claude Code is also available on the Claude iOS app, allowing you to kick off coding tasks on the go and monitor agent progress from your phone.14 The Code tab is in the Claude app for iOS and Android, and it is where projects are created on a phone.277 You can start tasks while away from your desk and later teleport them to your terminal when you’re ready to review.

Remote Control (February 2026): A session mobility feature that lets you continue a local Claude Code session from your phone, tablet, or any browser. The session keeps running on your machine: it makes outbound HTTPS requests only, never opens an inbound port, and all traffic travels through the Anthropic API over TLS.99350 It left research preview in August 2026 and is generally available on Pro, Max, Ultra, Team, and Enterprise plans (v2.1.58 had expanded the earlier preview). API keys are not supported, and on Team and Enterprise an Owner must first enable the Remote Control toggle. Any machine running claude remote-control appears as a device card at the top of the Code tab in the Claude app.202350

The claude remote-control subcommand (v2.1.51+, alias claude rc) starts a Remote Control server with no local interactive session; to share the session you are working in, start it with claude --remote-control or run /remote-control.99350 Session names now default to a hostname-based prefix (e.g. myhost-graceful-unicorn), overridable with --remote-control-session-name-prefix.135 As of v2.1.251, Remote Control clients get live streaming of a foreground subagent’s tool calls and results; background subagents, the default, still show status only.203 A session started with claude --remote-control (or /remote-control) can be forked from the Claude app (added in v2.1.273; forking requires v2.1.277 or later on your machine). The fork runs as a background session on your computer.214513

As of v2.1.222, repo-local settings (.claude/settings.json or .claude/settings.local.json) can no longer turn Remote Control auto-start on — they can still turn it off. Enable it at user scope via /config. The asymmetry is the point: a cloned repository should not be able to silently expose your session to remote continuation, but it may legitimately opt itself out.196 Since v2.1.321 a Remote Control session keeps the folder it was started in: a connected client can no longer move it to another folder, and claude remote-control --settings <file> applies one settings file to every session the host starts.283 disableRemoteControl in any settings file (managed settings for MDM enforcement) makes Claude Code refuse claude remote-control, the --remote-control flag, auto-start, and the in-session toggle, and since v2.1.317 /remote-control says so instead of answering “Unknown command”. Fork names from the app keep a long name’s “(fork)” ending, and in a claude remote-control session a fork of “Name (fork)” is “Name (fork 2)” (v2.1.317). The feature’s own page is Continue local sessions from any device with Remote Control.281282

Practical Workflow

Morning commute:

# From a terminal; on your phone, give the same task to the Code tab of the Claude app
claude --cloud "Review all PRs assigned to me and prepare summaries with recommendations"

At your desk:

# Check what completed
# Visit claude.ai/code to see session list

# Pull the session locally to review and act on recommendations
claude --teleport                # choose the session in the picker

Before leaving work:

claude --cloud "Run the full test suite, fix any failures, and prepare a summary of what was changed"

Next morning:

claude --teleport <session-id>   # the command /teleport prints inside the cloud session
# Review what Claude did overnight, make final adjustments

Claude Code Channels (Research Preview, March 2026)

Claude Code Channels pushes messages from Telegram, Discord, or iMessage into a running Claude Code session, and Claude can reply through the same channel.120351 Each channel is a plugin that you install and configure with your own credentials; the iMessage channel requires macOS.

Requirements: v2.1.80+, the Bun runtime for the supported channel plugins, and sign-in through claude.ai or a Console API key (not Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry). Team and Enterprise organizations must enable channels first. Start the session with --channels and the plugin to listen to, for example claude --channels plugin:telegram@claude-plugins-official. A channel that declares the permission relay capability also forwards tool approval prompts, so you can allow or deny them from the chat app.351

Use case: Monitor and approve agent actions from your phone while Claude Code runs on your workstation. Particularly useful with long-running /loop tasks or overnight agent sessions where you want approval gates without sitting at the terminal.

Claude Security (public beta)

Claude Security is Anthropic’s vulnerability scanner, and it comes in two forms.352 The Claude Security product is a managed service that scans your codebase, validates findings, and suggests patches you review and approve; it is in public beta for Claude Enterprise. The Claude Security plugin, also in beta, runs a multi-agent scan inside a local Claude Code session, on whichever models your session can use, and each scan counts toward your usage.

Availability: Install the plugin with /plugin install claude-security@claude-plugins-official. It needs dynamic workflows, which run on a paid plan, with Anthropic API access, or on a third-party provider, plus Python 3.9 or later on your PATH as python3.352 On Pro, turn dynamic workflows on from the Dynamic workflows row in /config.445

How it works: 1. Run /claude-security and pick Scan codebase 2. Agents map the architecture, hunt for vulnerabilities, and independently review every finding (a separate /claude-security:threat-model command drafts a threat model file you can give to later scans) 3. Read the report 4. Choose which findings become patches, then review and apply them yourself

The product began as Claude Code Security, a limited research preview that Anthropic announced on February 20, 2026 for Enterprise and Team customers, with expedited access for maintainers of open-source repositories. That announcement reported that Claude Opus 4.6 had found over 500 vulnerabilities in production open-source codebases.77352

Current Status

Cloud sessions left research preview on September 23, 2026 and are generally available; Remote Control had left research preview in August 2026.202348 The core workflow (cloud execution with local teleportation) enables continuous AI development: Claude works while you’re away from your keyboard, and you pick up exactly where it left off.

Current limitation: From the CLI, session handoff is one-way: you can pull a cloud session into your terminal with --teleport, but you cannot push an existing terminal session to the cloud. The Desktop app can send a local session in its Code tab to the cloud from its Open in menu.348

Background Agents

Background agents run while you continue working, with no waiting for long-running tasks to complete.9

How Background Agents Work:

Instead of blocking your terminal while Claude runs a complex task, background agents: 1. Run apart from your conversation: the Bash tool runs each command in a separate process, and each background session is its own Claude Code process514 2. Keep working while you use the same session (a Ctrl+B task ends when the session does; a background session started with /background or claude --bg keeps running after you close the terminal)346 3. Report results when complete via notification 4. Can be monitored and managed while running

Starting a Background Agent

Using Ctrl+B: While Claude is working, press Ctrl+B to send the current task to the background. Your terminal becomes available immediately.

Using claude --bg:

claude --bg "Run all tests and fix any failures"
claude --bg "Refactor the authentication module to use JWT"
claude --bg "Generate complete API documentation"

claude --bg starts a background session on your machine and returns immediately, printing the session’s ID; Ctrl+B backgrounds a command that is already running. To run the work as a cloud session instead, use claude --cloud "<prompt>".278514

Monitoring Background Tasks

> /tasks                    # View and manage background work in this session

To keep work running after the terminal closes, detach the whole session with /background (alias /bg), or start one in the background from your shell with claude --bg "<prompt>". claude agents lists background sessions, claude attach <id> opens one in your terminal, and claude stop <id> ends one while keeping its conversation.346

Parallel Background Workflows

Run multiple agents simultaneously:

claude --bg "Fix all failing tests in src/"
claude --bg "Update documentation for the API module"
claude --bg "Run security scan on the codebase"

Each command starts its own background session. Before it edits files, Claude moves a session into its own git worktree under .claude/worktrees/, so parallel sessions read the same checkout and each writes to its own; it skips the worktree in some cases, such as a directory that is not a git repository. claude agents opens agent view, one screen for all your background sessions. For parallel work in the cloud, each claude --cloud command likewise creates its own session that runs independently.514


Claude in Chrome (December 2025; GA July 2026)

Claude Code now integrates with your browser through the Claude in Chrome extension, enabling direct browser control from your terminal.16 It shipped as a beta in v2.0.72 in December 2025 and became generally available in v2.1.198 in July 2026.16515

Prerequisites

  • Google Chrome or Microsoft Edge; Claude Code also sets up the connection in Brave, Arc, Vivaldi, and Opera
  • Claude in Chrome extension 1.0.36 or later, from the Chrome Web Store
  • A direct Anthropic plan (Pro, Max, Ultra, Team, or Enterprise), signed in with /login; an API key or a claude setup-token token keeps the integration off
  • Not supported in Windows Subsystem for Linux (WSL)353

Setup

  1. Install the Claude in Chrome extension from the Chrome Web Store
  2. Grant the extension permissions when prompted (page access is required for browser control)
  3. Launch Claude Code with claude --chrome, or run /chrome and select the option that turns Chrome on by default (in VS Code, the Enabled by default switch) so later sessions connect without the flag; a project’s settings files cannot turn it on (v2.1.290+)232234
  4. Use natural language to control your browser

The first time you enable the integration, Claude Code installs a native messaging host configuration file. Chrome reads that file on startup, so if the extension is not detected on your first attempt, restart Chrome.353

Capabilities

Browser automation from terminal:

> Navigate to github.com and open my repositories
> Fill out this form with the test user data
> Take a screenshot of the current page
> Click the submit button and wait for the page to load

Web scraping and testing:

> Extract all product prices from this e-commerce page
> Run through the signup flow and report any issues
> Check if the mobile menu works correctly

Use Cases

  • E2E testing: Run integration tests directly from Claude Code
  • Web scraping: Extract data from pages without writing browser automation code
  • Form filling: Automate repetitive web workflows
  • Visual verification: Screenshot and analyze page layouts

The Chrome integration runs within your existing browser session, accessing your logged-in state and cookies, which is useful for testing authenticated flows.

Permissions (v2.1.251+): browser actions always go through Claude Code’s own permission checks, including in sessions with telemetry disabled.203 As of v2.1.260, the integration also follows your organization’s Claude in Chrome admin setting: when an admin turns it off, --chrome, /chrome, and the browser tools are unavailable.209 As of v2.1.285, /config chrome=true directs you to the /config panel instead of enabling Claude in Chrome by default, while /config chrome=false still turns it off when it was on.226 A project’s settings files cannot turn Claude in Chrome on (v2.1.290+); use --chrome, /chrome, or your user settings. The /chrome option that turns Chrome on by default sets claudeInChromeDefaultEnabled in the global config.232234

Limitations

  • Tabs: Claude opens new tabs for its work and can work across them; the extension collects those tabs into a tab group tied to your session353
  • JavaScript dialogs block execution: alert(), confirm(), and prompt() dialogs pause the extension — avoid triggering them in automated flows
  • Idle connection: the extension’s service worker can go idle during a long session; if browser tools stop responding, run /chrome and select Reconnect extension353

Claude Code in Slack (December 2025)

Anthropic launched Claude Code in Slack on December 8, 2025 as a research preview, a per-user integration that took coding tasks from chat threads: an @Claude mention in a channel started a cloud session under the mentioning user’s own Claude account, progress appeared in the thread, and a Create PR button opened GitHub’s compare page for the session’s branch.18345 That integration is retired. The docs page for it now exists to say what to use in its place: “The earlier Claude Code in Slack is retired. In a workspace that isn’t connected to Claude Tag, @Claude replies that the workspace isn’t set up for Claude Tag.”345

How It Works

What @Claude does in Slack today depends on your plan:345

  • Team and Enterprise plans: use Claude Tag if it is in your channel. If it is not, an Owner of your Claude organization sets it up, and a workspace that used the earlier version is moved with Anthropic’s migration guide.
  • Pro, Max, and Ultra plans: Claude Tag is not available on individual plans. Start tasks in Projects if your account has them, or in cloud sessions.

Example Workflow

On an individual plan, the request you would have typed in Slack goes to a cloud session from your terminal:

claude --cloud "The login form validation is broken on mobile devices. Fix it and open a pull request."

The session runs in the cloud against a clone of your repository; claude --teleport pulls it back into the terminal. See Claude Code on the Web.

On a Team or Enterprise plan with Claude Tag in the channel, the request stays in Slack: tag @Claude in the channel and describe the task. Claude Tag works as one shared Claude identity for the company, not as your own account, and it posts a checklist in the thread as it goes.174552

Benefits

What you gain depends on which replacement your plan gets:

  • Claude Tag (Team and Enterprise): the work stays in the channel. Anyone in a Slack channel can tag @Claude and hand it work, it posts a checklist in the thread as it goes, and the whole exchange stays visible to the channel. Administrators govern the access: Claude Tag keeps the Slack app and the @Claude handle of the earlier version and changes who Claude acts as and who sets it up, and repositories and other connections do not carry over from individual users’ linked accounts.552
  • Cloud sessions (Pro, Max, and Ultra): the task runs as a cloud session on infrastructure Anthropic manages, and the session keeps running after you close your laptop.517

Prerequisites

For Claude Tag, the replacement on organization plans:552

  • A Team or Enterprise plan on claude.ai, on Anthropic’s first-party service
  • The Owner role in the Claude organization to run setup, and a Slack workspace admin to connect the workspace
  • Usage credits on a Team plan: channel work draws from the organization’s usage balance, and on a Team plan nothing runs until credits are loaded
  • A Claude organization without Zero Data Retention, customer-managed encryption, or the HIPAA configuration

On an individual plan there is nothing to connect in Slack. Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.553

Limitations

  • Not on individual plans: Claude Tag is not available on Free, Pro, Max, or Ultra, or for third-party deployments
  • Public beta: Anthropic’s Claude Tag docs say features and behavior may change before general availability
  • No data migrates: a workspace moved from the earlier version keeps its Slack app and @Claude handle, and Claude starts with no access of its own until administrators add connections
  • The earlier per-user integration is retired on every plan, Pro, Max, and Ultra included345552

Claude Tag updates (v2.1.311 to v2.1.317). Admin analytics gains a Skills view showing how often Claude runs each attached skill in Slack channels and which go unused, routines that run in a new session can end without posting a throwaway message when there is nothing to report, and private channels your own Slack account can see show a lock instead of # in admin settings (v2.1.311). A channel’s Respond automatically switch became a “How Claude participates” choice on the channel’s Configure page and in admin settings (v2.1.316). Newly pasted artifact links show a card with an Open button that opens the artifact in Claude (v2.1.317).281


Claude in Microsoft 365 (May 2026)

On May 7, 2026 Anthropic moved its Microsoft 365 surface from limited rollout to general availability for paid plans. Per the announcement: “Claude for Excel, PowerPoint, and Word are generally available, and Claude for Outlook is now in public beta for all paid plans.”158

The pitch is a connected workspace across the apps. Anthropic frames it concretely: “Adjust an assumption in Excel and the chart in PowerPoint and the number in your Word memo automatically update, too.”158 For Outlook, the new behavior is mailbox triage: “Ask Claude to triage your inbox and it sorts messages by what needs your response, what it can draft for you, and what’s noise.”158

Availability

  • Excel, PowerPoint, Word. Generally available. “All Mac and Windows users on paid plans can access Claude for Microsoft 365.”158
  • Outlook. Public beta. “Claude for Outlook is available in beta on all paid plans.”158

How it relates to Claude Code

The Microsoft 365 add-ins live inside the Office apps. They are not a Claude Code surface (you don’t drive a CLI from Excel), but Anthropic’s May 5, 2026 finance announcement, which covers the add-ins, also released ten agent templates, each of which ships as a plugin in Claude Cowork and Claude Code, along with new data connectors and a Moody’s MCP app.155 Treat M365 as the office-app companion to the CLI, not a replacement.


Claude Code on the Web (October 2025; GA September 2026)

Claude Code on the web lets you delegate coding tasks from your browser at claude.ai/code, running by default on Anthropic-managed cloud infrastructure.64517 This is Claude Code without the terminal: assign tasks, track progress, and get pull requests back. It launched as a research preview on October 20, 2025 and became generally available on September 23, 2026.348

Naming (v2.1.274): inside the CLI the product phrase is now “cloud session” – the /status GitHub line reads “Cloud sessions”, and /web-setup, /ultrareview, and teleport messages say “cloud session” instead of “Claude Code on the web”.215

Key Capabilities

  • Parallel task execution: Kick off multiple coding tasks across different repositories simultaneously from a single interface
  • Real-time progress tracking: Watch Claude work through tasks with live updates; redirect its approach mid-session
  • Automated PR creation: Claude generates pull requests with clear change summaries
  • Session teleportation: Pull web sessions into your local terminal with claude --teleport to continue work locally
  • Mobile access: the Code tab in the Claude app for iOS and Android starts cloud sessions and projects from your phone277

Security Architecture

In an Anthropic-hosted environment, tasks execute in isolated sandbox environments with network and filesystem restrictions. Git interactions flow through a secure proxy that limits repository access to authorized repos only. You can add custom network configuration to choose which domains Claude Code can connect to from its sandbox (for example, allowing npm package downloads so that tests can run).64 In a self-hosted environment, isolation is your deployment’s responsibility: you restrict outbound traffic at your own network boundary, and your deployment supplies the git credentials.517

Availability

Plan Access
Pro / Max / Ultra / Team Included
Enterprise Users with premium seats or Chat + Claude Code seats348

Cloud sessions share rate limits with all other Claude and Claude Code usage in your account, and running multiple tasks in parallel consumes proportionately more of them.444

Connecting GitHub from the Terminal: /web-setup

Cloud sessions need access to your repositories. Besides authorizing the Claude GitHub App, a developer who already uses gh can run /web-setup in the terminal to send the local gh CLI token to their Claude account; installing the App on the repository is not required for sessions you start yourself, though project threads and Auto-fix still need it. When you create a scheduled task with /schedule and your account has no GitHub access for the repository, Claude adds a setup note naming how to grant it. On Team and Enterprise plans /web-setup stays hidden until an Owner turns on the Quick setup toggle at claude.ai/admin-settings/claude-code, which is off by default there, and organizations with Zero Data Retention or the HIPAA configuration cannot use /web-setup or other cloud session features.348354

As of v2.1.243, /status shows whether GitHub is connected for cloud sessions (Pro/Max) and points to /web-setup when it is not (v2.1.274 renames that line “Cloud sessions”), claude.ai users who have not connected GitHub get a tip pointing them there, and /web-setup no longer asks for login repeatedly when an older gh without gh auth token was already authenticated.247

Web vs Terminal: When to Use Which

Scenario Use Web Use Terminal
Bug backlog triage Assign 5 bugs in parallel —
Quick fix while away from desk Assign from phone —
Complex architecture work — Full codebase context
Hooks, plugins, and MCP servers configured only on your machine Not available: a cloud session starts from a fresh clone of the repository512 Full extension layer
Overnight batch work Assign before bed, review morning claude --cloud, or a cloud scheduled task

Current limitation: From the CLI, session handoff is one-way: you can pull a cloud session into your terminal with --teleport, but you cannot push an existing terminal session to the cloud. claude --cloud starts a new cloud session from the terminal; it does not move the current one. The Desktop app can send a local session in its Code tab to the cloud from its Open in menu.278348

Projects (public beta, September 17, 2026)

A project is one ongoing conversation at claude.ai/code in which Claude coordinates a stream of related work. You paste a task, a bug report, or a list, and Claude starts a thread for each piece of work, routes it to the thread already working in that area, or answers a quick question in place. Each thread is a cloud session with its own context window and its own branch; it opens a pull request when you ask or when a concrete change calls for one, then watches it with auto-fix on. Every new thread starts from the project’s instructions (up to 16,000 characters) and its memory, notes Claude keeps as files behind a MEMORY.md index, so a rule you state once reaches every thread. The Overview pane groups threads by state (Ready for review, Waiting on you, Working, Landing, Idle, Resolved) and adds Library, Pull requests, and Scheduled tasks tabs. Anthropic announced the redesign on September 17, 2026. It is in public beta on Pro, Max, and Ultra, rolling out gradually to accounts that have used cloud sessions, with a waitlist, and not yet on Team or Enterprise.277

What a cloud thread takes from your repositories, and what it does not:

In each repository In a cloud thread
CLAUDE.md, .claude/CLAUDE.md, .claude/rules/ at the root Loaded when the thread starts (subdirectory CLAUDE.md files and path-specific rules are not)
Skills under .claude/skills/ Not loaded; enable the skill for your claude.ai account instead
MCP servers in .mcp.json Not loaded; threads use the connectors on your claude.ai account
Plugins, permission rules, hooks, and env in .claude/settings.json Not applied; add plugins in Project settings, approve tool calls inside the thread, set variables in the cloud environment

Threads run in auto mode when the model supports it; a permission prompt waits inside the thread, and telling Claude to go ahead in the project conversation does not reach it. A new project runs every thread on Opus at medium effort and the conversation at low effort; change both in Project settings > General.554 Usage counts against your plan limits and runs them down faster, with an enforced cap of 500 new threads per day across your projects; a thread that hits the five-hour or weekly limit waits and resumes when it resets. When a task needs something only your computer has, choose Work locally in the conversation: the thread then runs through Remote Control in a folder you connected from the desktop app or with claude remote-control (add --spawn worktree in a git repository so each thread gets its own worktree). That needs v2.1.280 or later on the machine and is blocked while Require trusted devices is on. Projects are not available in the terminal CLI, the VS Code extension, the JetBrains plugin, or through Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry, and a project belongs to one user with no sharing during the beta. A thread that stops with “Reached the turn limit” hit the cap that CLAUDE_CODE_MAX_TURNS sets.277

Cloud Scheduled Tasks: /schedule (formerly routines)

A cloud scheduled task, formerly a routine, is a saved Claude Code configuration (a prompt, one or more repositories, and a set of connectors) that runs as a cloud session on a schedule (hourly to weekly, or once at a future time; cron expressions for custom cadences, nothing more often than hourly), on an API call (an HTTP POST to the task’s own /fire endpoint with a bearer token and an optional text field such as an alert body), or on a GitHub event such as a pull request opening. One task can combine triggers. Create one at claude.ai/code/routines, from the desktop app’s Scheduled page, or in any session with /schedule; /routines remains an alias.279

Tasks belong to your account, act as you on GitHub and connectors, and draw down plan usage like interactive sessions. Four hourly limits apply, and none has overage. Scheduled runs, one-off runs included, are capped at 100 per hour for your account, and a run over that cap waits until the limit resets. Run now, API fires, and setting a one-off task to run again share one count of 30 per hour for each task. Across your account, Run now together with re-run one-offs is capped at 100 per hour, and API fires at a separate 100 per hour. An action over one of those three caps fails until the limit resets.446 GitHub webhook events have their own hourly caps for each task and for your account, and events beyond a cap are dropped until the window resets.516 Available on Pro, Max, Ultra, Team, and Enterprise, in research preview; Team and Enterprise Owners turn the feature off with the Scheduled tasks (Was Routines) toggle under Organization settings > Capabilities > Remote sessions.279354

The desktop app adds local scheduled tasks that run on your machine with your files and tools, but only while the app is open and the computer is awake. The three schedulers compare like this:279

Cloud task Desktop task /loop
Runs on Anthropic-managed cloud, or a self-hosted environment Your machine Your machine
Requires the machine on No Yes Yes
Requires an open session No No Yes
Survives restarts Yes Yes Restored on --resume, with exceptions
Local files No (fresh clone) Yes Yes
MCP servers Connectors configured per task Config files and connectors Inherits from the session
Permission prompts Auto mode by default Configurable per task Inherits from the session
Minimum interval 1 hour 1 minute when Claude sets it, 1 hour in the forms 1 minute

Session-scoped tasks end after 30 days (v2.1.330). A recurring task you schedule in a session, and a /loop, expire 30 days after creation: the task fires one final time, then deletes itself. A recurring task created before v2.1.330 keeps a 7-day limit. For a task that has to last longer, cancel and recreate it before it expires, or use a cloud or Desktop scheduled task. Two v2.1.329 changes affect what survives: in new signed-in sessions, most scheduled tasks saved by earlier versions need scheduling again (resuming their own session with --resume still runs them), and choosing “Exit and stop tasks” ends the session’s scheduled tasks so they do not run again on resume. Since v2.1.325 a scheduled task or /loop asks before it runs a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended.527531

Cloud sessions (v2.1.311 to v2.1.317). A link card lets you open or decline a URL an MCP server asks you to visit (v2.1.317), and a form card lets you fill in or decline a form it asks for instead of the request being canceled unseen (v2.1.316). A session you switch back to shows “Catching up” while its messages load (v2.1.316). A routine that runs in the cloud takes an effort level in its model picker, and the setup script box is a Bash editor with line numbers (v2.1.312). Cloud sessions started from the CLI get their names and branch names from the server (v2.1.312). Scheduled tasks in Anthropic’s cloud load the plugins enabled on your claude.ai account, a session starts even when its setup script exits with an error, and the Scheduled tasks page shows an Include completed button when finished one-off tasks are the only ones hidden (v2.1.314). Enterprise members can add and delete network secrets on their own cloud environments (v2.1.316), and adding a secret for a host that already has one is refused instead of silently replacing it (v2.1.317). New scheduled tasks start on the environment an admin chose as the organization default (v2.1.317).281


Performance Optimization

Reducing Latency

Model selection:

  • Haiku: Fastest responses, lowest cost
  • Sonnet: Good balance
  • Opus: the default; strong quality at higher latency (fast mode buys faster output at a premium price on Opus 5.5 and Fable 5.2)
  • Fable: the tier above Opus, for the hardest and longest-running tasks, at the highest token price355

Streaming: All responses stream by default, so you see output as it’s generated.

Prompt caching: Enabled by default. Reduces latency for repeated context (system prompts, tool definitions).

Caching Strategies

Claude Code automatically caches system prompts and tool definitions; a cache hit means fewer billed input tokens and a faster response. The cache lifetime (TTL) depends on how you are billed and on which bucket the request falls in: the main conversation (your interactive turns, -p runs, Agent SDK turns, and the helpers run inline with them) or everything else (subagents, workflows, in-process teammates, forks, compaction, session titles):245

Request bucket Claude subscription, within plan usage Usage credits, API key, or cloud provider
Main conversation One hour Five minutes
Everything else Five minutes (a small set of server-controlled helper requests get one hour) Five minutes

Once a subscription session spills past the plan’s included usage into usage credits, the main conversation drops to five minutes. Two settings (v2.1.242+) pick the TTL per bucket, each taking "5m" or "1h": promptCacheTtl for the main conversation and subagentPromptCacheTtl for everything else, with CLAUDE_CODE_PROMPT_CACHE_TTL and CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL as the env-var equivalents. When more than one control applies, the first match wins: FORCE_PROMPT_CACHING_5M=1, then the bucket’s env var, then the bucket’s setting, then (for a subagent’s requests, v2.1.248+) the cacheTtl value in its experimental frontmatter, then ENABLE_PROMPT_CACHING_1H=1, then the bucket default above. The one-hour TTL bills cache writes at a higher rate, so it pays off on sessions that idle past five minutes and costs more on short bursts that never do.247245356

{
  "promptCacheTtl": "1h",
  "subagentPromptCacheTtl": "5m"
}

Claude’s reasoning from earlier turns stays in the conversation history, so it is read from the cache with the rest of the prefix.150526

Disable caching per model, or for every model, when you are debugging cache behavior:

export DISABLE_PROMPT_CACHING_SONNET=1
export DISABLE_PROMPT_CACHING_OPUS=1
export DISABLE_PROMPT_CACHING_HAIKU=1
export DISABLE_PROMPT_CACHING_FABLE=1
export DISABLE_PROMPT_CACHING=1          # all models; takes precedence over the per-model switches

The Sonnet, Opus, and Haiku switches each cover the model that alias resolves to; a different version pinned by ID keeps caching unless you set DISABLE_PROMPT_CACHING.356

Parallel Operations

Subagent parallelization: Multiple subagents can run simultaneously. Each operates independently without polluting main context.

Background bash: Long-running commands don’t block the conversation:

> run the full test suite in the background

In unattended sessions (-p, the Agent SDK, CI, cloud sessions), a background command stops at a time limit: its timeout, 30 minutes by default and 2 hours at most (10 minutes by default in a -p run whose prompt is passed as text), and Claude is notified when it does. The limit arrived in v2.1.285 for every session; since v2.1.288, terminal, desktop app, and VS Code sessions have no limit.226231357

Git worktrees (v2.1.49+): Start Claude in an isolated git worktree for parallel work without affecting your main working tree. The value passed to -w names the worktree; without one, Claude Code generates a name (--name sets the session’s display name, not the worktree’s):358

claude --worktree            # or -w; creates worktree in .claude/worktrees/
claude -w feature-x          # Named worktree at .claude/worktrees/feature-x

Subagents also support isolation: "worktree" in their definitions, giving each subagent an isolated repo copy that is automatically cleaned up if no changes are made.94 The ExitWorktree tool allows agents to leave a worktree session programmatically (v2.1.72+).112 For non-git VCS, configure WorktreeCreate/WorktreeRemove hooks to handle custom setup and teardown.94

Sparse worktrees for monorepos (v2.1.76+): The worktree.sparsePaths setting enables git sparse-checkout for worktrees in large monorepos, checking out only the paths you specify instead of the entire repository:116

{
  "worktree": {
    "sparsePaths": ["packages/my-service", "shared/utils"]
  }
}

Shared state across worktrees (v2.1.63+): The v2.1.63 release note says project configs and auto memory are shared across git worktrees of the same repository, and today’s docs spell out what that covers. Worktrees of one repository share one auto memory directory. A Bash approval you save with “Yes, and don’t ask again” in a worktree goes to the main checkout’s .claude/settings.local.json, so the rule applies in the main checkout and in every other worktree and survives the worktree’s removal (on Windows, and in the other cases where Claude Code does not use the repository root, the rule stays with that worktree). The committed .claude/settings.json is not shared the same way: Claude Code reads it from the session’s primary working directory, which for a session started in a worktree is that worktree’s own checkout.102518

worktree.baseRef setting (v2.1.133+, changed default): Controls what --worktree, EnterWorktree, and agent-isolation worktrees branch from. Two values:157

  • "fresh" (the new default): branch from origin/<default>. Reverts the v2.1.128 behavior change. The new worktree matches the remote, so your unpushed local commits are not in it; they stay on the branch you made them on.447
  • "head": branch from local HEAD. Required if you want unpushed commits available in new worktrees.
{
  "worktree": {
    "baseRef": "head"
  }
}

Operator note: if you came to rely on the v2.1.128–v2.1.132 behavior of carrying unpushed work into new worktrees, set worktree.baseRef: "head" before upgrading or your EnterWorktree worktrees will silently start from origin/<default> instead.157

Mid-session worktree switching (v2.1.157+). EnterWorktree can now switch between Claude-managed worktrees mid-session, not only enter a fresh one — useful when an agent needs to hop between two parallel branches without restarting. Background worktrees are also left unlocked after the agent finishes, so git worktree remove / git worktree prune no longer trip on a stale lock.263

Memory Optimization

  • Specific file references: @src/auth.ts instead of “find the auth file”
  • Targeted searches: “search in src/api” not “search everywhere”
  • Fresh sessions: /clear between unrelated tasks
  • Custom compaction: Add instructions to CLAUDE.md for what to preserve
  • Tool result disk persistence (v2.1.51+): Tool results larger than 50K characters are now persisted to disk (lowered from 100K), reducing context window usage and improving conversation longevity in long sessions96
  • BashTool login shell skip (v2.1.51+): BashTool skips the login shell -l flag by default when a shell snapshot is available, which speeds up command execution96

How Do I Debug Issues?

Installation Issues

WSL path problems:

npm config set os linux
npm install -g @anthropic-ai/claude-code@latest --force   # do not use sudo
which npm  # Should start with /usr not /mnt/c

A platform mismatch during install usually means WSL is picking up the Windows npm.359

Node version conflicts (nvm): Add to ~/.bashrc or ~/.zshrc:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

Permission errors: Use native installation instead of npm:

curl -fsSL https://claude.ai/install.sh | bash

Authentication Issues

To reset a login, run /logout inside the session (or claude auth logout from the shell), close Claude Code, then start claude and sign in again. The login lives in the macOS Keychain, or in ~/.claude/.credentials.json on Linux and Windows; /login and /logout manage it, so there is no credentials file to delete by hand.360 The claude auth subcommands are listed under Authentication Management below.

Performance Issues

High CPU/memory:

  • Use /compact to reduce context
  • Restart between major tasks
  • Add large directories to .gitignore
  • Restart with claude --safe-mode to check whether a plugin, MCP server, or hook is the source; it disables all customizations for the session448
  • Run claude doctor

Search not finding files: If the Search tool, @file mentions, custom agents, or custom skills are not finding files, the bundled ripgrep binary may not run on your system. Install the system package:448

# macOS
brew install ripgrep

# Windows
winget install BurntSushi.ripgrep.MSVC

# Linux
sudo apt install ripgrep

Then:

export USE_BUILTIN_RIPGREP=0

To confirm the switch, run claude doctor and check that its Search line shows the path of your system ripgrep instead of OK (bundled).448

Slow on WSL:

  • Move project to Linux filesystem (not /mnt/c/)
  • Use specific directory filters in searches

IDE Integration Issues

JetBrains not detected (WSL2):

Option 1 - Windows Firewall. Run hostname -I inside WSL, take the first two segments of the address to get your subnet (172.21.123.45 gives 172.21.0.0/16), then run this in PowerShell as Administrator with your own subnet in both places:359

New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16

Option 2 - Mirrored networking (Windows 11 22H2 or later; add to .wslconfig in your Windows user directory):

[wsl2]
networkingMode=mirrored

Then: wsl --shutdown

Escape key not working in JetBrains: Settings → Tools → Terminal → Uncheck “Move focus to the editor with Escape”

Authentication Management (v2.1.41+)

claude auth login                # Log in or switch accounts
claude auth status               # Check current authentication state
claude auth logout               # Log out and clear stored credentials

Use claude auth logout && claude auth login to reset authentication when switching between API key and OAuth, or between organizations.

Debug Mode

claude --debug                    # Debug log at ~/.claude/debug/<session-id>.txt (nothing prints to the terminal)
claude --debug='mcp,startup'      # Debug log limited to the categories you name
claude --debug-file /tmp/claude-debug.log   # Write the debug log to a file (turns debug mode on)
claude doctor                    # Read-only installation and settings diagnostics

The category filter binds only in the = form, and --debug='!mcp' excludes a category.449

Inside a session, /debug [description] (v2.1.30+) turns on debug logging for the current session and has Claude read the session’s debug log to troubleshoot; logging starts at the point you run it unless you launched with claude --debug. For context usage use /context, for MCP server status /mcp, and for rules and recent auto mode denials /permissions.361

Configuration Reset

Start with claude doctor from your shell (read-only installation and settings diagnostics) or /doctor inside a session (a setup checkup that proposes fixes and asks before applying them); both point at invalid settings files. To undo a setting, edit or remove its key in ~/.claude/settings.json (yours), .claude/settings.json (the project’s, shared through git), or .claude/settings.local.json (yours, for this project).362

Do not delete ~/.claude.json, ~/.claude/settings.json, or ~/.claude/plugins/: they hold your account details, preferences, and installed plugins. ~/.claude/projects/ holds what resume, continue, and rewind need for past sessions, plus auto memory for every project. A project’s .claude/ folder and .mcp.json are usually committed team configuration, so restore them with git instead of deleting them.362

To clear the local state Claude Code holds for one project without touching other projects, use claude purge: it deletes the project’s transcripts and auto memory, its task, debug, and file-edit history entries, its prompt history lines, and its entry in ~/.claude.json, after printing the plan and asking for confirmation. --dry-run previews, -y skips the confirmation, and --all covers every project. The earlier name, claude project purge, still works and prints a notice (v2.1.288+).231234

claude purge ~/work/my-repo --dry-run   # Preview what would be deleted
claude purge ~/work/my-repo             # Delete after one confirmation

Common Error Messages

Message Cause What to do
Context limit reached · /compact or /clear to continue (Prompt is too long in -p output and the transcript) The conversation plus attached files exceeds the model’s context window Run /compact, or /clear to start over
API Error: Request rejected (429), followed by a sentence on where to check service health You hit the rate limit configured for your API key, Amazon Bedrock project, or Google Cloud project Run /status to confirm which credential is active, then check your provider console for the limit
You've hit your 5-hour limit, You've hit your weekly limit, You've hit your Opus limit, or You've hit your Sonnet limit, each followed by the reset time. On v2.1.311 and earlier, and in the docs’ error reference, the first reads You've hit your session limit519 A subscription plan’s rolling usage allowance ran out Wait for the reset time in the message; /usage shows your plan limits and when they reset
Not logged in · Please run /login No valid credential is available for the session Run /login
Login expired · Please run /login Claude Code could not renew the saved claude.ai login Run /login to sign in again
MCP server "<name>" needs you to sign in again (run /mcp to re-authenticate) A remote MCP server rejected the credential on a tool call Run /mcp, select the server, and sign in again
✘ Failed to connect beside a server in claude mcp list Claude Code could not connect to that MCP server claude mcp get <name> shows the failure detail on its Issue: line; then reconnect from /mcp

The error reference lists every message Claude Code displays with its fix.450


Under the Hood: What the Source Reveals

On March 31, 2026, a security researcher found that version 2.1.88 of the Claude Code npm package had shipped with a source map that exposed the full readable TypeScript source.451 Anthropic called it “a release packaging issue caused by human error, not a security breach.”363 Claude Code is built on the Bun runtime, which generates source maps by default, and one analysis points to an open Bun bug about source maps served in production mode as a possible cause.131 The package was pulled, but not before the code was mirrored and the community analyzed the internals.131132 Several details are directly useful for harness builders. The file names and figures below come from two of those analyses of the March 2026 source; they describe that build, not today’s.

Auto Mode Classifier (yoloClassifier.ts)

The auto mode permission system was implemented in a 1,495-line file internally named yoloClassifier.ts, which evaluates in two stages: a fast initial decision, then an extended reasoning step if needed.131 Anthropic’s engineering write-up of auto mode, published March 25, 2026, describes the same design: a transcript classifier running on Sonnet 4.6, with a fast single-token filter first and chain-of-thought reasoning only when that filter flags the transcript.452 Today the checks run on Anthropic’s servers at no charge wherever server-side review is on, and the classifier requests Claude Code sends itself go to Sonnet 5 by default (see Permission Modes). Read-only actions and file edits in your working directory are auto-approved, with exceptions such as writes to protected paths.314 The classifier checks whether the action matches the user’s stated intent, not just whether the command is “safe” in isolation.

Bash Security: 23 Checks, Real Incidents

The bash validation module (bashSecurity.ts) spanned 2,592 lines with 23 numbered security checks.131 The two analyses call out these:

Attack vector Why it is checked
Zsh =cmd expansion =curl evil.com expands to /usr/bin/curl evil.com, so a parser that sees =curl as the command name would miss a rule on curl131
zmodload Gateway to zsh/mapfile, which enables invisible file I/O; 18 Zsh builtins are blocked in all131
Heredoc injection Line-by-line matching that replicates bash’s heredoc-closing behavior131
ANSI-C quoting ($'\x41') It can encode arbitrary characters131
Process substitution (<(), >()) Checked in both directions131
Unicode zero-width spaces Injection through invisible characters131
ztcp TCP exfiltration through Zsh builtins131

One analysis reads the depth as a sign of “real incidents behind every check”; the other notes a malformed-token bypass found during HackerOne review.131

Prompt Cache Architecture

promptCacheBreakDetection.ts tracks 14 cache-break vectors, with “sticky latches” that prevent mode toggles from invalidating the cache.132 Today’s docs list the actions that can cost a cache rebuild mid-session: switching models, changing effort on most models, toggling fast mode, connecting or removing an MCP server whose tools load upfront, enabling or disabling a plugin, denying an entire tool, compacting, accumulating many images, and upgrading Claude Code. Changing permission mode keeps the cache. So does editing CLAUDE.md, because a mid-session edit does not load until the next /clear, /compact, or restart.356453

Autocompact Circuit Breaker

A source comment reveals the scale of a previous problem: “BQ 2026-03-10: 1,279 sessions had 50+ consecutive failures (up to 3,272) in a single session, wasting ~250K API calls/day globally.”131 The fix: MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3, after which compaction is disabled for the rest of the session. The release notes carry a matching fix: v2.1.76 added a circuit breaker that stops auto-compaction after 3 attempts, and v2.1.89 stops with an error when context refills to the limit right after compacting three times in a row.522

Coordinator Mode: Prompts as Architecture

Multi-agent coordination (coordinatorMode.ts) lives entirely in a system prompt, not in code-level orchestration.132 The orchestrator model receives a prompt describing how to delegate, aggregate, and synthesize, which is the “prompts as architecture” pattern at work. One analysis quotes the coordinator prompt: “Never write ‘based on your findings’ or ‘based on the research.’ These phrases delegate understanding to the worker instead of doing it yourself.”132

Frustration Detection

userPromptKeywords.ts detects user frustration with a regular expression that matches profanity and phrases such as “so frustrating” and “this sucks”, not with LLM inference.131 A regex is faster and cheaper than a model call. The analyses describe the detection only; they do not say what Claude Code does with the signal.

Implications for Harness Builders

These internals validate several harness patterns:

  1. Auto mode’s review is a model judgment, not a rule list: where /status shows Auto mode server as Disabled, each checked call is a classifier request billed to your account, so budget for it there314
  2. The bash security surface is deep: the v2.1.88 source ran every command through 23 numbered checks, so treat your PreToolUse hooks as an addition to the built-in validation, not a replacement131
  3. The prompt cache is a prefix match: switch models, change MCP servers, and toggle fast mode at the start of a session, not in the middle of one356
  4. Multi-agent coordination is prompt-driven: Anthropic’s own coordinator was a prompt, which supports using system prompts to orchestrate agent workflows
  5. Autocompact has a hard limit: v2.1.76 added a circuit breaker that stops auto-compaction after 3 attempts, so a compaction loop ends instead of burning tokens522

Quality Postmortem (April 23, 2026)

Anthropic published an engineering postmortem on April 23 covering three independent quality regressions that compounded over March and early April. All three were resolved by April 20 (v2.1.116), and usage limits were reset for all subscribers.150

Issue Active Affected models Root cause Resolution
Reasoning effort default March 4 → April 7 Sonnet 4.6, Opus 4.6 Default lowered from high to medium to reduce UI freezing. Operators preferred higher intelligence over UI smoothness. Reverted April 7. (Separately, v2.1.117 restored high defaults for Pro/Max users on 4.6 models; Opus 4.7 already shipped at xhigh.)
Prompt cache thinking-clear bug March 26 → April 10 Sonnet 4.6, Opus 4.6 A cache optimization meant to clear thinking once per idle session instead cleared it every turn for the rest of the session. Caused forgetfulness, repetition, faster usage drain. Fixed in v2.1.101 (April 10).
System-prompt verbosity constraint April 16 → April 20 Sonnet 4.6, Opus 4.6, Opus 4.7 Added to handle Opus 4.7 chattiness; per Anthropic, one evaluation showed a 3% drop for both Opus 4.6 and Opus 4.7. Reverted in v2.1.116 (April 20).

Operator takeaways. The cache-clear bug in particular silently degraded long sessions over a 15-day window: anyone whose sessions felt suddenly forgetful between late March and mid-April should know it wasn’t user error. Anthropic’s stated mitigations: more internal staff on the exact public build, improvements to the Code Review tool it uses internally, tighter controls and per-model evals on system prompt changes, and soak periods, a broader eval suite, and gradual rollouts for any change that could trade off against intelligence.150


Enterprise Deployment

Cloud Provider Comparison

Feature Anthropic direct Amazon Bedrock Google Cloud’s Agent Platform (formerly Vertex AI) Microsoft Foundry
Auth Claude plan sign-in or API key IAM/API key GCP credentials Entra ID/API key
Cost tracking Console (API); claude.ai analytics (Team, Enterprise) AWS Cost Explorer GCP Billing Azure Cost Mgmt
Audit logging Compliance API (Enterprise plan); OpenTelemetry events CloudTrail Cloud Audit Logs Azure Monitor
SSO Yes on Claude for Teams and Enterprise; none for a bare API key IAM Identity Center IAM Entra ID

Claude Platform on AWS is a fifth route: the Anthropic-operated Claude API with AWS authentication, IAM access control, and AWS Marketplace billing, on the same Opus 5.5 default as the Anthropic API.364

Claude Models on Google Cloud (Anthropic managed) is a sixth: the Claude API, run by Anthropic and reached through your Google Cloud project, with Google Cloud IAM for access and Google Cloud Marketplace for billing. Anthropic launched it on October 22, 2026, and no Claude Code release note carried it. It is separate from Agent Platform, which Google manages. Claude Code needs v2.1.307 or later, Application Default Credentials (gcloud auth application-default login, or a service account key file), the roles/claude.user IAM role on the project, and three variables in the env block of ~/.claude/settings.json: CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD=1, ANTHROPIC_GOOGLE_CLOUD_PROJECT, and ANTHROPIC_GOOGLE_CLOUD_WORKSPACE_ID (a wrkspc_ value). /status then shows an API provider line containing on Google Cloud. The docs’ alias table gives it Opus 5.5, Sonnet 5.5, and Haiku 4.5, and an Opus 5.5 default.528535

Sessions on AWS Bedrock, Google Cloud’s Agent Platform (formerly Vertex AI), and Claude Platform on AWS default to Claude Opus 5.5 (v2.1.280+).204218 On Microsoft Foundry the v2.1.332 release notes set the default to Sonnet 5.5, while the docs pages still say Sonnet 4.5 (see Available Models).527528 Since v2.1.207, auto mode needs no CLAUDE_CODE_ENABLE_AUTO_MODE opt-in on Bedrock, Agent Platform, or Microsoft Foundry; admins turn it off with the disableAutoMode managed setting.182

Managed Settings Deployment

Deploy organization-wide policies via managed-settings.json:

Location:

  • macOS: /Library/Application Support/ClaudeCode/managed-settings.json
  • Linux and WSL: /etc/claude-code/managed-settings.json
  • Windows: C:\Program Files\ClaudeCode\managed-settings.json

Example policy:

{
  "permissions": {
    "allow": [
      "Read",
      "Glob",
      "Grep",
      "Bash(npm run:*)",
      "Bash(git:*)"
    ],
    "deny": [
      "Bash(rm -rf:*)",
      "Bash(curl:*)",
      "Read(.env*)",
      "WebFetch"
    ],
    "defaultMode": "default",
    "disableBypassPermissionsMode": "disable"
  },
  "model": "claude-opus-5-5",
  "allowManagedPermissionRulesOnly": true,
  "allowManagedHooksOnly": true
}

disableBypassPermissionsMode nests under permissions; that is the only place Claude Code documents it, so a copy at the top level of the file does not turn bypass mode off. The Bash(...) deny rules stop the usual spelling of a command, not the program (/usr/bin/curl or sh -c 'curl ...' gets past Bash(curl:*)), so pair them with the sandbox network allowlist where the restriction has to hold, with sandbox.network.strictAllowlist (or managed allowManagedDomainsOnly) on: without one of them, a sandboxed command that reaches a host outside the list gets a prompt in Manual mode and is allowed in bypassPermissions mode.365366391

Settings administrators deploy (managed-only unless marked):

Key Effect
allowManagedPermissionRulesOnly Prevent user/project settings from defining permission rules; only managed rules apply
allowManagedHooksOnly Only managed hooks run, plus Agent SDK hooks and hooks from plugins your managed settings force-enable365
allowAllClaudeAiMcps Enterprise setting to load claude.ai cloud MCP connectors alongside managed-mcp.json (v2.1.149+)
allowClaudeInChromeWithManagedMcp Let claude --chrome run alongside an exclusive managed-mcp.json (v2.1.282+)
deniedModels / availableModelsMatch Block specific models even when availableModels allows them; "exact" limits each availableModels entry to the version it names (v2.1.283+)
allowedProviders Limit which API providers a machine may use: Anthropic API, a custom endpoint, Bedrock, Mantle, Agent Platform, Foundry, Claude Platform on AWS, or a Cloud gateway (v2.1.285+)447
strictKnownMarketplaces Allowlist of plugin marketplaces (empty array = lockdown). As of v2.1.223, entries accept an "owner/*" wildcard to allow every marketplace repo under a GitHub org: one line instead of enumerating repos, and new repos under the org are covered automatically. blockedMarketplaces takes the same wildcard form. v2.1.232 adds friendlier aliases: allowedMarketplaces for this key, additionalMarketplaces for extraKnownMarketplaces; GitLab repo URLs (nested subgroups included) are accepted marketplace sources.197252 As of v2.1.321, a marketplace name declared in managed extraKnownMarketplaces cannot be added from another source: an entry from elsewhere is hidden, and the plugins the declared marketplace lists are reinstalled from it.283
allowedMcpServers Allowlist of MCP servers users can configure (empty array = lockdown). It does not check the servers in managed-mcp.json or managedMcpServers (v2.1.259+), except a managed-mcp.json server that uses ${VAR} expansion outside env; to keep a managed server off, add a deniedMcpServers entry for it208425 As of v2.1.305 it also stops filtering managed-mcp.json stdio servers that use ${VAR} only in env, so one your allowlist left out loads on upgrade; use deniedMcpServers to keep it off275 Works in any settings file; enforce it from managed settings365
deniedMcpServers Denylist of MCP servers (takes precedence over allowlist). As of v2.1.318, URL entries also block Anthropic-provided servers whose upstream URL matches, and connectors in cloud sessions and on self-hosted runners283 Since v2.1.330 a name entry hides only the named claude.ai connector, not others at its URL (deny the exact URL to block them all), and since v2.1.328 an entry of the form claude.ai <name> applies to that connector in cloud and self-hosted runner sessions too527 Works in any settings file; enforce it from managed settings365
managedMcpServers Provide HTTP/SSE MCP servers to every user, entries in the same shape as .mcp.json; entries naming a command to run are skipped (v2.1.259+)208
permissions.disableBypassPermissionsMode Set to "disable" to reject --dangerously-skip-permissions and ignore permissionMode: bypassPermissions in agent definitions; nests under permissions. Works in any settings file; enforce it from managed settings365
disableAutoMode Disable Auto Mode org-wide: the admin-side control now that gateway users no longer opt in via env var (v2.1.207+)182 Also accepted as permissions.disableAutoMode. Works in any settings file; enforce it from managed settings365
forceLoginMethod Restrict how users authenticate (works in any settings file; enforce it from managed settings365). Enforced in the terminal, the VS Code extension, the SDK, claude setup-token, and /install-github-app (v2.1.212+)186. As of v2.1.261, "gateway" also evicts leftover credentials: a machine pinned to a Claude apps gateway ignores a lingering API key or claude.ai login and asks for /login instead; Bedrock, Agent Platform, and Foundry sessions are unaffected211. As of v2.1.265, a machine with forceLoginGatewayUrl in managed settings is a Claude apps gateway session from startup the same way – a leftover claude.ai login or API key is not used212
gatewayInternalNetworks Allow /login to a Claude apps gateway on the organization’s own public IPv4 block (v2.1.268+)213
modelPricing Contracted per-model rates and a discount multiplier; /usage, the status line, and telemetry cost figures use them instead of list price (v2.1.242 or later per the settings reference; listed under 2.1.243 in the release notes)247383; as of v2.1.271 the multiplier may run above 1, up to 10, for marked-up internal chargeback rates – the Claude apps gateway pricing block accepts the same213
disableSkillShellExecution Prevent inline shell execution in skills, custom commands, and plugin commands134 Works in any settings file; a true in managed settings cannot be overridden elsewhere365
forceRemoteSettingsRefresh Block startup until remote managed settings are freshly fetched; exit if fetch fails (fail-closed)135
parentSettingsBehavior Admin-tier key ("first-wins" or "merge") that opts SDK managedSettings (parent tier) into the policy merge rather than letting them lose to the first-wins default (v2.1.133+)157

Users cannot override managed settings. Managed settings have highest precedence in the configuration hierarchy.

Admin-console controls reach the CLI too: as of v2.1.260, Claude Code follows the organization’s Claude in Chrome admin setting – when an admin turns it off, --chrome, /chrome, and the browser tools are unavailable in members’ sessions (see Claude in Chrome).209

Claude apps gateway hardening (v2.1.268): the gatewayInternalNetworks managed setting lets administrators allow /login to a gateway on the organization’s own public IPv4 block; a gateway whose access_control.allow_cidrs is empty now warns at startup, and warns once the first time a request arrives from a public address; and with pricing: set in gateway.yaml, signed-in Claude Code clients receive the same rates through managed settings, so /usage and telemetry match the gateway’s spend meter.213

Claude apps gateway behind a forward proxy (v2.1.277): two additions for gateways in locked-down networks. CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY=1 is for gateways whose only egress is a forward proxy: every outbound request hands the proxy the hostname instead of resolving it locally, so a gateway host with no direct route out – and no working DNS for external names – still reaches its providers through the proxy. And gateway upstreams accept an optional headers: map, sending static headers to a proxy you run in front of a provider – the hook for proxies that authenticate or route on their own header. The same release also improves the gateway’s loopback error messages to name CLAUDE_GATEWAY_ALLOW_LOOPBACK, and fixes the gateway’s telemetry relay ignoring a collector hostname or domain listed in NO_PROXY when a proxy is set.216

Claude apps gateway additions (v2.1.281): Bedrock upstreams accept assume_role, so the gateway calls Bedrock as an IAM role it assumes through STS, in another AWS account if needed and optionally with one session per developer, and guardrail: {id, version}, which applies an Amazon Bedrock guardrail to every request sent through them (set it on all Bedrock upstreams or none). telemetry.resource_attributes puts fixed labels on the telemetry of Claude Desktop and /login sessions, and desktop policy blocks accept newer Claude Desktop keys, including blockReadsOutsideWorkingDirectories and disableBypassPermissionsMode. The gateway now refuses to start when a managedMcpServers entry’s envHelper path starts with \??\ or /??/, a path form current Claude Desktop refuses to run.221

Claude apps gateway additions (v2.1.312 to v2.1.317): oidc.user_id_claim identifies people by an id_token claim other than sub, such as Microsoft Entra ID’s oid (v2.1.312). An upstream’s optional groups list sends only developers in those IdP groups to it, on failover too, and guardrail_trace: true beside a Bedrock upstream’s guardrail logs which Amazon Bedrock guardrail filter fired on a request, without the matched text (v2.1.314).281

In v2.1.316 and v2.1.317, pooled_budget on the spend limits admin API gives a group one monthly budget its members share on top of each member’s own limit; managed.policy_mode: layered applies every policy that matches a developer, each merged over the ones listed below it, where a user otherwise got only the first match, and a gateway older than v2.1.316 refuses to start when it finds the key; and guardrail.input_tagging wraps prompts in the input tags a Bedrock guardrail’s prompt attacks filter needs, with all_messages_and_system tagging the system prompt too (v2.1.316). GET /v1/organizations/analytics/cost on the admin API reports past spend over a date range in total, per developer, per day, or per IdP group, from a daily record of each developer’s groups kept for admin.identity_retention_days (default 90) on gateways with admin: set (v2.1.317). The gateway also checks every model a request names against availableModels, deniedModels, and models, answering 400 with the field (v2.1.316), and passes through Bedrock’s “Input is too long.” error, so a session compacts instead of failing (v2.1.317). Reference: Claude apps gateway configuration.281282

Claude apps gateway additions (v2.1.318 to v2.1.321): assume_role works on mantle upstreams, for a role in another AWS account and for per-developer AWS cost attribution (v2.1.318). admin.pooled_conflict_rule (default_order, the default, or priority_list) sets the order in which the gateway tries the pooled group budgets of a developer in several groups, and admin.pooled_priority_order names up to 50 groups whose budgets are tried first; a gateway server earlier than v2.1.319 refuses to start when it finds either key, so upgrade every replica before adding them. The top-level login_notice key shows an operator-defined message of up to 500 characters on the gateway’s browser verification page and on Claude Code’s sign-in screen; CLAUDE_GATEWAY_LOG_FORMAT=json turns operational log lines into JSON with severity, time, and message; and /usage shows spend for today, this week, and this month to developers who have no spend limit (all v2.1.319).283

Under policy_mode: layered, managed MCP servers now add up over every matching policy, match: {} included, so a gateway already on it serves more after the upgrade. Bedrock, Vertex, and Foundry upstreams also ignore the ANTHROPIC_*_BASE_URL variables in the gateway’s environment, so set base_url on the upstream to use another endpoint (v2.1.321).283

Claude apps gateway additions (v2.1.323 to v2.1.332): oidc.groups_jsonpath reads groups from the matching entries of a list of objects, using a small subset of JSONPath (RFC 9535), and CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1 makes sign-in requests hand the proxy an https IdP’s hostname under oidc.use_proxy: true, even with NO_PROXY set (v2.1.331). The attributionProject setting names a session’s billing group on gateways that set admin.billing_group_tag, and the gateway hint headers add x-claude-code-managed-settings-checksum (v2.1.327). The start-up warning shown while access_control.allow_cidrs is empty is now a notice at every start, boxed in text logs, that says never to expose the gateway to the public internet (v2.1.329). A policy whose maxEffortLevel is not a valid effort level produces a startup warning (v2.1.328). In the gateway’s built-in model list, Sonnet 5.5 replaces Sonnet 4.5 as the second model, and Claude Desktop starts on it where a policy allows no Opus 4.6 (v2.1.332). CLAUDE_CODE_AUTO_MODE_MODEL is read from managed settings for Claude Desktop sessions on third-party providers (v2.1.323).527

Managed settings in v2.1.323 through v2.1.331. Managed settings that turn the sandbox on do not run sandboxed commands without prompts: for that, set sandbox.autoAllowBashIfSandboxed: true in your highest-ranking managed source (v2.1.325). Organization settings and policy requests no longer use a proxy set only by ALL_PROXY, so set HTTPS_PROXY if your network needs one for them, and a managed policyHelper no longer takes environment variables from user or --settings files (v2.1.323). A managed autoMode.environment list without "$defaults" replaces every built-in entry in Claude Desktop and Agent SDK apps too (v2.1.326). A managed-mcp.json added during a session may apply at the next check, and open sessions need a restart for it to apply in full (v2.1.326). On Windows, an HKLM policy outranks managed-settings.json and a broken registry value can stop the start, so check registry settings before upgrading (v2.1.331). Organizations managed in Anthropic’s Enterprise Admin Console can be signed in to from the CLI: after claude auth login, Claude Code applies the organization’s settings and uses its cloud provider or gateway (v2.1.330).527

Platform-native deployment (v2.1.51+): In addition to JSON files, managed settings can be deployed through a macOS configuration profile or the Windows Registry, which fits existing MDM (Mobile Device Management) and Group Policy infrastructure:105365

  • macOS: deploy a configuration profile through your MDM (Jamf, Intune, or similar) to the com.anthropic.claudecode managed preferences domain, using the same top-level keys as managed-settings.json, with nested settings as dictionaries and lists as plist arrays
  • Windows: deploy the JSON as a REG_SZ or REG_EXPAND_SZ value named Settings under HKLM\SOFTWARE\Policies\ClaudeCode through Group Policy or Intune

Which managed source wins: by default, the sources are not merged (see managedSourcesBehavior below for the opt-in merge). When more than one managed source is present, Claude Code uses the first source, in this order, that delivers at least one policy key and ignores the rest (a handful of cross-source keys such as the sandbox locks, forceRemoteSettingsRefresh, and the per-variable env merge are still read from every admin source):245

  1. Remote settings from claude.ai (server-managed settings) or a Claude apps gateway, fetched when the session has an eligible credential, signs in to a gateway with /login, or runs in Claude Desktop’s Code tab behind a gateway that serves that session settings523
  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 wslInheritsWindowsSettings is on), read only when no admin source above it is present (one that sets a policy key, or an HKLM value, managed settings file, or managed-settings.d directory that exists but cannot be read) and no host-supplied parent settings supply a restrictive key523

A file or policy that contains only the control key wslInheritsWindowsSettings does not count, and Claude Code moves on to the next source. It shows no warning for the sources it skips; as of v2.1.243, /status prints a Skipped sources line naming the managed sources present but not applied because a higher-precedence source is active (for example a managed-settings.json sitting under an MDM plist).247

v2.1.273 closes an enforcement gap in this machinery: allowManagedMcpServersOnly, deniedMcpServers, and disableClaudeAiConnectors set via MDM or managed-settings.json were ignored when server-managed settings were also present – the MCP and connector locks now hold with both sources active.214

Opting into a merge: managedSourcesBehavior: "merge". First-wins is only the default. Setting the managedSourcesBehavior control key to "merge" in the highest-ranked source you deploy composes every admin source instead, by kind of key. Lists such as permissions.allow, hooks, and sandbox.network.allowedDomains combine their entries across sources. Locks such as allowManagedHooksOnly and permissions.disableBypassPermissionsMode take the strictest value any source sets. Restriction allowlists (availableModels, allowedMcpServers, strictKnownMarketplaces, allowedChannelPlugins, and the fallbackModel chain) are taken whole from the highest-ranked source that sets them, with no entries added from lower sources, and so are sandbox.credentials.awsPairs and sandbox.ripgrep (v2.1.257+). A plain key such as model or cleanupPeriodDays takes its value from the highest-ranked source that sets it. The HKCU registry never merges with another source, and managedSourcesBehavior itself is a control key rather than a policy key, so a source that sets only it does not count as delivering policy.208523

Diagnostics and the security approval dialog (v2.1.248 to v2.1.251): server-managed settings that fail to load produce a startup warning, and /doctor and /status explain the load failure or say why the settings weren’t fetched at all – a Bedrock/Vertex/third-party-provider session, or a custom ANTHROPIC_BASE_URL, never fetches them (v2.1.248).203

For Team and Enterprise logins, settings fetched from Anthropic’s API have applied without an approval prompt since v2.1.316 (next paragraph), while the docs page still describes the dialog covered here.454 The approval dialog around risky managed settings tightened in v2.1.251: since that release, server-managed settings that terminate sandbox TLS, route sandbox traffic through your own proxy, inject credentials, or weaken sandbox isolation require approval before they apply, and ANTHROPIC_CUSTOM_HEADERS from managed or project settings requires approval when it sets a credential, org/tenant, routing, or API-behavior header (for example Authorization or Host). The dialog lists only the settings that changed since you last approved them, no longer reappears after signing in again to the same Claude apps gateway when the settings are unchanged, and client-side timeout, MCP startup-mode, and stream-watchdog env vars no longer trigger it at all (v2.1.248).203 As of v2.1.259, a managed settings source that fails to parse makes Claude Code refuse to start, naming the failing source.208 And v2.1.260 takes one setting out of the dialog: a managed CLAUDE.md (the claudeMd setting) no longer triggers the security approval dialog, while hooks, shell-command, sandbox, and unsafe env settings still require approval.209

Server-managed settings without the prompt (v2.1.314 to v2.1.317): for Team and Enterprise logins, settings fetched from Anthropic’s API apply without an approval prompt, and a stored copy that does not verify is refused (v2.1.316). That is the release note’s wording; today’s docs page still describes a security approval dialog for shell-command, sandbox, env, and hook settings, so check what your own organization’s settings do before you rely on either description.454 Claude’s file tools ask before editing the local copy of your organization’s server-managed settings, as they do for your own settings files (v2.1.314). forceRemoteSettingsRefresh set only in remote managed settings keeps applying after the stored copy expires, so a session does not start without policy when the server cannot be reached (v2.1.314). The desktop app’s Code tab shows a notice while the organization’s remote managed settings have not loaded for the session, and another once they do (v2.1.317). Owners configure these settings from the claude.ai console; the docs page is Configure server-managed settings.281282

Corporate Launcher: processWrapper (v2.1.208)

Organizations that need every process on a managed endpoint launched through a security or monitoring shim can route Claude Code’s self-spawned processes through one. On macOS and Linux, the CLAUDE_CODE_PROCESS_WRAPPER environment variable (v2.1.208) or the processWrapper setting (v2.1.210) names a launcher that Claude Code places in front of the background processes it starts from its own binary: the background service, the sessions it hosts in agent view, and relaunches after an update. That gives EDR attribution, process-level policy, and corporate launcher integration without patching the CLI. A session you start yourself in a terminal is not covered, Windows ignores the variable, and project and local settings cannot set the launcher. Anthropic documents the pattern on a dedicated corporate launcher page.183367

Enterprise CLAUDE.md

Deploy organization-wide context:

Location:

  • macOS: /Library/Application Support/ClaudeCode/CLAUDE.md
  • Linux and WSL: /etc/claude-code/CLAUDE.md
  • Windows: C:\Program Files\ClaudeCode\CLAUDE.md368

Content:

# Company Standards

## Security Requirements

- Never commit secrets or credentials
- All external API calls require security review
- Use parameterized queries for all database access

## Code Standards

- Follow company style guide at @docs/STYLE.md
- All PRs require two approvals
- Test coverage minimum: 80%

## Approved Tools

- npm, yarn, pnpm for package management
- Jest for testing
- ESLint + Prettier for formatting

Rollout Strategy

  1. Start with documentation: Get CLAUDE.md right before deploying
  2. Pilot group: Begin with 5-10 developers
  3. Q&A phase: Let pilots use Claude for code exploration
  4. Guided development: Progress to small bug fixes
  5. Full deployment: Roll out with managed settings
  6. Monitor costs: Track per-team usage

Audit and Compliance

Data handling:

  • Session transcripts are stored locally in plaintext under ~/.claude/projects/ (30 days by default; cleanupPeriodDays changes it)
  • Beyond model requests, Claude Code sends usage metrics and error reports. Metrics never include code, prompts, or file paths. Error reports carry error messages and stack traces from Claude Code’s own internals, and Claude Code redacts known patterns of secrets, file paths, email addresses, and other personal information before a report leaves the machine. DISABLE_TELEMETRY=1 turns metrics off and DISABLE_ERROR_REPORTING=1 turns error reports off. Error reporting is on only for a Pro, Max, or Ultra sign-in on v2.1.198 or later that connects directly to the Claude API, in an organization with no zero data retention or HIPAA agreement. Both are off by default on Bedrock, Agent Platform, Foundry, and Claude Platform on AWS, except that metrics default to on there when a host platform sets CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST369520
  • API requests go to api.anthropic.com (direct) or through your cloud provider (Bedrock, Agent Platform, Foundry, Claude Platform on AWS)
  • Under commercial terms (Team and Enterprise plans, the API, and third-party platforms), Anthropic does not train models on code or prompts sent to Claude Code unless the customer opts in. Free, Pro, Max, and Ultra accounts are used for training when the account’s model-improvement setting is on369
  • For data residency requirements, route inference through your own cloud provider; the Claude apps gateway is designed for organizations that must do that. On Bedrock, Claude Code takes the region from AWS_REGION, then AWS_DEFAULT_REGION, then your AWS profile, and falls back to us-east-1, so set it explicitly. On Agent Platform, CLOUD_ML_REGION takes a specific region such as us-east5, a multi-region location such as eu or us, or global525

SSO and identity:

  • Anthropic direct: Claude for Teams and Claude for Enterprise include SSO, and claude auth login --sso forces SSO sign-in at the CLI; Enterprise adds domain capture, role-based permissions, and the compliance API. SSO, SCIM provisioning, and seat assignment are configured at the Claude account level. An API key in the environment involves no sign-in, so it carries no SSO358364
  • Claude apps gateway: developers sign in through your OIDC identity provider in front of Bedrock, Claude Platform on AWS, Google Cloud, or Foundry (SAML and LDAP are not supported)364
  • Amazon Bedrock: IAM roles and SSO via AWS IAM Identity Center
  • Google Cloud’s Agent Platform: GCP IAM with Workforce Identity Federation for SAML/OIDC
  • Microsoft Foundry: Entra ID with native SSO

Compliance frameworks:

  • Anthropic lists SOC 2 Type I and Type II, ISO 27001:2022, ISO/IEC 42001:2023, and a HIPAA-ready configuration with a BAA available; request the reports through the Anthropic Trust Portal369
  • Cloud providers (AWS, GCP, Azure) carry their own compliance certifications (SOC 2, HIPAA BAA, ISO 27001, FedRAMP), and traffic routed through one falls under that provider’s agreements
  • Healthcare: an Anthropic BAA extends to Claude Code on a Claude for Enterprise account with the HIPAA configuration applied, or with Zero Data Retention enabled. Under the HIPAA configuration, cloud sessions, Remote Control, Claude Code in the mobile app, and traffic routed through a third-party cloud provider or a gateway are not covered. If you run on Bedrock, Agent Platform, or Foundry instead, the agreement that applies is that cloud provider’s own369

Logging and monitoring:

  • OpenTelemetry events are the audit data source for Claude Code activity on any plan or provider: each event carries identity attributes that tie tool calls, MCP activity, and permission decisions to the user369
  • Use cloud provider logging for model-request audit (CloudTrail, Cloud Audit Logs, Azure Monitor)
  • Consider LiteLLM proxy for detailed usage tracking across teams
  • Managed settings enforce compliance policies
  • The Analytics API provides daily usage aggregates per user for Claude Console organizations (see below)

Analytics API (Admin)

Claude Console (API) organizations can read daily Claude Code usage through the Claude Code Analytics Admin API. It does not return usage from people signed in with a Pro, Max, Ultra, Team, or Enterprise subscription: Team and Enterprise have the analytics dashboard in claude.ai, Claude Enterprise has its own Enterprise Analytics API with an Analytics API key, and OpenTelemetry export works on any plan.370

Endpoint: GET /v1/organizations/usage_report/claude_code

Authentication: Requires an Admin API key (sk-ant-admin01-..., created in the Claude Console by an organization admin), an OAuth token with the org:admin scope, or a personal or service account key that is not scoped to a workspace; workspace API keys do not work.370455

Metrics Available:

Category Metrics
Productivity Sessions, lines added/removed, commits, PRs per user
Tool Usage Acceptance/rejection rates by tool (Edit, MultiEdit, Write, NotebookEdit)
Cost Estimated cost breakdown by user and model

Request Parameters:

  • starting_at - UTC date for daily aggregation (YYYY-MM-DD); returns that single day
  • limit - Records per page (default 20, max 1000)
  • page - The next_page cursor from the previous response
  • Returns user-level data for the specified day

Example:

curl "https://api.anthropic.com/v1/organizations/usage_report/claude_code?starting_at=2026-01-25&limit=20" \
  -H "anthropic-version: 2026-10-21" \
  -H "x-api-key: $ANTHROPIC_ADMIN_KEY"

Limitations:

  • Daily aggregates only (~1hr delay for consistency)
  • For real-time monitoring, use OpenTelemetry integration
  • Covers Claude API usage only: not subscription sign-ins, and not Bedrock, Agent Platform, or Foundry. On Claude Platform on AWS, read Claude Code usage on the Usage page in the Claude Console

Cost: Free for organizations with Admin API access.


Keyboard Shortcuts Reference

General Controls

Shortcut Action
Ctrl+C Cancel current operation
Ctrl+D Exit session (EOF)
Ctrl+L Redraw the screen (input and history kept)
Ctrl+O Toggle the transcript viewer (tool detail, timestamps, model per message); since v2.1.326 it also shows hidden startup notices527
Ctrl+R Search command history
Ctrl+V Paste image from clipboard
Ctrl+B Background current operation
Ctrl+Enter (or Ctrl+X Ctrl+S chord) Send now: send all queued messages at once; sent and queued text shows gray until the model receives it (v2.1.275+). Since v2.1.281, running tools move to the background instead of the turn being cancelled215221
Ctrl+X Ctrl+K Stop all running background subagents and turn off artifact auto-replies for the rest of the session; press the chord twice within 3 seconds to confirm (rebound from Ctrl+F in v2.1.83; chords wait 3 seconds for their second key as of v2.1.265)456
Ctrl+Y Yank (paste from kill ring)
Ctrl+S Stash prompt draft (saves current input)
Alt+Y Yank-pop (cycle kill ring after Ctrl+Y)
Esc Esc Clear the draft; on an empty prompt, open the rewind menu
Tab Accept prompt suggestion
! + Tab Bash history autocomplete (v2.1.14+)
Shift+Tab Cycle permission modes
Alt+P / Option+P Switch models while typing prompt
Alt+T / Option+T Toggle extended thinking on older models; no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable, which always think (use /effort)371
Alt+O / Option+O Toggle fast mode
Ctrl+T Toggle Claude’s task checklist (inside /theme: syntax highlighting)
Ctrl+G or Ctrl+X Ctrl+E Open the prompt, or a custom answer, in your editor
Up/Down in the agent panel, then Enter Select an agent team teammate and open its transcript to message it; Esc clears the selection372
Up/Down Navigate command history
Up (on an empty prompt after Ctrl+C) Bring back the draft Ctrl+C cleared, pasted text and images included (v2.1.288); since v2.1.292 it stays reachable after a slash command or a sent message231233
? Show shortcuts

Customizable keybindings (v2.1.18+): Run /keybindings to customize keyboard shortcuts. Supports context-specific bindings, chord sequences (multi-key combos), and full personalization. Claude Code stores keybindings in ~/.claude/keybindings.json. See keybindings docs for the full configuration reference.68

Readline word editing is the prompt’s only dialect, matching Bash: Ctrl+W deletes back to whitespace, Alt+F and Alt+D stop at word end, and punctuation separates words. The keybindingFlavor setting has no effect (v2.1.261+).211

Two-key chords wait 3 seconds for the second key and show a notice when they time out, which matters under tmux, where the second key can arrive late (v2.1.265+).212

v2.1.269 repairs a v2.1.247 regression cluster in terminal key handling – F1/F2/F4 in kitty-protocol terminals, Delete in st, Alt+arrows acting as Escape in rxvt-unicode, Shift+punctuation typing the unshifted key in WezTerm – and improves keyboard support over SSH and in unrecognized terminals: those that answer the kitty keyboard query (foot, Alacritty 0.16+) now get Shift+Enter and Ctrl+Shift shortcuts.213

Dialog keys (v2.1.280). In dialogs, Enter accepts and Esc cancels; a stray y or n no longer confirms or closes one, so a character left in your typeahead cannot answer a prompt you have not read (bind y/n to confirm:yes/confirm:no in keybindings.json to restore single-key answers). Pressing Ctrl+C or Ctrl+D twice now closes the dialog instead of quitting Claude Code, text fields in dialogs keep every typed letter, digit, and Space, and Home/End jump to the first and last entry in /config and in selection lists such as /model.217

Two text-handling fixes with real scope (v2.1.280). The invisible-character cleanup that v2.1.278 added to prompts was stripping the zero-width non-joiner (ZWNJ, U+200C) – a character Persian and Arabic text uses to attach a suffix to a Latin word or number, such as the plural of “PDF”. That is not an invisible-formatting attack; it is a letter-level part of the writing system, and removing it silently corrupted the prompt. It is now preserved. Separately, on Windows terminals the prompt line could stay visually scrambled after invisible characters were removed on Enter; the screen is now repainted so what you review is exactly what will be sent.217

Voice dictation stops when you tell it to (v2.1.280). Ctrl+C cleared the prompt but left the microphone recording; Esc did not cancel while a transcript was still processing; and a held Space started dictation from the transcript view and from vim NORMAL mode. All three are fixed. The first is the one that matters: a stop key that clears the visible text while the mic stays live is a privacy bug, not a UI annoyance.217

Prompt suggestions (Dec 2025): Claude now suggests prompts to speed up your workflow. Press Tab to accept a suggestion or Enter to submit your own prompt.5

Multiline Input

Method Keys
Escape newline \ then Enter
macOS Option+Enter (with Option as Meta enabled in the terminal)
Works without setup Shift+Enter in Ghostty, Kitty, iTerm2, WezTerm, Warp, and Windows Terminal 1.25 or later; also in other terminals that support the kitty keyboard protocol, such as foot and Alacritty 0.16 or later (v2.1.269+)553
VS Code, Cursor, Devin Desktop, Zed, Alacritty before 0.16 Shift+Enter after running /terminal-setup once
gnome-terminal, Windows Terminal before 1.25, JetBrains IDEs such as PyCharm and Android Studio No Shift+Enter; use Ctrl+J or \ then Enter553
Control character Ctrl+J
Custom keybinding (v2.1.47+) Bind any key to chat:newline via /keybindings93

Quick Prefixes

Prefix Action Example
/ Slash command or skill /review
! Direct bash ! git status
@ File reference @src/index.ts
: Emoji shortcode :heart:
? Shortcut help (on an empty prompt) ?

Two prefixes from older versions are not in this table. # stopped writing to memory in v2.0.70: ask Claude to “add this to CLAUDE.md”, or open the file with /memory. The docs list no & prefix for cloud sessions, and v2.1.154 removed the “& for background” hint from the shortcuts panel as stale: start a cloud session from the terminal with claude --cloud "task".371368373

File reference performance (v2.0.72): @ mention file suggestions became about 3x faster in git repos. Claude Code also respects .ignore and .rgignore files when suggesting file completions, which is useful for excluding build artifacts or generated files from suggestions.27

Vim Mode

Enable via /config → Editor mode (the /vim command was removed in v2.1.92135):

Normal mode:

  • h/j/k/l - Navigation
  • w/e/b - Word movement
  • 0/$ - Line start/end
  • gg/G - Buffer start/end
  • dd - Delete line
  • cc/C - Change line/to end
  • dw/de/db - Delete word variations
  • x - Delete character
  • . - Repeat last edit
  • % - Jump to the matching (), [], or {} bracket, starting from the next bracket on the line when the cursor is not on one; d%, c%, y% operate through it (v2.1.301+)272273

Insert mode:

  • i/I - Insert before/at line start
  • a/A - Insert after/at line end
  • o/O - Open line below/above
  • Esc - Return to normal mode (in INSERT, no longer pulls back queued messages — press Esc again to interrupt, v2.1.119+)149

Visual mode (v2.1.118+):149

  • v - Enter visual (character) mode
  • V - Enter visual-line mode
  • Move with h/j/k/l, w/e/b, 0/$, gg/G to extend the selection
  • Visual feedback highlights the selection
  • Apply operators: d (delete), c (change), y (yank); selection then exits visual mode

Insert-mode remaps (v2.1.208): the vimInsertModeRemaps setting defines custom key remaps for insert mode — the classic vimrc habit of mapping jj to Escape now works in Claude Code’s editor too:183

{
  "vimInsertModeRemaps": { "jj": "<Esc>" }
}

"<Esc>" is the only supported target, each key is exactly two printable characters, and the setting applies only in vim editor mode. Claude Code ignores other entries.365


Best Practices

Session Strategy

Name sessions with /rename inside Claude, then resume by name:

# Inside a session, name it:
> /rename feature-auth

# Later, resume by name:
claude --resume "feature-auth"

# Or continue the most recent session:
claude -c

Resume sessions for ongoing work rather than re-explaining context.

CLAUDE.md Design

Keep it scannable. Claude reads this every session, and dense prose wastes context.

Focus on the non-obvious. Document project-specific patterns, unusual conventions, decisions. Skip what Claude can infer from code.

Update continuously. Ask Claude to add a note to CLAUDE.md as you work (“add this to CLAUDE.md”), or open the file with /memory. Review and consolidate regularly.368

Include command reference. Document the commands you run constantly.

Security: Untrusted Repositories

Warning: When cloning and running Claude Code on untrusted repositories, be aware that CLAUDE.md files, .claude/settings.json, and hook scripts in the repository are read and potentially executed. Malicious repos can use these to inject prompts, override permissions, or execute arbitrary commands. Always review CLAUDE.md, .claude/settings.json, and any hook scripts before running Claude Code on repos you don’t own. Use --dangerously-skip-permissions only in an isolated environment such as a container, a VM, or a dev container without internet access, where Claude Code cannot damage your host system. Even there, a malicious project can exfiltrate anything reachable inside the container, including the Claude Code credentials in ~/.claude.521

Known CVEs (keep Claude Code updated):

  • CVE-2025-59536 (fixed v1.0.111): Claude Code could be tricked into executing code contained in a project before the user accepted the startup trust dialog.100457
  • CVE-2026-21852 (fixed v2.0.65): the project-load flow let a malicious repository exfiltrate data, including Anthropic API keys, before the user confirmed trust.100457

Custom Commands

Create commands for repetitive workflows:

---
description: Start new feature
allowed-tools: Bash(git:*), Read, Edit
---

1. Create branch: !`git checkout -b feature/$ARGUMENTS`
2. Pull latest main
3. Set up boilerplate
4. Begin implementation

Effective Prompting

Be specific:

# Good
"Add email validation to LoginForm in src/components/LoginForm.tsx"

# Too vague
"Improve the login"

Reference files directly:

"Review @src/auth/middleware.ts for security issues"

Provide constraints:

"Refactor using the same pattern as @src/repositories/UserRepository.ts"

Use subagents for exploration:

"Have an explore agent find all places where we handle errors"

Cost Control

  • Use /usage regularly (/cost is an alias)
  • Use Haiku for simple tasks and subagents
  • Lower /effort for routine work; MAX_THINKING_TOKENS applies only to older models with a fixed thinking budget371
  • Use --max-turns for automated scripts
  • Compact proactively in long sessions

Security

  • Configure .claude/settings.json deny rules for sensitive files
  • For untrusted projects, run Claude Code inside a container, a VM, or the sandbox runtime; the built-in Bash sandbox covers shell commands only374
  • Never allow Bash(rm -rf:*) or Bash(sudo:*)
  • Use hooks to block access to secrets
  • Deploy managed settings for enterprise

Community Tips and Techniques4850

The Claude Code community has discovered powerful patterns that go beyond official documentation. These tips come from power users including Boris Cherny (Claude Code creator) and the 45+ tips repository.

Use Plan Mode Before Coding

If you remember one tip, make it this one. The more time you spend planning, the more likely Claude will succeed. Press Shift+Tab to cycle to plan mode before starting implementation. See Plan Mode for full documentation.

Clear Context Frequently

Use /clear often. Every time you start something new, clear the chat. You don’t need old history consuming tokens or triggering expensive compaction calls. Just clear it and move on.

Use Images and Screenshots

Claude excels with visual input. On macOS: Cmd+Ctrl+Shift+4 captures screenshot to clipboard, then Ctrl+V to paste directly into Claude Code. Use this to share UI mockups, error messages, or design references.

Install the GitHub App for PR Reviews

Run /install-github-app to install the Claude GitHub App and add the workflow files you choose. With the default workflow, mention @claude on a pull request or issue to get a review or a change; for a review on every pull request, turn on Code Review or select the review workflow.375 Automatic review is particularly valuable as AI-assisted development increases PR volume. Claude often catches logic errors and security issues that human reviewers miss.

Container-Based Autonomous Operation

For fully autonomous operation, run Claude Code in a Docker container with tmux as the control layer. Your local Claude Code controls the containerized instance, which can run long-running or experimental tasks without manual approval. If something goes wrong, the damage is limited to what the container can reach, so keep host secrets such as ~/.ssh and cloud credential files out of it.521

# Conceptual pattern (varies by setup)
# Local Claude Code → tmux → Container Claude Code
# Results pulled back when complete

Container quick start: Run Claude Code inside a container or microVM for isolation when exploring untrusted codebases or running experimental prompts. Anthropic does not publish a Claude Code image on Docker Hub, so do not pull one by guessing a name. The documented routes:374

  • Dev container feature: add the Claude Code feature to .devcontainer/devcontainer.json (first block below).
  • Your own image: install Claude Code in a Dockerfile with the native installer (second block below).
  • Docker Sandboxes: a microVM with its own Docker daemon and workspace sync; see the Docker Sandboxes docs.54
  • Sandbox runtime: the open-source @anthropic-ai/sandbox-runtime package wraps the whole Claude Code process, file tools, MCP servers, and hooks included, without a container. It is a beta research preview, and its configuration format may change.458 It denies network access by default, so write ~/.srt-settings.json before you launch with srt claude.
{
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
  "features": {
    "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
  }
}
WORKDIR /tmp
RUN curl -fsSL https://claude.ai/install.sh | bash

Use a container, a microVM, or the sandbox runtime when:

  • Exploring unfamiliar or untrusted codebases
  • Testing experimental prompts that might modify files
  • Running autonomous sessions you want completely isolated
  • Learning Claude Code without risk to your actual files

When WebFetch Cannot Read a Page

WebFetch converts a page to Markdown and, for most fetches, runs your prompt against it in a separate model call, so Claude receives an extract and not the raw page. For the unprocessed page, the docs point to curl through Bash. For a page Claude Code has trouble loading (the tips repository gives a private page and a Reddit post as examples), its author’s routes are to select the whole page in your browser and paste it in, or to load it through the Playwright MCP server or Claude’s browser integration.459

Have Claude Write Your Subagents

You do not have to write subagent definition files by hand. Describe the subagents a workflow needs and where to save them, and Claude writes each file (.claude/agents/ for the project, ~/.claude/agents/ for all your projects) with a name, a description, a tools list, a model, and a system prompt. Open each file and confirm it matches what you asked for. Claude Code watches ~/.claude/agents/ and .claude/agents/ and picks up a new or edited definition within a few seconds, with no restart. Two cases do need one: an agent file under .claude/agents/ inside a directory added with --add-dir or /add-dir, and a session started with --disable-slash-commands, which does not watch these directories at all.553

Claude Squad: Multi-Agent Manager

Claude Squad manages multiple Claude Code instances in parallel, each in its own tmux session with isolated worktrees. Run several agents simultaneously on different tasks, monitor their progress from a single dashboard, and pull results back when complete.56

# Install (Homebrew), then link the short `cs` command as the README does
brew install claude-squad
ln -s "$(brew --prefix)/bin/claude-squad" "$(brew --prefix)/bin/cs"

# Or install via script (puts `cs` in ~/.local/bin)
curl -fsSL https://raw.githubusercontent.com/smtg-ai/claude-squad/main/install.sh | bash

# Launch the TUI — manages instances, tasks, and git worktrees
cs

# Auto-accept mode (experimental)
cs --autoyes

The Homebrew formula installs the binary as claude-squad; the symlink is the README’s step for getting the short cs command.376

Use cases:

  • Parallelize independent features across agents
  • Run exploratory prompts without blocking your main session
  • Scale autonomous coding beyond a single context window

Power User Productivity Stats

On December 27, 2025, Boris Cherny reported landing 259 PRs with 497 commits in the previous thirty days, 40,000 lines added and 38,000 removed, every line written by Claude Code with Opus 4.5.460 The numbers demonstrate what is possible when Claude Code is fully integrated into the development workflow.

People to Follow

Stay current with Claude Code developments by following these accounts:

Anthropic Team (Primary Sources)

Who Platform Why Follow
Boris Cherny @bcherny Created Claude Code at Anthropic.377461
Ado Kukic @adocomplete His profile reads “Community, Claude, Code at @AnthropicAI”. Wrote Advent of Claude, one Claude Code tip a day through December 2025, collected on his site.461
Anthropic @AnthropicAI The company’s own account.

Cat Wu (@_catwu) and Thariq (@trq212) were in this table while they worked on Claude Code. Their profiles now describe that work as past, so read their older posts as history.461

Top Content Creators

Who Focus Notable
@dani_avila7 Claude Code components Maintains Claude Code Templates, an open-source registry and CLI for Claude Code agents, commands, skills, hooks, and MCP configurations461
@mattpocockuk Teaching developers Author of Total TypeScript and AI Hero; posted the docker sandbox run claude tip54461
ykdojo GitHub Tips 45+ tips repo, with a custom status line script and Claude Code running itself in a container50

Key Resources

Boris and the Anthropic team share features as they ship, often the fastest way to learn about new capabilities before documentation catches up.

Common Anti-patterns

Learning what not to do often provides more value than best practices. These patterns consistently cause problems:

Cost Anti-patterns

Anti-pattern Problem Solution
Staying on the Opus 5.5 default for everything Twice Sonnet 5.5’s token price on work that does not need it /model sonnet for routine edits, Haiku for subagents, Opus or Fable for architecture and hard debugging355
Never checking /usage Surprise bills Check cost after major tasks
High effort on simple tasks Wasted tokens /effort low or /effort medium for routine work
Running explore in main context Context bloat Use Explore subagent instead

Context Anti-patterns

Anti-pattern Problem Solution
Ignoring context until it bloats Degraded reasoning, forgotten decisions /compact proactively at 50% capacity
Reading entire files when you need sections Wastes context on irrelevant code Reference specific line ranges
Never using subagents Everything fills main context Delegate exploration and analysis
Giant CLAUDE.md files Context waste every session, weaker adherence Target under 200 lines per file; move the rest to path-scoped rules and imports368

Workflow Anti-patterns

Anti-pattern Problem Solution
Creating overlapping skills and commands Confusion, unpredictable behavior One mechanism per purpose
Prompts for guaranteed actions Claude may skip or forget Use hooks for must-run actions
No hooks for formatting Inconsistent code style Hook every Edit/Write for formatter
Allowing all bash by default Security risk Explicit allowlist for safe commands

Configuration Anti-patterns

Anti-pattern Problem Solution
All config in user settings Nothing shared with team Project settings for team standards
Committing personal preferences Overrides teammates Use settings.local.json for personal
No deny rules Claude can touch sensitive files Deny .env, credentials, secrets
Ignoring managed settings Enterprise policies bypassed Managed settings for compliance

Prompt Anti-patterns

Anti-pattern Problem Solution
“Make it better” Vague, poor results Specify exactly what “better” means
Not referencing files Claude guesses paths Use @path/to/file.ts syntax
Ignoring Claude’s questions Works on wrong assumptions Answer before proceeding
Providing full docs when snippet suffices Context waste Extract relevant sections

Workflow Recipes

End-to-end patterns for common scenarios.

Recipe 1: Starting a New Project

# 1. Initialize
cd my-project
claude

# 2. Let Claude understand the codebase
> "Explore this codebase and summarize the architecture"

# 3. Generate CLAUDE.md
> /init

# 4. Add what /init missed
> "Add the patterns you observed that CLAUDE.md does not cover yet"

# 5. Add team commands
> "Create a /test command that runs our test suite"
> "Create a /deploy command for staging deployment"

Recipe 2: Daily Development Flow

# 1. Continue yesterday's session
claude -c

# 2. Quick context recap
> "What did we work on yesterday?"

# 3. Check current state
> /status

# 4. Work on the feature (the session is on Opus 5.5 by default;
#    /model sonnet halves the token price for routine work)
> "Implement the user profile endpoint"

# 5. Compact before context passes 50%
> /compact

# 6. Check spending
> /usage

# 7. End session cleanly
> "Summarize what we accomplished today"

Recipe 3: Complex Refactoring

# 1. Use Opus for planning, Sonnet for execution
> /model opusplan

# 2. Enter plan mode with the task (opusplan uses Opus only in plan mode)
> /plan refactor our authentication from sessions to JWT

# 3. Review the plan
# (Claude presents the plan; approve it, and Claude leaves plan mode
#  and starts the edits on Sonnet)

# 4. Verify nothing broke
> "Run the auth-related tests in a subagent and report any failures"

# 5. Review the diff
> !git diff

opusplan uses Opus during plan mode and Sonnet for execution, which is why step 2 enters plan mode with /plan. Approving the plan exits plan mode, so Claude starts editing without a further prompt.462

Recipe 4: PR Review Automation

# In CI/CD (GitHub Actions, etc.): the prompt is the argument, the diff arrives on stdin
claude -p "Review the PR diff on stdin for security vulnerabilities, performance issues, code style violations, and missing test coverage. Report findings as JSON." \
  --output-format json \
  --permission-mode plan \
  --max-turns 5 < pr_diff.txt

Keep stdin for the diff alone. A pipe and a here-document on the same command both claim stdin, and in bash and sh the here-document wins, so the diff never reaches Claude.

Recipe 5: Debugging Production Issues

# 1. Configure Sentry MCP for error access
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
claude mcp login sentry   # complete the OAuth sign-in
claude

# 2. Get error context
> "Fetch the last 10 errors from Sentry for the auth service"

# 3. Deep dive with more reasoning
#    (or type ultrathink in the prompt to raise this one turn)
> /effort xhigh
> "Analyze these errors and identify the root cause"

# 4. Fix and verify
> "Implement a fix and add a regression test"
> !npm test

claude mcp add registers the remote server and claude mcp login completes its OAuth sign-in before the session starts.378


Migration Guide

Coming from other AI coding tools? Here’s how concepts map.

From GitHub Copilot

Copilot Concept Claude Code Equivalent
Code suggestions in the editor Not a primary focus: Claude Code does agentic editing
Copilot CLI (a terminal agent with a plan mode) REPL conversation with tool execution and plan mode
Custom instructions (.github/copilot-instructions.md, AGENTS.md) CLAUDE.md + Skills
Custom agents Subagents (Agent tool) + agent teams379
MCP servers (local and remote in Copilot CLI) 10,000+ public MCP servers + remote OAuth287
Hooks (shell commands at set points in an agent’s workflow) Hooks (34 lifecycle events)380
IDE + CLI Terminal-native + IDE extensions

How they compare today: GitHub’s docs describe Copilot CLI as a terminal agent with a plan mode, custom agents it delegates common tasks to, hooks, and local and remote MCP servers, so most rows map one to one and the comparison is feature differentiation, not a capability gap.463 On the Claude Code side, the specifics are 34 hook lifecycle events, an OS-level sandbox for shell commands, subagents with isolated context, and --teleport to pull a cloud session into the terminal.

Cross-pollination (Feb 2026): Claude became available as a coding agent for Copilot Business and Copilot Pro customers, included in the existing Copilot subscription (each coding agent session used one premium request during the public preview); Copilot Enterprise and Pro+ customers had received access earlier that month. Claude, Codex, and Copilot ran inside github.com, GitHub Mobile, and VS Code.103

From Cursor

Cursor Concept Claude Code Equivalent
Agent Session with full tool access
Subagents Subagents (Agent tool) with isolated context
Instant Grep (a search index built on your machine) Real-time file access (Read, plus file search: find and grep through Bash, or the Glob and Grep tools on Windows)386
Tab autocomplete Not primary focus
Editor side pane, plus Cursor CLI Terminal-native + IDE extensions
MCP support (built-in) MCP support (10,000+ public servers, remote OAuth)287
Hooks (hooks.json) Hooks (34 lifecycle events)380
Cursor rules (.mdc) + AGENTS.md CLAUDE.md + Skills
Cloud Agents Cloud sessions (claude --cloud "task", pulled back into the terminal with --teleport)373

How they compare today: Cursor’s docs describe hooks, subagents that each run in their own context window, a sandbox for terminal commands, MCP servers with OAuth, cloud agents in isolated VMs, and a CLI, so the two tools overlap on most of this table.464 Cursor’s agent lives in the editor’s side pane and also ships as a CLI; Claude Code starts in the terminal and adds IDE extensions. On the Claude Code side, the specifics are 34 hook lifecycle events, OS-level sandboxing for shell commands (Seatbelt and bubblewrap), and MCP tool search.

From OpenAI Codex CLI

The comparison developers ask about most. Both are agentic coding CLIs from frontier labs, launched within months of each other. Here’s the direct matrix; the Codex column follows OpenAI’s Codex documentation as it read on November 25, 2026, with Codex CLI 0.172.0 (November 24, 2026) as the current stable release, and the three benchmark rows are an April 2026 snapshot.381465

Dimension Claude Code OpenAI Codex CLI
Foundation model Opus 5.5 (default on every plan and what opus selects, since v2.1.280), Sonnet 5.5 (what sonnet selects on the Anthropic API since v2.1.284), Fable 5.2 (tier above Opus; what fable selects since v2.1.321, Fable 5.1 by ID), Sonnet 5, Opus 5/4.8/4.7 legacy, Haiku 5.5 (the haiku alias on the Anthropic API since v2.1.293; Haiku 4.5 on other providers)217218225235 GPT-6.2 Sol (gpt-6.2-sol), the default selection in the model catalog since Codex CLI 0.169.1 and OpenAI’s pick for everyday coding; GPT-6.2 Astra (gpt-6.2-astra) for demanding work; GPT-6.1 Terra (gpt-6.1-terra, Codex CLI 0.159.0 or later) as the fast, efficient choice; and Luna (gpt-6-luna) for focused, repeatable tasks. GPT-5.5 retired from Codex for ChatGPT sign-ins on October 14, 2026381
Context window 1M tokens on Opus 5.5 at standard pricing on the Anthropic API, and by default on Bedrock, Agent Platform, and Foundry since v2.1.287 (200K there before)220229 Default context in Codex of 500,000 tokens on GPT-6.2 Sol and 272,000 on GPT-6.2 Astra; both support up to 1 million tokens through model_context_window in config.toml381
April 2026: SWE-bench Verified 87.6% (Opus 4.7, April 2026 launch figure; newer Opus scores not compared here) No figure in OpenAI’s GPT-5.4 launch post (Anthropic’s table shows a dash); GPT-5 scored 74.9% at its August 2025 launch, on 477 of the 500 tasks
April 2026: SWE-bench Pro 64.3% (Opus 4.7, April 2026) 57.7% (GPT-5.4 official), 56.8% (GPT-5.3-Codex), 56.4% (GPT-5.2-Codex)
April 2026: Terminal-Bench 2.0 69.4% (Opus 4.7, April 2026) 77.3% (GPT-5.3-Codex), 75.1% (GPT-5.4 official), 64.0% (GPT-5.2-Codex)
Execution model Local by default; claude --cloud "task" starts a cloud session, by default in an Anthropic-managed VM, and --teleport pulls one back into the terminal373517 Local by default (Codex CLI); Codex Cloud runs tasks in cloud environments you review from the web, mobile, or desktop app
Sandboxing OS-level for shell commands (Seatbelt on macOS, bubblewrap on Linux); off until you turn it on with /sandbox or sandbox.enabled530 OS-level (Seatbelt on macOS, bwrap plus seccomp on Linux, a native Windows sandbox); on by default, in the workspace-write mode with network access off381
Instruction file CLAUDE.md (and CLAUDE.local.md); reads AGENTS.md when the project has no CLAUDE.md (v2.1.277+; on Bedrock and telemetry-off sessions from v2.1.281)216368 AGENTS.md
Hook lifecycle 34 events (PreToolUse, PostToolUse, UserPromptSubmit, Stop, SubagentStop, etc.)380 14 events at tag rust-v0.172.0. Eleven share a name with a Claude Code event (PreToolUse, PermissionRequest, PostToolUse, PreCompact, PostCompact, UserPromptSubmit, SubagentStart, SubagentStop, Stop, SessionStart, SessionEnd) and three are Codex-only (PreModelRequest, PostModelRequest, Interrupt)381
Subagents / Agent Teams 20 concurrent subagents by default (tunable), isolated context, background mode Subagents spawned in parallel (capped by agents.max_concurrent_threads_per_session); the Ultra intelligence level delegates to them proactively466
MCP server ecosystem 10,000+ public MCP servers, remote OAuth, tool search287 STDIO and Streamable HTTP servers, with bearer token or OAuth authentication
Plugins Plugin marketplace, plugin.json manifests, version pinning One plugin directory shared with ChatGPT; /plugins opens a plugin browser in Codex CLI
Pricing model $4/$20 per MTok on Opus 5.5, the default model on every plan since v2.1.280; subscriptions $20 to $200/mo217218 Included in ChatGPT plans with shared usage limits and credits; OpenAI’s pricing page lists the CLI from Plus up (Plus, Pro, Business, Edu, Enterprise) and gives Free and Go the desktop app only. API-key sessions use separate API pricing381
Voice input /voice push-to-talk (20 STT languages) /voice (or F8) in CLI builds and sessions that support voice466
Enterprise policy Managed settings (server-managed, MDM, managed-settings.d/), marketplace allowlists (strictKnownMarketplaces), provider and model restrictions365379 Managed configuration from the Admin Console (requirements.toml and config.toml defaults), plus macOS MDM
Windows support Native binary + PowerShell tool; no sandbox on native Windows, where commands run unsandboxed (the sandbox runs on macOS, Linux, and WSL2)553 Native desktop app, CLI, and IDE extension with a Windows sandbox; WSL not required

The April 2026 benchmark snapshot: on public benchmarks at that time, Opus 4.7 led SWE-bench Pro by 6.6 points over GPT-5.4’s official 57.7%, and scored 87.6% on SWE-bench Verified, where OpenAI’s GPT-5.4 launch post gave no figure. On Terminal-Bench 2.0, GPT-5.3-Codex led (77.3%) followed by GPT-5.4 (75.1% official, which Anthropic’s table marks as a self-reported harness), both ahead of Opus 4.7 (69.4%). Both vendors have shipped newer models since; neither side’s current flagship is compared here, so check the latest vendor pages before making a multi-quarter bet.465

When to pick Claude Code: you own a large codebase (a 1M-token context at standard pricing matters), you want deep hook-based automation across 34 lifecycle events (linters, policy checks, CI/CD gates), or you want policy your administrators enforce through managed settings. Native Windows support no longer separates the two tools, and both have an OS-level sandbox on macOS and Linux; Codex’s is on by default and Claude Code’s is off until you turn it on. On native Windows only Codex sandboxes: Claude Code runs commands unsandboxed there, and its sandbox needs WSL2.553

When to pick Codex CLI: you already pay for a ChatGPT plan and want the same account, you want Codex Cloud for remote tasks you review from the web or the mobile app, or your team standardizes on OpenAI infrastructure.

Both, not either: many teams run both. Claude Code handles long-horizon refactors and agentic coding; Codex handles quick cloud-sandboxed tasks from ChatGPT. AGENTS.md and CLAUDE.md can coexist in the same repo – and as of v2.1.277 the boundary softened: Claude Code reads AGENTS.md itself when the project has no CLAUDE.md (see AGENTS.md Support). See also the dedicated Codex vs Claude Code 2026 architecture comparison for deeper analysis.

Migration path (Codex → Claude Code): as of v2.1.277, no file rename is required – in a project with no CLAUDE.md, Claude Code reads your existing AGENTS.md as its project instructions (on Bedrock and with telemetry off this needs v2.1.281 or later; configurable under “Project instructions” in /config).216368 Earlier versions did not read AGENTS.md, so on an older pin, copy its content into CLAUDE.md or import it with a one-line @AGENTS.md stub. Install Claude Code via the official installer, authenticate with claude auth login, then test with claude --print "explain this repo". Most Codex patterns (file reads, shell commands, git operations) map 1:1; add a CLAUDE.md later only when you want Claude-specific instructions layered over the shared file.

From ChatGPT / Claude Web

Web Interface Claude Code
Creates files in the chat for you to download Creates and edits the files in your project in place
Runs code in an isolated, managed environment, separate from your systems Runs shell commands in your own environment: bash, git, npm, your test suite
Works from the files you upload or connect Reads and searches your files directly (Read, plus find and grep through Bash, or the Glob and Grep tools on Windows)386

How they compare today: both web apps run code and create files now, so the difference is where the work happens. On the web it happens in an isolated environment the vendor manages, and the result reaches you as a file to download. Claude Code reads your codebase, edits files, and runs commands in your own project and environment.467

Key Mindset Shifts

  1. Stop copying code. Claude Code writes to files directly.
  2. Stop context-switching. MCP brings external tools into the session.
  3. Delegate aggressively. Subagents handle exploration without bloating your context.
  4. Automate with hooks. Formatting, linting, logging happen automatically.
  5. Think in sessions. Continue work with -c, not fresh conversations.

Audience-Specific Guidance

For developers:

  • Haiku 5.5 costs about 40x less than Opus 5.5 on prompts up to 100K tokens; use it for subagents and simple tasks
  • Use /compact proactively during long sessions to manage context
  • Name sessions for the work they hold (claude -n "feature-auth", or /rename mid-session) and resume them with claude --resume feature-auth
  • Tell Claude “remember that …” to save a fact to auto memory, or “add this to CLAUDE.md” for a standing instruction

For DevOps and platform teams:

  • Headless mode (-p flag) enables CI/CD integration with JSON output for parsing
  • Hooks guarantee execution regardless of model behavior; use for linting, formatting, security checks
  • MCP extends capabilities to databases, GitHub, Sentry, and 10,000+ public MCP servers287
  • Cloud sessions (claude --cloud "task") run asynchronously, by default in an Anthropic-managed VM; pull one back into the terminal with --teleport517

For security teams:

  • Permission rules are evaluated deny first, then ask, then allow; a narrower allow rule cannot carve an exception out of a broader deny or ask rule
  • The Bash sandbox confines shell commands (writes to the project and allowed paths, network to allowed hosts, with a host outside the list decided by your permission mode unless the strict allowlist is on); file tools, MCP servers, and hooks run outside it. So do, depending on your settings, commands you type at the ! prompt, commands matching sandbox.excludedCommands, and commands Claude retries unsandboxed after they fail inside. For an untrusted repository use a container, a VM, or the sandbox runtime around the whole process458391
  • A Bash deny rule matches the command text Claude writes, not the program: Bash(curl *) stops curl https://example.com but not /usr/bin/curl ... or sh -c 'curl ...'. Use deny rules as guardrails, and where the restriction has to hold use the sandbox network allowlist with sandbox.network.strictAllowlist on, which refuses a sandboxed command any host outside the list in every permission mode391
  • Enterprise managed settings cannot be overridden by users

For team leads:

  • Skills auto-activate based on context; embed domain expertise without explicit invocation
  • Project skills commit to git; teammates get standardized expertise automatically
  • Cost tracking via /usage shows session breakdown; budget 10k-300k TPM per user based on team size
  • Custom commands in .claude/commands/ create reusable workflows

For enterprise architects:

  • Managed settings deploy organization-wide policy through server-managed settings, an MDM profile or registry policy, or a file (/etc/claude-code/managed-settings.json on Linux and WSL; the macOS and Windows paths are under Managed Settings Deployment)523
  • Amazon Bedrock, Google Cloud’s Agent Platform (formerly Vertex AI), and Microsoft Foundry integrate with existing cloud billing
  • Opus 5.5 runs with a 1M-token context window at standard pricing on the Anthropic API and, since v2.1.287, on Bedrock, Agent Platform, and Foundry, which fits large codebases in one session
  • Agent teams (v2.1.32+, experimental and off until you set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) enable parallel multi-agent coordination for complex tasks524
  • Start pilot with 5-10 developers before full rollout

Quick Reference Card

Print this. Tape it to your monitor.

╔═══════════════════════════════════════════════════════════════╗
║                    CLAUDE CODE QUICK REFERENCE                ║
╠═══════════════════════════════════════════════════════════════╣
║  MODELS (Nov 2026)                                            ║
║    fable     $8/$40/M     Fable 5.2 (v2.1.321); top tier,     ║
║                           not the default; /model fable       ║
║    haiku     $0.10/$0.50  Haiku 5.5 (v2.1.293); a prompt over ║
║                           100K tokens pays $0.50/$2.50        ║
║    sonnet    $2/$10/M     Cost lever; not a plan default      ║
║                           (Sonnet 5.5 on the Anthropic API)   ║
║    opus      $4/$20/M     Opus 5.5; default on every plan     ║
║                           (v2.1.280; Foundry: see Models)     ║
║    opus[1m]  $4/$20/M     No-op on Anthropic API (native 1M); ║
║                           Bedrock/Agent Platform too (.287+); ║
║                           Opus 4.6 still needs the suffix     ║
║    sonnet[1m] $2/$10/M    No-op on Sonnet 5.5 (native 1M)     ║
╠═══════════════════════════════════════════════════════════════╣
║  ESSENTIAL COMMANDS                                           ║
║    /compact        Reduce context (do at 50% capacity)        ║
║    /usage          Check session spending (/cost is an alias) ║
║    /model opus     Switch to Opus                             ║
║    /status         Show current state                         ║
║    /voice          Voice dictation: hold, tap, or off         ║
║    /init           Generate CLAUDE.md for the project         ║
║    /mcp            Configure integrations                     ║
║    /copy [N]       Copy code blocks (Nth-latest response)     ║
║    /memory         View and manage auto-memory                ║
║    /claude-api     Build apps with Claude API/SDK             ║
║    /code-review    Correctness review (effort, --comment,     ║
║                    --max-findings n|all|default, .288+)       ║
║    /batch          Batch operations (bundled, v2.1.63+)       ║
║    /effort         low..xhigh saved per model; max = session  ║
║    /loop 5m /foo   Run prompt on recurring interval           ║
║    /recap          One-line summary of this session (.108+)   ║
║    /goal target    Continue until a completion target is met  ║
║    /code-review ultra  Deep cloud review (/ultrareview alias) ║
║    /ship           PR, review, then watch and fix (v2.1.330+) ║
║    /fewer-permission-prompts  Allowlist from transcripts      ║
║    /tui fullscreen Switch to flicker-free render (v2.1.110+)  ║
║    /focus          Focus mode (separated from Ctrl+O, .110+)  ║
║    /undo           Alias for /rewind (v2.1.108+)              ║
║    /proactive      Alias for /loop (v2.1.105+)                ║
║    claude -n name  Start session with display name            ║
║    claude agents   Open Agent View (background sessions)      ║
║    claude attach id  Open a background session here           ║
║    claude -w       Start in isolated git worktree             ║
║    claude remote-control  Steer local sessions from claude.ai ║
║    claude -p --bare  Scripted mode (no hooks/LSP/plugins)     ║
║    claude --channels plugin:name@marketplace                  ║
║                    Listen to channel plugins (preview)        ║
║    claude --cloud "task"  Start a cloud session (async)       ║
║    claude --plugin-url URL  Load plugin zip for one session   ║
║    claude --desktop  Open this directory in the desktop app   ║
║    claude purge path Delete local project state (was          ║
║                      `claude project purge` before .288)      ║
╠═══════════════════════════════════════════════════════════════╣
║  KEYBOARD SHORTCUTS                                           ║
║    Alt+T           Thinking toggle (older models only)        ║
║    Shift+Tab       Cycle permission modes                     ║
║    Ctrl+C          Interrupt current operation                ║
║    Ctrl+X Ctrl+K   Stop all agents (press twice)              ║
║    Ctrl+Enter      Send queued messages now (v2.1.275)        ║
║    Esc → Esc       Clear draft / open rewind menu             ║
║    Ctrl+L          Redraw screen                              ║
╠═══════════════════════════════════════════════════════════════╣
║  PREFIXES                                                     ║
║    /command        Run a command or skill                     ║
║    @path/file      Reference file in prompt                   ║
║    !command        Execute bash directly                      ║
╠═══════════════════════════════════════════════════════════════╣
║  SETTINGS PRECEDENCE (highest first, merged per key)          ║
║    managed-settings.json          Enterprise (locked)         ║
║    --settings <file-or-json>      This session                ║
║    .claude/settings.local.json    Personal (gitignored)       ║
║    .claude/settings.json          Project (shared)            ║
║    ~/.claude/settings.json        User global                 ║
║    CLAUDE.md   Project instructions (not a settings file)     ║
╠═══════════════════════════════════════════════════════════════╣
║  DAILY WORKFLOW                                               ║
║    1. claude -c              Continue session                 ║
║    2. Work on features       Opus 5.5; /model sonnet saves    ║
║    3. /compact               Before context bloats            ║
║    4. /usage                 Check spending                   ║
║    5. Summarize              Clean exit                       ║
╠═══════════════════════════════════════════════════════════════╣
║  DECISION RULES                                               ║
║    Simple task?        → Haiku                                ║
║    Hard reasoning?     → Opus                                 ║
║    Everything else?    → Sonnet                               ║
║    Must always run?    → Hook (not prompt)                    ║
║    Auto-apply wisdom?  → Skill (not command)                  ║
║    Needs isolation?    → Subagent                             ║
╚═══════════════════════════════════════════════════════════════╝

FAQ

How do I install and set up Claude Code CLI?

Run the native installer: curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux, or WSL, and irm https://claude.ai/install.ps1 | iex in Windows PowerShell. Homebrew (brew install --cask claude-code), WinGet (winget install Anthropic.ClaudeCode), and an npm package that installs the same native binary are the alternatives. Then open a terminal in your project and run claude, which asks you to log in on first use. You need a Claude subscription (Pro, Max, Ultra, Team, or Enterprise), a Claude Console account, or access through a supported cloud provider.539540 Every method, with update and uninstall commands, is under How Do I Install Claude Code?

What are Claude Code hooks and how do they work?

Hooks are shell commands, HTTP endpoints, MCP tool calls, LLM prompts, or subagents that you define and that Claude Code runs automatically at set points in a session. There are 34 hook events, from SessionStart to SessionEnd, and a hook on PreToolUse runs before a tool call and can block it. Because Claude Code runs the hook itself each time the event fires and the hook’s matcher matches, formatting, linting, and security checks do not depend on the model following an instruction.529 Events, exit codes, and configuration are under How Do Hooks Work?

How do I configure MCP servers in Claude Code?

Add a server with claude mcp add: claude mcp add --transport http <name> <url> for a remote server, or claude mcp add [options] <name> -- <command> [args...] for a local stdio server. The scope decides where the entry is stored. Local scope, the default, and user scope are both kept in ~/.claude.json, and project scope writes a .mcp.json file at the project root that you commit to share with your team; servers do not go in .claude/settings.json. Run claude mcp get <name> to check that the server connected.541 Transports, scopes, and authentication are under What Is MCP (Model Context Protocol)?

What’s the difference between Claude Code and Cursor?

The two overlap: Cursor’s docs describe an agent that completes coding tasks, runs terminal commands, and edits code, along with hooks, subagents that each have their own context window, and a CLI. The difference is where each starts. Cursor’s agent lives in the editor’s side pane next to Tab, its autocomplete, while Claude Code is a terminal-first agent that is also available in IDE extensions, a desktop app, and the browser.545546 The concept-by-concept table is under From Cursor.

How do Claude Code subagents work?

A subagent is a specialized assistant that Claude hands a task to. It runs in its own context window with its own system prompt, tool access, and permissions, works independently, and returns only a summary, so search results, logs, and file contents stay out of your main conversation. Its requests count toward the same usage limits as the main conversation. Claude Code has built-in subagents such as Explore and general-purpose, and you define your own as files in .claude/agents/ for one project or ~/.claude/agents/ for all of them.543 Fields, models, and examples are under What Are Subagents?

What permission modes does Claude Code offer?

Six: default (Manual, which asks before most edits, shell commands, and network access), acceptEdits, plan, auto, dontAsk, and bypassPermissions. Since v2.1.283, auto mode is the built-in starting mode for interactive terminal and VS Code sessions: a second model, the classifier, reviews actions in your place. Press Shift+Tab to switch modes, or start with claude --permission-mode <mode>. The docs recommend bypassPermissions, which runs everything without checks, for isolated containers and VMs only.542 Each mode and the rule syntax are under How Does the Permission System Work?

Which AI model should I use in Claude Code?

Start with the default, which is Claude Opus 5.5 on Pro, Max, Ultra, Team, Enterprise, and the Anthropic API. The docs describe opus as the alias for complex reasoning, sonnet for daily coding, haiku for simple tasks, and fable for the hardest and longest-running work. On the Claude API, Opus 5.5 costs $4 per million input tokens and $20 per million output tokens, Sonnet 5.5 costs $2 and $10, and Haiku 5.5 costs $0.10 and $0.50 for prompts up to 100,000 tokens, so /model sonnet halves the token price of routine work.528544 Model details and provider differences are under Which Model Should I Choose?

Is Claude Code free to use?

No. The quickstart lists what you need: a Claude subscription (Pro, Max, Ultra, Team, or Enterprise), a Claude Console account, or access through a supported cloud provider. Pro, Max, and Ultra subscribers have Claude Code usage included in the subscription, and Console accounts are billed by token consumption.540544 Plans, limits, and ways to cut spend are under What Does Claude Code Cost?

How do I update Claude Code to the latest version?

Native installations update themselves in the background, and claude update applies an update on demand. Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default, so run the package manager’s upgrade command, such as brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode. For an npm install, run npm install -g @anthropic-ai/claude-code@latest, not npm update -g, which may not move you to the newest release. claude --version prints the version you are on.539 Release channels and how to turn auto-updates off are under Updates.

Does Claude Code work on Windows?

Yes, on Windows 10 1809 or later and Windows Server 2019 or later, either natively or inside WSL. On native Windows you run the install command from PowerShell or CMD without Administrator rights, and Git for Windows is optional: with it Claude Code uses Git Bash for the Bash tool, and without it shell commands run through the PowerShell tool. Sandboxing is supported in WSL 2 only, so choose WSL 2 for Linux toolchains or sandboxed commands.539 Per-platform notes are in the Platform Support Matrix.

What is the difference between Claude Code and Claude (the chat app)?

Claude Code is an agentic coding tool: it reads your codebase, edits files, and runs commands in your own project and environment. The Claude chat app can also run code and create files, but it does that in an isolated, sandboxed container separate from your systems and hands you the result as a file to download. One claude.ai account on a Pro, Max, or Ultra plan signs in to both, and the Claude desktop app includes Claude Code under its Code tab.540546 A side-by-side table is in the Migration Guide.

Can I use Claude Code without a subscription?

Yes. Sign in with a Claude Console account at platform.claude.com, which is billed by token consumption, or set the ANTHROPIC_API_KEY environment variable and approve the key when Claude Code asks whether to use it. Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry also work: set the provider’s environment variables before you run claude.540544 Each sign-in path is under Authentication Options.


Changelog

The reference is a living document. Updates are applied as Claude Code evolves.

Date Change Source
2026-11-25 Guide v2.125: CLI v2.1.323 (Nov 12) through v2.1.332 (Nov 24) (npm latest and next 2.1.332, stable moves to 2.1.326; 2.1.324 on npm only). Act on these: sandboxed Bash commands follow the normal permission flow by default (v2.1.325); Foundry’s default moves to Sonnet 5.5 in the v2.1.332 notes while the docs still say Sonnet 4.5; recurring tasks and /loop last 30 days. Added: the PreSkillShellCommand hook event (34 events), Code Mode, skills from MCP servers, /ship and /steward, Claude Models on Google Cloud (Anthropic managed), engines in plugin.json. Removed or retiring: subagentStatusLine, the v1 MCP client, Opus 4.5 (API retirement January 22, 2027), Sonnet 4.5 (November 30, 2026). Also: a new FAQ section; the Slack section now says that integration is retired. Corrected against the docs: ~/.claude.json holds no login; OTEL_EXPORTER_OTLP_TIMEOUT, skill model, subagent background, eight environment-variable rows, and the Codex column (GPT-6.2); Agent SDK onFailure added. 527528529530531532533534535536537538547548549550551552553
2026-11-11 Guide v2.124: Corrections where the guide promised more than the docs do. Act on these: a CLAUDE_CODE_SHELL_PREFIX wrapper gets each command as one quoted argument in $1 and must re-evaluate it with a shell. A subagent’s permissionMode is ignored when the main conversation is in auto, acceptEdits, or bypassPermissions mode. Bash(git push *) does not match git -C <dir> push. acceptEdits also auto-approves rm, rmdir, and sed inside working directories. sandbox.credentials protects nothing until you list entries. A “don’t ask again” Bash approval in a worktree usually applies to the main checkout and every worktree. Background commands in a text-prompt claude -p run stop after 10 minutes by default, not 30. Also corrected: --dangerously-skip-permissions guidance; the two caps CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH replaces; the Fable 5.2 Bedrock ID; which models carry text watermarks; the “5-hour limit” message; what error reports send; managed-settings sources and merging; what a cloud session inherits; shorter older changelog rows. 480495504488490518478521477482483519520523512
2026-11-11 Guide v2.123: Corrections to match today’s docs. Act on these: do not delete ~/.claude.json, ~/.claude/settings.json, or ~/.claude/plugins/ to reset; start with claude doctor. A deny rule such as Bash(curl *) is not a security boundary, and no allow rule brings back a tool that a "*" deny removed. A skill’s allowed-tools pre-approves tools and restricts nothing. In bypassPermissions mode a sandboxed command reaches hosts outside your allowlist; sandbox.network.strictAllowlist stops that. Auto mode commits and pushes to the repository you are working in without asking. sandbox.excludedCommands needs docker *: docker alone matches only the bare command. MCP hook matchers need .* (mcp__github__.*). Also corrected: install commands (native installer, brew install --cask claude-code); plan prices; claude --cloud replaces the & prefix; the PermissionDenied hook starts at v2.1.89; plugins entered public beta on October 9, 2025; two CVE descriptions; common error messages; and source notes that pointed at dead or wrong pages. 125288304316336349362366390391418416436439450457
2026-11-10 Guide v2.122: CLI v2.1.318 (Nov 3), v2.1.319 (Nov 6), v2.1.321 (Nov 9), and v2.1.322 (Nov 10) + Claude Fable 5.2 (npm latest and next 2.1.322, stable 2.1.311; 2.1.320 never published). Main changes: Fable 5.2 (claude-fable-5-2) is what fable selects from v2.1.321 at $8/$40 with $0.20 cache reads and medium effort in Claude Code; the saved Fable 5.1 pick migration; best now documented as the same model as opus; fast mode on Fable 5.2 at $16/$80 (v2.1.321) and on Agent Platform (v2.1.322); permissions.denyInsteadOfPrompting; auto mode without feature flags no longer falls back to the local classifier; MCP tasks in the terminal; CLAUDE_CODE_DISABLE_FEATURE_FLAGS; claude remote-control --settings; claude auth status sign-in expiry; /tasks, /loop, /model, and /claude-api latency-optimize changes; mods on without asking in auto and bypass modes; the advisor pairings for Fable 5.2; gateway keys; the Ultra plan name. Smaller changes: the remaining fixes. 283284
2026-11-02 Guide v2.121: CLI v2.1.311 (Oct 26) through v2.1.317 (Nov 2) (five releases; npm latest and next 2.1.317, stable moves to 2.1.311; 2.1.313 never published, 2.1.315 on npm only). Main changes: ultrathink runs a terminal turn at xhigh (v2.1.311; CLAUDE_CODE_DISABLE_ULTRATHINK turns it off); CLAUDE_CODE_SUBAGENT_EFFORT and per-model subagent effort; [1m] dropped where it has no effect; the signed model catalog on third-party providers (CLAUDE_CODE_MODEL_CATALOG=off); shorter system prompt and refusal fallback for unrecognized model names; fast mode on Opus 4.8 deprecated October 30, removed November 30; permissions.blockWritesOutsideWorkingDirectories; hooks on Monitor commands, the PreCompact output cap, 24-at-a-time hook concurrency; idle compaction in VS Code, the desktop app, and third-party providers; claude -p exit codes; runner --hold-idle-file and --max-hold-min, CLAUDE_CODE_DISABLE_NESTED_SESSION_ID, and the self-hosted environments docs; disableRemoteControl; six gateway keys and the cost report API; server-managed settings without the prompt; OTel anthropic.* attributes and OTEL_EXPORTER_OTLP_TIMEOUT; safety_event no longer sent; FORCE_HYPERLINK=false. Smaller changes: the remaining fixes. 281282
2026-10-26 Guide v2.120: documentation update; no new CLI release (npm latest 2.1.310, stable 2.1.308; 66 code.claude.com pages changed between October 24 and 26). Main changes: Projects (announced September 17, 2026; public beta on Pro and Max), which no release note ever carried, get a section under Claude Code on the Web: coordinator conversation, threads as cloud sessions, instructions and memory, what a thread loads from a repository, usage caps, Work locally through Remote Control; claude --cloud starts a cloud session from the terminal and -p "msg" --cloud <session-id> queues a message into a running one (--remote is the deprecated alias); cloud scheduled tasks (formerly routines) and desktop scheduled tasks, with a /schedule row and the three-scheduler comparison; /slides and the artifact templates beta; turning artifacts off (enableArtifact, CLAUDE_CODE_DISABLE_ARTIFACT, CLAUDE_CODE_ARTIFACT_AUTO_OPEN); CLAUDE_CODE_DISABLE_WORKFLOWS replaces the v2.1.147 opt-in in the env-var reference (workflows are on by default except on Pro); CLAUDE_CODE_MAX_TURNS. 277278279280
2026-10-23 Guide v2.119: CLI v2.1.303 (Oct 18) through v2.1.310 (Oct 23) (eight releases; npm latest and next 2.1.310, stable moves to 2.1.308). Three What’s New sections. Main changes: /auto-mode-setup; /usage one-line fixes with f; the Pro/Max 5-hour resume warning; sandbox.allowNestedUserNamespaces; CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS, CLAUDE_CODE_AUTO_COMPACT_WINDOW suffixes, CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK; claude ultrareview workspace trust; claude_code.safety_event; mods e.isReadOnly, decider: "person", settings.read layers, the 45% docked pane, Image in tmux; sandbox hardening (shell startup files, denyWrite through symlinks, --mcp-config protection, sed -i runs as written); worktree and skills housekeeping; Code Review levels and @claude review stop; the tool-search default behind a custom base URL and its regression fix; allowedMcpServers and ${VAR} servers; Monitor on Bedrock, Vertex, and Foundry. Docs (Oct 23) now carry most of it, plus the 2.1.302 -p and fork-mode rules; still release-notes only: decider, settings.read, review stop, sed -i, the resume warning, the tool-search default. 275276
2026-10-21 Guide v2.118: hook output corrected against the October 21 hooks reference. The generic JSON-output example showed message and modifications fields the reference does not define; it is now the reference’s three kinds of output fields and the universal-field table (continue, stopReason, suppressOutput, which is accepted but has no effect, systemMessage, and terminalSequence with its interactive-only limit). Exit codes: on 0, JSON fields apply and the action proceeds unless they block, deny, or stop it, and stdout reaches context only on UserPromptSubmit, UserPromptExpansion, SessionStart, and PostModelSwitch; on codes other than 0 or 2, the action goes ahead unless the hook’s failure blocks it, the transcript notice carries the first line of stderr when stdout is plain text or empty, and validated JSON still applies unless the hook’s failure blocks the action. 274
2026-10-17 Guide v2.117: CLI v2.1.301 (Oct 15) + v2.1.302 (Oct 16). Main changes: claude -p and the SDK start in Manual again on third-party providers, with telemetry off, and on fresh installs (v2.1.302 reverses v2.1.285; box bullet, availability table, mode table, and a new paragraph); fork subagents on by default in -p, the SDK, desktop, and VS Code, desktop and VS Code always background the main conversation’s subagents, prompt and agent hooks cap at 12 of one event; CLAUDE_CODE_AUTO_MODE_MODEL and CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS; OTel classifier_verdict, permission_mode, classifier_category; vim %; mods rows, .catch, $.env.set; /config Idle compaction row; Claude Design closes by Dec 14, 2026; fable/best retry; smaller-context model switches summarized by the previous model. Docs-lag: everything except vim % and VS Code LaTeX is release-notes only as of Oct 17, and the permission-modes, env-vars, and sub-agents pages still state the pre-2.1.302 rules. 272273
2026-10-14 Guide v2.116: CLI v2.1.300 (Oct 14) (npm 14:27Z under next, GitHub release 18:24Z, 88 bullets identical to the canonical CHANGELOG; by evening latest and next 2.1.300, stable moves to 2.1.292). Main changes: the advisor tool reaches Claude Platform on AWS, and the guide gains its first Advisor Tool section (/advisor, advisorModel, --advisor, CLAUDE_CODE_DISABLE_ADVISOR_TOOL, pairing rules, cost) from the docs page; mods virtualText, $.ui.view, dir, prompt.change, agent.spawn rewrites; OTel cache-write split and GenAI span attributes; CLAUDE_CODE_GZIP_REQUEST_BODIES; updatedInput validation; claude remote-control loses --sandbox/--no-sandbox; transcripts record each request’s system prompt and tools. Fixes: SessionEnd on exit, tool search auto, headless compaction resumes, MCP schema 400s, claude daemon stop --any. 270271
2026-10-14 Guide v2.115: CLI v2.1.299 (Oct 14) (npm 00:23Z, GitHub release 02:49Z, 190 bullets identical to the canonical CHANGELOG; 2.1.297 and 2.1.298 never published; next at 2.1.300 since 14:27Z with no notes yet; stable 2.1.287). Main changes: idle compaction of 200K+ conversations after about 54 idle minutes ("idleCompaction": false, CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS), CLAUDE_CODE_DISABLE_FILE_MENTIONS, MCP allow rules and agent tools: lists matching a server’s whole name, first-party MCP descriptions uncut, UserPromptSubmit before command expansion, turn.start for subagents and the other mod API additions, /effort and /fast in agent view, /usage warnings, claude plugin eval --disallow-tools, --shutdown-drain-sec, CLAUDE_CODE_ATTRIBUTION_HEADER, CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT. Docs caught up on autoCompactWindow and CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS; CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL and serverToolUses still release-notes only. Two 2.1.296 regressions fixed. 268269
2026-10-13 Guide v2.114: docs catch-up against the October 13 pages, no new CLI release (npm latest and next still 2.1.296, stable 2.1.287). The hooks reference now dates the per-hook --debug lines and the PowerShell handling of CLAUDE_ENV_FILE to v2.1.296, the gateway docs describe the per-developer forceLoginGatewayUrl setup and the code policy key, and the mods reference lists e.agentId, e.ceiling, and prompt.autocomplete; the v2.1.295, v2.1.296, and mod-API passages say so. Still release-notes only: autoCompactWindow, CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL, CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, serverToolUses. Also, on October 12, the sandbox section was corrected to the boundary Anthropic documents: writes confined to the project and allowed paths, reads across most of the machine unless denyRead is set, the built-in file and web tools following permission rules, and hooks, local MCP servers, and helper commands running with full access.266 267
2026-10-11 Guide v2.113: CLI v2.1.293 (Oct 7) through v2.1.296 (Oct 9) (npm latest and next 2.1.296, stable moves to 2.1.287; four release bodies identical to the canonical CHANGELOG: 56, 2, 143, and 79 bullets). New model: Claude Haiku 5.5 is what haiku selects on the Anthropic API (v2.1.293): model table, Haiku paragraph, pricing table, cost examples, quick reference, comparison table, and thinking list updated; Sonnet 5.5 cache reads corrected to $0.10. Hooks: onFailure: "block" (v2.1.295). Changed defaults: MCP description cap 4,096 (v2.1.296), tool-search descriptions 16,384 and 32 preloaded skills (v2.1.295). Added: autoCompactWindow, CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL, CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS, VERTEX_REGION_CLAUDE_HAIKU_5_5, Read allow_large, the gateway code policy key. Docs catch-up: the v2.1.292 row’s three lag items are now documented. Smaller changes: the v2.1.294 hook-judgment fixes and the VS Code, cloud-session, Claude Tag, and Code Review fixes. 235236237
2026-10-06 Guide v2.112: CLI v2.1.288 (Oct 2) through v2.1.292 (Oct 6) (npm latest and next 2.1.292, stable still 2.1.285; nothing skipped since 2.1.287). Renamed: claude project purge is now claude purge, the old name kept with a notice. Changed defaults: the interactive WebSearch budget refills at 100 calls/hour (CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR) instead of ending at 200; stdio MCP servers negotiate protocol 2026-07-28 on every install (MCP_PROTOCOL_NEGOTIATION=legacy opts out); background command limits only in unattended sessions; project settings can no longer turn on Claude in Chrome; pyright asks. Added: CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS, CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS, Agent tool effort, claude plugin install --marketplace, /code-review --max-findings, partial names for claude attach/logs, mod API additions. Fixes: v2.1.291 repairs two regressions (session-end message loss from 2.1.288, dropped cloud permission answers from 2.1.290); a UNC-read prompt bypass is closed. 231232233234
2026-10-01 Guide v2.111: CLI v2.1.286 (Sep 30) + v2.1.287 (Oct 1) (npm 17:14Z and 16:59Z; GitHub releases 19:10Z and 18:00Z; 88 and 106 bullets, identical to the canonical CHANGELOG; nothing skipped since 2.1.285; npm stable moves from 2.1.280 to 2.1.285). Changed defaults: Opus 4.7+ and Fable run with 1M context on Bedrock, Vertex, Foundry, and the Claude apps gateway (v2.1.287); CLAUDE_AX_PREPARK_MS drops to 0; a flagged-message model switch keeps your effort level; --bare connects only command-line MCP servers (v2.1.286). Added: mods and the built-in You should know mod, URL prompts on the 2025-11-25 MCP protocol (bareElicitationCapability), alwaysLoad: false, the agents-view n:<text> filter, OTel prompt_text, and prompts for shell writes through committed symlinks. Docs: the permission-modes table now matches v2.1.285. Smaller changes: the retry limit and the screen reader, VS Code, Remote Control, and cloud-session fixes. 228229230
2026-09-29 Guide v2.110: CLI v2.1.284 (Sep 28) + v2.1.285 (Sep 29) (npm 17:11Z and 17:32Z; GitHub releases 18:02Z and 19:27Z; 100 and 136 bullets, identical to the canonical CHANGELOG; nothing skipped since 2.1.283; npm stable moves from 2.1.274 to 2.1.280). Changed defaults: sonnet selects Claude Sonnet 5.5 ($2/$10) on the Anthropic API (v2.1.284); auto mode starts interactive sessions on every plan and provider (v2.1.284) and claude -p and Python Agent SDK sessions on third-party providers or with telemetry off (v2.1.285); Ultracode no longer forces xhigh; background shell commands stop at their timeout; custom base URLs get the 1M window. Added: allowedProviders, claude --desktop, claude plugin configure, CLAUDE_CODE_DISABLE_WEB_FETCH, CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES, /mcp reconnect all, effort-slider keybindings. Smaller changes: retry-budget, Remote Control, VS Code, and /ultrareview fixes. 225226227
2026-09-26 Guide v2.109: CLI v2.1.282 (Sep 24) + v2.1.283 (Sep 25) (npm 15:56Z and 18:46Z; GitHub releases 18:38Z and 21:50Z; 86 and 94 bullets, identical to the canonical CHANGELOG; nothing skipped since 2.1.281; npm stable moves from 2.1.273 to 2.1.274). Changed defaults: auto mode is the built-in starting mode for interactive terminal and VS Code sessions on every plan and provider (v2.1.283); a direct API session with telemetry off uses the server-side auto-mode checks (v2.1.282); project and local settings ignore OpenTelemetry export and content variables (v2.1.282). Added: maxProseWidth, deniedModels, availableModelsMatch, allowClaudeInChromeWithManagedMcp, /doctor prompt-audit, the x-claude-code-prompt-id hint header, the reserved anthropic-skills name, and a project excludedCommands limit; the Opus picker row drops “(1M context)”. Docs: the auto-mode billing page and the "attribution": false settings entry caught up; hint headers are on by default for direct API connections. Smaller changes: extended-thinking, plugin, MCP, and vim fixes. 222223224
2026-09-24 Guide v2.108: CLI v2.1.281 (Sep 23) (npm 17:01Z, GitHub release 19:19Z, 176 bullets, identical to the canonical CHANGELOG; nothing skipped since 2.1.280; npm stable moves from 2.1.267 to 2.1.273). Changed defaults: send now moves running tools to the background instead of cancelling the turn; CLAUDE_CODE_AUTO_MODE_SERVER applies on direct Anthropic API connections; server-reviewed read-only and sandboxed shell commands wait for review; the dangerous rm prompt denies after 2 minutes in unattended modes. Added: "attribution": false, MCP URL-mode elicitation, claude plugin validate MCP checks, --agents JSON file paths, gateway assume_role, guardrail, and telemetry.resource_attributes, runner system-prompt files, three prompt-cache fixes. Correction: the /agents surfaces now say the wizard was removed in v2.1.198. Smaller changes: resume, streaming, and proxy reliability fixes; claude --bg asks for workspace trust; --setting-sources reaches spawned sessions. 221
2026-09-23 Guide v2.107: Correctness and readability pass; no new CLI release (npm latest and next still 2.1.280, stable 2.1.267). Corrections: Opus 5.5 added to the API pricing table with its 0.05x cache-read rate; fast mode now lists Opus 5.5 at $8/$40, the fast-mode default since v2.1.280; Opus 5.5’s medium effort default and always-on thinking stated wherever effort and MAX_THINKING_TOKENS=0 come up; opus[1m] qualified for Bedrock, Agent Platform, and Foundry; the AGENTS.md differences now match the docs, with the first-session caveat; Claude Platform on AWS added to the server-side auto-mode list; an unsourced v2.1.280 billed-fallback claim removed; config examples moved to current model IDs. New: an Opus 5.5 breaking-changes block and Claude Code’s content-based fallback. Readability: a shorter TL;DR, the auto-mode intro split into paragraphs and a table, and release-note footnotes trimmed to citations. 216217219220
2026-09-22 Guide v2.106: CLI v2.1.280 (Sep 22) + Claude Opus 5.5 (npm latest and next 2.1.280, stable 2.1.267; 2.1.279 never published). Main changes: Opus 5.5 (claude-opus-5-5) is the default Opus model: 1M context, $4/$20 per MTok with $0.20 cache reads, 128K max output, always-on adaptive thinking, medium effort by default, and it requires v2.1.280; Pro and Team Standard move from Sonnet to Opus, so Opus 5.5 is the default on every Anthropic plan and first-party provider except Microsoft Foundry, and the “Default model by plan” table drops from five rows to three; CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH overrides the 2,048-character cap on MCP tool descriptions and server instructions for the whole session; the symlink write-path security fix, after which the permission prompt names where a write lands; auto mode denies once when a safety check declines to review and stops the turn after ten unanswered checks in a row; two prompt-cache fixes; PermissionRequest agent hooks are refused; Ctrl+C or Ctrl+D twice closes a dialog instead of quitting Claude Code; the v2.1.260 Ctrl+L and Cmd+K transcript clear is reverted. Smaller changes: the remaining fixes. 217218
2026-09-21 Guide v2.105: CLI v2.1.277 (Sep 18) + v2.1.278 (Sep 19) (npm latest and next 2.1.278, stable 2.1.267). Main changes: AGENTS.md support (v2.1.277): in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead, configurable under “Project instructions” in /config and not yet on Bedrock, Vertex, or Foundry; the memory section gains an “AGENTS.md Support” subsection, and the Codex migration advice to rename the file becomes the pre-2.1.277 fallback; auto mode defaults to the server-side classifier (v2.1.278) for Claude API and Enterprise users and on Bedrock, Vertex, Foundry, and gateways, with no charge for classifier overhead when the server performs the checks, CLAUDE_CODE_AUTO_MODE_SERVER=0 as the opt-out, a one-time warning on billed fallback, and an Auto mode server row in /status; CLAUDE_GATEWAY_PROXY_IS_EGRESS_BOUNDARY=1 for gateways whose only egress is a forward proxy; claude -p and Agent SDK internal errors report the error and exit 1 instead of hanging; sandbox.excludedCommands globs must match every part of a compound command; three prompt-cache fixes; the TaskOutput tool is removed. Smaller changes: the remaining fixes. 216
2026-09-17 Guide v2.104: CLI v2.1.274 and v2.1.275 (Sep 17) and the v2.1.276 regression fix (Sep 18) (npm latest and next 2.1.276, stable 2.1.267). Main changes: claude.ai account skills and plugins sync into terminal sessions (v2.1.275) signed in with that account, with syncClaudeAiSkills: false and syncClaudeAiPlugins: false as opt-outs; the send-now key (Ctrl+Enter, or Ctrl+X Ctrl+S) interrupts the current turn and sends all queued messages; /plugin install <plugin> --marketplace <source> offers to add the marketplace first; plugins from an npm source are fetched with npm pack --ignore-scripts, so package install scripts no longer run; CLAUDE_CODE_MCP_STARTUP_WAIT_MS bounds the first non-interactive turn’s wait for MCP servers (v2.1.274); Bedrock, Vertex, Foundry, and telemetry-disabled installs default to the v2 MCP client, with MCP_SDK_GENERATION=v1 and MCP_PROTOCOL_NEGOTIATION=legacy as opt-outs; "type": "sdk" MCP entries in config files are skipped with a warning; the product phrase becomes “cloud session”; artifact watching no longer starts a turn when a new version is published elsewhere; v2.1.276 fixes the 2.1.275 regression that failed every request when ANTHROPIC_BASE_URL points at a proxy or gateway, so never pin 2.1.275 there. Smaller changes: the remaining fixes. 215
2026-09-16 Guide v2.103: CLI v2.1.273 (Sep 15) (npm latest and next 2.1.273; the stable tag moved from 2.1.236 to 2.1.267). Main changes: v2.1.273 reverts v2.1.268’s check on Bash lines the permission checker cannot analyze (“commands like time -p make build prompt again instead of being denied”), while the v2.1.268 symlinked-directory fixes and the v2.1.260 revert stand; such commands no longer skip the prompt under permissions.blockReadsOutsideWorkingDirectories, and a subshell hiding a dangerous rm no longer skips confirmation in bypass mode; auto mode on Bedrock, Vertex, and Foundry uses the local classifier by default, with CLAUDE_CODE_AUTO_MODE_SERVER=1 to opt into the server-side classifier; CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 sends five x-claude-code-* hint headers to LLM gateways; allowManagedMcpServersOnly, deniedMcpServers, and disableClaudeAiConnectors from MDM or managed-settings.json are no longer ignored when server-managed settings are also present; advisor-tool turns are no longer counted at about twice their real size, which had fired auto-compact at about half the window; /login, /upgrade, and /extra-usage no longer discard earlier thinking; /bug and /feedback send less data; a claude --remote-control session can be forked from the Claude app. Smaller changes: the remaining fixes. 214
2026-09-15 Guide v2.102: CLI v2.1.266 through v2.1.272 (Sep 8 to 14) (npm latest 2.1.272; 2.1.273 on the next tag only). Main changes: /output-style is revived (v2.1.269) after its deprecation from v2.1.73 through v2.1.268; claude plugin eval (v2.1.269) runs scored, reproducible plugin eval suites; fast mode in Remote sessions (v2.1.271); the maxEffortLevel setting (v2.1.267) caps effort top-level or per model on every provider; Bash deny-rule fixes for symlinked directories, env -C, eval, and tee destinations (v2.1.268 to v2.1.271); about ten prompt-cache stability fixes (v2.1.267); --system-prompt-snapshot off; task-tracking tools offered only on Claude 3.x, Opus 4.0 to 4.7, Sonnet 4.0 to 4.6, and Haiku 4.5, with CLAUDE_CODE_ENABLE_TODO_TOOLS=1 elsewhere; plain WebFetch deny and ask rules no longer cover Artifact reads; the gatewayInternalNetworks managed setting and a gateway pricing multiplier up to 10; per-command allowed_domains in auto mode with sandboxing; omitClaudeMd agent frontmatter; an unreadable managed-mcp.json fails closed; --json on the plugin install, uninstall, update, enable, and disable commands. Smaller changes: the remaining fixes; v2.1.266 and v2.1.270 are one-line regression fixes and v2.1.272 reads only “Bug fixes and reliability improvements”. 213
2026-09-08 Guide v2.101: CLI v2.1.265 (Sep 8) (npm latest and next 2.1.265, stable 2.1.236; 2.1.262 and 2.1.264 never published; 2.1.263 reads only “Bug fixes and reliability improvements”). Main changes: --plugin-dir accepts a folder of plugins: each child folder with a manifest loads, and children added or removed while the session runs are picked up; two prompt-cache prefix fixes for resumed subagents and agent teammates; cd persists across turns in non-interactive sessions (-p with stream-json input, the Agent SDK, and cloud sessions); the MCP http transport falls back to legacy HTTP+SSE, so a legacy server no longer needs --transport sse; a 1 GB cap on tool results saved to disk; forceLoginGatewayUrl makes a machine a gateway session from startup, and gateway sessions can export OTLP directly to a collector named in the gateway’s managed OTEL_EXPORTER_OTLP_ENDPOINT; two-key chords wait 3 seconds for the second key, up from 1; mid-prompt slash commands show a suggestion list. Smaller changes: the remaining fixes. 212
2026-09-04 Guide v2.100: CLI v2.1.261 (Sep 4) (npm latest and next 2.1.261, stable 2.1.236). Main changes: keybindingFlavor is retired, and the prompt’s word-editing keys 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”); /skill-doctor shows which loaded skills go unused and what they cost in context; bashOutputMaxChars and taskOutputMaxChars raise how much command and background-task output Claude receives inline before it is saved to a file, up to 128K characters; auto mode treats a link that packs content into a public diagram renderer’s URL as an upload and no longer auto-approves it unless you asked for it; forceLoginMethod: "gateway" ignores a leftover API key or claude.ai login and asks for /login; no deny-rule change. Smaller changes: --append-subagent-system-prompt-file, an “Organization policy” line in /status and claude doctor, and the remaining fixes. Corrected the same day: BASH_MAX_OUTPUT_LENGTH restated as the read-back window from the Bash working output file (30K default, 150K hard ceiling), and the diagram-renderer sentence rephrased. 211
2026-09-03 Guide v2.99: Weekly limits change on September 14 — no CLI release involved. New paragraph in the rate-limits area: the temporary 50% weekly-limit increase ends September 14, replaced by a permanent 25% increase over the pre-boost baseline (Pro, Max, Team, seat-based Enterprise); Anthropic’s own follow-up puts it at “a 17% reduction in weekly limits on Claude Code” compared to today. Five-hour limits unchanged. Source: the two Claude Developers posts of August 29, 2026, quoted verbatim. 210
2026-09-03 Guide v2.98: CLI v2.1.260 (Sep 3), released hours after the v2.97 row below (npm latest and next 2.1.260, stable 2.1.236). Main changes: the v2.1.259 extension of Read() deny rules to Bash arguments is reverted: “it denied npm run build under a Read(./**/build/**) rule in every mode and made cd … && grep prompt even in auto mode”; the v2.1.257 coverage of input redirects and reader commands stands, and the v2.97 row below records what v2.1.259 shipped; /diff opens a fullscreen diff panel beside the conversation; a security fix for permission rules with parentheses in the path, which had been dropped as invalid or ignored by the Bash sandbox; four Fable 5.1 fixes (the /model picker, prompt caching of context attached after tool results, mid-session /effort changes, and the [1m] tag on a pinned fable); auto-compact near the 1M limit extends to Opus and Fable; /cost names a likely cache-miss cause; ! bash-mode commands run outside the sandbox even under strict sandbox mode; a managed claudeMd no longer triggers the security approval dialog; Claude in Chrome follows the org admin setting. Smaller changes: the remaining fixes. 209
2026-09-03 Guide v2.97: CLI v2.1.257 and v2.1.258 (Sep 1), v2.1.259 (Sep 2) + the Claude Fable 5.1 launch (Sep 1) (2.1.253 through 2.1.256 never published on npm, so v2.1.257 is the first installable release with Fable 5.1). Main changes: Fable 5.1 (claude-fable-5-1): $10/$50 per MTok with cache reads at $0.25, 1M context, 128K output, always-on adaptive thinking, high effort by default, three breaking changes against Fable 5, and the fable alias resolves to it; Fable 5 moves to the docs’ Legacy models table; timeFormat and timeZone settings; the auto-mode “Containment Escape” rule; CLAUDE_CODE_SUBAGENT_MODEL_FORCE; permissions.blockReadsOutsideWorkingDirectories; /effort s and a session-scoped --effort; Bash Read() and Edit() deny rules cover input redirects (< file) and reader commands like tac and egrep, the narrower version of the checks v2.1.232 reverted; --add-dir refuses network paths; the managedMcpServers managed setting (v2.1.259); allowedMcpServers now governs only servers users add, so a managed server an allowlist used to filter out loads again on upgrade (use deniedMcpServers); --permission-prompts none; managed settings that fail to parse refuse startup; claude plugin validate --json; Read() deny coverage of option values and operands. Smaller changes: the remaining fixes. 208238239240241
2026-09-01 Guide v2.96: Auto Mode gains the caveat it was missing — no CLI release involved. The Auto Mode section documented a steadily-hardening classifier without stating what that classifier is not. Added: Johann Rehberger’s August 26 chain against Claude Code Opus 5 in auto mode (the server answers WebFetch with HTTP 415 so the agent falls back to curl; the fetched archive’s struct.py is picked up by the agent’s own decoder when base64 imports struct), reported at 60-80% on small samples (3 of 5 for the python3 C2 chain; 3 of 5 and 4 of 5 for two claude -p subprocess configurations) with the author’s small-sample caveat, and his report that in a few runs auto mode denied Claude’s cleanup command after the compromise was noticed; plus Anthropic’s disposition (closed Informative, working as designed) and the framing to design around — best-effort classifier rather than security guarantee, injection chains built from benign steps outside classifier scope, OS-level isolation and network egress control as the real boundary. Guidance added for untrusted-input sessions: container or VM, restricted egress, monitoring, credentials out of the agent’s home directory. Also reconciles the marketed 0.00% prompt-injection ASR figure (commissioned 72-scenario evaluation) with a working chain that was not in that set, and notes the August 30 reclassification of the chain — raised by a Lobste.rs reader, endorsed in Willison’s update — as a confused environment attack rather than a classic prompt injection. No hardening claim was removed; the section now carries the frame those claims belong in. 207
2026-08-31 Guide v2.95: CLI v2.1.252 (Aug 31): four fixes, recorded in this row only. Verbatim: fixed Bash commands failing with “task output swap refused (tasks dir moved or linked)” on some Macs; “always allow” not saving in a project with no .claude/settings.local.json yet; Remote Control sessions hosted by Claude Desktop or VS Code stalling for minutes after a tool finished on degraded claude.ai connections; and background task notifications with very large failure output exceeding the API request size limit. All four restore documented behavior. v2.1.252 is the latest release at the time of this row. 203
2026-08-30 Guide v2.94: CLI v2.1.248 and v2.1.250 (Aug 27) and v2.1.251 (Aug 28) (2.1.249 never published on npm). Correction, default model by plan: Max, Team Premium, Enterprise pay-as-you-go, the Anthropic API, Claude Platform on AWS, Bedrock, and Google Cloud’s Agent Platform default to Opus 5; Pro and Team Standard default to Sonnet 5; Microsoft Foundry defaults to Sonnet 4.5; seat-based Enterprise subscriptions move to Opus 5 in v2.1.251. Also corrected: cross-session messaging has worked on native Windows since v2.1.239, and v2.1.248 extends same-machine SendMessage and ListAgents to Bedrock, Vertex, and Foundry and to sessions with telemetry disabled. Main changes: --restricted and CLAUDE_CODE_RESTRICTED=1; experimental.cacheTtl agent frontmatter; desktopSessionCleanupPeriodDays; /usage-credits; /loop self-paced mode always available; the v2.1.251 approval dialog for server-managed settings that weaken isolation; PreModelSwitch and PostModelSwitch hook events and SessionStart resume-cost fields; /effort saved per model; a Spend limit bar in /usage; a per-session prompt-cache line in /cost; CLAUDE_CODE_SUBAGENT_MODEL becomes a default instead of an override; Claude in Chrome actions always pass Claude Code permission checks. Smaller changes: four v2.1.251 security fixes and the remaining fixes. 203204205206
2026-08-27 Guide v2.93: CLI v2.1.247 (Aug 26) (2.1.244 remains unpublished on npm). Main changes: the SendFeedback tool and feedbackDrafts setting: when something goes wrong in a session, Claude can draft a feedback report for you to review and send from /feedback; spinnerTipsOverride accepts {id, text, cooldownSessions, priority} tip entries plus tipsFile and label keys; /claude-api cost-optimize profiles a project’s Claude API spend and works through cost levers one measured change at a time, and the skill gains Admin API coverage; Sonnet 5’s default auto-compact window is its full 1M context, so 1M-window sessions auto-compact at about 967K tokens instead of about 934K; Bash permission prompts offer “Yes, and switch to auto mode”; cross-session peer messages collapse by default to a one-line preview, and Ctrl+O expands them. Smaller changes: subagents that fail on a first-call model 404 use the session’s fallback model chain; oversized error output from a hook or background agent can no longer wedge the session on “Prompt is too long”; the remaining fixes. 242
2026-08-26 Guide v2.92: CLI v2.1.242 to v2.1.246 (Aug 24 to 25) (2.1.242 and 2.1.244 have no CHANGELOG section, and 2.1.244 never reached npm). Corrections: Sonnet 5’s $2/$10 is now the list price, and sonnet[1m] is a no-op on Sonnet 5; managed-source precedence rewritten (the first source with a policy key wins: remote, MDM, managed-settings files, then HKCU; nothing is merged), with the /status Skipped sources line; the prompt-cache TTL section replaced with the two-bucket table plus promptCacheTtl and subagentPromptCacheTtl; the effort table drops the nonexistent min level and adds ultracode; web availability fixed; stale model IDs in the settings examples replaced. Main changes: modelPicker; modelPricing; keyless Console sign-in; the /permissions Auto mode tab; the Bash wildcard-before-subcommand warning; /cd applies settings, hooks, MCP, skills, and agents at once; maxTurns partial results; the /goal three-check-in cap; the /usage Loops breakdown; /web-setup. Smaller changes: the zstd-compressed native binary (about 75 MB instead of 340 MB on Linux x64) and the remaining fixes. Footnote 229 had two definitions, so the v2.1.235 to v2.1.238 release-notes citations carry footnote 236. 248247246245244
2026-08-24 Guide v2.91: CLI v2.1.239 (Aug 21); v2.1.240 and v2.1.241 (Aug 22 and 23) are fixes-only. Main changes: /claude-api upgrade: migrates Python projects from anthropic 0.x to 1.x, skill reference updated for 1.x; 1.1× US-only-inference premium for data-residency workspaces now included in /cost, status line, and --max-budget-usd estimates; Windows cross-session messaging (SendMessage/ListAgents now on all three platforms); name@synced claude.ai plugins with claude plugin enable/disable <name>@synced, never overriding same-named local installs; ListAgents self-name + live-teammate listing; "readline" word keys (Alt+F/Alt+D/Ctrl+Y, punctuation-separated); /goal check-in backoff (30m→1h→2h) and goal restore via the --resume picker; one-time fullscreen offer on Bedrock/Vertex/Foundry (new installs there start fullscreen). Status changes from the Week 34 docs digest: /design research preview added to the slash-command table (editable UI artboards on artifacts; Pro/Max/Team/Enterprise; v2.1.233+); it had shipped inside an already-covered version window without body coverage; Remote Control is out of research preview: both body labels corrected, device cards noted. Smaller changes: retry watchdog fails fast on spend-limit/out-of-credits; Bedrock streaming proxy double-billing fix; Esc-race/idle-session fix; WebFetch 15-minute cache actually honored; /resume directory-collision and deleted-worktree fixes; UTF-8-BOM agent/skill files no longer ignored; OTel trace-fragmentation fix for hook-deferred tools; masked-input paste/history hardening. v2.1.241 is the latest release at the time of this row. 202
2026-08-20 Guide v2.90: CLI v2.1.235 to v2.1.238 (Aug 18 to 20). Main changes: the built-in “Concise” output style (v2.1.237); ANTHROPIC_DEFAULT_MODEL sets the model new sessions start on, and a /model pick still overrides it and persists (v2.1.236); an optional spellcheck setting using an installed aspell, hunspell, or ispell (v2.1.235); the keybindingFlavor setting, "readline" or the default "classic" (v2.1.238); headersHelper for plugin marketplaces and MCP mints short-lived HTTP headers through a local command (v2.1.238); notify_when_idle on cross-session SendMessage, with refused and dropped messages now reported to the sender; auto mode sets aside Monitor allow rules and runs its classifier with Claude API defaults on Bedrock, Vertex, and Foundry and with telemetry off (v2.1.236); on macOS, wildcard read-deny rules such as **/.env win inside allowed read regions (v2.1.236); a usage-credits spend row in /usage for Team and Enterprise; self-hosted runners gain --defer-shutdown-max-min and per-connection --proxy-authorization-command. Smaller changes: slash-command typos no longer run the closest fuzzy match; SIGTERM in print and SDK mode exits with code 143; the remaining fixes. 243
2026-08-18 Guide v2.89.1: Content-marking section completed: C2PA file metadata was the missing half. Anthropic’s support page (Aug 11, three days before the engineering post v2.89 sourced) describes two marking components: the statistical text watermark already covered, plus C2PA signed provenance metadata on generated files (.svg/.png/.jpg). The support page states that both components follow the same future-model timeline (“Claude models launched on or after August 2, 2026 will support machine-readable marking at launch”); the press’s “applies everywhere now” framing is wrong for files too, so the section’s core tense claim (nothing from current models is marked today) strengthens rather than corrects. Section retitled to “Content Marking: Text Watermarks and C2PA File Metadata”; adds the product list, file-side stripping vectors (format conversion, re-saving, screenshots), absent-mark-proves-nothing, and one sentence retiring the viral “watermarking made Opus 5 feel worse” theory (impossible: not live in any current model). New 201. 249201
2026-08-17 Guide v2.89: Text watermarking announced (Aug 14): new subsection in the models area. Anthropic’s announcement says watermarking applies to future models; the entire current lineup (Fable 5, Opus 5, Sonnet 5, Haiku 4.5) launched before the EU AI Act Article 50 cutoff (Aug 2) and sits in a transition period; Claude Code output today is not yet watermarked, contra “Claude now watermarks everything” headlines. Mechanism: SynthID-Text variant, randomness-source token selection, model-level (all surfaces once live). Code = sparse watermark (comments/naming; “negligible effect on the actual code produced”). Light edits survive it, full rewrites remove it, Claude translations re-mark. Detection API planned; detection proves involvement, not authorship; no opt-out mentioned. 249
2026-08-17 Guide v2.88: CLI v2.1.234 (Aug 17). Main changes: sessions continue automatically when a claude.ai usage limit resets (the /config toggle “Continue automatically at usage limit”); new env vars CLAUDE_CODE_PROJECT_DIR_NAME (a short per-project transcript-directory name) and CLAUDE_CODE_GOAL_CHECKIN_MINUTES (background tasks stalling a /goal for 30 minutes or more get checked on; 0 opts out); /goal clears itself when a turn dies on an unrecoverable error. Smaller changes: /permissions and /add-dir open mid-turn, with rule changes applying to the rest of the turn; a GitLab MR badge in the footer and statusline through an authenticated glab; the selection:clear keybinding action; the built-in claude-api skill’s context cost drops from about 200k to about 25k tokens; Windows NT-namespace (\??\) paths are rejected across remote reads, session restore, CLAUDE.md includes, workflow scripts, and uploads; strictKnownMarketplaces closes an SCP-style host-mismatch hole; the “Default teammate model” setting is removed; the remaining fixes. 250
2026-08-15 Guide v2.87: CLI v2.1.233 (Aug 14). Main changes: todo/task-tracking tools (TodoWrite, TaskCreate/Get/Update/List) off by default on Opus 4.8, Sonnet 5, Fable 5, Mythos 5, and newer; CLAUDE_CODE_ENABLE_TODO_TOOLS=1 restores (env table + TaskCreated hook row updated); new env vars CLAUDE_CODE_TOOL_MEMORY_LIMIT (opt-in Linux memory cgroup for Bash commands) and CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS; GitLab MR URLs in --worktree with !N display in claude agents; forward_user_identity apps-gateway setting for per-user spend attribution behind proxies. Corrections to v2.1.232’s record: the Cygwin-style-symlink Bash permission change and the input-redirection (< file) checks were reverted (a narrower version is promised later), and a v2.1.232 auto-mode regression (repeated approval prompts on ordinary cd && command > file on Windows) is fixed. Smaller changes: NTLM credential-leak fix for NT \??\ device-prefix paths; self-hosted-runner faster session start; MCP v2 subscriptions/listen reconnect fix vs serverless hosts; Notification hooks now fire for permission prompts under Desktop/VS Code; idle-session 100%-CPU fix on sandboxed Linux; bundled-skill alias shadowing fix (/checkup, /review in -p mode); argument-substitution re-expansion fix; claude plugin validate checks bare .claude/skills; screen-reader /effort improvements; [claude-code:unrecognized_model] stderr diagnostic in print mode; GitHub-app tip suppressed on gitlab/bitbucket origins. v2.1.233 is the latest release at the time of this row. 251
2026-08-14 Guide v2.86: CLI v2.1.231 + v2.1.232 (both Aug 13). v2.1.232 main changes: subagent forking on by default: subagent_type: "fork" inherits the full conversation and prompt cache, non-teammate interactive spawns run in the background (see Subagents); @-mention live sessions in the prompt, routed via SendMessage, with bare-name exact-match delivery replacing the [ref] confirmation, unique per-machine session names (name-word-word variants), and /config rows for Dialog expiry + cross-session inbound (see Cross-Session Messaging); GitLab parity: nine GitLab token families redacted (glrt-, gloas-, glptt-, glagent-, glimt-, glsoat-, glcbt-, glft-, glffct-; routable glpat-/gldt- fully redacted), glab CLI config gets gh-grade sandbox protection, bare gitlab.com marketplace URLs clone like GitHub’s; marketplace settings aliases additionalMarketplaces/allowedMarketplaces (see Managed Settings); Fable 5 returns to /advisor for orgs with access. Security fixes: PowerShell $PSDefaultParameterValues permission bypass, Git Bash Cygwin-symlink write bypass, nested git repos no longer inherit parent trust. Smaller changes: gateway desktop: overlay accepts all Desktop settings schema-validated at boot, empty policy-group/admin-group and malformed email-domain entries fail at boot, Remote Control bridge/resume/history fixes, MCP connect-timeout fix, mTLS cert hot-reload, region-fallback and stream-idle-recovery fixes on Bedrock/Vertex. v2.1.231 (Aug 13) is a single fix: MCP OAuth redirect-URI mismatch for pre-registered clients (e.g. Slack). v2.1.232 is the latest release at the time of this row. 252
2026-08-12 Guide v2.85: CLI v2.1.228 (Aug 11) + v2.1.229 (Aug 12). v2.1.229 main changes: plugin marketplace command sources: a local command prints the plugin directory, re-resolved each session without restart, mode: "link" uses it in place (see Plugin Management); claude remote-control --continue resumes the most recent Remote Control session; ListAgents marks disconnected Remote Control sessions offline and labels cloud sessions cloud; /commit-push-pr no longer auto-approves git/gh commands with dangerous flags (--force, --amend, --no-verify); sandbox domain lists require bracketed IPv6 literals, enforced fail-closed and flagged by /doctor; self-hosted runners honor server-supplied hooks and Windows requires explicit --base-dir; workflow fan-outs stagger same-prefix siblings for prompt-cache reuse (CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0 disables); VSCode gains sidebar session groups and a resizable /btw panel. v2.1.228 main changes: the Write tool now matches Edit’s rules on newer models (overwriting an unread file no longer requires a prior read this session); skills synced from claude.ai are hardened (no shadowing local commands/MCP prompts, sanitized labeled descriptions, no !/@ expansion). Smaller changes across both: TUI redraw/streaming/crash fixes (narrow-terminal RangeError could break --resume), cross-session inbox-on-first-install fix and inline message display, Remote Control /resume history-leak fix, Vertex credential fail-fast, MCP OAuth 127.0.0.1 redirect, /model 1M-on-gateway fix, auto-mode attribution-header fix, self-hosted-runner checkout/cleanup fixes, memory-folder cleanup fix, marketplace settings-merge fix, 32MB-request compaction clarity, OTel Desktop-gateway fix, /login token-override warning repeat, auto-mode cost note removed from first-use notice. v2.1.229 is the latest release at the time of this row. 253 254
2026-08-12 Guide v2.85: Three lookup sections added. “Settings Lookup: The Most-Searched Flags” (disableBundledSkills, sandbox.excludedCommands, strictAllowlist, worktree.bgIsolation, allowAllClaudeAiMcps, wslInheritsWindowsSettings), “Where Are the Official Docs for Each Topic?” (topic, canonical code.claude.com page, in-guide section; ten rows), and “Claude Code Hooks vs Agent SDK Hooks” (include_hook_events / includeHookEvents stream consumption, payload-shape parity with the Agent SDK hooks doc, and the fail-open caveat at lifecycle edges). -
2026-08-11 Guide v2.84: Auto mode becomes the default permission mode on Pro, Max, and Team, effective August 14, 2026 (announced August 7; no CLI release — a plan-level rollout). Sessions on those plans start in auto mode: each tool call routes through a classifier “targeted at blocking actions that are irreversible, destructive, or aimed outside your environment.” Anthropic’s stated basis: a 1,053-tester study where auto mode caught 89% of dangerous commands vs 13.6% for human review, with users approving 97% of permission prompts; classifier token overhead is no longer billed on Pro/Max/Team. Opt-outs: Shift+Tab per session, defaultMode to pin, disableAutoMode managed setting org-wide. Enterprise/API/Bedrock/Google Agent Platform/Foundry stay opt-in with a stated coming-month plan to follow. Updated: TL;DR, Permission Modes table + new announcement paragraph, Auto Mode availability prose (the “not available on Pro” era is over — kept as history), quick-reference line. 200
2026-08-11 Guide v2.83: CLI v2.1.227 (Aug 10): bug fixes and polish only, recorded in this row; no guide section needed an update. Fixes: feature flags were evaluated without the user’s subscription tier when a session started on an expired login token, which could wrongly prompt Max users to enable usage credits for Fable; every Bash command failed under claude-code-action with allowed_non_write_users on GitHub-hosted runners; /tui brought back a conversation that had been rewound to before its first message. Improvements: slash-command menu highlighting (blue marks only the selected row, matched characters are bolded, emoji and accented names keep their glyphs) and fewer event-loop stalls on file-not-found suggestions and at-mention size checks. v2.1.227 is the latest release at the time of this row. 255
2026-08-09 Guide v2.82: Full-guide corrections: 15 stale passages fixed. Model-currency cluster rewritten to the current lineup across six surfaces: plan-default table, Opus tier intro, API pricing table (Opus 5 flagship, 4.8/4.7 legacy), Quick Reference model block, ANTHROPIC_DEFAULT_OPUS_MODEL example, Codex-comparison foundation row, with April data retained and labeled historical. Hard contradictions fixed: the removed --enable-auto-mode flag no longer taught as the way into auto mode (--permission-mode auto); auto-mode classifier updated to Sonnet 5 (v2.1.210) in both sections and the stale Team-first/4.6-requirement availability note replaced; subagent concurrency normalized to the 20-default in four places (diagram, intro, Codex table, Agent Teams comparison); Explore’s model card now says inherits-session-model (v2.1.198); the Codex-table hook count 22 → 31 (missed by v2.81’s reconciliation, whose row is amended); Ctrl+F kill-all-agents rebound to Ctrl+X Ctrl+K (v2.1.83). TL;DR: the v2.1.202 /review split now carries its v2.1.223 re-merge inline, and a v2.1.221 to v2.1.226 sentence covers cross-session messaging, self-hosted runners, plugin archive source, credential-masking extensions, Focus view, /fork worktrees, and the 200-cap/ultraplan removals. Smaller fixes: a stale v2.1.154 version stamp removed; Extended Thinking section fronted with an August-2026 model-support note; Claude-in-Chrome ToC anchor fixed and Microsoft 365 added to the ToC; MCP ecosystem count normalized to 3,000+ servers; phantom PreCommit hook event replaced with real mechanisms; expired rollout phrasing (Fable 5, Voice Mode) moved to past tense; cross-session transport wording no longer contradicts the v2.1.225 initiate change. No new CLI release. 184191194196197198199256
2026-08-09 Guide v2.81: Available Events table completed to the reference’s full 31-event roster: six documented events were missing rows: UserPromptExpansion (blocks/audits typed-command expansions), PostToolBatch (fires between a parallel tool batch and the next model call; exit 2 halts the agentic loop), MessageDisplay (display-only text transform via displayContent, v2.1.152), TaskCreated (exit 2 rolls back creation, v2.1.84), and CwdChanged/FileChanged (v2.1.83; FileChanged watches paths registered via the SessionStart hook’s watchPaths output). Also reconciled stale hook counts in the competitor-comparison sections (12+/22 → 31; the Codex-table 22 was missed in that pass and corrected in v2.82 the same day). Correction, phantom $FILE_PATH: five hook code examples used a $FILE_PATH (or $TOOL_INPUT_FILE_PATH) environment variable that Claude Code does not set: the reference documents no such variable; tool input reaches command hooks only as stdin JSON. All five rewritten to the documented jq -r '.tool_input.file_path' stdin pattern (the guide’s own protect-files example already had it right); the Hook Environment Variables table was always correct. No new CLI release. 3
2026-08-08 Guide v2.80: coverage expansion, no new release. Cross-Session Messaging rebuilt from Anthropic’s dedicated docs page (published alongside v2.1.224): /list-agents+/peers and the /status Peer address row; the four receiving-side rules (no approvals, no config changes, commands as text, prompts still fire); crossSessionInbound accept/hold/refuse with the two-permission-class default, five-minute dialogExpiry, 100-held cap; headless -p workers bind sockets but need accept to take messages unattended; transport table (same-machine Unix socket never via Anthropic servers, cross-machine reply-only through Remote Control, filesystem-visibility reachability); isolatePeerMachines tighten-only semantics; scripted inboxes via CLAUDE_CODE_MESSAGING_SOCKET with platform-dependent own-child verification; loop throttling (rate-limit, dedupe, 50 unread cap); availability traps including the four feature-flag env vars that silently disable it. Companion post: Cross-Session Messaging in Claude Code. 256
2026-08-07 Guide v2.79: CLI v2.1.225–v2.1.226 (both Aug 7 PST). v2.1.225 refines the v2.1.224 feature wave. SendMessage can now start a conversation with your Remote Control sessions on other machines by name — ListAgents shows them as name [ref]; previously reply-only (see Cross-Session Messaging). A confirmed Remote Control recipient is never silently swapped for a same-named local session. Gateway spend-limit support in the usage warning: the limit-reached message names the cap, its reset time, and the operator’s message (needs the gateway on 2.1.225). claude agents gains the workspace trust prompt for untrusted directories, matching claude. Fixes worth knowing: a transient 401 could replace a long-lived CLAUDE_CODE_OAUTH_TOKEN with a stored login’s short-lived token, breaking headless sessions until restart; macOS MCP OAuth servers could fail with 401 bursts after a keychain read timeout; auto mode no longer counts a safety-filter refusal of its own permission check toward the consecutive-block limit; cross-session messages no longer park silently in headless sessions; claude self-hosted-runner exits at startup with a clear error when --base-dir is unwritable instead of failing every session; VSCode Focus view keeps the latest to-do list and pending questions unfolded. v2.1.226 is bug fixes and reliability improvements only. v2.1.226 was the latest release at the time of this row. 199
2026-08-07 Guide v2.78: CLI v2.1.224. Main changes: self-hosted runners: claude self-hosted-runner lets Claude Code web, mobile, and desktop sessions execute on your own machines or containers (Team and Enterprise); cross-session messaging: sessions message each other across your machines through SendMessage with ListAgents discovery (macOS and Linux), and the crossSessionInbound and dialogExpiry settings hold messages to bypassed-permission sessions for approval; the archive plugin source installs plugins from a zip over HTTPS with optional SHA-256 pinning; sandbox credential masking gains extract, decode: "jwt" with maskClaims, and awsPairs with sigv4 re-signing; the 200-subagent-per-session spawn cap is removed, while the concurrency (20) and depth (3) limits still apply and CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION is now a no-op. Security fixes: project paths over 200 characters could resolve to another project’s session directory; sandbox filesystem deny entries written with a trailing slash (denyRead: "~/.aws/") were bypassable on Linux and macOS. Privacy note: the feedback survey’s transcript share also uploads the last request’s system prompt (including CLAUDE.md), tool definitions, and model parameters with consent, secrets redacted. Smaller changes: ANTHROPIC_BEDROCK_REGION_PREFIX and the remaining fixes. 198
2026-08-06 Guide v2.77: CLI v2.1.223. Main changes: /review is an alias of /code-review: the two-command split from v2.1.202 is gone, /code-review ultra is the deep cloud review, and bare /code-review reuses the last effort level you typed; strictKnownMarketplaces and blockedMarketplaces accept "owner/*" wildcards; CLAUDE_CODE_DISABLE_1M_CONTEXT now holds every model with a native 1M window to 200K through auto-compaction, and auto-compact keeps sessions on unrecognized model IDs inside the assumed window (CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 restores the earlier behavior). Security fixes: a crafted command could hide parts of itself from Bash permission checks; commands padded with tabs or invisible Unicode could hide part of the command from the approval dialog; workflow scripts could use dynamic import() to run code outside the workflow sandbox; an agent definition’s bypassPermissions mode ignored the org policy that disables bypass. Smaller changes: a warning when a requested subagent model is restricted and the parent model runs instead; server-delivered managed settings no longer disable the env block of a machine-local managed-settings.json; the remaining fixes. 197
2026-08-05 Guide v2.76: CLI v2.1.221 and v2.1.222 (Aug 4). Main changes (v2.1.221): the VS Code Focus view hides tool activity behind a per-turn summary (Ctrl+Alt+F); sandbox.credentials files gain mode: "mask" on Linux and WSL, which falls back to deny on macOS; background sessions commit and push to preserve work, open a draft PR only when the task calls for one, and report where the work lives; /fork copies get their own worktree; /plugin install refreshes a stale marketplace catalog, and installs activate at once when safe; security fixes for hidden commands in zsh [[ ]] regex conditionals and for quoted-character paths in PowerShell. Main changes (v2.1.222): Remote Control auto-start can no longer be enabled by repo-local settings; worktree isolation applies to file edits and Bash in every session type; PreToolUse auto-allow hooks no longer bypass tool restrictions in background agent tasks; SendMessage payloads to other sessions pass the permission classifier before dispatch; ultraplan is removed. Smaller changes: org-restricted model aliases step down to the newest org-allowed model in the family; /diff uses raw git blob content; the remaining fixes. 196
2026-07-28 Changelog rendering fix: a truncated row restored. The 2026-05-28 entry wrote a plugin-scope example as a single inline-code span containing raw pipe characters. python-markdown’s table parser splits on pipes before inline code is processed, so the row parsed as five cells against a three-column header: it rendered truncated mid-sentence at “applies review findings to the working tree”, and displayed the word “project” where its Source citation belonged. About 7,000 characters of that entry - the v2.1.152 through v2.1.154 detail - never reached the published page. Rewritten so the pipe sits outside any code span. -
2026-07-25 Guide v2.75: CLI v2.1.219 and v2.1.220 + Claude Opus 5. Main changes: Opus 5 (claude-opus-5) is the default Opus and what /model opus selects (v2.1.219): 1M context, 128K max output, $5/$25 per MTok (the same as Opus 4.8), adaptive thinking, and effort defaulting to high; Opus 4.8 moves to the docs’ Legacy models table; two breaking changes against Opus 4.8: thinking is on by default for requests with no thinking field, and thinking: {type: "disabled"} with effort xhigh or max returns a 400. Correction, fast mode: /fast applies to Opus 5 and Opus 4.8 at $10/$50 per MTok; Opus 4.7 was removed, and claude-opus-4-7 with speed: "fast" now errors; the guide had described fast mode as Opus 4.6 only at $30/$150. Correction, subagent nesting: subagents spawn nested subagents up to depth 3 by default, and CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 disables nesting. Also: the DirectoryAdded hook event; sandbox.network.strictAllowlist; dynamic workflows default to a medium size guideline, with the workflowSizeGuideline key; nested subagents surface in stream-json with --forward-subagent-text. Smaller changes: the remaining fixes; v2.1.220 (July 25) is bug fixes only. Also corrected: the MCP HTTP-status and whitespace-warning item in the 2026-07-24 row shipped in v2.1.219, not v2.1.218. 193194195
2026-07-24 Guide v2.74: CLI v2.1.218. Main changes: /code-review runs as a background subagent, so review work no longer fills your conversation; context: fork skills run in the background by default, with the background: false frontmatter key to opt out per skill; in auto mode the dangerous-rm, background-&, and suspicious-Windows-path checks no longer open permission dialogs, and the classifier decides them, as it does for plan-mode Bash commands the static analyzer cannot prove read-only; agent frontmatter hooks no longer run from untrusted folders; /deep-research is manual-invoke only. Smaller changes: server-managed settings skip the approval prompt for benign feature and cost toggles; agent names containing : are rejected; skill and plugin frontmatter booleans accept yes, no, on, off, 1, and 0; the remaining fixes. Correction of 2026-07-25: the claude mcp list HTTP-status and whitespace-warning item first credited here shipped in v2.1.219. 192193
2026-07-22 Guide v2.73: CLI v2.1.217. Main changes: subagents no longer spawn nested subagents by default; set CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH to allow deeper nesting (recursion had been the default from v2.1.172 to v2.1.216); at most 20 subagents run concurrently by default (CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS), separate from the v2.1.212 per-session spawn total of 200 (CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION); --max-budget-usd 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 (emojiCompletionEnabled: false turns it off). Smaller changes: background-session isolation canonicalizes symlinked working directories; a managed OTEL_EXPORTER_OTLP_ENDPOINT governs all signals; warnings when transcript writes fail; the login-expiry warning moves to 3 days from 5; the remaining fixes. 191
2026-07-21 Guide v2.72: CLI v2.1.214 to v2.1.216 (v2.1.213 never released). Main changes: single-segment dir/** allow rules such as Edit(src/**) match only <cwd>/dir from v2.1.214; write **/dir/** for any depth, while deny and ask rules keep any-depth matching and hook if: conditions get the same scoping; a batch of permission checks that now fail closed (Windows PowerShell 5.1, Bash fd redirects, commands over 10,000 characters, zsh subscripts in [[ ]], docker and Podman daemon-redirect flags); the EndConversation tool lets Claude end sessions on highly abusive input or jailbreak attempts; SessionStart hooks report source "fork" for forked sessions; CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH; Claude no longer auto-runs the /verify and /code-review skills (v2.1.215); the sandbox.filesystem.disabled setting skips filesystem isolation and keeps network egress control (v2.1.216). Smaller changes: settings files over 2 MiB fail at startup with a clear error; hook exit code 2 blocks as documented when stdout JSON fails schema validation; worktree-isolated subagents can no longer redirect git to the shared checkout; the remaining fixes. 187 188 189 190
2026-07-17 Guide v2.71: CLI v2.1.206 to v2.1.212. Main changes: /fork copies the conversation into a new background session, and the old in-session fork is renamed /subtask (v2.1.212); claude auto-mode reset; WebSearch and subagent spawns each default to 200 per session; MCP tool calls over 2 minutes move to the background; the Task tool mode parameter is ignored, and subagents inherit the parent session’s permission mode; --forward-subagent-text (v2.1.211); “Always allow” rules save at the repository root; a startup warning for Write(path), NotebookEdit(path), and Glob(path) permission rules (v2.1.210); screen reader mode (--ax-screen-reader), the corporate launcher through processWrapper, and vimInsertModeRemaps (v2.1.208); auto mode needs no CLAUDE_CODE_ENABLE_AUTO_MODE opt-in on Bedrock, Vertex, or Foundry, autoMode is no longer read from a repository’s .claude/settings.local.json, and ${user_config.*} is rejected in shell-form plugin commands (v2.1.207); /login supports Anthropic-operated public gateway endpoints (v2.1.206). Smaller changes: the remaining fixes. 181 182 183 184 185 186
2026-07-09 Guide v2.70: CLI v2.1.203 to v2.1.205. Auto-mode hardening (v2.1.205): session transcript files are tamper-blocked; rm -rf on a variable the classifier cannot resolve now asks first; background-task notifications explicitly state no human input occurred, so fabricated in-transcript approvals cannot be laundered into real ones (see Auto Mode). /doctor is now a full setup checkup that diagnoses and fixes issues, with /checkup as an alias (see slash-command table). v2.1.203: a grey ⏸ footer badge shows manual permission mode; the session’s additional working directories are exposed to MCP servers via roots/list (with notifications/roots/list_changed); fixed background sessions dropping a shell-exported ANTHROPIC_BASE_URL (requests went to the default endpoint and 401’d). v2.1.204: bug-fix only (headless SessionStart hook streaming). Smaller changes: agent-view rows get classifier-written headlines and PR links; auto-updater streams downloads (~400 MB less peak memory); “Claude Browser” MCP name reserved. v2.1.205 was the latest release at the time of this row. 180
2026-07-07 Guide v2.69: CLI v2.1.200 to v2.1.202. Permission mode default renamed to “Manual” (v2.1.200) across the CLI, --help, VS Code, and JetBrains; the config value is unchanged, and --permission-mode manual / "defaultMode": "manual" are accepted as aliases (see Permission Modes). Same release: AskUserQuestion dialogs no longer auto-continue by default (opt into an idle timeout via /config), plus a wave of startup and background-session crash/reliability fixes. v2.1.201: Sonnet 5 sessions stop using the mid-conversation system role for harness reminders. v2.1.202: a “Dynamic workflow size” /config control (advisory small/medium/large agent counts, not an enforced cap) and workflow.run_id/workflow.name OTel attributes; /review <pr> returns to a fast single-pass review while the multi-agent pass stays on /code-review <level> <pr#> (see slash-command reference); re-invoking an already-loaded skill no longer duplicates its instructions in context; and a clearer MCP error when a server config has url but no type. v2.1.202 was the latest release at the time of this row. 179
2026-07-03 Guide v2.68: CLI v2.1.196 to v2.1.199. Sonnet 5 becomes the default model in Claude Code (v2.1.197, June 30) with native 1M context and $2/$10 promo pricing through Aug 31; the model-selection guidance, alias table, and TL;DR now reflect it. v2.1.196 (June 29): org default models (admin-set, “Org default” in /model); readable default session names; Cmd/Ctrl-click file attachments; security: claude mcp list/get no longer spawn repo-self-approved .mcp.json servers in untrusted workspaces; streaming idle watchdog on by default (CLAUDE_ENABLE_STREAM_WATCHDOG=0 to disable); /code-review finder consolidation (~25% fewer tokens). Correction: our July-1 row stated v2.1.196 “was not present” per the canonical changelog at the time; it has since been published there with exactly the features an early GitHub summary described. v2.1.198 (July 1): subagents run in the background by default; Claude in Chrome GA; background agents commit/push/open a draft PR from worktrees; Notification hook fires agent_needs_input/agent_completed; /dataviz skill; Explore inherits the session model (capped at Opus); subagents/compaction inherit extended-thinking config; /agents wizard removed (edit .claude/agents/ directly). v2.1.199 (July 2): stacked slash-skill invocations load up to 5 leading skills; transient 429s auto-retry with backoff for subscribers; CLAUDE_CODE_RETRY_WATCHDOG defaults to 300 retries for non-capacity errors and lifts the CLAUDE_CODE_MAX_RETRIES cap; plus a large reliability wave for background agents/daemons. v2.1.199 was the latest release at the time of this row. 178
2026-07-01 Guide v2.67: Claude Sonnet 5 (June 30, 2026). New Sonnet tier, selectable in Claude Code via /model sonnet / /model claude-sonnet-5. Model ID claude-sonnet-5 (dateless pinned snapshot); 1M context, 128K max output (300K on Batches with the output-300k-2026-03-24 beta header), adaptive thinking only, Jan-2026 knowledge cutoff. Pricing $3/$15 per MTok, introductory $2/$10 through Aug 31 2026, ~40% below Opus 4.8; Anthropic positions it “close to Opus 4.8 at lower prices.” effort defaults to high on the Claude API and Claude Code. Added to the model alias table, the Sonnet prose entry (Sonnet 4.6 marked superseded), and the pricing table. Source: the Anthropic model docs (platform.claude.com). 177
2026-06-30 Guide v2.66: CLI v2.1.193 to v2.1.195 (v2.1.192 and v2.1.194 were not released). Hooks: matchers with hyphenated identifiers (code-reviewer, mcp__brave-search) now exact-match instead of accidentally substring-matching; to match every tool from a hyphenated MCP server use a pattern like mcp__brave-search__.* (see Matchers). Auto Mode: new autoMode.classifyAllShell setting routes all Bash/PowerShell commands through the classifier (not just code-execution patterns), and denial reasons now appear in the transcript, the toast, and /permissions. Telemetry: new claude_code.assistant_response OTel log event carries the model’s response text, gated by OTEL_LOG_ASSISTANT_RESPONSES, which follows OTEL_LOG_USER_PROMPTS when unset, so prompt-logging deployments start logging responses on upgrade (set it to 0 to keep prompts-only). New env vars: CLAUDE_CODE_DISABLE_MOUSE_CLICKS (disable fullscreen mouse, keep wheel scroll), CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP (turn off idle-background-shell reaping). Plus live file-path autocomplete in bash mode (!) and a startup notice when MCP servers need auth. v2.1.195 is otherwise voice/background/plugin reliability fixes. v2.1.195 was the latest release at the time of this row. 176
2026-06-25 Guide v2.65: CLI v2.1.191. /rewind across /clear: /rewind can now resume a conversation from before a /clear (see slash-command reference). Hooks: comma-separated matchers (e.g. Bash,PowerShell) now fire correctly; earlier versions silently dropped them (see Matchers). Sandbox: the network-permission dialog remembers hosts you allow for the rest of the session. Fixes: stopping a background agent from the tasks panel is now permanent (no resurrection); /permissions Recently-denied approvals persist on close; /voice explains an org-policy restriction instead of a generic message; Cmd+click links in Ghostty over ssh/tmux; claude agents no longer sends builtin slash commands as prompt text or shows raw image paths; welcome-splash overflow on 80×24; forceRemoteSettingsRefresh via MDM. Performance: ~37% less CPU during streaming responses; reduced long-session memory growth from the terminal-output cache. v2.1.191 was the latest release at the time of this row. 175
2026-06-24 Guide v2.64: Claude Tag (ecosystem note, not a CLI release). Anthropic launched Claude Tag, a Slack-native managed agent for Claude Enterprise and Team customers: tag @Claude in a channel to delegate a task, which the agent decomposes into stages and completes asynchronously, posting results back; a shared single Claude identity lets teammates hand off in-progress work; admins scope tool, data-source, and memory access per channel with token-spend limits and activity logs; runs on Opus 4.8. Added a short subsection under the agents material distinguishing Claude Tag from the Claude Code CLI (different surface and control model). No CLI release. 174
2026-06-24 Guide v2.63: CLI v2.1.190. Bug-fix and reliability release: no user-facing feature, setting, command, or pricing changes. (v2.1.188 and v2.1.189 were not released.) v2.1.190 was the latest release at the time of this row. 257
2026-06-23 Guide v2.62: CLI v2.1.187. Security: the sandbox.credentials setting blocks sandboxed commands from reading credential files and secret environment variables (see Sandbox Mode); 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 (see enforceAvailableModels). UX: mouse-click selection in fullscreen menus (permission prompts, /model, /config); /install-github-app makes the GitHub Actions workflow step optional; /btw gains ←/→ navigation; /plugin surfaces unused plugins for cleanup; claude --help now lists --bg/--background. Fixes: --json-schema / workflow agent({schema}) no longer re-call StructuredOutput after success and reliably return structured output on follow-up turns; remote MCP tool calls that hang abort after 5 min instead of blocking; --resume no longer fails with “No conversation found” when the original -p run produced no model turns; subagent depth tracking restores spawn depth on resume and counts forked subagents toward the cap; leaked agent worktree registrations are cleaned up; pasted Korean/CJK no longer turns into mojibake; background jobs no longer stick in “working” when a turn ends without structured output. v2.1.187 was the latest release at the time of this row. 173
2026-06-23 Guide v2.61: CLI v2.1.184 to v2.1.186 (v2.1.184 was not released). Main changes (v2.1.186): claude mcp login <name> and claude mcp logout <name> authenticate MCP servers from the CLI without the /mcp menu (--no-browser completes sign-in over SSH); ! bash commands trigger Claude to respond to the output, and "respondToBashCommands": false keeps the earlier context-only behavior; Agent(type) deny rules and Agent(x,y) allowed-type restrictions are enforced for named subagent spawns; background subagents surface permission prompts in the main session instead of auto-denying; /review <pr> uses the same engine as /code-review medium; skill frontmatter keys accept kebab-case, snake_case, and camelCase, and a malformed SKILL.md frontmatter loads the body with empty metadata; teammateMode: "iterm2"; CLAUDE_CODE_MAX_RETRIES caps at 15 (use CLAUDE_CODE_RETRY_WATCHDOG for unattended sessions). Smaller changes: streaming requests no longer fail with “Content block not found” after the machine wakes from sleep; Workflow agent({schema}) subagents abort after 5 validation failures; in v2.1.185 the stream-stall hint triggers after 20 seconds of silence, up from 10; the remaining fixes. 172
2026-06-19 Guide v2.60: CLI v2.1.180 to v2.1.183. v2.1.183: auto mode now hard-blocks destructive commands unless you asked: destructive git (git reset --hard, git checkout -- ., git clean -fd, git stash drop), git commit --amend on non-agent commits, and terraform/pulumi/cdk destroy without a named stack (see Auto Mode on Max); attribution.sessionUrl setting omits the claude.ai session link from commits/PRs; /config --help lists shorthand keys and the /config UI now saves on Esc; deprecated-model warnings extended to agent frontmatter (stderr in -p); removed the startup “setup issues” line. v2.1.181: /config key=value sets any setting from the prompt (e.g. /config thinking=false); sandbox.allowAppleEvents opt-in (macOS Apple Events); CLAUDE_CLIENT_PRESENCE_FILE env var suppresses mobile push while you’re at the machine; bundled Bun upgraded to 1.4; line-by-line streaming of long paragraphs; mid-thinking connection-drop auto-retry; subagent-panel polish (idle auto-hide, 5-row cap). (v2.1.180 and v2.1.182 were not released.) v2.1.183 was the latest release at the time of this row. 171
2026-06-17 Guide v2.59: CLI v2.1.177 to v2.1.179. v2.1.178 (the substantive release): Tool(param:value) permission rules match a tool’s input parameters with a * wildcard, e.g. Agent(model:opus) to block Opus subagents (see Permission Rules Syntax); nested .claude/skills now load when you work on files under them (name clash → <dir>:<name>), and nested .claude/ agents/workflows/output-styles resolve closest-to-cwd on collision (project-scope workflow saves target the closest existing .claude/workflows/); auto mode now vets subagent spawns before launch via the classifier, closing a spawn-as-bypass gap; compaction honors the --fallback-model chain; the disallowedTools MCP-spec fix (mcp__server, mcp__server__*, mcp__* were silently ignored); plus /doctor flat-tree layout, /bug now requires a description, the workflow keyword triggers only on explicit phrases, and many subagent-transcript / Remote Control / auth fixes. v2.1.179: bug-fix release: preserves partial responses on mid-stream connection drops, fixes WSL2 mouse-wheel scrolling (a v2.1.172 regression), fixes a sandbox denyRead glob that had made large-tree Linux sessions unusable, dedups welcome-screen promos, and improves remote/plugin reliability. v2.1.177: CHANGELOG/feed.xml chore only. v2.1.179 was the latest release at the time of this row. 170
2026-06-15 Guide v2.58: CLI v2.1.174 to v2.1.176 (all June 12). v2.1.174: wheelScrollAccelerationEnabled setting (disable mouse-wheel scroll acceleration in fullscreen); /model picker shows the family the Default resolves to as its own row (Opus on Max/Team Premium/Enterprise/PAYG-API, Sonnet on Pro/Team); VSCode /usage adds attribution (cache misses, long context, subagents, per-skill/agent/plugin/MCP over 24h/7d); fixes for Bedrock GovCloud inference-profile prefix, background-session provider-env inheritance, git co-author model name, and the Fable 5 “consuming usage credits” banner on enterprise usage-billing accounts. v2.1.175: enforceAvailableModels managed setting: the availableModels allowlist also constrains the Default model (falls back to the first allowed model), and user/project settings can no longer widen a managed list. v2.1.176: session titles generated in your conversation’s language (pin via language setting); footerLinksRegexes setting for regex-matched footer link badges; hook if conditions now match Read/Edit/Write path patterns (e.g. Edit(src/**), Read(.env)); availableModels enforcement closes the alias-redirect gap and /fast refuses models outside the allowlist; Bedrock credentials cached to their Expiration; auto mode falls back from Fable 5 to the best available Opus for orgs without Opus 4.8; plus a large pile of Remote Control, background-session, claude agents, /cd git-branch, and tmux-over-SSH clipboard fixes. v2.1.176 was the latest release at the time of this row. 169
2026-06-11 Guide v2.57.1: CLI v2.1.173. Fable 5 [1m] suffix auto-normalized: a claude-fable-5[1m] model name is now automatically normalized/stripped to claude-fable-5, because Fable 5 already includes 1M context by default and the suffix was only ever meaningful on Opus/Sonnet (which gate 1M behind [1m]). Plus a Windows fix for a spurious “sandbox dependencies missing” warning shown at startup. 168
2026-06-10 Guide v2.57: CLI v2.1.172. Recursive sub-agents — sub-agents can now spawn their own sub-agents, up to 5 levels deep (recursive delegation). Bedrock region from ~/.aws — when AWS_REGION is unset, the AWS region is read from ~/.aws, and /status shows the resolved source. Plugin marketplace search — /plugin adds a search bar to the marketplace. OTEL — the claude_code.lines_of_code.count metric gains a model attribute. Fixes: stuck sessions on 1M context without credits, image-processing errors, a background sub-agent stuck state, model picker/restrictions, and team-memory recall. 168
2026-06-10 Guide v2.56.1: Claude Code-specific Fable 5 detail from the model-config docs. The short /model fable alias (and best = Fable where available, else latest Opus) is the documented selector; Fable 5 supports the full low–max effort scale (high default); thinking cannot be disabled on Fable 5 (session toggle, alwaysThinkingEnabled, and MAX_THINKING_TOKENS=0 are all no-ops — it always reasons adaptively); the claude-fable-5[1m] extended-context variant and the ANTHROPIC_DEFAULT_FABLE_MODEL / DISABLE_PROMPT_CACHING_FABLE config knobs round out the fable family. No new release (v2.1.170 remains latest). 258
2026-06-09 Guide v2.56: CLI v2.1.170. Claude Fable 5, a new model tier above Opus (Anthropic’s most powerful, most intelligent model; “Mythos-class” frontier capability made safe for general use), becomes selectable in Claude Code after claude update, via /model claude-fable-5. Model ID claude-fable-5; 1M context, 128K output; $10/$50 per MTok (≈2× Opus 4.8); safety classifiers fall back to Opus 4.8 on cyber/bio-chem/distillation queries; rolling out to subscription plans through June 22. Shares Opus 4.8’s request surface (adaptive thinking only) with one new breaking change: an explicit thinking: {type: "disabled"} returns 400; omit the param instead. Opus 4.8 stays Claude Code’s agentic default. Also a bug fix: sessions launched from the VS Code integrated terminal (or any shell that inherited Claude Code environment variables) failing to save transcripts and not appearing in --resume. 258
2026-06-08 Guide v2.55: CLI v2.1.169. --safe-mode flag (and CLAUDE_CODE_SAFE_MODE env var) launches a session with every customization disabled (CLAUDE.md, plugins, skills, hooks, MCP servers) for clean-room troubleshooting. /cd moves a session to a new working directory without breaking the prompt cache mid-session. disableBundledSkills setting (and CLAUDE_CODE_DISABLE_BUNDLED_SKILLS) hides bundled skills, workflows, and built-in slash commands from the model. Plus ~20 fixes: Up/Down arrow navigation through wrapped visual rows; enterprise MCP policy (allowedMcpServers/deniedMcpServers) enforcement on reconnect and IDE-typed configs; a 30-50ms macOS UI stall with claude.ai credentials; claude -p performance on Windows; Remote Control reconnection; Git Credential Manager popup on Windows; footer hints with a custom statusline; stale permission/dialog prompts reappearing on remote sessions; claude agents --json omitting blocked sessions; TaskCreate input auto-repair; reduced streaming CPU; restored 5-minute idle timeout for Vertex/Foundry; skill-tag color contrast; background-session flag preservation across retire→wake. 259
2026-06-06 Guide v2.54: CLI v2.1.166 to v2.1.168. v2.1.166: Fallback model chain: the fallbackModel setting configures up to three fallback models tried in order when the primary is overloaded or unavailable, and --fallback-model now applies to interactive sessions (not just mid-session); Claude Code also retries a turn once on the fallback model when the API returns an unexpected non-retryable error. MCP deny globs: the deny rule tool-name position accepts a glob ("*" denies all tools); allow rules reject non-MCP globs. (This row first said a "*" deny could be followed by allow rules that bring tools back. It cannot: deny rules are evaluated first. Corrected on 2026-11-11.) Security: messages relayed via SendMessage from other Claude sessions no longer carry user authority (cross-session messaging hardening). Thinking control: MAX_THINKING_TOKENS=0, --thinking disabled, and the per-model thinking toggle now actually disable thinking on models that think by default. UX: claude update announces the target version before downloading. Plus fixes for image processing, remote-session stability, and terminal rendering (JetBrains IDEs, WezTerm/Ghostty keyboards). v2.1.167 and v2.1.168 (both June 6): bug fixes and reliability improvements only, no individually documented user-facing changes. 260
2026-06-05 Guide v2.53.1: CLI v2.1.165 (June 5) ships bug fixes and reliability improvements with no individually documented user-facing changes (no v2.1.164 was published). Recorded here to keep the version line continuous; guide content current through v2.1.165 per the canonical changelog. 261
2026-06-04 Guide v2.53: CLI v2.1.163 (v2.1.161/162 were not published; the changelog jumps 160→163). Hooks: Stop and SubagentStop hooks can now return hookSpecificOutput.additionalContext to hand Claude feedback and keep the turn going without the response being labeled a hook error, a softer steering channel than the block/approve binary. Enterprise version pinning: new requiredMinimumVersion and requiredMaximumVersion managed settings make Claude Code refuse to start outside the allowed version range and point the user at an approved version. Plugins: /plugin list lists installed plugins with --enabled/--disabled filters. Skills: \$ escape includes a literal $ before a digit in command bodies. MCP: stdio servers receive the same CLAUDE_CODE_SESSION_ID as hooks/Bash on --resume. UX: /btw gains a “c to copy” raw-markdown shortcut; clearer / menu descriptions; subscription-switch suggestion moved to the startup announcement slot. Plus ~17 fixes: claude -p no longer hangs when a backgrounded command never exits (background shells stopped ~5s after the final result once stdin closes); claude -p on Bedrock/Vertex/Foundry no longer demands ANTHROPIC_API_KEY under CI=true; $TMPDIR override scoped back to sandboxed commands only (2.1.154 regression that broke bazel/EDR-protected Go); Windows session-env EEXIST under OneDrive/read-only; org-managed permission rules applying late on fresh config dirs; background sessions keeping running tasks across an update (and updating in the background to avoid cold restarts); agent-view Esc hang; paste end-marker input lockup; hook if: "Bash(...)" patterns now matching inside subshells/backticks instead of firing on every $(); deny rules on ~ paths now blocking $HOME references; stray “(no content)” transcript lines. 261
2026-06-02 Guide v2.52: CLI v2.1.160. Security, edit-becomes-execution gating: acceptEdits now prompts before writing shell startup files (.zshenv, .zlogin, .bash_login), ~/.config/git/, and build-tool configs that grant code execution (.npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, .devcontainer/, etc.), extending the existing .claude//.git//.vscode/ write protections to the wider class of files where an edit turns the next shell/install/commit into an execution vector. Workflow keyword rename: the dynamic-workflow trigger keyword changed from workflow to ultracode (highlighted violet in the prompt input); the word “workflow” no longer triggers a run, though asking for one in your own words still works. Edit ergonomics: a single-file grep/egrep/fgrep now satisfies the read-before-edit check, so Edit no longer requires a separate Read after viewing a file via grep. Removed: CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE is now a no-op (fully removed); the JetBrains plugin install suggestion is gone from startup. Plus ~25 fixes: WSL copy-on-select via PowerShell interop (not OSC 52), claude agents session restore dropping chat history / re-running the original prompt, overnight-retired background sessions losing conversation, claude --bg “socket missing” cold-start race, Windows background-session input unresponsiveness under load, terminal sync-output artifacts on Apple Terminal/tmux, CJK IME caret position in claude agents, file:///C:/... link rewriting on Windows, voice mode with non-ASCII project/branch names, the auto-mode-unavailable message on Bedrock/Vertex/Foundry now correctly pointing to CLAUDE_CODE_ENABLE_AUTO_MODE, /effort ultracode no longer offered on models that can’t run xhigh, and SIGTERM-before-SIGKILL on background-session teardown so cleanup handlers run. 262
2026-05-31 Guide v2.51: CLI v2.1.156 to v2.1.159 (2.1.155 was never published). v2.1.156 (May 29): fixed an Opus 4.8 thinking-block mutation that surfaced as API errors. v2.1.157 (May 29): plugins placed in a project’s .claude/skills/ directory now auto-load without a marketplace; claude plugin init <name> scaffolds a fresh plugin in ~/.claude/skills/<name>/; /plugin arguments gained autocomplete; EnterWorktree can now switch between Claude-managed worktrees mid-session; background worktrees are left unlocked after the agent finishes so git worktree remove/prune work cleanly; tool_decision telemetry events include tool_parameters when OTEL_LOG_TOOL_DETAILS=1; plus fixes for unprocessable images crashing requests (now degrade to text placeholders), sandbox network permission prompts in auto/bypass mode across desktop/IDE/SDK, background sessions not retiring with parked subagents, slow “opening…” not cancelling on Esc in the agents list, background worktrees orphaned after the 30-day job retention sweep, --resume not reporting running background subagents, terminal rendering and clipboard fixes (tmux, VS Code, Cursor, Windsurf), WSL image paste / Windows 11 screenshot paste / Windows Explorer drag, performance on long resumed conversations, and /terminal-setup disabling GPU acceleration in integrated terminals to prevent garbled text. v2.1.158 (May 30): Auto mode is now opt-in on Bedrock, Vertex, and Foundry for Opus 4.7 and Opus 4.8 with CLAUDE_CODE_ENABLE_AUTO_MODE=1, which closes the last “API-direct only” gap on the permission-mode docs. v2.1.159 (May 31): internal infrastructure only, no user-facing changes. 263
2026-05-28 Guide v2.50: CLI v2.1.152 to v2.1.154 (2.1.151 never published). Main changes (v2.1.152, May 27): /code-review --fix applies review findings to the working tree; skills and slash commands can set disallowed-tools in frontmatter; /reload-skills; the MessageDisplay hook event; the pluginSuggestionMarketplaces managed setting; auto mode no longer requires opt-in consent. Main changes (v2.1.153, May 28): the skipLfs option on plugin marketplace sources; /model saves the selection as the new-session default, and s switches the model for the current session only; status-line commands receive COLUMNS and LINES. Main changes (v2.1.154, May 28): Opus 4.8 is the default, with high effort by default, and /effort xhigh is new; dynamic workflows orchestrate tens to hundreds of agents in the background through /workflows; fast mode on Opus 4.8 at twice the standard rate for 2.5 times the speed; the lean system prompt is the default for all models except Haiku, Sonnet, and Opus 4.7 and earlier; /simplify returns to a cleanup-only review; claude agents supports ! <command>; plugins can declare defaultEnabled: false; claude mcp list and get show unapproved .mcp.json servers as pending approval instead of connecting; CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE is deprecated. Smaller changes: the remaining fixes. 264
2026-05-24 Guide v2.49: CLI v2.1.148-v2.1.150. v2.1.148: fixed a Bash tool regression where some users saw exit code 127 on every command. v2.1.149: /usage now breaks down limit usage by category (skills, subagents, plugins, and per-MCP-server cost); /diff detail view supports keyboard scrolling; Markdown renders GFM task-list checkboxes; Enterprise adds allowAllClaudeAiMcps; and fixes cover a PowerShell cd permission bypass, git-worktree sandbox write-allowlist scope, PowerShell prefix/wildcard and stale-variable permission analysis, Bash find exhausting macOS file/vnode tables, managed-settings startup freezes, /ultraplan / remote-session no-change capture failures, otelHeadersHelper paths with spaces, status-bar effort from skill/agent frontmatter, Ctrl+O transcript tailing, /insights, Remote Control session rename sync, and /feedback context before compaction. v2.1.150: internal infrastructure improvements only, no announced user-facing changes. 167
2026-05-21 Guide v2.48: CLI v2.1.147. Workflow and review: added the off-by-default Workflow tool for deterministic multi-agent orchestration via CLAUDE_CODE_WORKFLOWS=1 (that variable is in neither the environment variables reference nor the CHANGELOG as of November 11, 2026; workflows are now on by default except on the Pro plan, where enableWorkflows turns them on474); /simplify is now /code-review [effort], focused on correctness bugs, with --comment for inline GitHub PR comments. Agent View and background work: pinned background sessions stay alive while idle, restart in place to apply updates, and are shed under memory pressure only after non-pinned sessions. Security and reliability: REPL and Workflow sandboxes are hardened against prototype-pollution and thenable escapes; auto-updater failures report categories / OS error codes and show the current version; large diff rendering is faster; prompt history dedupes consecutive duplicates; enterprise login restrictions, PowerShell output/rules, MCP resource/template/prompt pagination, hook if matching, pasted-text delivery, Agent View CJK rows, plugin component counts, slash-command parsing, and stripped-image loops are fixed. 166
2026-05-19 Guide v2.47: CLI v2.1.145. Agent View and scripting: claude agents --json lists live sessions as JSON for scripting, Agent View tab titles show awaiting-input counts, voice push-to-talk is fixed in the reply pane, and fullscreen slash-command / @-mention suggestions support mouse hover and click. Observability and hooks: claude_code.tool OTEL spans include agent_id and parent_agent_id, background subagent spans parent under the dispatching Agent tool span, status-line JSON includes detected GitHub repo and PR information, and Stop/SubagentStop hook input now includes background_tasks and session_crons. Plugins and safety: pre-install plugin screens show commands, agents, skills, hooks, and MCP/LSP servers; bare non-allowlisted Bash environment-variable assignments no longer bypass permission prompts; skill context: fork self-invocation loops are fixed; and the Read tool returns a truncated partial view instead of hard-failing when a whole-file read exceeds the token limit. 165
2026-05-19 Guide v2.46: CLI v2.1.144. Background sessions: /resume now includes sessions started through claude --bg or Agent View and marks them with bg; background subagent completion notifications include elapsed duration; /bg and detach preserve added directories. Model and usage UX: /model now changes only the current session unless you press d to set the default, and /extra-usage is renamed /usage-credits with the old command retained as an alias. Plugins and diagnostics: plugin browse/discover panes show last-updated dates, /doctor shows an exec-form example for command hooks missing command, and skill-listing truncation is moved out of startup notifications. Reliability: startup side-channel calls time out faster when api.anthropic.com is unreachable, terminal display corruption now self-heals, macOS background-session startup under Full Disk Access-protected folders is fixed, MCP paginated tools/list responses are no longer truncated, unsupported MCP image MIME types degrade safely, and several Agent View/background-session interaction bugs are fixed. 164
2026-05-18 Guide v2.45: CLI v2.1.143. Plugins: dependency enforcement prevents disabling a plugin that another enabled plugin depends on, while enable force-enables transitive dependencies; the plugin marketplace browse pane now shows projected context cost. Worktrees/background sessions: worktree.bgIsolation: "none" lets background sessions edit the working copy directly for repos where worktrees are impractical, and background sessions preserve model/effort after waking from idle. Windows/PowerShell: PowerShell now passes -ExecutionPolicy Bypass; CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1 opts out, and the PowerShell tool is enabled by default for Bedrock, Vertex, and Foundry users unless CLAUDE_CODE_USE_POWERSHELL_TOOL=0 is set. Reliability: stop hooks that block repeatedly now cap at eight consecutive blocks unless CLAUDE_CODE_STOP_HOOK_BLOCK_CAP overrides it; /goal evaluator no longer fires while background shells or delegated subagents are still running; claude agents dispatch flags now apply consistently from the dashboard and background sessions. 163
2026-05-15 Guide v2.44: CLI v2.1.142. Agent View: claude agents can configure dispatched background sessions with --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions. Fast mode: Fast mode now defaults to Opus 4.7; set CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1 to pin the old Opus 4.6 default. Plugins: root-level plugin SKILL.md files without a skills/ directory now surface as skills, plugin details show LSP servers, plugin cache cleanup avoids deleting the active version, and skills: ["./"] no longer raises a false escape error. Reliability: fixes cover MCP_TOOL_TIMEOUT on remote HTTP/SSE MCP servers, pre-existing git worktrees in background sessions, daemon sleep/wake and post-upgrade cleanup, Chrome-extension background-agent crashes, Agent View editor/link handling, Windows network-drive startup deadlocks, and redundant remote-client /model breadcrumbs. 162
2026-05-14 Guide v2.43: CLI v2.1.141. Hooks: terminalSequence in hook JSON output lets hooks emit terminal-control sequences for desktop notifications, window titles, and bells without needing a controlling terminal. Plugins: CLAUDE_CODE_PLUGIN_PREFER_HTTPS clones GitHub plugin sources over HTTPS instead of SSH in environments without GitHub SSH keys. Enterprise auth: ANTHROPIC_WORKSPACE_ID scopes workload-identity-federated tokens to a specific workspace when a federation rule covers more than one workspace. Agent View: claude agents --cwd <path> filters the session list to one directory. Feedback: /feedback can include recent sessions from the last 24 hours or 7 days for issues spanning more than the current session. 161
2026-05-13 Guide v2.42: CLI v2.1.139 + v2.1.140. v2.1.139: added Agent View via claude agents, /goal, command-hook args: string[], continueOnBlock for PostToolUse, CLAUDE_PROJECT_DIR for MCP stdio servers and plugin command interpolation, and fixed claude_code.active_time.total OTel emission in --print mode. v2.1.140: adds subagent_type to agent hook input and fixes ConfigChange hooks, disableAllHooks, allowManagedHooksOnly, unintended hook-result env-var display in permission dialogs, settings-sync style resets, native-package fallback on Windows Git Bash, and /scroll-speed. 159 160
2026-05-09 Guide v2.41: CLI v2.1.137 + v2.1.138 patch bump. VSCode (Windows): v2.1.137 fixes the VSCode extension failing to activate on Windows. v2.1.138: ships internal fixes (no announced command/config additions in the release notes). No new commands, settings, or env vars. 159
2026-05-08 Guide v2.40: CLI v2.1.133 + May 7 Microsoft 365 GA. Breaking default, worktree.baseRef: the new fresh default branches --worktree, EnterWorktree, and agent-isolation worktrees from origin/<default> again, reverting v2.1.128’s switch to local HEAD. Set worktree.baseRef: "head" to keep unpushed commits in new worktrees. Effort plumbing: hooks now receive effort.level JSON and $CLAUDE_EFFORT; Bash tool subprocess inherits $CLAUDE_EFFORT. Sandbox managed settings: sandbox.bwrapPath and sandbox.socatPath (Linux/WSL) point at custom bubblewrap and socat binaries. Admin tier: parentSettingsBehavior ('first-wins' or 'merge') opts SDK managedSettings into the policy merge. Subagents: fixed subagents not discovering project, user, or plugin skills via the Skill tool. v2.1.133 also resolves a parallel-session 401 race after refresh-token rotation, drive-root allow-rule scoping, MCP OAuth proxy/mTLS, Remote Control stop/interrupt completing cancel, cross-session /effort leakage, and lists --remote-control in --help. Microsoft 365 (May 7): Claude for Excel, PowerPoint, and Word are generally available on paid plans; Claude for Outlook is in public beta for all paid plans. 157 158
2026-05-07 Guide v2.39: CLI v2.1.132. TUI: CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 opts out of the fullscreen alternate-screen renderer to keep conversations in native scrollback; /tui fullscreen startup banner updated to advertise lower memory, mouse support, and auto-copy on select. Bash subprocess: CLAUDE_CODE_SESSION_ID env var matches the session_id passed to hooks. Plus 20+ small fixes covering SIGINT graceful shutdown, surrogate-emoji corruption on --resume, plan-mode --permission-mode flag handling, Indic/ZWJ cursor and NFD vim ops, paste-starts-with-/ swallow, MCP unbounded memory growth and tools/list retry, Bedrock+Vertex ENABLE_PROMPT_CACHING_1H 400 errors, and statusline context_window showing cumulative-not-current tokens. 156
2026-05-06 Guide v2.38: Code with Claude SF 2026 day-of additions. Added the May 6 capacity announcement: Claude Code five-hour rate limits doubled for Pro, Max, Team, and seat-based Enterprise plans; peak-hours reduction removed for Pro and Max; API rate limits for Claude Opus models raised “considerably.” Backed by the SpaceX Colossus 1 compute partnership (“more than 300 megawatts of new capacity (over 220,000 NVIDIA GPUs) within the month”). Added the May 5 finance verticalization: ten ready-to-run agent templates (pitch builder, earnings reviewer, KYC screener, month-end closer, and six more) ship as plugins for Cowork and Claude Code plus a Managed Agents cookbook; Microsoft 365 add-ins for Excel, PowerPoint, and Word landed; data connectors from Dun & Bradstreet, Fiscal AI, Financial Modeling Prep, Guidepoint, IBISWorld, SS&C IntraLinks, Third Bridge, and Verisk; Moody’s MCP app for more than 600 million companies; Cowork Dispatch for voice/text task assignment. 154 155
2026-05-06 Guide v2.37: CLI v2.1.131 latest-line delta. NPM latest is 2.1.131 and GitHub latest release is v2.1.131. v2.1.131 is a fix release for VS Code Windows extension activation and Mantle endpoint authentication, with no announced command/config additions in the release notes. Coverage through v2.1.131. 153
2026-05-05 Guide v2.36: CLI v2.1.126 to v2.1.129. Latest release line: NPM latest is 2.1.129 and GitHub latest release is v2.1.129. Plugins: --plugin-url <url> loads a plugin zip for the current session; --plugin-dir accepts zip archives; plugin manifest themes and monitors should move under "experimental" or claude plugin validate warns. Skills: skillOverrides now works with off, user-invocable-only, and name-only. Gateways: /model picker /v1/models discovery is now opt-in via CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1 after being automatic in 2.1.126 to 2.1.128. Updates/terminal: CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE lets Homebrew/WinGet installs run upgrades in the background and prompt restart; CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 forces synchronized output for terminals auto-detection misses. Security/permissions: v2.1.126 changed --dangerously-skip-permissions to bypass prompts for writes to .claude/, .git/, .vscode/, and shell config files while keeping catastrophic removal prompts as a safety net. Fixes: 2.1.128 and 2.1.129 repaired plugin state pollution, MCP argument corruption, 1-hour prompt-cache TTL downgrades, /context ASCII-grid transcript bloat, external-editor blanking, OAuth/server-managed-settings regressions, and several fullscreen/history/session UI issues. 153
2026-04-29 CLI v2.1.123: fixed OAuth authentication failing with a 401 retry loop when CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 is set. 152
2026-04-28 Guide v2.35: CLI v2.1.121 + v2.1.122. MCP: alwaysLoad: true server-config option opts a server out of tool-search deferral; transient startup errors auto-retried 3x. Hooks: hookSpecificOutput.updatedToolOutput extended to all tools (was MCP-only). Permissions: --dangerously-skip-permissions no longer prompts on writes to .claude/skills/, .claude/agents/, .claude/commands/. Plugins: claude plugin prune removes orphaned auto-installed dependencies; --prune cascades on uninstall. Slash commands: /skills adds type-to-filter; /resume accepts PR URLs (GitHub, GHE, GitLab, Bitbucket). Vertex AI: X.509 certificate-based Workload Identity Federation (mTLS ADC). Bedrock: ANTHROPIC_BEDROCK_SERVICE_TIER env var (default/flex/priority). OTel: new LLM-span attributes (stop_reason, gen_ai.response.finish_reasons, user_system_prompt gated by OTEL_LOG_USER_PROMPTS); new claude_code.at_mention event; numeric attributes on api_request/api_error emitted as numbers. SDK: mcp_authenticate adds redirectUri. Plus MCP//mcp polish, fullscreen scroll fixes, claude.ai connector dedup, iTerm2 clipboard for /copy from tmux, faster post-upgrade startup, and dozens of resume / memory / Bash / Bedrock / Vertex / scrollback fixes.151 149 151
2026-04-24 Guide v2.34: CLI v2.1.116 to v2.1.119 + the April 23 quality postmortem. Main changes: /usage merges /cost and /stats into one dialog; Vim visual modes v and V; hooks can invoke MCP tools through type: "mcp_tool", and PostToolUse and PostToolUseFailure inputs include duration_ms; the auto mode $defaults sentinel adds custom rules alongside the built-in list; PowerShell tool commands can auto-approve as Bash commands do; /config settings persist to ~/.claude/settings.json; named themes; prUrlTemplate, and --from-pr accepts GitLab MRs, Bitbucket PRs, and GitHub Enterprise PRs; --print and --agent honor agent tools:, disallowedTools:, and permissionMode frontmatter; native macOS and Linux builds replace Glob and Grep with embedded bfs and ugrep through the Bash tool; Opus 4.7 sessions compute /context against the native 1M window; Pro and Max on Sonnet 4.6 and Opus 4.6 default to high effort; new env vars CLAUDE_CODE_HIDE_CWD, DISABLE_UPDATES, CLAUDE_CODE_FORK_SUBAGENT=1, and ENABLE_TOOL_SEARCH; the wslInheritsWindowsSettings policy; claude plugin tag; a sandbox security fix for rm and rmdir on critical roots. Postmortem (April 23): Anthropic described three quality regressions resolved by April 20: the reasoning effort default at medium from March 4 to April 7, a prompt-cache thinking-clear bug from March 26 to April 10, and a system-prompt verbosity constraint from April 16 to 20; usage limits were reset for all subscribers on April 23. Smaller changes: the remaining fixes. 149 150
2026-04-18 Guide v2.33: CLI v2.1.113 + v2.1.114. CLI now spawns a native Claude Code binary via per-platform optional dependency instead of bundled JavaScript. Security: sandbox.network.deniedDomains blocklist overrides allowedDomains wildcards; Bash deny rules match env/sudo/watch/ionice/setsid wrappers; Bash(find:*) no longer auto-approves -exec/-delete; macOS Bash(rm:*) rules treat /private/{etc,var,tmp,home} as dangerous targets. UX: fullscreen Shift+↑/Shift+↓ viewport scroll on selection extension; readline-style Ctrl+A/Ctrl+E on current logical line; Windows Ctrl+Backspace deletes previous word. Slash commands: /loop Esc cancels pending wakeups; /extra-usage works from Remote Control clients; /ultrareview faster launch with parallelized checks, diffstat, and animated launching state. Stalled subagents fail with a clear error after 10 minutes. Opus 4.7 Bedrock fix: extended thinking no longer returns thinking.type.enabled is not supported 400 through an Application Inference Profile ARN. v2.1.114 hotfix: permission-dialog crash when an Agent Teams teammate requests tool permission. 148
2026-04-16 Guide v2.32: Claude Opus 4.7 launch — new default on Max and Team Premium plans immediately; Enterprise and API switch scheduled for April 23, 2026; Pro and Team Standard remain on Sonnet 4.6. 1M context at standard pricing (no long-context premium on Opus 4.7). 128K max output. Messages API breaking changes: extended thinking budget_tokens removed (adaptive thinking only), temperature/top_p/top_k non-default returns 400, thinking content omitted by default (set display: "summarized" to restore). New xhigh effort level; Claude Code defaults to xhigh on Opus 4.7. Vision up to 2,576 px / 3.75 MP with 1:1 pixel coordinates. CLI v2.1.105–v2.1.112: PreCompact hooks can block, /recap + Session Recap, /ultrareview, /less-permission-prompts, /tui//focus, /proactive (alias for /loop), /undo (alias for /rewind), push notifications via Remote Control, Auto Mode for Max on Opus 4.7 (no --enable-auto-mode flag), Windows PowerShell tool rollout (CLAUDE_CODE_USE_POWERSHELL_TOOL), read-only Bash permission reduction, ENABLE_PROMPT_CACHING_1H env var, TRACEPARENT/TRACESTATE distributed tracing, OTEL_LOG_RAW_API_BODIES for debugging. 142 143 144
2026-04-13 Guide v2.31: CLI v2.1.98–v2.1.104. /team-onboarding command. Google Vertex AI setup wizard. OS CA certificate trust for enterprise TLS proxies. Monitor tool for background scripts. --exclude-dynamic-system-prompt-sections for cross-user caching. CLAUDE_CODE_PERFORCE_MODE for Perforce workflows. Multiple bash security fixes (backslash bypass, compound command bypass, /dev/tcp redirect blocking). 140 141
2026-04-09 Guide v2.30: CLI v2.1.97. Fixed --dangerously-skip-permissions silently downgrading to accept-edits after protected path write. Fixed MCP HTTP/SSE connections leaking ~50 MB/hr on reconnect. Fixed 429 retries burning all attempts in ~13s. Focus view toggle (Ctrl+O) in NO_FLICKER mode. refreshInterval status line setting. Cedar policy syntax highlighting. 139
2026-04-08 Guide v2.29: CLI v2.1.94–v2.1.96. Bedrock via Mantle (CLAUDE_CODE_USE_MANTLE=1). Default effort level changed from medium to high for API/Bedrock/Vertex/Foundry/Team/Enterprise. hookSpecificOutput.sessionTitle for UserPromptSubmit hooks. v2.1.96 hotfix for Bedrock auth regression. 138
2026-04-07 Guide v2.28: Added Claude Mythos Preview and Project Glasswing. New frontier model beyond Opus 4.6 restricted to 12 partners for defensive security. Runs via Claude Code in isolated containers. $100M in credits committed. Not generally available. 137
2026-04-06 Guide v2.27: Added /buddy terminal companion pet (18 species, 5 rarity tiers, deterministic from account ID). Officially shipped April 1. 136
2026-04-04 Guide v2.26: CLI v2.1.90–v2.1.92. /powerup interactive lessons. MCP _meta["anthropic/maxResultSizeChars"] up to 500K. disableSkillShellExecution setting. forceRemoteSettingsRefresh fail-closed enterprise policy. Interactive Bedrock setup wizard. Per-model + cache-hit /cost breakdown. /release-notes interactive picker. Plugin bin/ executables. Remote Control hostname prefix. Removed /tag and /vim. 133 134 135
2026-04-01 Guide v2.25: Added “Under the Hood” section with source leak findings relevant to harness builders: auto mode classifier internals (yoloClassifier.ts), bash security 23-check model, prompt cache architecture (14 break vectors), autocompact circuit breaker (250K wasted calls/day fix), coordinator mode as prompt-driven orchestration, frustration detection via regex. 131 132
2026-04-01 CLI 2.1.89: "defer" permission decision for PreToolUse hooks (headless pause/resume with -p --resume). MCP_CONNECTION_NONBLOCKING=true skips MCP wait in -p mode. Autocompact thrash loop detection (stops after 3 consecutive refills). Bash tool warns when formatter/linter modifies previously-read files. Symlink-aware Edit/Read allow rules. 35+ bug fixes from v2.1.88 merged. 124
2026-03-31 Guide v2.24: Added v2.1.88 features. PermissionDenied hook fires after auto mode classifier denials. CLAUDE_CODE_NO_FLICKER=1 alt-screen rendering. Named subagents in @ mention typeahead. Thinking summaries off by default (showThinkingSummaries: true to restore). Auto mode denied commands in /permissions Recent tab. /btw scrollable viewport. 35+ bug fixes including prompt cache misses, nested CLAUDE.md re-injection, StructuredOutput 50% failure rate, CJK/emoji history. Added /dream memory consolidation command from Boris Cherny tips (no /dream command is in the commands reference or the CHANGELOG; the paragraph was removed on 2026-11-11). 125 126
2026-03-31 CLI 2.1.88: PermissionDenied hook, CLAUDE_CODE_NO_FLICKER=1, named subagents in @ typeahead, thinking summaries off by default, auto mode denied commands in /permissions Recent tab, /env applies to PowerShell, /btw scrollable viewport. Fixes: prompt cache misses, nested CLAUDE.md re-injection (dozens of times in long sessions), StructuredOutput ~50% failure rate, Edit/Write CRLF doubling on Windows, memory leak in large JSON LRU cache, CJK/emoji prompt history, /stats losing historical data. 35+ bug fixes. 125
2026-03-29 CLI 2.1.86–2.1.87: X-Claude-Code-Session-Id header for proxy aggregation. Read tool compact line-number format reduces token usage. Auto mode shows plan-specific unavailability message. Skill descriptions capped at 250 chars in /skills. @ file mentions no longer JSON-escaped (lower token overhead). Jujutsu/Sapling VCS directory exclusions. 15+ bug fixes including --resume on pre-2.1.85 sessions, Write/Edit on files outside project root, plugin script permissions on macOS/Linux. 127
2026-03-27 Guide v2.23: Added v2.1.85 features. Auto Mode — classifier-based permission system replacing --dangerously-skip-permissions for safer autonomous operation. Sonnet 4.6 reviews each action before execution with auto-block list and circuit breaker. Conditional if field for hooks using permission rule syntax. PreToolUse hooks can now satisfy AskUserQuestion. MCP OAuth follows RFC 9728. 25+ bug fixes. 122 123 128
2026-03-27 CLI 2.1.85: Conditional if field for hooks, PreToolUse hooks satisfy AskUserQuestion via updatedInput, MCP env vars for headersHelper scripts, MCP OAuth RFC 9728, organization-blocked plugins hidden from marketplace, timestamp markers for /loop and CronCreate, deep link queries up to 5K chars, /compact fix for oversized conversations, 20+ bug fixes. 128
2026-03-26 Guide v2.22: Added v2.1.83 and v2.1.84 features. PowerShell tool (Windows, opt-in preview). 3 new hook events: TaskCreated, CwdChanged, FileChanged (25 total). managed-settings.d/ drop-in directory for team policy fragments. sandbox.failIfUnavailable setting. CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 strips credentials from subprocesses. Transcript search (/ in Ctrl+O). initialPrompt agent frontmatter for auto-submit first turn. Rules/skills paths: accepts YAML glob lists. MCP tool descriptions capped at 2KB. Token counts show “1.5m” format. Idle-return prompt after 75+ min. Stop-all-agents keybinding changed: Ctrl+F to Ctrl+X Ctrl+K. TaskOutput deprecated (use Read on output file). WorktreeCreate HTTP hook support. 50+ bug fixes across both releases. 121 129
2026-03-26 CLI 2.1.84: PowerShell tool (Windows opt-in), TaskCreated hook, WorktreeCreate HTTP hook support, ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL_SUPPORTS env vars, CLAUDE_STREAM_IDLE_TIMEOUT_MS, allowedChannelPlugins managed setting, rules/skills paths: YAML glob lists, MCP 2KB description cap, idle-return prompt (75+ min), deep links open preferred terminal, token counts “1.5m” format, CJK IME fix, 25+ bug fixes. 129
2026-03-25 CLI 2.1.83: managed-settings.d/ drop-in directory, CwdChanged/FileChanged hook events, sandbox.failIfUnavailable, CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, transcript search, initialPrompt agent frontmatter, Ctrl+X Ctrl+E external editor, stop-all-agents Ctrl+F changed to Ctrl+X Ctrl+K, TaskOutput deprecated, 35+ bug fixes. 121
2026-03-21 Guide v2.21: Added v2.1.80 and v2.1.81 features. Claude Code Channels (research preview): Send messages from Telegram or Discord into running sessions via plugin-based channel servers. --bare flag skips hooks, LSP, plugin sync, and skill directory walks for scripted -p automation. --channels flag relays tool approval prompts to channel servers. rate_limits field available in statusline scripts. source: 'settings' plugin marketplace source type. effort frontmatter support for skills. Assistant honors “no memory” requests. Windows PATH inheritance fix for Git Bash. 120 130
2026-03-20 CLI 2.1.81: --bare flag for scripted -p calls (skips hooks, LSP, plugin sync, skill walks). --channels permission relay for channel servers. Assistant honors “no memory” requests. 130
2026-03-19 CLI 2.1.80: rate_limits field in statusline scripts. source: 'settings' plugin marketplace source. effort frontmatter for skills. Claude Code Channels (research preview): Telegram/Discord messaging into sessions via --channels flag. Windows PATH inheritance fix for Git Bash. 120
2026-03-19 Guide v2.20: Added v2.1.78 and v2.1.79 features. StopFailure hook event (23 total). Plugin persistent state (${CLAUDE_PLUGIN_DATA}). Agent frontmatter: effort, maxTurns, disallowedTools for plugin agents. ANTHROPIC_CUSTOM_MODEL_OPTION env var for custom /model entries. Line-by-line response streaming. Tmux notification passthrough. --console flag for claude auth login. /remote-control VS Code command. AI-generated session titles in VS Code. ~18MB startup memory reduction. Security fix: visible warning when sandbox dependencies missing. SessionEnd hooks now fire on /resume session switch. 20+ bug fixes. 118 119
2026-03-18 CLI 2.1.79: --console flag for API billing auth, /remote-control VS Code command, AI session titles in VS Code, ~18MB startup memory reduction, 2-min non-streaming timeout, SessionEnd hooks on /resume switch. Fixes: -p hanging as subprocess, Ctrl+C in print mode, /btw wrong output, voice mode startup, enterprise 429 retry. 119
2026-03-17 CLI 2.1.78: StopFailure hook event, ${CLAUDE_PLUGIN_DATA} plugin state, agent frontmatter (effort/maxTurns/disallowedTools), ANTHROPIC_CUSTOM_MODEL_OPTION, tmux notification passthrough, line-by-line streaming. Security: visible warning on missing sandbox deps. Fixes: large session truncation (>5MB), infinite stop hook loop, sandbox path handling, voice WSL2, Homebrew PATH in VS Code. 118
2026-03-17 Guide v2.19: Added v2.1.77 features. Opus 4.6 default output tokens increased to 64K, upper bound for Opus 4.6 and Sonnet 4.6 raised to 128K. allowRead sandbox filesystem setting to re-allow read access within denyRead regions. /copy N copies the Nth-latest assistant response. /fork renamed to /branch (/fork remains as alias). Agent tool no longer accepts resume parameter—use SendMessage({to: agentId}) to continue agents; SendMessage auto-resumes stopped agents. Sessions auto-named from plan content on acceptance. Background bash tasks killed at 5GB output. claude plugin validate checks skill/agent/command frontmatter + hooks/hooks.json. ~60ms faster startup on macOS (parallel keychain reads). --resume up to 45% faster with ~100-150MB less peak memory. Security fix: PreToolUse hooks returning "allow" no longer bypass deny permission rules including managed settings. 25+ bug fixes including compound bash “Always Allow” saving dead rules, auto-updater memory leak, Write tool CRLF conversion, stale worktree cleanup race condition, vim mode fixes, tmux clipboard fixes. 117
2026-03-14 Guide v2.18: Added v2.1.76 features. MCP elicitation support—MCP servers can request structured input mid-task via interactive dialogs. 3 new hook events: Elicitation, ElicitationResult, PostCompact (22 total). -n/--name CLI flag for session display names at startup. worktree.sparsePaths for sparse-checkout in large monorepos. /effort slash command for setting model effort level. Bug fixes: deferred tools losing schemas after compaction, plan mode re-approval, voice mode keypresses, auto-compaction circuit breaker (3 attempts max), clipboard in tmux over SSH, Remote Control session stability. 116
2026-03-13 Guide v2.17: Added v2.1.75 features. 1M context window now default for Opus 4.6 on Max, Team, and Enterprise plans (no [1m] suffix required). /color command available to all users. Memory files now include last-modified timestamps for freshness reasoning. Hook permission prompts now show source (settings/plugin/skill). Session name displayed on prompt bar with /rename. Bug fixes: voice mode activation, Bash ! in piped commands, token estimation over-counting causing premature compaction, startup performance on macOS. Breaking: removed deprecated Windows managed settings fallback path. 115
2026-03-12 Guide v2.16: Added v2.1.73 and v2.1.74 features. v2.1.73: modelOverrides setting for custom provider model IDs (Bedrock/Vertex/Foundry), deprecated /output-style (use /config), default Opus 4.6 on cloud providers, Up arrow after interrupt restores prompt + rewinds, /effort works while responding, SSL cert error guidance, CPU freeze and deadlock fixes, SessionStart hooks firing twice fix. 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, memory leak fix (streaming buffers), RTL text rendering fix, MCP OAuth fixes. 113114
2026-03-11 Guide v2.15: Added v2.1.72 features and Code Review product. Code Review (research preview): Multi-agent PR review system dispatching parallel agents for cross-verified findings. Team/Enterprise, $15-25/review, ~20 min. v2.1.72: /plan accepts description arguments, w key in /copy for writing to files, ExitWorktree tool, CLAUDE_CODE_DISABLE_CRON env var, expanded bash allowlist (lsof, pgrep, tput, ss, fd, fdfind), restored model parameter on Agent tool for per-invocation overrides, simplified effort symbols (○ ◐ ●), /config navigation improvements (Esc/Enter/Space), bundle size −510KB, VSCode URI handler. 111112
2026-03-10 Added: v2.1.72—Tool search activates with ANTHROPIC_BASE_URL when ENABLE_TOOL_SEARCH configured. w key in /copy writes selections to files (SSH-friendly). /plan accepts optional description. ExitWorktree tool for leaving worktree sessions. CLAUDE_CODE_DISABLE_CRON stops scheduled jobs. Bash allowlist: lsof, pgrep, tput, ss, fd, fdfind. Restored model on Agent tool for per-invocation model overrides. Simplified effort levels to ○/◐/● symbols. /config navigation: Esc cancels, Enter saves, Space toggles. Bundle size −510KB. Enhanced voice transcription accuracy. VSCode URI handler for programmatic tab opening. Fixed plugin installation on Windows/OneDrive, parallel tool calls cascade, agent progress tracking. 112
2026-03-09 Code Review launched. Multi-agent PR review system—dispatches parallel agents that cross-verify findings and rank by severity. $15-25/review. Research preview for Team/Enterprise. 54% of PRs receive substantive comments (up from 16%). <1% incorrect finding rate. 111
2026-03-09 Guide v2.14: Added /loop recurring task command (v2.1.71). New dedicated “Claude Code on the Web” section with capabilities, security architecture, availability, and web-vs-terminal decision table. Added mobile app (iOS) mention. Updated Quick Reference Card with /loop. 110
2026-03-07 Added: v2.1.71—/loop command for recurring prompts on an interval (/loop 5m /foo). Voice keybinding customization. Bash auto-approval allowlist expansion. Stdin freeze fix. CoreAudio startup optimization on macOS. 110
2026-03-06 Guide v2.13: Voice mode section (/voice, push-to-talk, 20 STT languages). v2.1.68 effort changes (Opus 4.6 medium effort default for Max/Team, ultrathink re-introduced, Opus 4/4.1 removed). v2.1.69 features: /claude-api skill, InstructionsLoaded hook event, agent_id/agent_type/worktree hook fields, ${CLAUDE_SKILL_DIR}, /reload-plugins, CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS, sandbox.enableWeakerNetworkIsolation, remote-control custom names, Ctrl+U exit bash mode, numeric keypad support. v2.1.70 fixes: API 400 with third-party gateways, effort parameter errors, empty responses after ToolSearch. VS Code: spark icon session list, markdown plan view, native MCP management. Performance: 74% prompt render reduction, Remote Control poll rate 300x reduction. Updated subagent model defaults to inherit. 18 hook events total. 107108109
2026-03-06 Added: v2.1.70—Fixed API 400 errors with ANTHROPIC_BASE_URL third-party gateways (tool search disables tool_reference blocks for proxy endpoints). Fixed effort parameter error with custom Bedrock inference profiles. Fixed empty model responses after ToolSearch. Improved compaction to preserve images for prompt cache reuse. /rename works while Claude processes. Reduced prompt re-renders ~74%. Reduced Remote Control /poll to 1/10 min (~300x reduction). VS Code: spark icon session list as full editors, full markdown plan view with comments, native /mcp dialog. ~600 tokens saved per --resume (skill list re-injection fix). Multiple Windows/voice/plugin/security fixes. 107
2026-03-05 Added: v2.1.69—/claude-api skill. InstructionsLoaded hook event. agent_id/agent_type/worktree fields in hook events. ${CLAUDE_SKILL_DIR} skill self-reference variable. /reload-plugins command. sandbox.enableWeakerNetworkIsolation for Go/MITM proxy. includeGitInstructions setting + CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS env var. Remote-control custom names (--name). Voice STT 10 new languages (20 total). Effort level display. Ctrl+U exit bash mode. Numeric keypad support. git-subdir plugin source type. oauth.authServerMetadataUrl for MCP servers. Sonnet 4.5→4.6 auto-migration. Security: nested skill discovery from gitignored dirs, symlink write escape, trust dialog enabling all .mcp.json servers. 70+ bug fixes including macOS keychain corruption, teammate nested spawning, memory leaks. 108
2026-03-04 Added: v2.1.68—Opus 4.6 defaults to medium effort for Max/Team subscribers. Re-introduced “ultrathink” keyword for high effort. Removed Opus 4 and Opus 4.1 from Claude Code on first-party API. 107
2026-03-03 Voice Mode launched. /voice activates push-to-talk (hold space bar to talk). Rolling out gradually (~5% initial). Professional pair-programming design, not a casual voice assistant. 109
2026-03-02 Guide v2.12: Task tool → Agent tool rename documented (Agent(agent_type) syntax, Task(...) as alias). macOS plist and Windows Registry support for managed settings (v2.1.51). Figma partnership integration note. 104105106
2026-02-28 Guide v2.11: Added v2.1.63 features. /simplify and /batch bundled slash commands. Worktree-shared project configs and auto-memory. ENABLE_CLAUDEAI_MCP_SERVERS=false opt-out for claude.ai MCP connectors. HTTP hooks formal type: "http" handler documentation. /copy “Always copy full response” option. VSCode session rename/remove. /clear skill cache reset fix. Multiple memory leak fixes. REPL bridge race condition fix. GitHub Copilot Business/Pro Claude availability cross-reference. 102103
2026-02-27 Guide v2.10: Added v2.1.58 to v2.1.62 features. /copy command (interactive code block picker). /memory command enhanced for auto-memory management. Remote Control expanded to more users (v2.1.58). Industry adoption stat: 4% of public GitHub commits (a SemiAnalysis estimate). CVE-2025-59536 and CVE-2026-21852 security advisories added to untrusted repos warning. Prompt suggestion cache fix (v2.1.62). Config file corruption fix for Windows concurrent writes (v2.1.61). Improved bash “always allow” prefix suggestions for compound commands. Memory usage improvements in multi-agent sessions. MCP OAuth token refresh race condition fix. 9899100101
2026-02-25 Guide v2.9: Added v2.1.52–v2.1.56 bug fixes. Fixed Agent Teams navigation (Shift+Down only, not Shift+Up/Down). Added team storage paths and task dependency details. Added TeammateIdle/TaskCompleted hook integration notes. 97
2026-02-25 Added: v2.1.53–v2.1.56—VS Code crash fixes on Windows, fixed UI flicker where input briefly disappeared after submission, fixed bulk agent kill (Ctrl+F) to send single aggregate notification, fixed graceful shutdown leaving stale sessions with Remote Control, fixed --worktree sometimes ignored on first launch, fixed BashTool EINVAL on Windows, fixed crashes on Windows ARM64 and in WASM interpreter on Linux/Windows x64. 97
2026-02-24 Added: v2.1.51—claude remote-control subcommand for external builds, allowedEnvVars for HTTP hook env var interpolation security, HTTP hooks routed through sandbox network proxy, tool results >50K chars persisted to disk (was 100K), BashTool skips login shell by default, plugin marketplace git timeout configurable (CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS), custom npm registries and version pinning for plugins, /model picker human-readable labels, CLAUDE_CODE_ACCOUNT_UUID/CLAUDE_CODE_USER_EMAIL/CLAUDE_CODE_ORGANIZATION_UUID SDK env vars, statusLine/fileSuggestion hooks require workspace trust. Fixes: duplicate control_response API 400 errors, slash command autocomplete crash on YAML array SKILL.md descriptions. 96
2026-02-23 Guide v2.8: Added v2.1.51 features. claude remote-control subcommand for external builds. HTTP hook security: allowedEnvVars required for env var interpolation in headers; HTTP hooks routed through sandbox proxy. Tool result disk persistence threshold lowered to 50K chars (was 100K). BashTool skips login shell by default. Plugin improvements: custom npm registries, version pinning, configurable git timeout. /model picker shows human-readable labels. SDK caller identity env vars. Agent Teams plan approval for teammates. 96
2026-02-22 Guide v2.7: Fixed fast mode pricing table — removed incorrect >200K tiered pricing ($60/$225). Official Anthropic pricing confirms flat $30/$150 across full context window with no long context surcharge. Added web fetch (free) to Hidden Tool Fees table. Added code execution free when web_search/web_fetch tools included. Added failed web searches not billed. 1
2026-02-21 Guide v2.6: Added v2.1.49 and v2.1.50 features. New hook events: ConfigChange, WorktreeCreate, WorktreeRemove (17 total). New --worktree/-w flag for isolated git worktrees. Subagent isolation: "worktree" and background: true fields. claude agents CLI command. CLAUDE_CODE_DISABLE_1M_CONTEXT env var. Opus 4.6 fast mode now includes full 1M context. Claude Code Security (research preview). -
2026-02-20 Added: v2.1.50—startupTimeout for LSP servers, WorktreeCreate/WorktreeRemove hook events for custom VCS setup/teardown, isolation: worktree in agent definitions, claude agents CLI command, CLAUDE_CODE_DISABLE_1M_CONTEXT env var, Opus 4.6 fast mode now includes full 1M context window, VSCode /extra-usage command support. CLAUDE_CODE_SIMPLE now disables MCP tools, attachments, hooks, and CLAUDE.md loading. Fixes: symlink session invisibility, session data loss on SSH disconnect, memory leak in agent teams (completed tasks not GC’d), /mcp reconnect freezing for non-existent servers, LSP diagnostic data memory leak, prompt suggestion cache regression, Edit tool Unicode curly quote corruption. Linux: fixed native modules on glibc < 2.30 (RHEL 8). Multiple memory optimization improvements for long sessions. 94
2026-02-20 Claude Code Security (research preview): Vulnerability scanning built into Claude Code on the web. Scans codebases and suggests patches for human review. Available to Enterprise, Team, and open-source maintainers. 95
2026-02-19 Added: v2.1.49—--worktree (-w) flag to start Claude in an isolated git worktree, subagents support isolation: "worktree" for temporary git worktree work, agent definitions support background: true to always run as background task, ConfigChange hook event for enterprise security auditing, plugins can ship settings.json for default configuration, SDK model info now includes supportsEffort/supportedEffortLevels/supportsAdaptiveThinking fields. CLAUDE_CODE_SIMPLE now includes file edit tool. Sonnet 4.5 with 1M context removed in favor of Sonnet 4.6. Improved MCP OAuth with step-up auth and discovery caching. Fixes: Ctrl+C and ESC ignored with background agents, unbounded WASM memory growth, disableAllHooks managed settings hierarchy, --resume showing raw XML tags. Improved permission prompts to show restriction reasons. 94
2026-02-18 Added: v2.1.47—Ctrl+F kills all background agents (replaces double-ESC), last_assistant_message field in Stop/SubagentStop hook inputs, chat:newline keybinding action, added_dirs in statusline JSON, /rename updates terminal tab title, resume picker shows 50 sessions (was 10), teammate navigation simplified to Shift+Down only. Performance: ~500ms startup improvement (deferred SessionStart hooks), memory improvements (releasing API stream buffers, O(n²) progress update fix). Fixes: plan mode preserved after compaction, Edit tool Unicode curly quote corruption, CJK wide character alignment, concurrent agent API 400 errors, /resume dropping large sessions (>16KB), session name lost after compaction, background agent results returning raw transcript, many Windows fixes (hooks via Git Bash, CWD tracking cleanup, drive letter casing, BMP paste on WSL2). 93
2026-02-18 Added: v2.1.46—claude.ai MCP connectors support in Claude Code, fixed orphaned CC processes after terminal disconnect on macOS. v2.1.45—spinnerTipsOverride setting, SDKRateLimitInfo/SDKRateLimitEvent SDK types, fixed Agent Teams on Bedrock/Vertex/Foundry, fixed sandbox temp file errors on macOS, startup and memory improvements. 93
2026-02-18 Guide v2.5: Added Ctrl+F and Shift+Down to keyboard shortcuts, spinnerTipsOverride to settings reference, last_assistant_message hook field, chat:newline keybinding, claude.ai MCP connectors section, resume picker 50-session update. -
2026-02-17 Claude Sonnet 4.6 released. Model ID: claude-sonnet-4-6. Replaces Sonnet 4.5 as default model on claude.ai and Claude Cowork. Same pricing ($3/$15 per MTok). Improved agentic search performance with fewer tokens. Supports adaptive thinking, extended thinking, and 1M token context window (beta). 64K max output. Knowledge cutoff: reliable Aug 2025, training Jan 2026. Sonnet 4.5 moved to legacy. Also: API code execution now free with web search/web fetch, web search tool and programmatic tool calling now GA (no beta header). 91
2026-02-17 Guide v2.4: Updated all model tables for Sonnet 4.6, added Sonnet 4.6 to extended thinking supported models, updated footnotes and pricing references. -
2026-02-16 Guide v2.3: Removed expired fast mode promo pricing (Feb 16 deadline passed), added >200K long-context fast mode tier ($60/$225), fixed protect-files.sh exit code (1→2 for blocking), fixed 3 stale Tab→Alt+T keybinding references, rewrote Copilot/Cursor migration tables (both now have agentic CLI+MCP), fixed Claude Squad install commands (brew/curl, cs binary, TUI app), added 4 missing ToC entries (Output Styles, Slash Commands, Plugin System), updated 7 footnote URLs (docs.anthropic.com→code.claude.com canonical), added 47 missing URL, fixed 4 redirect note, added managed settings keys table (allowManagedPermissionRulesOnly, allowManagedHooksOnly, etc.), added prompt injection security warning for untrusted repos. Added Quick Start section, dedicated Plan Mode section, expanded non-interactive mode (-p) documentation with exit codes and CI/CD patterns, fixed all --session-id examples (requires UUID; migrated to /rename + --resume), added research-preview markers to Remote & Slack sections, tagged 1 untagged code block, checked all 35 ToC anchors. Also fixed: TL;DR model recommendation made tier-neutral, jq // pattern fixed to select(), --input-file fabricated flag replaced with pipe, Docker sandbox syntax corrected, “sub-agent” hyphenation unified to “subagent”, added /login and /logout to slash commands table. -
2026-02-14 Added: v2.1.44—fixed ENAMETOOLONG errors for deeply-nested directory paths, fixed auth refresh errors. v2.1.43—fixed AWS auth refresh hanging (3-min timeout), fixed spurious warnings for non-agent markdown files in .claude/agents/, fixed structured-outputs beta header sent unconditionally on Vertex/Bedrock. 92
2026-02-13 Added: v2.1.42—fix for /resume showing interrupt messages as session titles, fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users, improved error message for many-image dimension limit errors with /compact suggestion. 88
2026-02-13 Added: v2.1.41—claude auth subcommands (login, status, logout) for authentication management without entering REPL, Windows ARM64 native binary support, /rename auto-generates session name from conversation context when called without arguments. Fixes: AWS auth refresh hanging indefinitely (3-min timeout added), @-mentions with anchor fragments (e.g., @README.md#installation), FileReadTool blocking on FIFOs//dev/stdin/large files, background task notifications in streaming Agent SDK mode, cursor jumping in classifier rule input, markdown link display text dropped for raw URLs, auto-compact failure notifications shown to users, permission wait time included in subagent elapsed time, proactive ticks firing in plan mode, stale permission rules not cleared on settings change, hook blocking errors showing stderr in UI. 88
2026-02-12 Accuracy & completeness pass: Fixed hooks table—Stop, SubagentStop, TeammateIdle, TaskCompleted can all block via exit code 2. Added PostToolUseFailure event. Added prompt-based hooks (type: "prompt") and agent-based hooks (type: "agent") documentation. Updated PreToolUse to preferred hookSpecificOutput format (deprecated top-level decision). Added hook environment variables ($CLAUDE_PROJECT_DIR, $CLAUDE_ENV_FILE). Added CLI --agents flag for session-scoped subagent definitions. Expanded subagent config table: disallowedTools, maxTurns, mcpServers, hooks, delegate permission mode. 87
2026-02-10 Added: v2.1.39—improved terminal rendering performance. Fixes: fatal errors being swallowed instead of displayed, process hanging after session close, character loss at terminal screen boundary, blank lines in verbose transcript view. 86
2026-02-10 Added: v2.1.38—security: blocked writes to .claude/skills in sandbox mode (prevents prompt injection from modifying skill definitions), improved heredoc delimiter parsing to prevent command smuggling. Fixes: VS Code terminal scroll-to-top regression, Tab key queueing slash commands instead of autocompleting, bash permission matching for commands using environment variable wrappers, text between tool uses disappearing in non-streaming mode, duplicate sessions when resuming in VS Code. 86
2026-02-08 Added: v2.1.37—fixed /fast not immediately available after enabling /extra-usage. 84
2026-02-08 Added: v2.1.36—Fast mode now available for Opus 4.6. Same model, faster output at premium pricing (6x standard rates, 50% promo discount through Feb 16). Toggle with /fast. 84
2026-02-07 Added: v2.1.34—security fix: commands excluded from sandboxing via sandbox.excludedCommands or dangerouslyDisableSandbox could bypass the Bash ask permission rule when autoAllowBashIfSandboxed was enabled. Also fixed crash when agent teams setting changed between renders. 85
2026-02-05 Added: v2.1.33—TeammateIdle and TaskCompleted hook events for multi-agent workflows, Task(agent_type) syntax to restrict spawnable subagents in agent tools frontmatter, memory frontmatter field for agents (user/project/local scope), plugin name shown in skill descriptions and /skills menu. Fixes: agent teammate sessions in tmux not sending/receiving messages, agent teams availability warnings on unsupported plans, extended thinking interruption when submitting new messages, API errors on mid-stream abort with whitespace+thinking blocks, API proxy 404 streaming fallback, proxy settings from settings.json env vars not applied to WebFetch, /resume session picker showing raw XML markup. Improved: API connection error messages now show specific cause (ECONNREFUSED, SSL errors). VSCode: remote session support for OAuth users, git branch + message count in session picker with branch search, scroll-to-bottom fix. 83
2026-02-05 Claude Opus 4.6 released. Model ID: claude-opus-4-6. 1M token context window (beta), the first Opus-class model with this capacity. 128K max output tokens. Adaptive thinking (auto reasoning depth). Effort controls (low/medium/high/max). Context compaction beta. Agent teams research preview (multi-agent parallel coordination). Terminal-Bench 2.0 highest industry score. GDPval-AA: +144 Elo over GPT-5.2, +190 over Opus 4.5. 76% accuracy on 8-needle 1M MRCR v2 (competitors ~18.5%). Found 500+ zero-day vulnerabilities in open-source code out-of-the-box. Same pricing as Opus 4.5: $5/$25 per MTok. Long context (>200K input): $10/$37.50. 77
2026-02-05 Added: v2.1.32—Opus 4.6 support, agent teams research preview (requires CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1), automatic memory recording/recall, “Summarize from here” in message selector for partial conversation summarization, skills from --add-dir directories loaded automatically, skill character budget scales with context window (2% of context). Fixes: @ file completion incorrect relative paths in subdirectories, --resume now re-uses --agent value from previous session, bash “Bad substitution” errors with JavaScript template literals in heredocs, Thai/Lao spacing vowels rendering. VSCode: slash command execution fix, spinner for past conversations list. 78
2026-02-04 GitHub integration: Claude and Codex now available in public preview on GitHub—available as coding agents for Copilot Pro+ and Enterprise customers via Agent HQ. Opus 4.6 generally available for GitHub Copilot.81 81
2026-02-04 Added: v2.1.31—session resume hint on exit showing how to continue, Japanese IME full-width (zenkaku) space input in checkbox selection. Fixes: PDF errors permanently locking sessions, bash “read-only file system” errors in sandbox mode, plan mode crash with missing ~/.claude.json fields, temperatureOverride silently ignored in streaming API, LSP shutdown compatibility. Improved: system prompts guide model toward dedicated tools (Read, Edit, Glob, Grep) over bash equivalents, PDF/request size error messages (100 pages, 20MB limits). 73
2026-02-03 Added: v2.1.30—PDF pages parameter for Read tool (read specific page ranges e.g. pages: "1-5"), large PDFs (>10 pages) return lightweight reference when @-mentioned, pre-configured OAuth client credentials for MCP servers without DCR (e.g., Slack), /debug command for troubleshooting, additional git log/git show flags in read-only mode, token count/tool uses/duration metrics in Task tool results, reducedMotion config option. 68% memory reduction for --resume via stat-based session loading. Fixes: phantom “(no content)” text blocks in API history (reduces token waste), prompt cache invalidation for tool changes, 400 errors after /login with thinking blocks, hang on corrupted transcript resume, rate limit messaging for Max 20x, permission dialogs stealing focus, subagents unable to access SDK-provided MCP tools, Windows bash with .bashrc. 74
2026-02-01 Enterprise adoption: ServiceNow chose Claude as default model for ServiceNow Build Agent, rolling out Claude Code to 29,000+ employees—cutting seller preparation time by 95%. Allianz announced partnership making Claude Code available to all employees. 75
2026-01-31 Added: v2.1.29—fixed startup performance regression when resuming sessions with saved_hook_context. 83
2026-01-30 Breaking: Xcode 26.3 introduces native Claude Agent SDK integration—same harness that powers Claude Code—enabling subagents, background tasks, and plugins directly in Xcode without leaving the IDE. Captures Xcode Previews during SwiftUI development for visual iteration. 76
2026-01-30 Added: v2.1.27—--from-pr flag to resume sessions linked to GitHub PR numbers/URLs, sessions auto-linked to PRs when created via gh pr create, tool call failures/denials in debug logs, VSCode Claude in Chrome integration enabled. Fixes: context management validation for gateway users, /context colored output, status bar duplicating background task indicator, permissions precedence (content-level ask > tool-level allow). Windows: bash execution with .bashrc, console window flashing. VSCode: OAuth token expiration causing 401 errors. 72
2026-01-29 Added: v2.1.25—fixed beta header validation error for Bedrock and Vertex gateway users. Workaround: CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1. 71
2026-01-28 Added: v2.1.23—spinnerVerbs setting for customizable spinner text, mTLS/proxy connectivity fix for corporate environments, per-user temp directory isolation, ripgrep timeout error reporting (was silently returning empty results), merged PR purple status indicator in prompt footer, bash timeout duration display. Fixes: prompt caching race condition, pending async hooks not cancelled in headless mode, tab completion not updating input, Bedrock region display in headless mode. 67
2026-01-28 Added: v2.1.22—fixed structured outputs for non-interactive (-p) mode. 66
2026-01-28 Added: v2.1.21—Python venv auto-activation in VSCode (claudeCode.usePythonEnvironment setting), Japanese IME full-width (zenkaku) number input support, Read/search progress indicators (“Reading…” → “Read”), Claude now prefers file operation tools over bash equivalents. Fixes: shell completion cache truncation on exit, API errors when resuming sessions interrupted during tool execution, auto-compact triggering too early on models with large output limits, task ID reuse after deletion, Windows file search in VSCode. 65
2026-01-28 Added: MCP Apps (interactive tool UIs inside Claude for Asana, Figma, Slack, etc.). Code Execution Tool v2 (Bash execution replacing Python-only, programmatic tool calling). Claude Code on the web expanded to Team/Enterprise premium seats. 646970
2026-01-27 Added: v2.1.20—--add-dir flag for loading CLAUDE.md from additional directories (requires CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1), PR review status indicator in prompt footer (colored dot showing approved/changes requested/pending/draft), task deletion via TaskUpdate tool, vim arrow key history navigation, /copy command available to all users, timestamped config backups (rotated, keeping 5 most recent). Fixes: session compaction loading full history on resume, agents ignoring user messages while working, wide character (emoji/CJK) rendering artifacts, JSON parsing with Unicode in MCP responses. 63
2026-01-26 Enhanced: Analytics API section with detailed endpoint documentation, metrics table, curl example, and limitations. Now includes authentication requirements, available metrics (productivity, tool usage, cost), and real-time monitoring alternatives. 45
2026-01-24 Added: v2.1.19—$0, $1 shorthand for custom command arguments (changed from $ARGUMENTS.0 to $ARGUMENTS[0] bracket syntax), CLAUDE_CODE_ENABLE_TASKS env var to disable new task system, skills without additional permissions/hooks no longer require approval. VSCode: session forking and rewind enabled for all users. SDK: queued_command replay as SDKUserMessageReplay events. Fixes: dangling processes on terminal close, /rename//tag in git worktrees, pasted text lost with prompt stash (Ctrl+S), agent model display, backgrounded hook commands not returning early, file write preview omitting empty lines. 62
2026-01-24 Added: v2.1.17—fixed crashes on processors without AVX instruction support. 62
2026-01-24 Breaking: Extended thinking now enabled by default with 31,999 tokens. Natural language triggers (think, think hard, ultrathink) are deprecated and no longer allocate thinking tokens—use MAX_THINKING_TOKENS env var or /config instead. Updated Extended Thinking section with current behavior. 61
2026-01-24 Added: v2.1.18—customizable keyboard shortcuts with context-specific keybindings, chord sequences, and full personalization via /keybindings command. Configuration stored in ~/.claude/keybindings.json. 68
2026-01-24 Added: v2.1.16—task management system with dependency tracking, VSCode native plugin management support, OAuth users can browse/resume remote sessions from Sessions dialog. Fixes: out-of-memory crashes with subagent resumption, /compact warning visibility, session titles language setting, Windows IDE race condition. 60
2026-01-21 Added: v2.1.15—npm installation deprecation notice (native binary preferred), React Compiler UI performance improvements. Fixes: /compact warning not clearing, MCP stdio server timeout not killing child process (could cause UI freezes). 59
2026-01-20 Added: v2.1.14—history-based autocomplete in bash mode (! + Tab), plugin search in installed list, pin plugins to git commit SHAs, VSCode /usage command. Critical fixes: context window blocking limit (~65%→~98%), memory crashes with parallel subagents, memory leak in long sessions, @ symbol file autocomplete in bash mode, /feedback invalid URLs, /context token count display, slash command autocomplete wrong selection. 58
2026-01-20 Added: v2.1.12 (message rendering bug fix). Corrected Setup hook version to v2.1.10 with full release notes: ‘c’ keyboard shortcut for OAuth URL copy, improved startup keystroke capture, file suggestions as removable attachments, VSCode plugin install counts and trust warnings. Added teleport one-way limitation note. 57
2026-01-19 Documentation refresh: Added SubagentStart hook to events table, expanded additionalContext documentation for PreToolUse hooks (v2.1.9), expanded LSP tool capabilities section, enhanced People to Follow with content creators and official resources. -
2026-01-19 Added: Setup hook event (v2.1.10)—triggered via --init, --init-only, or --maintenance CLI flags for environment setup tasks. 52
2026-01-18 Added: Multiple Accounts Policy section (what’s allowed, technical limits, what’s prohibited). Added Community Tips section (plan mode auto-clear context, /clear, screenshots, container patterns). Added People to Follow (Boris Cherny, Thariq, Jeffrey Emanuel). Added API token pricing table. 48495051
2026-01-17 Added: v2.1.11 release—fixes excessive MCP connection requests for HTTP/SSE transports (stability improvement for heavy MCP users). 47
2026-01-16 Added: MCP Tool Search section with benchmarks (Opus 4: 49%→74%, Opus 4.5: 79.5%→88.1%, 85% token overhead reduction). Updated MCP ecosystem stats (100M monthly downloads, 3,000+ servers; no Anthropic page carries those two figures, and its December 2025 count was “97M+ monthly SDK downloads” and “more than 10,000 active public MCP servers”). 46
2026-01-16 Added: Claude Code Analytics API section—programmatic access to usage metrics (sessions, commits, PRs, lines of code) for Team/Enterprise via Admin API endpoint /v1/organizations/usage_report/claude_code. Documented ${CLAUDE_SESSION_ID} skill substitution (v2.1.9). 4345
2026-01-15 Added: v2.1.9 auto:N syntax for MCP tool search threshold, plansDirectory setting, external editor (Ctrl+G) in AskUserQuestion, session URL attribution for web session commits/PRs, PreToolUse hooks additionalContext. Fixed parallel tool calls API errors, MCP reconnection hanging, Ctrl+Z in Kitty. Added Cowork (GUI version for non-technical users). 4344
2026-01-15 Added: v2.1.7 permission feedback feature (provide feedback when accepting permission prompts). GitHub Action v1.0 GA release. Minor documentation refresh. 40
2026-01-14 Added: v2.1.7 MCP tool search auto mode enabled by default (defers tools >10% context), showTurnDuration setting, inline agent response in task notifications, security fix for wildcard permissions matching compound commands. v2.1.6: /config search, /doctor Updates section, /stats date range filtering, nested .claude/skills discovery, context_window.used_percentage/remaining_percentage fields, security fix for shell line continuation permission bypass. v2.1.5: CLAUDE_CODE_TMPDIR env var. 404142
2026-01-13 Added: URL change from console.anthropic.com to platform.claude.com (v2.1.4). Added context: fork skill frontmatter option for isolated contexts. Added permission denial resilience for subagents (v2.1.0+). Added plugin marketplace launch info (a December 2025 date and a count of 36 plugins that no source supported; corrected on 2026-11-11). 39
2026-01-12 Added: v2.1.4 CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable to disable all background task functionality including auto-backgrounding and Ctrl+B shortcut. Fixed OAuth token refresh for “Help improve Claude” setting. 38
2026-01-10 Added: Sandboxing reduces permission prompts by 84% (from Anthropic engineering blog), Opus 4.5 SWE-bench performance (80.9%) and token efficiency improvements. Minor documentation refresh. 37
2026-01-10 Added: v2.1.3 merged slash commands and skills (unified mental model), release channel toggle (stable/latest) in /config, /doctor detects unreachable permission rules, hook execution timeout increased from 60s to 10 minutes. Bug fixes: plan files persisting across /clear, skill duplicate detection on ExFAT, background task count mismatch, subagents using wrong model during compaction. VSCode: clickable destination selector for permissions. 36
2026-01-09 Added: v2.1.1 (109 CLI refinements), Component-Scoped Hooks (hooks in skill/command frontmatter with once option), new MCP servers (Figma Dev Mode, Sequential Thinking, Magic UI, Context7). Updated MCP ecosystem count to 3,000+ servers. (The CHANGELOG lists the 109 changes under 2.1.0 and has no 2.1.1 section. The server count was credited to the MCP.so directory, whose front page shows no count today. Noted on 2026-11-11.) 333435
2026-01-08 Added: language and respectGitignore settings to settings.json reference. Added IS_DEMO env var. Updated multiline input to show Shift+Enter works out-of-box in iTerm2/WezTerm/Ghostty/Kitty. Added 1,550 free code execution hours per org/month. 2932
2026-01-08 Added: v2.1.2 clickable file paths in tool output (OSC 8 for iTerm), Windows Package Manager (winget) support, Shift+Tab for “auto-accept edits” in plan mode, FORCE_AUTOUPDATE_PLUGINS env var, agent_type field in SessionStart hook. Security fixes: command injection in bash processing, memory leak from tree-sitter. Updated thinking toggle to Alt+T. Added MCP wildcard permission syntax (mcp__server__*). Added PreToolUse hooks updatedInput with ask permission. 31
2026-01-07 Added: v2.1.0 automatic skill hot-reload (skills in ~/.claude/skills or .claude/skills immediately available without restart). Security: CVE-2025-52882 WebSocket authentication bypass patched in IDE extensions v1.0.24+ 2930
2026-01-06 Added: v2.0.74 clickable image links ([Image #N]), /context grouped display, file @ mentions 3x faster in git repos, .ignore and .rgignore support, Claude Agent SDK v0.1.74 262728
2025-12-28 Added: Named sessions (/rename, /resume <n>), plugin discover search filtering, --fork-session with custom session IDs, Agent Skills section, async subagents, Claude Agent SDK (renamed from Claude Code SDK), Alt+Y yank-pop, Alt+T thinking toggle, Ctrl+T syntax highlighting toggle, holiday promotion (2× limits Dec 25-31) 2122232425
2025-12-24 Added: Claude in Chrome section, Claude Code in Slack section, LSP tool, remote MCP OAuth support, ‘ultrathink’ command, /theme and /plugin commands, terminal support for Kitty/Alacritty/Zed/Warp 151617181920
2025-12-14 Added: Pro users Opus 4.5 access, subscription plans table, rate limits (August 2025), iOS app availability 121314
2025-12-12 Added: Background Agents section, Output Styles section, hidden tool fees, /stats, /fork, /rename, /statusline, /tasks commands, .claude/rules/ memory directory, Batch API tip 891011
2025-12-12 Added: Slack integration, prompt suggestions, Alt+P model switching, /release-notes command, /rewind command, interactive MCP setup wizard (the CLI had deprecated the wizard in 0.2.108; claude mcp add takes a name and a target) 567
2025-12-12 Initial 10.0 version: Architecture mental model, decision frameworks, anti-patterns, workflow recipes, migration guide, quick reference card -

The sections that follow give the release notes for recent versions in more detail than the table above, newest first, followed by the feature notes from v2.1.105 through v2.1.114.

What’s New in v2.1.323 through v2.1.332

Claude Code shipped nine releases with release notes between November 12 and November 24, 2026: 2.1.323 (November 12, npm 20:29 UTC), 2.1.325 (November 13), 2.1.326 (November 16), 2.1.327 (November 17), 2.1.328 (November 18), 2.1.329 (November 19), 2.1.330 (November 20), 2.1.331 (November 23), and 2.1.332 (November 24, 22:06 UTC). 2.1.324 (npm, November 13, 18:42 UTC) has no CHANGELOG entry and no GitHub release. npm latest and next are 2.1.332, and stable moved from 2.1.311 to 2.1.326.527

Models and providers (v2.1.323 to v2.1.332). The v2.1.332 release notes change 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), point the sonnet alias at Sonnet 5.5 on Google Cloud’s Agent Platform and on Foundry and Foundry’s opus alias at Opus 5.5, and keep sonnet on Amazon Bedrock at Sonnet 4.5. On Bedrock Mantle, sonnet now means Sonnet 5. The model-config, Foundry, and Agent Platform docs pages, read on November 25, still give the earlier values (see Available Models). On Agent Platform, sonnet and background requests read VERTEX_REGION_CLAUDE_5_5_SONNET. --model default and a Default pick move to an older model when theirs is not available, where they used to stop with an error. Auto mode reaches Opus 4.6 and Sonnet 4.6 on Bedrock, Agent Platform, Foundry, and the Claude apps gateway (v2.1.328). A model ID Claude Code does not recognize is assumed to have a 1M context window, up from 200K: CLAUDE_CODE_DISABLE_1M_CONTEXT=1 keeps 200K, and CLAUDE_CODE_MAX_CONTEXT_TOKENS also sets the window for unrecognized IDs that start with claude- (v2.1.323, v2.1.325). On the Claude Platform, Opus 4.5 was deprecated on November 23, 2026, with API retirement on January 22, 2027.527528534

Sandbox and permissions (v2.1.323 to v2.1.330). Sandboxed Bash commands follow the normal permission flow by default. Set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts; in managed settings, set it in your highest-ranking managed source (v2.1.325 in the release notes; the settings reference dates the new default to v2.1.324). Sandboxed commands on macOS, Linux, and WSL no longer write to some sensitive home folders by default, and Claude’s file tools refuse writes to Claude Code’s sign-in files, such as .credentials.json (v2.1.326). More commands ask first: read-only git commands in a repository that is not the project’s or one you trusted (v2.1.325), some cp and mv commands and some tool calls in bypass permissions mode (v2.1.326), and more rm commands aimed at the root, home, a top-level folder, or the working folder (v2.1.330). --add-dir and /add-dir show the trust prompt for a folder you have not trusted (v2.1.326), and ExitWorktree asks before removing a worktree that may hold unsaved work (v2.1.327). A “don’t ask again” rule that looks like it holds a secret, or that would be saved to a settings.local.json git tracks, lasts for the session only (v2.1.323). Auto mode ignores more allow rules that run any package, such as Bash(pnpm dlx *), and its notice about falling back to billed classifier requests says an upcoming release removes the fallback (v2.1.327). See Sandbox Mode and Permission Rules Syntax.527530

Hooks (v2.1.323 to v2.1.332). PreSkillShellCommand fires before a skill’s or command’s inline shell command runs while the skill loads, and can refuse it. PreToolUse hooks do not fire for those commands, so a script that blocks on PreToolUse belongs on both events (v2.1.332). "onFailure": "block" works on mcp_tool hooks (v2.1.328), and prompt hooks accept model aliases such as haiku or sonnet in model (v2.1.330). Managed PostToolUse hooks no longer fire for calls refused before they ran (v2.1.328). A hook’s "decision": "block" holds in more cases, so a hook that always prints one may start blocking calls, and HTTP hooks ignore Content-Length and Transfer-Encoding in headers (v2.1.326). When a tool’s permission check fails with an error after a PreToolUse hook returned “allow”, Claude Code decides the call as if no hook had answered (v2.1.323). A PermissionDenied hook’s retry: true tells Claude to make the refused call again only if you asked for that call (v2.1.331). Stop and SubagentStop hooks list a Monitor’s script as monitor, not shell, in background_tasks, and the trust dialog says where a folder’s hooks are declared (v2.1.329). See Available Events.527529

Code Mode (experimental, v2.1.323). Code Mode is an opt-in in which Claude writes JavaScript that makes several tool calls in one step. It reached sessions with agent teams on in v2.1.326, mods that hook tool calls in v2.1.327, sessions with OpenTelemetry events and metrics on or feature flags off in v2.1.329, and terminal sessions on Bedrock, Agent Platform, Foundry, and Claude Platform on AWS in v2.1.331. See Code Mode.527532

MCP and skills (v2.1.323 to v2.1.332). MCP servers can provide skills, in public beta: they show as server:skill in the / menu (v2.1.332 in the release notes; the MCP docs give v2.1.331 as the floor). claude mcp add-json <name> - reads the server’s JSON from stdin, which keeps tokens off the command line (v2.1.327). The v1 MCP client is removed, and MCP_SDK_GENERATION=v1 now runs the v2 client in a compatibility mode (v2.1.323). Project .mcp.json server approvals match the server’s exact name, so an approval written in another spelling asks again (v2.1.323), and claude mcp add --scope project stops, without overwriting the file, when .mcp.json lists its servers at the top level with no mcpServers key (v2.1.327). The tool Claude uses to finish an MCP server sign-in asks you to confirm, even in bypass and auto modes (v2.1.323). A deniedMcpServers name entry hides only the named claude.ai connector, not others at its URL; deny the exact URL to block them all (v2.1.330). Scheduled tasks and /loop ask before running a skill that declares allowed-tools or hooks; add Skill(name) to permissions.allow to run it unattended (v2.1.325). /security-review asks before Claude runs it (v2.1.323), and computer-use is a reserved skill name on Macs with computer use on (v2.1.332). See What Is MCP?.527533

Scheduled tasks, loops, and commands (v2.1.326 to v2.1.332). Recurring scheduled tasks and /loop run up to 30 days, up from 7, while their session keeps running; tasks made before v2.1.330 still end at 7 days. /tasks lists the session’s scheduled tasks, /loop wakeups, the goal, and the conversation’s forks, and x stops one after asking; in new signed-in sessions, most scheduled tasks saved by earlier versions need scheduling again (v2.1.329). /schedule, permission prompts, and /loop’s cloud offer say “cloud scheduled task” in place of “routine” or “cloud schedule”; /routines still works (v2.1.332). On most models, /code-review with no target reviews the whole branch against the default branch (v2.1.329), reports only bugs and CLAUDE.md violations, and marks each finding Important, Pre-existing, or Nit; /simplify covers reuse, simplification, and efficiency cleanups (v2.1.328). /tui classic names the non-fullscreen renderer (v2.1.327). /status lists broken agent, skill, command, and output style files, keybinding errors, an unavailable sandbox, ignored permission settings, and hook matchers that never match (v2.1.327), and claude doctor reports whether the API can be reached (v2.1.331). Ctrl+O shows hidden startup notices (v2.1.326). The docs add two commands the release notes do not carry: /ship and /steward (v2.1.330 or later), covered under Slash Commands.527531536

Subagents, sessions, and sign-in (v2.1.323 to v2.1.332). The subagentStatusLine setting is removed: subagent rows always use the default look, and a settings file that still holds the key loads as before (v2.1.323). CLAUDE_CODE_DISABLE_AGENT_PROGRESS_SUMMARIES=1 turns off subagent progress summaries and the requests that write them (documented in v2.1.323, available since 2.1.318). A subagent’s model fallback carries over to the agents and forks it starts (v2.1.330), and a subagent launched without a model stays on the model it started on when resumed, including after /model (v2.1.327). With CLAUDE_CODE_FORK_SUBAGENT=0, subagents in claude -p, the Agent SDK, the desktop app, and VS Code wait for their own subagents by default (v2.1.328). Your sessions on the same machine can send each other 100,000 messages without a prompt from you, up from about 20 (v2.1.323), and the prompt for a held message from another session adds “Always deliver” (v2.1.332). claude auth login exits 1 and says what to check when a claude.ai login could not be saved (v2.1.332), organizations managed in Anthropic’s Enterprise Admin Console can be signed in to with claude auth login (v2.1.330), and /logout in a background session signs out every session on the computer (v2.1.323). Tap-mode voice dictation keeps the microphone on until 60 seconds pass without new words or 10 minutes in total, up from 15 seconds and 2 minutes, and keeps the text unsent (v2.1.332).527537

Plugins and mods (v2.1.323 to v2.1.331). plugin.json takes engines["claude-code"]: a plugin outside its stated Claude Code version range is not installed, updated, or loaded (v2.1.323). optionalDependencies lists plugins that install with yours and can be disabled or uninstalled on their own (v2.1.331). A plugin’s agent setting is deprecated and warns at startup (v2.1.323), and pluginDigests is deprecated and ignored (v2.1.325). A marketplace ref accepts the full ID of any commit on a branch or tag; clients before v2.1.325 cannot clone such a pin. Marketplace and plugin installs fail when a git submodule is not on the commit its repository records, and claude plugin validate type-checks a plugin’s TypeScript hooks module (v2.1.323). Uninstalling a plugin also deletes the files extracted from its MCP bundles (v2.1.326). The v2.1.331 notes schedule automatic updates for plugin marketplaces in managed extraKnownMarketplaces in a release on or after November 30, 2026; set "autoUpdate": false on an entry to opt it out. easel, a built-in mod that draws charts, arrives on Pro, Max, and, where available, Team and Enterprise on macOS and Linux (v2.1.330). For mod authors, a *, namespace, or negated hook on engine.create now only observes (v2.1.323), and /cost and --max-budget-usd count a mod’s $.model.complete and $.model.classify calls (v2.1.325). See Plugin System.527538

Enterprise: gateway, runners, and telemetry (v2.1.323 to v2.1.332). Claude apps gateway: oidc.groups_jsonpath reads groups from a list of objects, and CLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1 hands the proxy an https IdP’s hostname (v2.1.331); the attributionProject setting names a session’s billing group where the gateway sets admin.billing_group_tag (v2.1.327); Sonnet 5.5 replaces Sonnet 4.5 in the built-in model list (v2.1.332). Self-hosted runners gain --repository-folder, --hook-label, and --metadata (v2.1.328), then --start-dir and --hook-concurrency (v2.1.330), and their CLAUDE_CODE_OAUTH_TOKEN prefix can end in oat02- as well as oat01-, so update proxy rules and log scrubbers (v2.1.332). Organization settings and policy requests no longer use a proxy set only by ALL_PROXY; set HTTPS_PROXY (v2.1.323). Remote Control connects through a proxy with a CONNECT tunnel, so a proxy that refuses CONNECT stops it (v2.1.326). On Windows, an HKLM policy outranks managed-settings.json, and a broken value can stop the start, so check registry settings before upgrading (v2.1.331). Telemetry: OTEL_RESOURCE_INCLUDE_HOST adds host.name and host.id (v2.1.326), claude_code.llm_request spans carry gen_ai.usage.* (v2.1.331), and desktop Code tab sessions report service.name as claude-code-desktop (v2.1.332). CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION asks for uncompressed model responses behind a proxy that cuts compressed ones off (v2.1.331). See Enterprise Deployment.527538

Security fixes and fixes worth knowing. v2.1.325 fixes a security issue in how zstd-compressed responses are decoded, a gap where some compound Bash commands could run without asking, a Bash allow rule that could run a different program than the one it names, and deny rules not applied to an approval that arrives after a restart in self-hosted runner and claude remote-control sessions. v2.1.323 fixes Write and Edit writing to a path under a Read deny rule, deny and ask rules missing some commands run through sudo, env, and similar wrappers, sandbox.excludedCommands letting a command it does not name run outside the sandbox, and an rm judged from the wrong folder skipping the dangerous-removal prompt. v2.1.329 fixes ~/.claude.json sometimes being reset to defaults when a network stall or file lock made it unreadable, and a cloud session picked in /teleport now starts a new session where it used to replace your open conversation. v2.1.332 makes a read of a named pipe that nothing writes to fail after 20 seconds, where Read, @-mentions, and compaction used to hang, and fixes freezes while a hook prints output without end. The automatic retry when max_tokens exceeds a model’s or gateway’s limit arrived in v2.1.326, was removed in v2.1.329, and came back in v2.1.330.527

What to do: upgrade. If you relied on sandboxed commands running without prompts, set sandbox.autoAllowBashIfSandboxed: true. On Microsoft Foundry, deploy claude-sonnet-5-5 or pin ANTHROPIC_DEFAULT_SONNET_MODEL before moving to v2.1.332. Add a PreSkillShellCommand hook only once every machine runs v2.1.332, because an older version that finds it in a settings file opens a warning dialog at start. Reschedule saved scheduled tasks that stopped running, and move API code off Sonnet 4.5 before November 30, 2026 and off Opus 4.5 before January 22, 2027.527529534

What’s New in v2.1.318 through v2.1.322

Claude Code shipped four releases between November 3 and November 10, 2026: 2.1.318 (November 3, npm 21:55 UTC), 2.1.319 (November 6, 00:58 UTC), 2.1.321 (November 9, 19:02 UTC), and 2.1.322 (November 10, 01:58 UTC). 2.1.320 was never published. npm latest and next are 2.1.322; stable stays at 2.1.311.283

Models (v2.1.321, v2.1.322). Claude Fable 5.2 (claude-fable-5-2) is what the fable alias selects: 1M context, $8/$40 per MTok, $0.20 cache reads, and a saved Fable 5.1 pick moves to fable on Pro, Max, and Ultra at once and on Team and Enterprise once the organization allows it (/model claude-fable-5-1 switches back). Fast mode runs Fable 5.2 at $16/$80 (v2.1.321) and reaches Google Cloud’s Agent Platform in the global, us, and eu regions, falling back to standard speed if the platform refuses it (v2.1.322); the fast-mode labels in /fast, /config, and /model name your current model, and a rate-limited or failing fast lane tries standard speed on the same model before anything else. The /model picker groups older models under a “More models” row (v2.1.319), unnumbered below the rest (v2.1.321). The session-feedback message, the allowedProviders description, and the “Upgrade to Max” options now name the Ultra plan alongside Pro and Max. See Which Model Should I Choose? and Fast Mode.283284

Permissions and auto mode (v2.1.318 to v2.1.321). permissions.denyInsteadOfPrompting denies a tool call that would wait on a prompt and lets the turn continue (v2.1.319). Auto mode with telemetry or feature flags off, including behind LLM gateways, asks about or denies calls the server cannot check, with no fallback to the built-in classifier; CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps the local classifier, =1 turns the server check on behind a gateway even with CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS set, and a project’s settings or a plugin can no longer switch the server check back on once you turned it off outside the project (v2.1.319; Bedrock, Vertex, and Foundry unchanged). See How Does the Permission System Work?.283284

Permission rules and security fixes (v2.1.319, v2.1.321). A session’s exact Bash or PowerShell ask rule is refused, not asked about, when a broader deny rule covers the command; which with flags outside a lookup set asks; cp and mv spelled by path get the same checks as the bare names; deny rules and protected-file prompts apply to the file a cp or mv into a directory writes; Monitor’s WebSocket watch follows the rule on every Bash command (v2.1.319, v2.1.321). Fixes closed a Bash permission bypass through a crafted environment prefix, a sandbox escape when creating a worktree, a sed that skipped the check in accept-edits and auto mode, a read-only Bash command that ran outside the sandbox without a prompt, and MCP OAuth requests that sent secrets such as refresh tokens to another host after a redirect (v2.1.319, v2.1.321). claude -p exits 1 when auto mode refused its actions because no safety check was available (v2.1.319).283

MCP tasks and feature flags (v2.1.319). When an MCP server runs a tool call as a task, the terminal moves it to the background right away and tells Claude the result when it finishes, with no feature-flag fetching required (Bedrock, Vertex, Foundry, LLM gateways, DISABLE_TELEMETRY); CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND=1 makes Claude wait inside the call and CLAUDE_CODE_DISABLE_MCP_TASKS=1 turns tasks off. CLAUDE_CODE_DISABLE_FEATURE_FLAGS=1 stops feature-flag fetching without turning telemetry off. /tasks gains an “Earlier in this session” row of finished subagents you can reopen and message, and a self-paced /loop ends when a turn finishes without rescheduling (CLAUDE_CODE_LOOP_KEEPALIVE=1 restores the fallback wakeup). /claude-api latency-optimize finds where your Claude API code makes people wait. The shortcuts_list and shortcuts_execute Claude in Chrome tools are removed. See MCP.283284

Remote Control, cloud sessions, and operations (v2.1.318 to v2.1.321). claude remote-control --settings <file> applies a settings file to every session it starts; if the file changes, no new session starts until you restart the command (v2.1.321), and Remote Control sessions keep the folder they were started in (v2.1.321). claude auth status reports when a stored claude.ai sign-in ends (loginExpiresAt), claude -p JSON carries credential_expires_at, and claude -p text output warns on stderr starting 10 days out (v2.1.318). Claude Code no longer installs or updates the IDE extension when started in an IDE terminal; use /ide from an outside terminal or the editor’s extensions view (v2.1.318). Background subagents move a shell command to the background after 3 minutes on all providers (v2.1.318). A one-shot claude -p run on Linux exits 1 with an error when a full NFS export loses transcript lines (v2.1.321). ~/.claude.json, settings files, and the stored login survive saves on shared network home directories more often, and a non-interactive launch that finds a ~/.claude.json that is not valid JSON now fails and says how to restore the file instead of replacing it with defaults (v2.1.318). The 2.1.288 fix that kept the model’s earlier thinking when resuming a conversation started on 2.1.286 or earlier is removed (v2.1.318). See Remote & Background Agents.283

Mods (v2.1.318, v2.1.321). Mods Claude writes turn on without asking in auto and bypass modes, even under managed allowUnsandboxedCommands: false or allowManagedDomainsOnly, and do not load in dontAsk mode; a mod’s own tool calls ($.tool.call, $.mcp.call) raise no permission prompt, even under your own ask rules or in dontAsk and -p runs, while deny rules and organization policy still apply (v2.1.321). Claude Code records your answer when it asks to turn on the mods it writes, and $.model.fork takes an effort option (v2.1.318). Headless sessions reload mods in .claude/skills when their files change (CLAUDE_CODE_PLUGIN_DIR_WATCH=0 turns it off), and .claude/skills folders inside ~/.claude/plugins no longer load (v2.1.321). See Mods.283

Enterprise: gateway and managed settings (v2.1.318 to v2.1.321). Claude apps gateway: assume_role on mantle upstreams for a role in another AWS account (v2.1.318); admin.pooled_conflict_rule and admin.pooled_priority_order decide which pooled group budget pays first, login_notice shows an operator message on the verification page and the sign-in screen, CLAUDE_GATEWAY_LOG_FORMAT=json turns operational log lines into JSON, and /usage shows spend for today, this week, and this month to developers with no spend limit (v2.1.319); policy_mode: layered now adds managed MCP servers up over every matching policy, and Bedrock, Vertex, and Foundry upstreams ignore the ANTHROPIC_*_BASE_URL variables in the gateway’s environment, so set base_url on the upstream instead (v2.1.321). Managed extraKnownMarketplaces: a declared name cannot be added from another source, an entry from elsewhere is hidden, plugins the declared marketplace lists are reinstalled from it, and a take-over sets saved data aside for cleanupPeriodDays until claude plugin restore-set-aside (v2.1.321). deniedMcpServers URL entries also block Anthropic-provided servers and connectors whose upstream URL matches (v2.1.318). See Enterprise Deployment.283

Smaller changes. The remaining 2.1.318 to 2.1.321 bullets are fixes and refinements: config-file durability on network homes and under disk pressure, claude mcp add and remove taking the config lock, stdio MCP servers that exit on the version probe, idle compaction that replaced a conversation with a non-summary, /diff and session diffs in repositories with a file named HEAD, slash commands typed after leading whitespace, /context sending its grid on every turn, 401 refresh storms, hook ask and defer ordering, /clear killing background work, /rewind through symlinks, TLS handshakes that never answer, zsh KSH_OPTION_PRINT, Windows PATH lookups, Claude in Chrome reconnects, VS Code prompt limits and dictation, cloud-session connector and upload retries, self-hosted runner log lines and checkout folders, and the Claude Tag and Code Review admin pages.283

What’s New in v2.1.311 through v2.1.317

Claude Code shipped five releases between October 26 and November 2, 2026: 2.1.311 (October 26, npm 19:47 UTC), 2.1.312 (October 27), 2.1.314 (October 30, 00:12 UTC), 2.1.316 (October 31, 00:42 UTC), and 2.1.317 (November 2, 23:57 UTC). 2.1.313 was never published, and 2.1.315 (npm, October 30, 21:05 UTC) has no CHANGELOG entry and no GitHub release. npm latest and next are 2.1.317, and stable moved from 2.1.308 to 2.1.311.281

Effort (v2.1.311, v2.1.316, v2.1.317). Typing ultrathink in the interactive terminal now runs that turn at xhigh effort on Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 (and Fable 5.2 since it shipped) through Anthropic’s API, and typed while Claude is working it raises the rest of that turn; the rainbow highlight appears only where the word can raise effort, not when it is quoted or part of a path (v2.1.311). VS Code does the same from v2.1.316, and CLAUDE_CODE_DISABLE_ULTRATHINK=1 turns the keyword off (v2.1.316). CLAUDE_CODE_SUBAGENT_EFFORT sets the effort level subagents run at when nothing else names one, instead of inheriting the session’s (v2.1.316), and a subagent or teammate on a different model from the main conversation uses that model’s saved effort level or its default (v2.1.317). See Extended Thinking and Subagents.281282296

Models and providers (v2.1.311 to v2.1.316). Model names and IDs drop the [1m] suffix and its label on models where the suffix has no effect; it is still accepted (v2.1.311). Bedrock, Mantle, Vertex AI, and Foundry sessions load model settings from a signed file on downloads.claude.ai; CLAUDE_CODE_MODEL_CATALOG=off turns that off (v2.1.311). On those providers a model name Claude Code does not recognize, such as a custom deployment name or an inference profile ARN, gets the shorter system prompt even when it fronts Sonnet or Haiku; CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0 keeps the full prompt. The automatic model switch after a flagged request covers unrecognized names too; CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK=1 turns it off (v2.1.312). When ANTHROPIC_DEFAULT_OPUS_MODEL, availableModels, or deniedModels leaves only an older Opus model, or none, a flagged request retries on another model instead of ending in a refusal (v2.1.314). A model ID spelled with a dot behind an LLM gateway, such as claude-opus-4.8, is no longer treated as an older model with the wrong context window, output limit, effort, thinking mode, and cost (v2.1.314). Fast mode for Opus 4.8 was deprecated on October 30, 2026 and is removed on November 30, 2026; after that, fast-mode requests on Opus 4.8 return an error and do not fall back to standard Opus 4.8, so switch to Opus 5.5 with /model to keep the speedup or run /fast off to stay on Opus 4.8 (v2.1.316).281282

Permissions, sandbox, and hooks (v2.1.311 to v2.1.317). permissions.blockWritesOutsideWorkingDirectories makes Write, Edit, and NotebookEdit refuse paths outside the working directories in every permission mode, bypassPermissions included; it does not limit shell commands, MCP tools, or the programs hooks run, and it removes the EnterWorktree and ExitWorktree tools (v2.1.314). Claude Code asks before a web or shell tool call sends your account email address to the network (v2.1.317). --restricted sessions no longer upload files from outside the working directories when a Read allow rule covered them (v2.1.316). Hooks that match Bash now run on the Monitor tool’s shell commands, where they can block or ask but not approve or rewrite, and a hook if condition such as Monitor(tail *) matches those commands as Bash(tail *) matches Bash’s (v2.1.314). A PreCompact hook’s output is cut at 10,000 characters so a very large one cannot fail or repeat compaction (v2.1.314). Prompt and agent hooks run at most 24 at a time per session, subagents included, plus at most 12 that have waited longer than their event’s timeout, and a timeout under one second counts as one second (v2.1.312). SubagentStop hooks fire once when a subagent finishes instead of about twice a minute while it runs (v2.1.311). The sandbox.excludedCommands description now says what v2.1.277 made true: every command in a call must match an entry (v2.1.314). In /permissions, the review tab is called Recently blocked and refuses to approve a call it cannot show in full (v2.1.314).281282

Compaction, context, and print mode (v2.1.311 to v2.1.317). Idle compaction reaches VS Code and the desktop app’s Code tab: a conversation of 200K or more tokens left idle is summarized, and the summary is used on your next message once the prompt cache has expired; it also runs for subscribers with telemetry off, and on Bedrock, Vertex AI, Foundry, and LLM gateways once the one-hour prompt cache is on (v2.1.314). A standard-context session whose request passes 200K tokens compacts and continues instead of stopping with “Usage credits required for 1M context” (v2.1.311). When the model’s reply carries no summary, compaction usually asks for it once more before replacing the conversation (v2.1.311), and a very long conversation keeps its earlier summary when compaction has to shorten its own request (v2.1.317). DISABLE_COMPACT in a settings file or a mod’s $.env.set can only turn compaction off, not back on (v2.1.311). A subagent’s autoCompactWindow can lower the window CLAUDE_CODE_AUTO_COMPACT_WINDOW sets; it still never raises it (v2.1.312). Usage limit messages call the 5-hour window the “5-hour limit” rather than the “session limit” (v2.1.312). claude -p prints the error and exits 1 when startup fails (v2.1.314) and when a full disk or quota loses its transcript or ~/.claude.json writes (v2.1.317); both cases exited 0 before. A shell command that reaches its timeout shows the output so far and keeps running in the background (v2.1.311). Reading an unchanged file again returns its content; the “file unchanged since your last Read” stub is gone (v2.1.317).281

Cloud sessions, runners, and Remote Control (v2.1.311 to v2.1.317). claude self-hosted-runner gains --hold-idle-file <path> and --max-hold-min <n> to keep an idle session while your host reports processes it left running (v2.1.311), and CLAUDE_CODE_DISABLE_NESTED_SESSION_ID=1 makes a claude -p run inside a runner session reuse that session’s ID and transcript, the pre-v2.1.317 behavior that could resume the wrong conversation. After a 5xx other than 501 or 529, or a heartbeat with no answer, runner sessions open new connections instead of reusing the one that failed (v2.1.317). Cloud sessions show a link card for a URL an MCP server asks you to visit (v2.1.317) and a form card for a form it asks for (v2.1.316); a cloud or Remote Control session you switch back to shows “Catching up” while it loads; Enterprise members can add and delete network secrets on their own cloud environments (v2.1.316); a routine that runs in the cloud takes an effort level in its model picker (v2.1.312); scheduled tasks in Anthropic’s cloud load the plugins enabled on your claude.ai account and cloud sessions start even when a setup script exits with an error (v2.1.314); new scheduled tasks start on the organization’s default environment (v2.1.317). /remote-control says when the disableRemoteControl setting has turned Remote Control off (v2.1.317). Project and local MCP servers no longer disconnect after the first turn in some desktop sessions (v2.1.317).281282

Enterprise: gateway, managed settings, telemetry (v2.1.312 to v2.1.317). Claude apps gateway: oidc.user_id_claim identifies people by an id_token claim other than sub (v2.1.312); an upstream’s groups list sends only developers in those IdP groups to it, on failover too, and guardrail_trace logs which Amazon Bedrock guardrail filter fired (v2.1.314); pooled_budget gives a group one shared monthly budget, managed.policy_mode: layered applies every matching policy merged over the ones below it, and guardrail.input_tagging adds the input tags a Bedrock prompt attacks filter needs (v2.1.316); GET /v1/organizations/analytics/cost reports past spend by developer, day, or IdP group (v2.1.317). Server-managed settings fetched from Anthropic’s API for Team and Enterprise logins apply without an approval prompt, and a stored copy that does not verify is refused (v2.1.316); Claude’s file tools ask before editing the local copy of those settings (v2.1.314); the desktop app’s Code tab says when the organization’s remote managed settings have not loaded, and again when they do (v2.1.317). OpenTelemetry metrics, events, and spans carry anthropic.plan, anthropic.seat_type, anthropic.provider, and anthropic.custom_base_url, and exports behind a proxy that never answers time out after 10 seconds, or OTEL_EXPORTER_OTLP_TIMEOUT up to 30 seconds (v2.1.317); Claude Code stopped sending the claude_code.safety_event event it added in v2.1.307 (v2.1.312). A renewed root certificate cross-signed with its predecessor no longer fails with UNABLE_TO_GET_ISSUER_CERT (v2.1.314), and CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP=1 keeps system cross-certificates that certify each other in a loop for a private CA that needs one (v2.1.316).281282

VS Code, Slack, and the rest (v2.1.311 to v2.1.317). VS Code: code blocks in replies get syntax coloring and sessions start with DISABLE_TELEMETRY set while VS Code’s own telemetry is off (v2.1.311); ultrathink runs its turn at xhigh and shows the rainbow (v2.1.316); you can sign in to a Claude apps gateway from the chat panel (v2.1.316); and CLAUDE_CODE_DISABLE_CFC_PROMPT=1 also keeps the Claude in Chrome instructions out of a session’s messages while the browser tools stay available (v2.1.314). Claude Tag in Slack: a channel’s Respond automatically switch became a “How Claude participates” choice (v2.1.316), analytics gains a Skills view (v2.1.311), and pasted artifact links show a card with an Open button (v2.1.317). The Code Review analytics page adds a findings-by-severity card (v2.1.316). FORCE_HYPERLINK=false (also no and off) turns terminal hyperlinks off; before v2.1.314 those values turned them on. Pro and Max launches within an hour of the last check skip two network requests, and a launch whose only arguments are options, such as claude --model opus, starts faster (v2.1.311). SendMessage to a running background agent arrives sooner: its running command moves to the background without being stopped (v2.1.317).281282

What to do: upgrade. If a session still runs Opus 4.8 with fast mode on, switch to Opus 5.5 with /model (or run /fast off) before November 30. Scripts that read claude -p’s exit code should expect 1 on a startup or disk failure. If you had set FORCE_HYPERLINK=false to get hyperlinks, set it to 1.281

What’s New in v2.1.309 and v2.1.310

Claude Code 2.1.309 shipped on October 22, 2026 (npm 20:34 UTC; GitHub release 22:18 UTC) and 2.1.310 on October 23 (npm 21:20 UTC; GitHub release 23:39 UTC). At that point npm latest and next were 2.1.310, and stable moved from 2.1.292 to 2.1.308, a release whose whole note reads “Bug fixes and reliability improvements”; 2.1.303 (October 18) carries the same one line. Nothing was skipped between 2.1.302 and 2.1.310.275

Sandbox and permission fixes (v2.1.309). Sandboxed Bash commands on macOS and Linux no longer run the shell’s startup files outside the sandbox before each command; macOS denyWrite globs apply at a path’s real location when the pattern’s folder is reached through a symlink; sandboxed commands and auto-accepted edits can no longer modify the MCP config file passed with --mcp-config; Linux write denies no longer lift when a background command outlives the session; and commands the settings exclude from the sandbox now ask before writing to its write-list paths while the sandbox is enabled but cannot run, with the unsandboxed fallback refused there. Bash permission checks stop trusting a variable set by a command whose redirect can fail, prompt for a wrapped or prefixed cd before git, and apply an Edit(path) deny rule to a Bash redirect inside a subshell; the worktree isolation guard refuses more locale-prefixed and zsh arithmetic commands; profile store write protection applies through a symlinked config directory. sed -i now gets the standard Bash prompt and runs as written instead of a simulated file-edit preview, and like other Bash edits it is no longer restored by /rewind. See Sandbox Mode.275

Trust, worktrees, and skills (v2.1.309). claude ultrareview requires workspace trust: it asks on a terminal and refuses otherwise; scripts pass --trust-workspace, which takes no value, or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1. The dangerous rm and rmdir prompt in bypass permissions mode in the desktop app and VS Code now denies the command at once with a rewrite hint, so unattended sessions keep going. Worktree creation and reuse no longer fetch git objects on demand (a partial clone with a Bash sandbox fetches them first), and worktrees and branch checkouts ignore git replace refs. A nested CLAUDE.md over the size limit now loads only its start, which stops sessions compacting repeatedly after reading files under it. A skill in an --add-dir folder whose name another skill already holds is offered as <folder>:<name>, and /verify and /code-review find a nested package’s own skill. Split-pane agent teammates inherit the leader’s tool deny and --tools rules, and /rewind lists turns that changed checkpointed files through /code-review --fix, a subagent, or a shell command.275

v2.1.310. The Monitor tool and plugin monitors work on Bedrock, Vertex, and Foundry and when telemetry or nonessential traffic is disabled, where long foreground sleeps are now blocked too. Requests behind gateways and compatible servers that reject the effort-2025-11-24 beta value or mid-conversation system messages are retried without them. Compaction after a “Prompt is too long” error no longer keeps too much dense text such as base64 or SVG; background cleanup no longer deletes recent files such as pasted images when cleanupPeriodDays is very large; file read prompts show where a symbolic link leads; auto mode’s prompt before the first read outside the working directories says when blocking those reads makes shell commands ask for permission; non-interactive sessions use less memory while compacting a very large transcript; on Ubuntu, /sandbox and the startup warning name the AppArmor restriction on user namespaces and how to lift it; a mod’s Image draws inside tmux with allow-passthrough and focus-events on, and in kitty, Ghostty, and iTerm2 3.5+ with fullscreen rendering; and an MCP tool call that times out in a non-interactive session while the server’s elicitation is unanswered tells Claude not to repeat it. Cloud sessions and Remote Control permissions join Enterprise custom roles.275

What’s New in v2.1.307

Claude Code 2.1.307 shipped on October 21, 2026 (npm 20:47 UTC; GitHub release 22:17 UTC), after 2.1.306 (October 21, 02:28 UTC), whose two fixes are claude -p inside cloud sessions no longer reporting “Not logged in” without the session’s environment variables, and an API error no longer being replaced by “prompt is too long” plus a needless compaction in sessions with many MCP tools. 2.1.308 (October 22, 04:19 UTC) is the one-line reliability release that became stable.275

Telemetry and the API skill. The claude_code.safety_event OpenTelemetry 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 (see the Environment Variables Reference). /claude-api api-version moves Claude API code to API version 2026-10-21, and /claude-api managed-agents-secure (v2.1.304) compares a Managed Agents agent’s settings with Anthropic’s published security guide without changing anything; the skill now builds Managed Agents subagent teams on multiagent_20261001 with dynamic workflows on by default (v2.1.309).275276

Fixes and behavior. CLAUDE_CODE_DISABLE_1M_CONTEXT with an alias carrying the [1m] suffix, such as opus[1m], no longer produces a model-not-found error; the prompt-caching-scope beta header is no longer sent behind custom ANTHROPIC_BASE_URL gateways or on Foundry; MCP servers that could not be reached while the macOS login keychain was locked now say why, and the next run after an unlock connects without a new sign-in; HTTP MCP tool calls are no longer sent twice when the connection closes mid-call, as only read-only or idempotent tools are retried; “Autocompact is thrashing” errors in turns that read many PDF pages or images are fixed; unparseable tool calls are retried up to twice before the turn ends with an error; fork subagents launched together are each told which launch is their own; /permissions > Recently denied shows the denied shell command; the axScreenReader setting and CLAUDE_AX_SCREEN_READER in a settings env block apply only from user, managed, or --settings settings (since 2.1.305); and self-hosted runner checkout hooks are stopped after 30 minutes by default (--checkout-hook-timeout-min, 0 for no limit). Code Review gains @claude review stop (also off and pause) to end an @claude review always subscription.275

What’s New in v2.1.304 and v2.1.305

Claude Code 2.1.304 shipped on October 19, 2026 (npm 19:47 UTC; GitHub release 21:34 UTC) and 2.1.305 on October 20 (npm 19:29 UTC; GitHub release 20:46 UTC); 2.1.303 (October 18) is a one-line reliability release.275

Auto mode setup and /usage fixes. /auto-mode-setup is a guided setup that reads your project and recent sessions to draft autoMode.environment entries; v2.1.304 made it available on Bedrock, Vertex, Foundry, the Claude apps gateway, and telemetry-disabled sessions, and the auto-mode configuration docs give earlier floors by plan (v2.1.228 on Pro, Max, Ultra, and Team; v2.1.283 on Enterprise and Console).551 /usage (v2.1.305) turns each warning into a one-line fix that names its source, and f applies the fixes, which also appear in VS Code and /doctor; /usage also says when a rate limit on usage data ends. On Pro and Max, resuming an inactive conversation that would use a noticeable share of the 5-hour usage limit now shows a warning with the option to start a new conversation instead (v2.1.304). See Auto Mode and the /usage row under Slash Commands.275276

Settings and environment. sandbox.allowNestedUserNamespaces (v2.1.305) lets sandboxed commands on Linux create user namespaces for Chromium, at the cost of letting them around the sandbox’s file protections; for rootless Podman, which the release note also named, the docs now say the setting alone is not enough and to add a sandbox.excludedCommands pattern.473 CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS (v2.1.305) makes unattended retry mode notice a usage limit that was lifted before its reset. CLAUDE_CODE_AUTO_COMPACT_WINDOW accepts k and M suffixes like --autocompact and warns on out-of-range values (200k had silently set a 100K window). allowedMcpServers stops filtering managed-mcp.json stdio servers that use ${VAR} only in env, so one your allowlist left out loads on upgrade (use deniedMcpServers to keep it off). Tool search is on by default behind a custom ANTHROPIC_BASE_URL (v2.1.304), and v2.1.305 fixed the 2.1.304 regression that failed every request on Vertex, Bedrock, and other providers whose endpoint rejects tool search: Claude Code now retries without it. Plugins Claude Desktop mounts by path lose their allowed-tools under allowManagedPermissionRulesOnly. All of these are in the docs as of October 23 except the tool-search default.275276

Mods, skills, and hooks. A mod’s tool.check event carries e.isReadOnly, its answer can set decider: "person" so only the permission dialog or a host callback can approve, settings.read hooks receive each settings layer and rewrite the merged settings, a transcript line names a plugin that skipped one of your hooks, and a docked pane stays within 45% of the terminal width (v2.1.305). Compaction sends Claude the skill list again afterwards and /reload-skills sends only new or changed skills; the skills of one source can register at most 1,024 hooks and 16,384 matcher characters per session; a skill’s once hook no longer removes another skill’s identical hook. Workflow resume serves completed pipeline() and parallel() agents from the run’s journal instead of re-running them (v2.1.305); self-paced /loop wakeups at the 1-hour maximum no longer land just after the prompt cache expires; claude --worktree no longer removes the worktree and its branch without asking at exit when HEAD was detached or on another branch; rm -r of a mounted drive or a folder at its top level gets the safety prompt; and Code Review gains review levels (Quick, Standard, Deep) and an option to review every repository in a GitHub organization. The /fast dialog drops its “(research preview)” label on Opus 5.5.275

What’s New in v2.1.302

Claude Code 2.1.302 shipped on October 16, 2026: npm published it at 16:48 UTC and the GitHub release followed at 20:53 UTC; npm latest and next both pointed at it while stable stayed at 2.1.292. It followed 2.1.301 (October 15); nothing was skipped.272273

claude -p and the SDK start in Manual again. A claude -p or Agent SDK session with no permission mode now starts in default (Manual) on third-party providers, with telemetry off, and on a fresh install; --permission-mode auto keeps auto. That reverses the v2.1.285 rule under which those sessions started in auto mode, and leaves interactive terminal and VS Code sessions where they were: auto mode on every plan and provider. See Permission Modes.272273

Fork subagents and background defaults. Fork subagents (subagent_type: "fork") are on by default in claude -p, the Agent SDK, the desktop app, and VS Code, as they already were in the terminal; CLAUDE_CODE_FORK_SUBAGENT=0 turns them off, and claude mcp serve never offers them. The desktop app and VS Code now always run the main conversation’s subagents in the background, as the terminal does, instead of letting Claude choose, while a subagent’s own Agent calls in claude -p, the SDK, the desktop app, and VS Code run in the foreground by default. Prompt and agent hooks now run at most 12 of one event at a time; the rest wait their turn (raised to 24 at a time per session in v2.1.312). See What Are Subagents?.272273

Auto mode and compaction. CLAUDE_CODE_AUTO_MODE_MODEL picks the model the client-side auto mode classifier uses; it does not change the model for server-side 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. /config gains an Idle compaction row for turning idle compaction off or back on, and the notice shown after an idle compaction says how to turn it off. The “Prompt is too long” error when stopping a turn mid-compaction is fixed, and /autocompact and /effort save to the right model when a gateway names Opus 4 or 4.1 with a prefix such as anthropic/claude-opus-4-1.272

Claude Design closes by December 14, 2026. /design-sync and /design-login now show a notice that standalone Claude Design (claude.ai/design) closes by that date, and /design consent and /design revoke point cloud sessions at claude.ai/design/settings instead of /design-login. See the /design row under Slash Commands.272

Fixes worth knowing. The Read tool no longer loads an image of any size, or a pipe or device named like an image, entirely into memory: image sources over 128 MB are refused. A tool added mid-session and loaded again through ToolSearch or after compaction no longer causes a prompt cache miss. claude plugin and other subcommands wait for a queued settings or config write to finish before exiting, so a change is no longer lost or left as a .tmp file. Plugin marketplaces no longer re-clone on every refresh, and git plugins no longer show version “unknown”, when git defaults to the reftable ref format; worktree isolation works under git 2.56 or later when a stray .git file points at a missing directory. MCP servers that negotiate protocol version 2026-07-28 but omit resultType, ttlMs, or cacheScope now show their tools. Prompt suggestions are skipped after a reply billed to usage credits. Requests no longer fail with “diagnostics: Extra inputs are not permitted” after switching to Vertex or Bedrock mid-session. Startup with many plugins is faster, most of all on Windows, and file writes on exFAT or FAT32 drives on Windows are no longer refused.272

Cloud sessions and Claude Tag. A routine’s page shows a banner saying why its last run did not start, such as the organization’s limit on concurrent cloud sessions; “Rewind to here” works on every message (self-hosted runners need v2.1.246 or later); a run that failed partway is no longer repeated from the start an hour later; and a cloud session’s cost and usage no longer restart from zero after it resumes in a new process. Claude Tag admin settings are reorganized into Bundles, Connectors, Skills and plugins, and Channels tabs; HEIC, SVG, TIFF, and BMP images attached in Slack now reach Claude as files; and the manager role now also grants Claude Tag in Slack where organizations restrict it by role.272

What’s New in v2.1.301

Claude Code 2.1.301 shipped on October 15, 2026 (npm 14:34 UTC; GitHub release 19:22 UTC). npm latest moved on to 2.1.302 the next day, so the two releases are covered together here.272

Unattended retries get a usage-limit cap. CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS makes unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) end a request at a usage limit that resets too far away instead of waiting; it sits beside CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS in the Environment Variables Reference. Also for operators: switching to a model with a smaller context window now has the previous model summarize a conversation too long for the new one, instead of usage credits being spent on a summary without asking; the fable and best aliases retry once on the previous Fable model when the newest one is not available to your organization; and a conversation behind an LLM gateway whose responses name a different model than the one requested is no longer compacted over and over.272

Telemetry, vim, and mods. OpenTelemetry tool_decision events gain classifier_verdict and permission_mode, so auto mode classifier decisions can be told apart from permission rules, and classifier_category, naming the built-in rule a classifier block matched, when OTEL_LOG_TOOL_DETAILS=1. Vim mode gains the % motion: jump to the matching bracket, alone or with d, c, or y (the interactive-mode docs already list it). Mods gain rows on Input for a text field of several lines in the terminal, where Enter submits and Shift+Enter, or a backslash before Enter, starts a new line; a mod hook’s .catch handler now runs only when the hook throws or times out; $.env.set resolves with {} once the variable is set or unset, or with { deny } saying why; $.model.fork no longer returns nothing-to-fork before the first response of a new process; and in VS Code and the desktop and mobile apps a tree drawn above the question dialog can hold Markdown and up to 48 rows. See Mods and Vim Mode.272273

Fixes worth knowing. Quitting no longer removes a worktree made by a WorktreeCreate hook without asking when it may hold unpushed commits. Grep and Glob report an error when the search program fails instead of “no matches”. Skills and commands with very many or very long argument names no longer stall for seconds: only the first 64 names, each up to 64 characters, are filled in. The Read tool no longer reads binary files such as .xlsm, .parquet, .epub, and .heic as text. Skills are listed to the model again after /rewind. A tool call cut off by a message sent mid-turn during its permission check is no longer reported to the model as rejected by you. Esc in vim mode no longer discards a typed AskUserQuestion answer: the free-text field supports NORMAL mode, and Esc cancels only from there. A full disk now produces an error naming the disk instead of a misleading “Please run /login”. Self-hosted runners started from Slack can attach a repository when managed settings restrict MCP servers (use deniedMcpServers to keep those tools off). VS Code renders LaTeX math in replies, including $$ and \[ ... \] blocks, and shows a “Get more usage” link on the usage-limit banner for Pro and Max.272

What’s New in v2.1.300

Claude Code 2.1.300 shipped on October 14, 2026, hours after 2.1.299: npm published it at 14:27 UTC under next, the GitHub release followed at 18:24 UTC, and by evening npm latest and next were both 2.1.300 while stable moved from 2.1.287 to 2.1.292. Nothing was skipped.270

The advisor tool reaches Claude Platform on AWS. /advisor now works 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 the tool off. The tool itself, which lets Claude consult a second model at decision points, predates this release and is described under The Advisor Tool.270271

Mods and telemetry. Mods gain virtualText prompt decorations (text drawn in the prompt box that never enters the draft), $.ui.view({ agentId }) to show an agent’s transcript in the main view ($.ui.view({}) goes back), a dir prop on Text for right-to-left rows, and the prompt.change hook for prompt-box changes that are not typed edits (a recalled history entry, a clear, an undo, a plugin’s fill); agent.spawn can now rewrite a workflow agent’s prompt and model instead of only refusing it. OpenTelemetry api_request events split cache writes into cache_creation_5m_tokens and cache_creation_1h_tokens, trace spans carry GenAI semantic-convention attributes such as gen_ai.provider.name, gen_ai.conversation.id, gen_ai.tool.name, and error.type, and a prompt a mod’s prompt.submit hook rewrote or dropped is no longer recorded as typed in the user_prompt event. Local transcripts now also record each API request’s system prompt, tools, and parameters, so a transcript you share can reproduce a request exactly (see Mods and Telemetry).270271

Operations and behavior changes. Large requests to api.anthropic.com use gzip even with telemetry off; CLAUDE_CODE_GZIP_REQUEST_BODIES=0 turns it off. updatedInput from PreToolUse and PermissionRequest hooks is validated like Claude’s own input: unknown keys are dropped and input the tool rejects denies the call. Exit force-kills background commands still running 1.5 seconds after being asked to stop. claude remote-control drops its --sandbox and --no-sandbox flags, which had no effect; passing either exits with an error, and sandbox.enabled in settings is the way to sandbox such sessions. Sessions under CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST ignore CA-bundle, tool-proxy, git TLS, and git config variables such as SSL_CERT_FILE in settings. In Cowork cloud sessions a PermissionRequest hook’s setMode is ignored while the rest of its approval applies. Claude Desktop’s Code tab applies managed settings when forceLoginGatewayUrl names an Anthropic-operated gateway that serves the session’s hostname, and claude gateway stops at start on a desktop: policy key it cannot use. The /sandbox options read “Sandbox commands”. VS Code gains claudeCode.attachSelection to keep editor selections out of your messages. In Slack, Claude Tag can answer in Slack Connect channels when an admin allows it.270

Fixes worth knowing. SessionEnd hooks run when you exit while a background command is still running; ENABLE_TOOL_SEARCH=auto no longer turns off part-way through a conversation; a login that forceLoginOrgUUID refuses no longer leaves that organization’s token stored; headless and SDK sessions resumed after a compaction keep the messages it preserved and its summary; a conversation no longer fails every turn with a 400 when the API rejects an MCP tool’s input schema (the tool is sent without parameters instead); agent hooks honor their model; --worktree sessions start from the right commit when a tag or branch is named like a commit ID and reopen in reftable repositories; claude daemon stop --any waits, force-kills a stuck service, and exits 1 if it is still there; Write and Edit in Cowork cloud sessions no longer report success for a path on your own computer; cloud sessions no longer hang five minutes per turn when the organization’s policy cannot be read; and self-hosted runners no longer freeze when nobody reads their output.270

What’s New in v2.1.299

Claude Code 2.1.299 shipped on October 14, 2026 (npm 00:23 UTC; GitHub release 02:49 UTC). 2.1.297 and 2.1.298 were never published, so nothing is skipped. npm latest was 2.1.299 until 2.1.300 was promoted later that day (see What’s New in v2.1.300).268270 Upgrade from 2.1.296: this release fixes two regressions from it, Edit and Retry failing in Cowork and claude.ai cloud sessions on a message stopped while its UserPromptSubmit or mod prompt.submit hooks were running, and cloud or headless sessions running an approved tool call twice when a new message arrived as the session resumed after a restart.

Idle compaction (v2.1.299). A terminal conversation of 200K or more tokens left idle for about 54 minutes is now compacted before its one-hour prompt cache expires, so the next message does not reprocess the whole context. CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS changes the 200K minimum (values below 100,000 are raised to 100,000) and "idleCompaction": false in settings.json turns it off; the settings reference and the env-vars page list both and date them to v2.1.290 or later. CLAUDE_CODE_DISABLE_FILE_MENTIONS=1 makes an @ mention hand Claude the path to read with its file tools instead of the file’s contents, so your PreToolUse hooks run on the read; project and local settings cannot set it (see Environment Variables Reference).268269 v2.1.302 adds an Idle compaction row to /config for turning it off or back on, and the notice shown after an idle compaction says how.272

Permissions and MCP. An allow rule such as mcp__a now reaches only the server named a, not a__b or a_; write mcp__<server>__* with the server’s whole normalized name, and list a server whose name contains __ the same way in an agent’s tools: list, which now contributes only that server’s tools. Deny and ask rules for a server whose normalized name contains a double underscore apply again. Tool descriptions and server instructions from Anthropic’s first-party MCP servers at api.anthropic.com reach Claude in full instead of being cut at 4,096 characters. Cloud session and Remote Control connectors negotiate MCP protocol 2026-07-28 by default on installs that fetch no flags (MCP_PROTOCOL_NEGOTIATION=legacy opts out), requests to claude.ai’s connector proxy and to Anthropic-hosted MCP servers no longer follow HTTP redirects, MCP OAuth now sends configured headers and headersHelper values, an empty .mcp.json is no longer reported as invalid, and servers named constructor or prototype connect. A sandboxed command can no longer write into a --plugin-dir folder or reach a denied path through a symlink, rm prompts no longer fire on a shell -c script that does not run rm, and an rm built at run time inside a script Claude Code cannot read prompts only with CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT=1.268

Hooks and mods. UserPromptSubmit hooks run before a skill or custom slash command expands, so a hook that blocks the prompt also stops its embedded shell commands, and a skill’s own front-matter UserPromptSubmit hook first runs on the prompt after the one that invokes it. A plugin hook that cannot be handed an action, or cannot hand back its answer, now refuses the action instead of letting it through; a tool that already ran has its result withheld. For mods, the turn.start hook also hears subagents’ and teammates’ turns (e.agentId tells them apart), skill.prompt receives the skill’s frontmatter, source, plugin name, and file path (the mods reference dates these to v2.1.299), $.prompt.media lets a managed-settings mod’s prompt.submit hook read an attached image or document, $.session.identity() reports how the session is signed in, Text takes size, weight, mono, and tabular and Box named spacing steps (bold is deprecated for weight), session.append gains a queue door, and agent.spawn fires on a resumed subagent or teammate with resume set. Mods turned off remotely unload between turns, and /plugin and claude plugin validate name hooks skipped where an organization manages Claude Code (see Mods).268269

Commands, surfaces, and operations. /usage warns about max effort, workflows, always-on context, and large tool results. In agent view, /effort and /fast set what new sessions start with, a bare /model, /effort, or /fast opens a picker, and the peek panel shows a safe-mode line for sessions started with --safe-mode. Plan mode prints a one-time note when it will not ask before most edits because bypass permissions is available. claude plugin eval takes --disallow-tools and a disallowed_tools case field, and a run that ends on an API error scores 0 and fails the suite. claude self-hosted-runner orchestrator --shutdown-drain-sec gives in-flight polls and spawn hooks time to finish on SIGTERM. Behind a Claude apps gateway, CLAUDE_CODE_ATTRIBUTION_HEADER=0 in the env of a code or cli policy removes the attribution block. In Cowork cloud sessions, a PermissionRequest hook can no longer approve shell commands or subagents in auto mode, and a Claude in Chrome action the safety classifier flags on an approved site asks you instead of being refused. The resume command printed at exit names the session by ID; /btw in non-interactive sessions times out after 11 minutes; a local session can watch 25 published artifacts, up from 10; and the cyber safeguard notice no longer asks you to apply to the Cyber Verification Program.268

Fixes worth knowing. Streams through a custom ANTHROPIC_BASE_URL wait 300 seconds for data instead of aborting at 180; feature-flag, startup, fast-mode, profile, and server-managed-settings requests to Anthropic no longer carry a third-party gateway’s API key; /usage and the status line no longer show more than 100% used; scheduled tasks and loops no longer fire again after every turn during the repeated hour when daylight saving time ends; memory no longer grows without bound under --debug or when a parent process stops reading stderr; SendMessage finds a subagent by name after a restart; Read handles UTF-16LE files with a byte-order mark and Write refuses to silently convert Windows-1252, Shift-JIS, GBK, or UTF-16BE files to UTF-8; and on Windows, PreToolUse and PermissionRequest hooks that set no shell block the call when Git for Windows is missing instead of failing open.268

What’s New in v2.1.293-v2.1.296

Four releases shipped between October 7 and October 9, 2026. npm latest and next are 2.1.296; stable moves from 2.1.285 to 2.1.287.235 The headline is a new model: Claude Haiku 5.5 arrives in v2.1.293 as what haiku selects on the Anthropic API (see Available Models). Upgrade to v2.1.296 if you sign in to a Claude apps gateway from managed settings: it fixes a v2.1.295 regression that ignored a saved gateway login when forceLoginMethod was gateway with no forceLoginGatewayUrl.

v2.1.296 (October 9):235237267269

  • Sonnet 5.5 cache reads are priced at $0.10 per million tokens in /cost, the status line, --max-budget-usd, and the SDK’s cost figures, which had used $0.20.
  • The default limit on MCP tool descriptions sent up front and on MCP server instructions rises from 2,048 to 4,096 characters.
  • Subagent frontmatter and --agents definitions take autoCompactWindow, so a subagent can auto-compact earlier than the main conversation.
  • CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL runs every workflow agent on one model while other subagents keep theirs, and CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS sets a longer maximum delay for the 529 backoff.
  • The Read tool takes allow_large, so Claude can read a text file past the usual size limit in one call when the context has room.
  • Managed-settings PreToolUse hooks that deny a tool call with "continue": false, and managed prompt hooks that block one, now end the turn as well as refusing the call.
  • --debug names unrecognized frontmatter fields in custom agent files and logs each command hook’s command, plugin, outcome, and duration.
  • A Claude apps gateway gains a code key under managed.policies[], the same settings as cli, also applied in Claude Desktop’s Code tab.
  • A turn or ! command started while ← moves the session to the background is now stopped instead of finishing out of sight.
  • The docs have since caught up on two of these: the hooks reference dates the per-hook --debug lines to v2.1.296, and the Claude apps gateway docs describe the code policy key; autoCompactWindow and CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS reached the sub-agents and env-vars docs by October 14; CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL remains release-notes only as of 2026-10-14.

v2.1.295 (October 8):235237

  • Command and HTTP hooks accept onFailure: "block": a hook that cannot start, times out, or exits with an unexpected code blocks the action instead of letting it through (see Hook Input/Output Protocol).
  • CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS caps how long unattended retry mode waits out 429 and 529 errors.
  • Subagents preload at most 32 skills from the skills field, and MCP tool descriptions loaded through tool search are cut at 16,384 characters instead of 2,048.
  • forceLoginMethod: "gateway" and forceLoginGatewayUrl now work in your own user settings on a machine with no managed settings, so /login opens on that gateway, a setup the gateway docs now describe; every gateway upstream takes an optional models list, with * as a wildcard, and cloud upstreams honor timeouts.upstream_ttfb_ms.
  • Terminals that implement the Program Status Protocol (OSC 7501) can show whether Claude Code is working, waiting on you, or done.
  • Background requests behind a Claude apps gateway use Haiku 4.5 instead of the session’s model where the gateway serves it.
  • A [1m] model whose context-1m beta a gateway, Bedrock, Vertex, or Foundry refuses is resent without it instead of failing.
  • Ctrl+C at the idle prompt of an attached background session leaves a pending /loop wakeup alone, so pressing it twice detaches and the loop keeps running; Esc stops it.
  • claude.ai connectors negotiate MCP protocol 2026-07-28 by default on installs that fetch no flags.
  • /copy offers quoted text, claude -p says on stderr what it is waiting for after its last turn, and mods gain $.ui.notify.
  • Web searches and agent hook evaluations no longer take much longer at xhigh and max effort.

v2.1.294 (October 8). Two fixes for prompt and agent hooks written as instructions: a hook such as “Block commands that…” no longer allows what it should block, and Stop and SubagentStop hooks such as “Carry on if the build is broken” are judged so that Claude is less likely to stop early.235

v2.1.293 (October 7). Claude Haiku 5.5 (claude-haiku-5-5) is the default Haiku model on the Anthropic API: 1M context, $0.10/$0.50 per million tokens, $0.50/$2.50 for prompts over 100K. The subagentStatusLine payload gains agentType, so a status line script can tell custom subagent types apart (the setting was removed in v2.1.323); mods gain isDeferred on $.tool.register. Two reverts: the v2.1.281 auto mode denial message, which told Claude a denial covers the outcome and not only the exact command, and the v2.1.290 cloud-session fix for a lost /loop wakeup after a container restart, so such a session stays asleep again. Also: Claude no longer treats its own last actions before a compaction as done after it, an HTTP MCP connection no longer keeps every request it sent until it closes, claude purge lists what it could not remove and exits 1 instead of stopping silently, claude.ai skill syncing checks every 40 minutes instead of 10 while no session is in use, and Team and Enterprise startup fetches policy and managed settings earlier, retrying a stalled request after 3 seconds.235237

What’s New in v2.1.288-v2.1.292

Five releases shipped between October 2 and October 6, 2026. npm latest and next are 2.1.292; stable stays at 2.1.285.231 Upgrade if you are on 2.1.288, 2.1.289, or 2.1.290: v2.1.291 fixes a 2.1.288 regression where the last messages of a session could be lost when quitting, and a 2.1.290 regression where cloud sessions could drop answers to permission prompts.232

v2.1.292 (October 6). Setting CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS gives the backoff for a retried overloaded (529) request a longer base delay; the env-vars docs now give the default, 500 ms, and the accepted range, 500 to 32000. The Agent tool takes an effort parameter, so Claude can run a sub-agent at the effort level you ask for; the subagents docs now document the per-invocation parameter, which overrides the frontmatter field and stays in effect when the subagent is resumed, with CLAUDE_CODE_EFFORT_LEVEL taking precedence over both. claude plugin install --marketplace <source> adds a marketplace and installs from it in one shell command. Local (stdio) MCP servers now negotiate protocol 2026-07-28 by default on every install, Bedrock, Vertex, and Foundry included, with MCP_PROTOCOL_NEGOTIATION=legacy as the opt-out; the MCP docs now say stdio servers are asked for that revision by default. Agent names are capped at 256 characters: a longer one is rejected, a longer name in a skill or plugin file is ignored, and the subagents docs now state the cap on the name field, with a subagent file whose name runs longer skipped and an error written to the debug log. A security fix stops PreToolUse hook approvals and auto mode from bypassing the prompt for file reads from network (UNC) paths. Mods gain prompt.autocomplete, prompt caching in $.model.complete, and workflow agents in agent.spawn, and claude plugin test now fails on a refused stub answer. The remaining items were release-notes only as of 2026-10-06.233234237

v2.1.290 (October 5). The interactive WebSearch budget refills at 100 calls per hour (CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR; 0 turns it off) instead of ending after 200 calls. claude attach and claude logs accept part of a session name. /claude-api managed-agents-onboard <url> turns a page that describes the Managed Agents pattern into ant apply files, and /claude-api managed-agents-onboard <quickstart-name> builds a Console quickstart template such as deep-researcher with the ant CLI. Several defaults tighten: a project’s settings can no longer turn on Claude in Chrome, a repository’s .claude/settings.json or .claude/settings.local.json can no longer set CLAUDE_CODE_DISABLE_ATTACHMENTS, pyright and more forms of ps ask before running, and a managed settings file that links outside the managed settings folder triggers a warning. WebFetch now says how much of a page past 100,000 characters went unread and takes an offset to read on, where it used to drop that text silently. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC also skips the startup connection warm-up, and CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS=5m is no longer read as 5 ms: values with a unit suffix fall back to the dialogExpiry setting.232234

v2.1.290, teams and gateways. The Claude apps gateway’s sign-in approval page gains a Deny button, and its minimum supported PostgreSQL version drops from 14 to 11. On self-hosted runners, claude --environment <id> creates its session through the current Sessions API. claude --teleport and /teleport refuse a stash that would delete files in a folder that replaced a tracked file of the same name, and the --channels relay ignores a repeated reply ID instead of approving a different prompt. In Slack, !fast switches a thread to fast mode and !fast off switches back. VS Code shows message timestamps by default (the Claude Code: Show Message Timestamps setting turns them off).232

v2.1.289 (October 3). Mods get agent.spawn for teammates, one agent id across plugin hook events, and idle and waiting states in $.agent.list(); claude plugin validate no longer skips a plugin whose folder also holds a marketplace manifest; and two Bash deny-rule gaps under sandbox auto-allow are closed.232234

v2.1.288 (October 2). claude project purge is now claude purge; the old name still works and prints a notice. The background command time limit applies only in unattended sessions (-p, the Agent SDK, CI, cloud). /code-review --max-findings <n>|all changes the findings limit until you pass --max-findings default. /autocompact saves its window per model. CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS turns structured outputs off for Mantle or gateways that reject them. Path-scoped rules and nested CLAUDE.md files load on Write and Edit, not only Read. Language servers time out after 60 seconds (per-server requestTimeout) instead of hanging. In auto mode, a conversation too long for the client-side classifier is compacted instead of prompting for every tool call, and the client-side classifier ignores an ANTHROPIC_DEFAULT_SONNET_MODEL pin naming Claude Sonnet 5.5 or Opus 5.5 and uses Claude Sonnet 5 instead. Mods get $.ui.selection(), cloud sessions without the GitHub CLI get a built-in gh api, and pressing Up on an empty prompt restores a draft Ctrl+C cleared.231234

New Commands in v2.1.105–v2.1.114144148

Command Version What it does
/recap v2.1.108+ Generates a one-line summary of the current session on demand; the automatic recap appears after you have been away and is on by default. Turn the automatic recap off in /config; CLAUDE_CODE_ENABLE_AWAY_SUMMARY=0 forces recaps off, and =1 forces them on when awaySummaryEnabled is false.413
/ultrareview v2.1.111+ (updated v2.1.113) Cloud-run multi-agent code review. Without args reviews the current branch; pass <PR#> to fetch a specific GitHub PR. v2.1.113 speeds up launch with parallelized checks, adds a diffstat in the launch dialog, and shows an animated launching state. Pro, Max, and Ultra subscribers get 3 free cloud reviews, a one-time allotment per account; after that a review bills as usage credits.298 Today the preferred invocation is /code-review ultra, with /ultrareview kept as an alias.301 As of v2.1.309 claude ultrareview requires workspace trust: it asks on a terminal and refuses otherwise; scripts pass --trust-workspace (no value; put a PR number or base branch before it) or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1275276
/fewer-permission-prompts v2.1.111+ (shipped as /less-permission-prompts) Scans your transcripts for common read-only Bash and MCP tool calls, then adds a prioritized allowlist to the project’s .claude/settings.json.301
/tui / /tui fullscreen v2.1.110+ (banner updated v2.1.132) /tui fullscreen switches to the flicker-free renderer and /tui default (also /tui classic from v2.1.327) switches back, relaunching with the conversation intact; /tui alone prints the active renderer.413 Matching tui setting for persistent preference. v2.1.132 updates the startup banner to describe the renderer’s lower memory usage, mouse support, and auto-copy on select.156 As of v2.1.260, fullscreen mode can also show a live diff panel beside the conversation – your uncommitted changes as Claude edits – toggled with /diff (see Slash Commands). In fullscreen, Ctrl+L and Cmd+K redraw the screen without clearing the transcript, as they do outside fullscreen (v2.1.280+).209217
/focus v2.1.110+ Enter focus mode. Now separated from Ctrl+O, which toggles normal vs. verbose transcript only.
/undo v2.1.108+ Alias for /rewind.
/proactive v2.1.105+ Alias for /loop. v2.1.113 adds Esc-to-cancel on the “next tick” countdown.
/effort (no args) v2.1.111+ Opens an interactive effort slider (arrow keys + Enter). Also accepts direct args: /effort xhigh.
/extra-usage v2.1.113+ (Remote Control client support) Works from Remote Control (mobile/web) clients, not just the local terminal. Renamed /usage-credits in v2.1.144; the old name still works.301

Session Recap (v2.1.108+)

A new session-level feature that surfaces context when you return to a paused session. Enabled by default and opt-outable via /config or CLAUDE_CODE_ENABLE_AWAY_SUMMARY=0. The model can also invoke built-in slash commands (/init, /review, /security-review) via the Skill tool — extends the subagent/skill pattern.144

Push Notifications (v2.1.110+)

When Remote Control is configured with “Push when Claude decides” enabled, Claude can now send mobile push notifications at its own discretion via a new push-notification tool. Pairs with the existing Remote Control mobile/web surface.144 /context, /exit, and /reload-plugins now also work from Remote Control clients.

Windows PowerShell Tool (v2.1.111+, rollout)

Claude Code has a native PowerShell tool; it began as a gradual rollout in v2.1.111.144 On Windows without Git Bash it is enabled automatically, and with Git Bash installed it is on by default for claude.ai and Console accounts; CLAUDE_CODE_USE_POWERSHELL_TOOL=0 turns it off, and =1 turns it on in Bedrock, Google Cloud’s Agent Platform, and Foundry sessions. On Linux, macOS, and WSL, set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 (requires pwsh on PATH).414

Permission-mode auto-approval (v2.1.119+). PowerShell tool commands can now receive auto-approval in permission mode the same way Bash commands do. Allow rules like PowerShell(Get-*:*) and the existing pattern syntax now bypass the prompt for read-only operations, matching the operator ergonomics teams already get on Linux/macOS.149

Permission Reduction: Read-Only Bash (v2.1.111+)

Read-only Bash patterns with glob arguments (e.g. ls *.ts, cat src/*.md) and commands starting with cd <project-dir> && no longer trigger a permission prompt.144 Combined with /fewer-permission-prompts (named /less-permission-prompts when it shipped), expect significantly fewer interruptions in everyday workflows.301

Distributed Tracing (v2.1.110+)

SDK and headless sessions now read TRACEPARENT and TRACESTATE from the environment, linking Claude Code runs into distributed traces. Pair with OTEL_LOG_RAW_API_BODIES=1 (v2.1.111+) to emit full API request/response bodies as OpenTelemetry log events for debugging.144

Native Binary Distribution (v2.1.113+)148

v2.1.113 changes how the CLI launches: claude now spawns a native Claude Code binary via a per-platform optional dependency instead of running bundled JavaScript. Installation and update commands stay the same, and teams do not need to change rollout scripts.

Prompt Editor Shortcuts (v2.1.113+)148

The prompt editor gains readline-style navigation in multiline input, plus fullscreen viewport scrolling:

Shortcut Effect
Shift+↑ / Shift+↓ (fullscreen) Scrolls the viewport when extending a selection past the visible edge.
Ctrl+A Moves to the start of the current logical line (readline-style).
Ctrl+E Moves to the end of the current logical line (readline-style).
Ctrl+Backspace (Windows) Deletes the previous word.

These are on by default. No keybinding config required.

Subagent Stall Timeout (v2.1.113+)148

Subagents that stall mid-stream now fail with a clear error after 10 minutes instead of hanging silently. Pair with CLAUDE_STREAM_IDLE_TIMEOUT_MS (v2.1.84+) for broader stuck-process coverage on streaming APIs.

v2.1.114 Stability Fix148

v2.1.114 (April 18, 2026) ships a single fix: the permission dialog could crash when an agent-teams teammate requested tool permission. Upgrade if you use Agent Teams.


References


  1. Pricing, Claude API documentation, fetched November 10, 2026 (first cited in December 2025; the figures quoted are today’s). Model pricing table, base input and output: Claude Fable 5.2 “$8 / MTok” and “$40 / MTok”; Claude Opus 5.5 “$4 / MTok” and “$20 / MTok”; Claude Sonnet 5.5 “$2 / MTok” and “$10 / MTok”; Claude Haiku 5.5 “$0.10 / MTok” and “$0.50 / MTok” for prompts up to 100,000 tokens. “Web fetch usage has no additional charges beyond standard token costs”; “Code execution is free when used with web search or web fetch.”; “A web search that fails with an error is not billed.” ↩↩↩↩

  2. Claude Code Subagents. Subagents Documentation. December 2025. ↩

  3. Claude Code Docs. Hooks Guide. Redirected from docs.anthropic.com December 2025; canonical URL updated February 2026. ↩↩↩↩↩↩

  4. Anthropic. “Claude Code Best Practices.” April 2025. Note: Original URL now redirects to code.claude.com/docs (content merged into main docs). See also Claude Code Docs. ↩

  5. Claude Code CHANGELOG, fetched November 11, 2026. 2.0.70: “Added Enter key to accept and submit prompt suggestions immediately (tab still accepts for editing)”; 2.0.71: “Added /config toggle to enable/disable prompt suggestions”. Today’s behavior is in Interactive mode: Prompt suggestions, Claude Code documentation, same fetch: “After Claude responds, Claude Code can suggest your next prompt based on your conversation history”; “Press Tab or Right arrow to place the suggestion in the prompt input, then Enter to submit”. See also TechCrunch, December 8, 2025, on the Slack launch of the same month. ↩↩

  6. Claude Code and Slack, Claude, December 8, 2025, fetched November 11, 2026 (the earlier claude.com/blog address redirects here): “Now in beta as a research preview, Claude makes it easy to move context from Slack conversations to coding sessions.” ↩

  7. Claude Code CHANGELOG, 0.2.32 added the “Interactive MCP setup wizard” (run claude mcp add “to add MCP servers with a step-by-step interface”); 0.2.108: “Deprecated MCP wizard interface in favor of other MCP commands”. Today claude mcp add needs a name and a target: Connect Claude Code to tools via MCP, Claude Code documentation, fetched November 10, 2026, gives claude mcp add --transport http <name> <url> for a remote server and claude mcp add [options] <name> -- <command> [args...] for a local one. ↩↩

  8. Pricing, Claude API documentation, tool sections, fetched November 10, 2026: “Web search is available on the Claude API for $10 USD per 1,000 searches, plus standard token costs for search-generated content”; “A web search that fails with an error is not billed”; “Web fetch usage has no additional charges beyond standard token costs”; Bash tool, additional input tokens: “325 tokens” on “Claude 4.7 and later models and Claude Mythos Preview” and “244 tokens” on “Claude 4.6 and earlier models”; text editor tool text_editor_20250728: “974 tokens” on Claude 4.7 and later models and “745 tokens” on Claude 4.6 and earlier models. ↩

  9. Anthropic. “Enabling Claude Code to work more autonomously.” September 29, 2025, fetched November 11, 2026. “Background tasks keep long-running processes like dev servers active without blocking Claude Code’s progress on other work”. ↩↩

  10. Claude Code Docs. Memory Rules Directory. December 2025. ↩↩

  11. Claude Code CHANGELOG, section 1.0.81, fetched November 11, 2026: “Released output styles, including new built-in educational output styles “Explanatory” and “Learning”.” ↩↩

  12. GitHub CHANGELOG. “Pro users now have access to Opus 4.5 as part of their subscription.” December 2025. ↩

  13. Northflank. “Claude Code: Rate limits, pricing, and alternatives.” Will Stewart, July 31, 2025, fetched November 10, 2026. A secondary report of an Anthropic announcement on X: “The new limits, effective August 28, 2025, include:” “Weekly caps that reset every seven days”, “Separate limits for overall usage and Claude Opus 4 specifically”, and “Max subscribers can purchase additional usage, beyond what the rate limit provides, at standard API rates”. ↩↩

  14. Claude Code on the web, Claude, October 20, 2025, fetched November 11, 2026 (the earlier claude.com/blog address redirects here): “As part of this research preview, we’re making Claude Code available on our iOS app so developers can explore coding with Claude on the go.” ↩↩

  15. Claude Code on the web, Claude (the earlier claude.com/blog address redirects here). The page’s update of November 12, 2025, as the Internet Archive capture of January 27, 2026 shows it: “Claude Code on the web is now available in research preview for Team and Enterprise users with premium seats, in addition to Pro and Max users.” ↩

  16. Claude Code CHANGELOG, section 2.0.72, fetched November 11, 2026: “Added Claude in Chrome (Beta) feature that works with the Chrome extension (https://claude.ai/chrome) to let you control your browser directly from Claude Code”. ↩↩↩

  17. Claude Code CHANGELOG, section 2.0.74, fetched November 11, 2026: “Added LSP (Language Server Protocol) tool for code intelligence features like go-to-definition, find references, and hover documentation”; “Added /terminal-setup support for Kitty, Alacritty, Zed, and Warp terminals”. ↩↩↩

  18. Claude Code is coming to Slack, and that’s a bigger deal than it sounds, TechCrunch, December 8, 2025. ↩↩

  19. Claude Code CHANGELOG, section 0.2.44, fetched November 11, 2026: “Ask Claude to make a plan with thinking mode: just say ‘think’ or ‘think harder’ or even ‘ultrathink’”. ↩

  20. Remote MCP support in Claude Code, Claude, June 18, 2025, fetched November 11, 2026: “Claude Code also features native OAuth support for remote MCP servers, ensuring secure connections to your existing accounts.” ↩↩

  21. Claude Code CHANGELOG, section 2.0.64, fetched November 11, 2026: “Added named session support: use /rename to name sessions, /resume <name> in REPL or claude --resume <name> from the terminal to resume them”. ↩

  22. Claude Code CHANGELOG, section 2.0.73, fetched November 11, 2026: “Added search filtering to the plugin discover screen (type to filter by name, description, or marketplace)”; “Added support for custom session IDs when forking sessions with --session-id combined with --resume or --continue and --fork-session”. ↩

  23. Anthropic Engineering. Agent Skills: reusable task-specific modules. December 2025. ↩↩

  24. Building agents with the Claude Agent SDK, Claude, fetched November 11, 2026: “we’re renaming the Claude Code SDK to the Claude Agent SDK”. ↩↩

  25. Apidog. Claude Code 2× usage limits for Pro/Max subscribers Dec 25-31, 2025. December 2025. ↩

  26. Claude Code CHANGELOG, fetched November 11, 2026. 2.0.73: “Added clickable [Image #N] links that open attached images in the default viewer”. 2.0.74: “Added ctrl+t shortcut in /theme to toggle syntax highlighting on/off”; “Improved /context command visualization with grouped skills and agents by source, slash commands, and sorted token count”. ↩↩

  27. Claude Code CHANGELOG, section 2.0.72, fetched November 11, 2026: “Improved @ mention file suggestion speed (~3× faster in git repositories)”; “Improved file suggestion performance in repos with .ignore or .rgignore files”. That the @ file picker applies the rules in those files is plain from a later repair, 2.1.311: “Fixed the @ file picker ignoring .ignore/.rgignore negation rules that re-include git-ignored files”. ↩↩

  28. GitHub Claude Agent SDK. Claude Agent SDK v0.1.74 in parity with Claude Code v2.0.74. January 2026. ↩

  29. 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”. ↩↩↩

  30. Datadog Security Labs. “CVE-2025-52882: WebSocket authentication bypass in Claude Code extensions.” August 26, 2025. “This vulnerability has been fully patched in versions 1.0.24 and later, and all vulnerable versions have been removed from extension stores.” ↩↩

  31. Claude Code CHANGELOG, fetched November 11, 2026. 2.1.2: “Added clickable hyperlinks for file paths in tool output in terminals that support OSC 8 (like iTerm)”; “Added support for Windows Package Manager (winget) installations with automatic detection and update instructions”; “Added Shift+Tab keyboard shortcut in plan mode to quickly select “auto-accept edits” option”; “Added agent_type to SessionStart hook input, populated if --agent is specified”; “Fixed a command injection vulnerability in bash command processing where malformed input could execute arbitrary commands”. Earlier releases: 2.0.72, “Changed thinking toggle from Tab to Alt+T to avoid accidental triggers”; 2.0.70, “Added wildcard syntax mcp__server__* for MCP tool permissions to allow or deny all tools from a server”; 2.1.0, “Fixed PreToolUse hooks to allow updatedInput when returning ask permission decision”. ↩↩↩

  32. Pricing, Claude API documentation, code execution tool section, fetched November 11, 2026: “Code execution is free when used with web search or web fetch.”; “Each organization receives 1,550 free hours of usage per month.”; “Additional usage beyond 1,550 hours is billed at $0.05 USD per hour, per container.” ↩↩

  33. Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added hooks support to agent frontmatter, allowing agents to define PreToolUse, PostToolUse, and Stop hooks scoped to the agent’s lifecycle”; “Added hooks support for skill and slash command frontmatter”; “Added support for once: true config for hooks”. That section lists 109 changes. A 2.1.1 followed on npm on January 7, 2026 and has no CHANGELOG section. ↩↩

  34. Builder.io, fetched November 11, 2026: Figma’s “official Dev Mode MCP server exposes the live structure of the layer you have selected in Figma”, which the article lists as hierarchy, auto-layout, variants, text styles and token references. ↩↩

  35. Apidog, fetched November 11, 2026: “The Sequential Thinking MCP server equips Claude Code with structured problem-solving capabilities.” ↩

  36. Claude Code CHANGELOG, section 2.1.3, fetched November 11, 2026: “Merged slash commands and skills, simplifying the mental model with no change in behavior”; “Added release channel (stable or latest) toggle to /config”; “Changed tool hook execution timeout from 60 seconds to 10 minutes”. ↩

  37. Beyond permission prompts: making Claude Code more secure and autonomous, Anthropic Engineering, published October 20, 2025, fetched November 10, 2026: “In our internal usage, we’ve found that sandboxing safely reduces permission prompts by 84%.” Introducing Claude Opus 4.5, Anthropic, fetched November 10, 2026: “Set to a medium effort level, Opus 4.5 matches Sonnet 4.5’s best score on SWE-bench Verified, but uses 76% fewer output tokens.” The post’s SWE-bench Verified chart, an image, labels Opus 4.5 at 80.9%. ↩↩

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

  39. Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added support for running skills and slash commands in a forked sub-agent context using context: fork in skill frontmatter”; “Improved subagents (Task tool) to continue working after permission denial, allowing them to try alternative approaches”. VentureBeat covered the release: Claude Code 2.1.0 arrives with smoother workflows and smarter agents, Carl Franzen, January 8, 2026, read in the Internet Archive capture of January 10, 2026: “allowing subagents to try alternative approaches rather than stopping entirely”. ↩↩

  40. GitHub Releases. v2.1.7: MCP tool search auto mode enabled by default, showTurnDuration setting, inline agent response in task notifications, security fix for wildcard permissions. January 2026. ↩↩

  41. GitHub Releases. v2.1.6: /config search, /doctor Updates section, /stats date range filtering, nested skills discovery, context_window percentage fields, shell line continuation security fix. January 2026. ↩

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

  43. Claude Code CHANGELOG, section 2.1.9, fetched November 11, 2026: “Added support for PreToolUse hooks to return additionalContext to the model”; “Added ${CLAUDE_SESSION_ID} string substitution for skills to access the current session ID”; “Added auto:N syntax for configuring the MCP tool search auto-enable threshold, where N is the context window percentage (0-100)”; “Added plansDirectory setting to customize where plan files are stored”. ↩↩↩↩

  44. Wikipedia: Claude (language model), fetched November 11, 2026: “Claude Cowork is a tool similar to Claude Code but with a graphical user interface, aimed at non-technical users.” ↩

  45. Claude Code Analytics API, Anthropic platform docs, fetched November 10, 2026. “Programmatically access your organization’s Claude Code usage analytics and productivity metrics with the Claude Code Analytics Admin API.” ↩↩↩

  46. Claude Code just got updated with one of the most-requested user features, Carl Franzen, VentureBeat, January 15, 2026, read in the Internet Archive capture of January 19, 2026, quoting Boris Cherny: “Every Claude Code user just got way more context, better instruction following, and the ability to plug in even more tools.” The article repeats accuracy figures that are Anthropic’s own, from Introducing advanced tool use on the Claude Developer Platform, November 24, 2025, fetched November 11, 2026: “Opus 4 improved from 49% to 74%, and Opus 4.5 improved from 79.5% to 88.1% with Tool Search Tool enabled.”; “This represents an 85% reduction in token usage while maintaining access to your full tool library.” Anthropic’s own adoption count is in Donating the Model Context Protocol and establishing the Agentic AI Foundation, December 9, 2025, same fetch: “more than 10,000 active public MCP servers” and “97M+ monthly SDK downloads across Python and TypeScript”. ↩↩

  47. GitHub Releases. Claude Code v2.1.11: Fixed excessive MCP connection requests for HTTP/SSE transports. January 17, 2026. ↩↩

  48. Boris Cherny on X. December 27, 2025: “In the last thirty days, I landed 259 PRs – 497 commits, 40k lines added, 38k lines removed. Every single line was written by Claude Code + Opus 4.5.” January 2, 2026, the thread on his own setup: “I’m Boris and I created Claude Code. Lots of people have asked how I use Claude Code, so I wanted to show off my setup a bit.” Both fetched November 11, 2026 (the full text of the first through the FxTwitter mirror of the post). A secondary write-up of the tips: Boris Cherny Claude Code Creator Shares These 22 Tips, Joe Njenga, Medium, January 2026, read in the Internet Archive capture of January 13, 2026. ↩↩

  49. Anthropic Pricing. API token pricing as it stood in February 2026, input/output per million tokens: Haiku 4.5 ($1/$5), Sonnet 4.6 ($3/$15), Opus 4.6 ($5/$25). ↩

  50. ykdojo/claude-code-tips, README, fetched November 11, 2026. Its title is “45+ Claude Code Tips: From Basics to Advanced” and it opens “Here are my tips for getting the most out of Claude Code, including a custom status line script and Claude Code running itself in a container.” ↩↩↩

  51. Anthropic Usage Policy, fetched November 10, 2026, lists under platform abuse: “Coordinate malicious activity across multiple accounts, or create multiple accounts, to avoid detection, circumvent product guardrails, or generate identical or similar inputs that otherwise violate our Usage Policy” and “Circumvent a ban through the use of a different account, such as the creation of a new account, use of an existing account, or providing access to a person or entity that was previously banned”. Verify your phone number, Claude Help Center, fetched November 10, 2026: “We only allow a maximum of three Claude accounts to be verified with the same phone number.” Log in to your Claude account, Claude Help Center, fetched November 10, 2026: “If you have both an individual Claude account and a Team or Enterprise plan account tied to the same email address, follow these steps to switch to your other account”. ↩↩

  52. Claude Code CHANGELOG, section 2.1.10, fetched November 11, 2026: “Added new Setup hook event that can be triggered via --init, --init-only, or --maintenance CLI flags for repository setup and maintenance operations”; “Added keyboard shortcut ‘c’ to copy OAuth URL when browser doesn’t open automatically during login”. ↩↩

  53. @adocomplete, December 15, 2025: “Advent of Claude Day 15 - YOLO Mode”; claude --dangerously-skip-permissions; “This flag says yes to everything.” ↩

  54. @mattpocockuk, January 6, 2026: “Worried about Ralph rimraf-ing your home directory?”; docker sandbox run claude; “Runs Claude in a dockerized sandbox in the current directory.” ↩↩

  55. @trq212, October 9, 2025, passing on a colleague’s setup: “Daisy’s tip for getting Sonnet 4.5 to run for 6-8 hours overnight: use hooks”; “hooks for linting & testing to make sure that Claude runs the tests and prompts it to not stop until they pass”. ↩

  56. @moofeez, April 3, 2025, announcing Claude Squad: “Why settle for one Claude Code when you can run ten in parallel?”; “a manager for Claude Code & Aider tasks”; “Supervise multiple agents in one place”; “Isolated git workspaces”. The Claude Squad README, fetched November 11, 2026, under How It Works: “tmux to create isolated terminal sessions for each agent”; “git worktrees to isolate codebases so each session works on its own branch”. ↩

  57. Claude Code CHANGELOG, section 2.1.12, fetched November 11, 2026: “Fixed message rendering bug”. ↩

  58. Claude Code CHANGELOG, section 2.1.14, fetched November 11, 2026: “Added history-based autocomplete in bash mode (!)”; “Added search to installed plugins list”; “Added support for pinning plugins to specific git commit SHAs, allowing marketplace entries to install exact versions”; “Fixed a regression where the context window blocking limit was calculated too aggressively, blocking users at ~65% context usage instead of the intended ~98%”. ↩

  59. Claude Code CHANGELOG, section 2.1.15, fetched November 11, 2026: “Added deprecation notification for npm installations”; “Improved UI rendering performance with React Compiler”; “Fixed MCP stdio server timeout not killing child process, which could cause UI freezes”. ↩

  60. GitHub Releases. v2.1.16: Task management system with dependency tracking, VSCode native plugin management, OAuth users can browse/resume remote sessions. Fixes: OOM crashes with subagent resumption, /compact warning visibility, session titles language, Windows IDE race condition. January 22, 2026. ↩

  61. GitHub issue #19098, opened January 18, 2026, a user request to bring the keyword back; it says Claude Code v2.0.x “made thinking mode “enabled by default” and deprecated explicit thinking triggers (think, think hard, ultrathink)”. UltraThink is Dead. Long Live Extended Thinking., Decode Claude, fetched November 11, 2026: “The default budget? 31,999 tokens”. Claude Code CHANGELOG, section 2.1.68, same fetch: “Re-introduced the “ultrathink” keyword to enable high effort for the next turn”. ↩↩

  62. Claude Code CHANGELOG, fetched November 11, 2026. 2.1.19: “Added shorthand $0, $1, etc. for accessing individual arguments in custom commands”; “Added env var CLAUDE_CODE_ENABLE_TASKS, set to false to keep the old system temporarily”; “Enabled session forking and rewind functionality for all users” (VS Code). 2.1.17: “Fixed crashes on processors without AVX instruction support”. ↩↩

  63. Claude Code Docs. v2.1.20: --add-dir flag for loading CLAUDE.md from additional directories, PR review status indicator, task deletion via TaskUpdate, vim arrow key history navigation, /copy command for all users, timestamped config backups. Fixes: session compaction issues, agents ignoring user messages, wide character rendering, JSON parsing with Unicode. January 27, 2026. ↩

  64. Claude Code on the web, Claude, October 20, 2025, fetched November 11, 2026 (the earlier claude.com/blog address redirects here): “a new way to delegate coding tasks directly from your browser”; tasks “run on Anthropic-managed cloud infrastructure”; “Every Claude Code task runs in an isolated sandbox environment with network and filesystem restrictions.”; “Git interactions are handled through a secure proxy service that ensures Claude can only access authorized repositories”; “You can also add custom network configuration to choose what domains Claude Code can connect to from its sandbox.” The page’s update note, dated September 23, 2026: “Cloud sessions (previously known as Claude Code on the web) are now generally available for Pro, Max, Ultra, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.” An earlier update on the same page, dated November 12, 2025 in the Internet Archive capture of January 27, 2026, read: “Claude Code on the web is now available in research preview for Team and Enterprise users with premium seats, in addition to Pro and Max users.” ↩↩↩

  65. Claude Code CHANGELOG, section 2.1.21, fetched November 11, 2026: “Added support for full-width (zenkaku) number input from Japanese IME in option selection prompts”; “Improved Claude to prefer file operation tools (Read, Edit, Write) over bash equivalents (cat, sed, awk)”; for VS Code, “Added automatic Python virtual environment activation, ensuring python and pip commands use the correct interpreter (configurable via claudeCode.usePythonEnvironment setting)”. ↩

  66. Claude Code CHANGELOG, section 2.1.22, fetched November 11, 2026: “Fixed structured outputs for non-interactive (-p) mode”. ↩

  67. Claude Code CHANGELOG, section 2.1.23, fetched November 11, 2026: “Added customizable spinner verbs setting (spinnerVerbs)”; “Fixed mTLS and proxy connectivity for users behind corporate proxies or using client certificates”; “Fixed per-user temp directory isolation to prevent permission conflicts on shared systems”; “Changed merged pull requests to show a purple status indicator in the prompt footer”. ↩

  68. Claude Code CHANGELOG, section 2.1.18, fetched November 11, 2026: “Added customizable keyboard shortcuts. Configure keybindings per context, create chord sequences, and personalize your workflow. Run /keybindings to get started.” Customize keyboard shortcuts, Claude Code documentation, same fetch: “Run /keybindings to create or open your configuration file at ~/.claude/keybindings.json.” ↩↩

  69. Claude expands tool connections using MCP, Help Net Security, January 27, 2026, fetched November 11, 2026: “Anthropic has added interactive tool support to its Claude AI platform”; “Interactive tool support in Claude uses an extension to MCP called MCP Apps.”; “Users can view, edit, and interact with content from services including Asana, Box, Canva, Figma, Hex, monday.com, Slack and others without leaving the Claude window.” ↩↩

  70. Claude Platform release notes, entry of September 2, 2025, fetched November 11, 2026: “launched v2 of the Code Execution Tool in beta, replacing the original Python-only tool with Bash command execution and direct file manipulation capabilities, including writing code in other languages”. ↩↩↩

  71. Claude Code CHANGELOG, section 2.1.25, fetched November 11, 2026: “Fixed beta header validation error for gateway users on Bedrock and Vertex, ensuring CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 avoids the error”. ↩

  72. GitHub Releases. v2.1.27: --from-pr flag for PR-linked sessions, auto-link sessions to PRs via gh pr create, tool call failures in debug logs, VSCode Claude in Chrome integration. Fixes: context management validation, /context colored output, status bar duplication, permissions precedence, Windows bash/.bashrc, Windows console flashing, VSCode OAuth 401 errors. January 30, 2026. ↩↩

  73. Claude Code CHANGELOG. v2.1.31: Session resume hint, Japanese IME full-width space input, PDF too large errors permanently locking sessions fix, bash read-only file system errors in sandbox fix, temperatureOverride silently ignored fix, LSP shutdown compatibility, improved system prompts for dedicated tools over bash. February 2026. ↩

  74. Claude Code CHANGELOG. v2.1.30: PDF pages parameter for Read tool, large PDFs return lightweight reference, pre-configured OAuth for MCP (Slack), /debug command, 68% memory reduction for --resume, phantom ‘(no content)’ text blocks fix, prompt cache invalidation fix, subagents access SDK MCP tools fix. January 30, 2026. ↩↩

  75. Anthropic, January 28, 2026, fetched November 11, 2026: ServiceNow “has chosen Claude as its default model for its ServiceNow Build Agent” and “is rolling out Claude and Claude Code across its global workforce of more than 29,000 employees to streamline sales preparation”, “cutting seller preparation time by 95%”. ↩

  76. Apple brings agentic coding to Xcode with Claude, Codex, IT Brief Asia, February 4, 2026, fetched November 11, 2026: “Apple has added support for agentic coding in Xcode 26.3”; on the Claude Agent SDK, “It said the SDK is the same harness used by Claude Code. Anthropic said the integration supports subagents, background tasks, and plugins within Xcode.” ↩

  77. Anthropic. “Introducing Claude Opus 4.6.” February 5, 2026. 1M token context (beta), 128K max output, adaptive thinking, effort controls, agent teams, Terminal-Bench 2.0 highest score, GDPval-AA +144 Elo over GPT-5.2, 500+ zero-day vulnerabilities found. $5/$25 per MTok. See also TechCrunch, CNBC, Anthropic Pricing. ↩↩↩↩↩

  78. Claude Code CHANGELOG. v2.1.32: Opus 4.6 support, agent teams research preview, automatic memory recording, Summarize from here, skills from --add-dir auto-loaded, skill character budget scales with context window, bash heredoc JS template literal fix, Thai/Lao rendering fix. February 2026. ↩↩

  79. Hooks reference, Claude Code documentation, fetched November 11, 2026, on the async field of a command hook: “If true, runs in the background without blocking.” ↩

  80. Beyond permission prompts: making Claude Code more secure and autonomous, Anthropic Engineering, published October 20, 2025, fetched November 10, 2026. “We’ve built this on top of OS level primitives such as Linux bubblewrap and MacOS seatbelt to enforce these restrictions at the OS level.” “To make it easier for other teams to build safer agents, we have open sourced this feature.” The runtime’s repository is github.com/anthropics/sandbox-runtime; the anthropic-experimental address redirects there. ↩

  81. GitHub Blog. “Claude and Codex are now available in public preview on GitHub.” February 4, 2026. Also: GitHub Blog. “Claude Opus 4.6 is now generally available for GitHub Copilot.” February 5, 2026. ↩↩

  82. Orchestrate teams of Claude Code sessions, Claude Code documentation, fetched November 11, 2026. The architecture table lists the task list (“Shared list of work items that teammates claim and complete”) and the mailbox (“Messaging system for communication between agents”); the team config is at ~/.claude/teams/{team-name}/config.json and the task list at ~/.claude/tasks/{team-name}/; on dependencies, “it unblocks the dependent tasks without any action from you”. Agent teams were announced with Opus 4.6 on February 5, 2026 (TechCrunch). ↩↩

  83. Claude Code CHANGELOG. v2.1.33: TeammateIdle and TaskCompleted hook events, Task(agent_type) sub-agent restriction syntax, memory frontmatter for agents, plugin name in skill descriptions. Fixes: tmux agent teammate sessions, agent teams plan warnings, extended thinking interruption, API proxy 404 fallback, proxy settings for WebFetch, /resume XML markup. VSCode: remote sessions for OAuth, git branch in session picker. February 2026. ↩↩

  84. Claude Code CHANGELOG, fetched November 11, 2026. 2.1.36: “Fast mode is now available for Opus 4.6.”; 2.1.37: “Fixed an issue where /fast was not immediately available after enabling /extra-usage”. Claude: Speed up responses with fast mode, Simon Willison, February 7, 2026, same fetch: “The new fast mode is $30/million input and $150/million output!”; “at a cost that’s 6x the normal price”; “There’s a 50% discount until the end of February 16th”. Speed up responses with fast mode, Claude Code documentation, same fetch: “Fast mode uses the same model with a different API configuration that prioritizes speed over cost efficiency, so quality and capabilities stay the same.” Current rates are on Anthropic Pricing. ↩↩↩↩

  85. GitHub Releases. v2.1.34: Fixed crash when agent teams setting changed between renders. Fixed bug where commands excluded from sandboxing could bypass Bash ask permission rule when autoAllowBashIfSandboxed was enabled. February 6, 2026. ↩↩

  86. GitHub Releases. v2.1.38: Fixed VS Code terminal scroll-to-top regression, Tab key slash command queueing, bash permission matching for env var wrappers, text disappearing between tool uses in non-streaming mode, duplicate sessions on resume in VS Code. Improved heredoc delimiter parsing to prevent command smuggling. Blocked writes to .claude/skills in sandbox mode. February 10, 2026. v2.1.39: Improved terminal rendering performance, fixed fatal errors being swallowed, process hanging after session close, character loss at terminal boundary. ↩↩↩

  87. Claude Code Docs. Hooks reference: prompt-based hooks, agent-based hooks, hook environment variables ($CLAUDE_PROJECT_DIR, $CLAUDE_ENV_FILE), hookSpecificOutput format for PreToolUse. February 2026. Claude Code Docs. Create custom subagents: --agents CLI flag, disallowedTools, maxTurns, mcpServers, delegate permission mode. February 2026. The sub-agents page as captured on February 12, 2026 listed the permissionMode values default, acceptEdits, delegate, dontAsk, bypassPermissions, or plan. The page fetched November 10, 2026 has no delegate value: “default, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual as an alias for default”. ↩↩↩↩↩↩

  88. Claude Code CHANGELOG, fetched November 11, 2026. 2.1.41: “Added claude auth login, claude auth status, and claude auth logout CLI subcommands”; “Added Windows ARM64 (win32-arm64) native binary support”; “Improved /rename to auto-generate session name from conversation context when called without arguments”. 2.1.42: “Fixed /resume showing interrupt messages as session titles”. Both reached npm on February 13, 2026. ↩↩↩

  89. Model configuration: Extended context, Claude Code documentation, fetched November 10, 2026: “Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later run with the 1M window by default, with no [1m] suffix needed”; “Opus 4.6 and Sonnet 4.6 reach 1M only through their [1m] variant, and access to that variant depends on your plan”. ↩

  90. Advanced setup: System requirements, Claude Code documentation, fetched November 10, 2026: “macOS 13.0+”, “Windows 10 1809+ or Windows Server 2019+”, “Ubuntu 20.04+”, “Debian 10+”, “Alpine Linux 3.19+”; “4 GB+ RAM, x64 or ARM64 processor”; “internet connection required”; “Bash, Zsh, PowerShell, or CMD”. ↩

  91. Introducing Claude Sonnet 4.6, Anthropic, February 17, 2026, fetched November 11, 2026: “Claude Sonnet 4.6 is now the default model in claude.ai and Claude Cowork”; “Sonnet 4.6 also features a 1M token context window in beta.”; “Pricing remains the same as Sonnet 4.5, starting at $3/$15 per million tokens.” Claude Sonnet 4.6, Claude API documentation, same fetch: “Model ID: claude-sonnet-4-6”; “Context window: 1M tokens · Max output: 128K tokens”; reliable knowledge cutoff Aug 2025, training data cutoff Jan 2026. ↩↩

  92. Claude Code CHANGELOG, fetched November 11, 2026. 2.1.43: “Fixed AWS auth refresh hanging indefinitely by adding a 3-minute timeout”; “Fixed spurious warnings for non-agent markdown files in .claude/agents/ directory”; “Fixed structured-outputs beta header being sent unconditionally on Vertex/Bedrock”. 2.1.44: “Fixed ENAMETOOLONG errors for deeply-nested directory paths”; “Fixed auth refresh errors”. ↩

  93. Claude Code GitHub CHANGELOG. v2.1.45 (Feb 17): Sonnet 4.6 support, spinnerTipsOverride setting, SDKRateLimitInfo/SDKRateLimitEvent types, Agent Teams Bedrock/Vertex/Foundry fix, sandbox temp file fix. v2.1.46 (Feb 18): claude.ai MCP connectors in Claude Code, orphaned process fix on macOS. v2.1.47 (Feb 18): Ctrl+F kills background agents, last_assistant_message in Stop/SubagentStop hooks, chat:newline keybinding, added_dirs statusline field, /rename terminal tab title, resume picker 50 sessions, ~500ms startup improvement, memory improvements, CJK alignment fix, plan mode compaction fix, Edit tool Unicode fix, many Windows fixes. ↩↩↩↩

  94. 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. ↩↩↩↩↩↩

  95. Claude Code Security: What Businesses Should Know About Anthropic’s AI-Powered Vulnerability Scanner, Cyber Unit, February 21, 2026, fetched November 11, 2026: “a new capability built into Claude Code on the web that scans codebases for security vulnerabilities and suggests targeted patches for human review”; “The tool is now available as a limited research preview for Enterprise and Team customers, with expedited access for maintainers of open-source projects.” See also the Claude Code product page. ↩

  96. 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. ↩↩↩↩↩↩↩↩↩↩

  97. Claude Code CHANGELOG, sections 2.1.52 to 2.1.56 (there is no 2.1.54 section), fetched November 11, 2026. 2.1.52: “VS Code: Fixed extension crash on Windows”. 2.1.53: “Fixed a UI flicker where user input would briefly disappear after submission before the message rendered”; “Fixed bulk agent kill (ctrl+f) to send a single aggregate notification instead of one per agent, and to properly clear the command queue”; “Fixed graceful shutdown sometimes leaving stale sessions when using Remote Control by parallelizing teardown network calls”; “Fixed --worktree sometimes being ignored on first launch”. 2.1.55: “Fixed BashTool failing on Windows with EINVAL error”. Orchestrate teams of Claude Code sessions, Claude Code documentation, same fetch: team config at ~/.claude/teams/{team-name}/config.json, task list at ~/.claude/tasks/{team-name}/, and “it unblocks the dependent tasks without any action from you”. ↩↩

  98. GitHub Releases. v2.1.59 (Feb 26): Claude automatically saves useful context to auto-memory (manage with /memory). /copy command with interactive picker for code blocks. Improved ‘always allow’ prefix suggestions for compound bash commands. Memory usage improvements in multi-agent sessions. MCP OAuth token refresh race condition fix. Config file corruption fix for concurrent writes. February 26, 2026. ↩↩

  99. Continue local sessions from any device with Remote Control, Claude Code documentation, fetched November 10, 2026: “Your local Claude Code session makes outbound HTTPS requests only and never opens inbound ports on your machine”; “All traffic travels through the Anthropic API over TLS, the same transport security as any Claude Code session”. Claude Code CHANGELOG, 2.1.51: “Added claude remote-control subcommand for external builds, enabling local environment serving for all users.”; 2.1.58: “Expand Remote Control to more users”. ↩↩↩

  100. Caught in the Hook: RCE and API Token Exfiltration Through Claude Code Project Files, Check Point Research, February 25, 2026, fetched November 11, 2026, the research behind CVE-2025-59536 and CVE-2026-21852: “All reported issues have been successfully patched prior to this publication.” The fixed versions are in the GitHub Advisory Database: GHSA-4fgq-fpq9-mr3g (CVE-2025-59536, patched in 1.0.111) and GHSA-jh7p-qr78-84p7 (CVE-2026-21852, patched in 2.0.65). ↩↩↩

  101. SemiAnalysis. “Claude Code is the Inflection Point.” February 5, 2026, fetched November 10, 2026: “4% of GitHub public commits are being authored by Claude Code right now.” ↩↩

  102. GitHub Releases. v2.1.63 (Feb 28): /simplify and /batch bundled slash commands, worktree-shared project configs and auto-memory, ENABLE_CLAUDEAI_MCP_SERVERS=false opt-out, HTTP hooks type: http handler, /copy ‘Always copy full response’ option, VSCode session rename/remove, /clear resets skill cache, multiple memory leak fixes, REPL bridge race condition fix. February 28, 2026. ↩↩↩↩↩↩

  103. Claude and Codex now available for Copilot Business & Pro users, GitHub Changelog, February 26, 2026, fetched November 11, 2026: “Claude by Anthropic and OpenAI Codex are now available as coding agents for Copilot Business and Copilot Pro customers. Copilot Enterprise and Pro+ customers received access earlier this month”; “Access to Claude and Codex is fully included with your existing Copilot subscription. Each coding agent session consumes one premium request during public preview.”; “You can run Claude, Codex, and Copilot directly inside github.com, GitHub Mobile, and VS Code”. ↩↩

  104. Claude Code Docs. “In version 2.1.63, the Task tool was renamed to Agent. Existing Task(...) references in settings and agent definitions still work as aliases.” February 28, 2026. ↩↩

  105. Claude Code CHANGELOG, section 2.1.51, fetched November 11, 2026: “Managed settings can now be set via macOS plist or Windows Registry.” ↩↩

  106. CNBC. “Figma partners with Anthropic on AI feature integrating Claude Code.” February 17, 2026. ↩↩

  107. Claude Code CHANGELOG, fetched November 11, 2026. 2.1.68: “Opus 4.6 now defaults to medium effort for Max and Team subscribers.”; “Re-introduced the “ultrathink” keyword to enable high effort for the next turn”; “Removed Opus 4 and 4.1 from Claude Code on the first-party API”. 2.1.70: “Fixed /security-review command failing with unknown option merge-base on older git versions”; for VS Code, “Added spark icon in VS Code activity bar that lists all Claude Code sessions, with sessions opening as full editors”, “Added full markdown document view for plans in VS Code, with support for adding comments to provide feedback” and “Added native MCP server management dialog”. ↩↩↩↩↩↩↩↩

  108. 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. ↩↩↩↩↩↩↩↩↩↩

  109. Claude Code rolls out a voice mode capability, TechCrunch, March 3, 2026, fetched November 11, 2026: “voice mode is now live for about 5% of users, with a broader rollout planned in the coming weeks”; “To enable it, type /voice to toggle it on”. Anthropic adding voice mode to Claude Code in gradual rollout, 9to5Mac, March 3, 2026, same fetch: “Voice mode is activated within Claude Code by holding the space bar to talk, then releasing to send off the input”. ↩↩↩↩

  110. Claude Code CHANGELOG, section 2.1.71, fetched November 11, 2026: “Added /loop command to run a prompt or slash command on a recurring interval (e.g. /loop 5m check the deploy)”; “Added voice:pushToTalk keybinding to make the voice activation key rebindable in keybindings.json (default: space)”; “Added fmt, comm, cmp, numfmt, expr, test, printf, getconf, seq, tsort, and pr to the bash auto-approval allowlist”; “Fixed stdin freeze in long-running sessions where keystrokes stop being processed but the process stays alive”. ↩↩↩

  111. Bringing Code Review to Claude Code, Claude, March 9, 2026, fetched November 11, 2026 (the earlier claude.com/blog address redirects here): “Now in research preview for Team and Enterprise.”; “The agents look for bugs in parallel, verify bugs to filter out false positives, and rank bugs by severity. The result lands on the PR as a single high-signal overview comment, plus in-line comments for specific bugs.”; “Based on our testing, the average review takes around 20 minutes.”; “Before, 16% of PRs got substantive review comments. Now 54% do.”; “less than 1% of findings are marked incorrect”; “It won’t approve PRs”. Reviews “are billed on token usage” and average $15 to $25; admin controls are “Monthly organization caps”, “Repository-level control” and an “Analytics dashboard”. Anthropic launches code review tool to check flood of AI-generated code, TechCrunch, March 9, 2026. ↩↩↩↩↩

  112. 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. ↩↩↩↩↩

  113. GitHub Releases. v2.1.73: modelOverrides setting for custom provider model IDs (Bedrock/Vertex/Foundry). Deprecated /output-style (use /config). Default Opus changed to 4.6 on Bedrock/Vertex/Foundry. Up arrow after interrupt restores prompt + rewinds. /effort works while responding. SSL certificate error guidance. Bug fixes: CPU freeze, deadlock, SessionStart hooks firing twice. March 11, 2026. ↩↩↩

  114. 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. ↩↩↩

  115. Claude Code CHANGELOG, section 2.1.75 (March 13, 2026), fetched November 11, 2026: “Added 1M context window for Opus 4.6 by default for Max, Team, and Enterprise plans (previously required extra usage)”; “Added /color command for all users to set a prompt-bar color for your session”; “Added session name display on the prompt bar when using /rename”; “Added last-modified timestamps to memory files, helping Claude reason about which memories are fresh vs. stale”; “Added hook source display (settings/plugin/skill) in permission prompts when a hook requires confirmation”; “Breaking change: Removed deprecated Windows managed settings fallback at C:\ProgramData\ClaudeCode\managed-settings.json”. ↩↩↩↩↩

  116. GitHub Releases. v2.1.76: MCP elicitation support: MCP servers can request structured input mid-task via interactive dialogs (form fields or browser URL). New Elicitation and ElicitationResult hooks. -n/--name CLI flag for session display names. worktree.sparsePaths for git sparse-checkout in monorepos. PostCompact hook. /effort slash command. Session quality survey (feedbackSurveyRate). Bug fixes: deferred tools losing input schemas after compaction, plan mode re-approval, voice mode keypresses, auto-compaction circuit breaker (3 attempts max), clipboard copying in tmux over SSH, Remote Control session stability. March 14, 2026. ↩↩↩↩↩↩↩

  117. GitHub CHANGELOG. v2.1.77: Increased default max output tokens for Opus 4.6 to 64K, upper bound for Opus 4.6 and Sonnet 4.6 to 128K. allowRead sandbox filesystem setting. /copy N copies Nth-latest response. /fork renamed to /branch. Agent tool resume parameter removed (use SendMessage). SendMessage auto-resumes stopped agents. Sessions auto-named from plans. Background bash tasks killed at 5GB. claude plugin validate checks frontmatter + hooks. ~60ms faster macOS startup, --resume 45% faster with ~100-150MB less memory. Security: PreToolUse allow no longer bypasses deny rules. 25+ bug fixes. March 17, 2026. ↩↩↩↩↩

  118. GitHub Releases v2.1.78. v2.1.78: StopFailure hook event, ${CLAUDE_PLUGIN_DATA} persistent plugin state, agent frontmatter (effort/maxTurns/disallowedTools), ANTHROPIC_CUSTOM_MODEL_OPTION, tmux notification passthrough, line-by-line response streaming. Security: visible warning on missing sandbox deps. Fixes: large session truncation >5MB, infinite stop hook loop, sandbox absolute paths, voice WSL2, Homebrew PATH in VS Code. March 17, 2026. ↩↩↩

  119. GitHub Releases v2.1.79. v2.1.79: --console flag for API billing auth, /remote-control VS Code command, AI-generated session titles in VS Code, CLAUDE_CODE_PLUGIN_SEED_DIR multiple directories, ~18MB startup memory reduction, 2-min non-streaming API timeout, SessionEnd hooks fire on /resume switch. Fixes: -p hanging as subprocess, Ctrl+C in print mode, /btw wrong output, voice mode startup, enterprise 429 retry. March 18, 2026. ↩↩

  120. GitHub Releases v2.1.80. v2.1.80: rate_limits field in statusline scripts, source: 'settings' plugin marketplace source, effort frontmatter for skills. Claude Code Channels research preview: Telegram/Discord messaging into sessions via channel server plugins and --channels flag. Windows PATH inheritance fix for Git Bash. March 19, 2026. ↩↩↩

  121. GitHub Releases v2.1.83. v2.1.83: managed-settings.d/ drop-in directory, CwdChanged/FileChanged hook events, sandbox.failIfUnavailable, CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, transcript search, initialPrompt agent frontmatter, Ctrl+X Ctrl+E external editor alias, stop-all-agents changed to Ctrl+X Ctrl+K, TaskOutput deprecated. 35+ bug fixes. March 25, 2026. ↩↩↩↩

  122. Auto mode for Claude Code, Claude, March 24, 2026, fetched November 11, 2026 (the earlier claude.com/blog address redirects here): “Auto mode provides a safer long-running alternative to --dangerously-skip-permissions.”; “Before each tool call runs, a classifier reviews it to check for potentially destructive actions like mass deleting files, sensitive data exfiltration, or malicious code execution.”; “Auto mode is available in Claude Code as a research preview for Claude Team users today, and will roll out to Enterprise and API users in the coming days. It works with both Claude Sonnet 4.6 and Opus 4.6.” The article does not name the classifier’s model. The engineering post does: How we built Claude Code auto mode: a safer way to skip permissions, Anthropic Engineering, March 25, 2026, same fetch: “the transcript classifier (running on Sonnet 4.6) evaluates each action against a set of decision criteria before it executes”. ↩↩

  123. Choose a permission mode, Claude Code documentation, fetched November 11, 2026. How auto mode evaluates an action: “Each action goes through a fixed decision order. The first matching step wins”; “Actions matching your allow, ask, or deny rules resolve immediately”, with the exceptions the page lists; “Read-only actions and file edits in your working directory are auto-approved, except writes to protected paths and a read that shows the first-read prompt.”; “Everything else goes to the classifier, apart from critical-path removals under their default handling.” Blocked by default, among others: “Downloading and executing code, like curl | bash”; “Sending sensitive data to external endpoints”; “Production deploys and migrations”; “Mass deletion on cloud storage”; “Granting IAM or repo permissions”; “Force push”, with no branch named. Repeated blocks: “if the classifier blocks an action 3 times in a row or 20 times total, auto mode pauses and Claude Code resumes prompting”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩

  124. GitHub Releases v2.1.89. v2.1.89: defer permission decision for headless sessions, MCP_CONNECTION_NONBLOCKING=true, autocompact thrash loop detection, Bash stale-edit warning, symlink-aware allow rules. v2.1.88 was withdrawn, and the CHANGELOG lists its items under 2.1.89 (see 125). Published to npm March 31, 2026. ↩

  125. Claude Code CHANGELOG, section 2.1.89 (npm, March 31, 2026), fetched November 11, 2026: “Added PermissionDenied hook that fires after auto mode classifier denials”; “Added CLAUDE_CODE_NO_FLICKER=1 environment variable to opt into flicker-free alt-screen rendering with virtualized scrollback”. v2.1.88 was published to npm on March 30, 2026 and later withdrawn: the registry keeps its publish time but no longer lists the version, GitHub has the tag but no release, and the CHANGELOG has no 2.1.88 section, so its items sit under 2.1.89. ↩↩↩↩↩

  126. How Boris Uses Claude Code, a community compilation of Boris Cherny’s public tips, built by @CarolinaCherry and marked “Not affiliated with Anthropic” (fetched November 11, 2026, when it listed “142+ Tips”). As it stood in March 2026: 72+ tips covering /dream memory consolidation, /batch parallel migrations, /schedule cloud jobs, /btw side queries, worktrees, custom agents, auto mode, and advanced workflows. ↩

  127. GitHub Releases v2.1.86. v2.1.86: X-Claude-Code-Session-Id header, Read tool compact format, auto mode plan messaging, skill description cap, @ mention token reduction, Jujutsu/Sapling exclusions, --resume fix for pre-2.1.85 sessions, 15+ bug fixes. March 27, 2026. v2.1.87 (March 28): Cowork Dispatch message delivery fix. ↩

  128. GitHub Releases v2.1.85. v2.1.85: Conditional if field for hooks, PreToolUse hooks satisfy AskUserQuestion, MCP env vars for headersHelper, MCP OAuth RFC 9728, org-blocked plugins hidden, timestamp markers for /loop, deep link queries 5K chars, /compact fix for oversized conversations. 20+ bug fixes. March 26, 2026. ↩↩

  129. GitHub Releases v2.1.84. v2.1.84: PowerShell tool (Windows opt-in), TaskCreated hook event, WorktreeCreate HTTP hook support, ANTHROPIC_DEFAULT model capability env vars, CLAUDE_STREAM_IDLE_TIMEOUT_MS, allowedChannelPlugins managed setting, paths: YAML glob list in rules/skills, MCP 2KB description cap, idle-return prompt after 75+ min, token counts 1.5m format, CJK IME fix. 25+ bug fixes. March 26, 2026. ↩↩↩

  130. GitHub Releases v2.1.81. v2.1.81: --bare flag for scripted -p calls (skips hooks, LSP, plugin sync, skill directory walks). --channels permission relay for channel servers. Assistant honors ‘no memory’ requests. March 20, 2026. ↩↩

  131. Three reports on the Claude Code source that the npm package exposed on March 31, 2026, each fetched November 10, 2026. Anthropic Accidentally Exposes Claude Code Source via npm Source Map File, InfoQ, April 7, 2026: “Version 2.1.88 of the @anthropic-ai/claude-code package shipped with a source map file that should never have been included.”; “Claude Code uses the Bun runtime, which generates source maps by default unless you explicitly disable them.” The Claude Code Source Leak: fake tools, frustration regexes, undercover mode, and more, Alex Kim, March 31, 2026: “Every bash command runs through 23 numbered security checks in bashSecurity.ts”; the autoCompact.ts comment “BQ 2026-03-10: 1,279 sessions had 50+ consecutive failures (up to 3,272) in a single session, wasting ~250K API calls/day globally.” beside MAX_CONSECUTIVE_AUTOCOMPACT_FAILURES = 3; “userPromptKeywords.ts contains a regex pattern that detects user frustration”; on the cause, “A Bun bug (oven-sh/bun#28001), filed on March 11, reports that source maps are served in production mode even though Bun’s own docs say they should be disabled.” Reading leaked Claude Code source code, March 31, 2026: “The bash security system (bashSecurity.ts, 2,592 lines)”; “the file that implements this classifier is called yoloClassifier.ts (1,495 lines)”; a companion pet system with 18 species. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  132. Two readings of the source exposed on March 31, 2026, each fetched November 10, 2026. Reading leaked Claude Code source code, March 31, 2026: “the file that implements this classifier is called yoloClassifier.ts (1,495 lines)”; coordinator mode “explicitly tells the orchestrating agent” to “Never write ‘based on your findings’ or ‘based on the research.’ These phrases delegate understanding to the worker instead of doing it yourself.” The Claude Code Source Leak: fake tools, frustration regexes, undercover mode, and more, Alex Kim, March 31, 2026: “promptCacheBreakDetection.ts tracks 14 cache-break vectors, and there are “sticky latches” that prevent mode toggles from busting the cache.”; “The multi-agent coordinator in coordinatorMode.ts is interesting because the orchestration logic lives entirely in a prompt.” The same post covers the anti-distillation defenses (fake tool injection, connector-text summarization), undercover mode for codename concealment, the KAIROS autonomous agent prototype, and native client attestation in Bun’s Zig HTTP stack. ↩↩↩↩↩

  133. GitHub Releases v2.1.90. v2.1.90: /powerup interactive lessons, auto mode respects explicit user boundaries, --resume prompt cache regression fix, PreToolUse JSON stdout exit-2 fix, PostToolUse format-on-save fix, PowerShell security hardening (4 vectors), SSE linear-time streaming, transcript write performance, DNS cache privacy. April 1, 2026. ↩↩

  134. GitHub Releases v2.1.91. v2.1.91: MCP _meta["anthropic/maxResultSizeChars"] up to 500K, disableSkillShellExecution setting, plugin bin/ executables, multi-line deep link prompts, Edit tool shorter old_string anchors, improved /claude-api skill, transcript chain break fix. April 2, 2026. ↩↩↩↩

  135. GitHub Releases v2.1.92. v2.1.92: forceRemoteSettingsRefresh fail-closed policy, interactive Bedrock setup wizard, per-model+cache-hit /cost breakdown, /release-notes interactive picker, Remote Control hostname prefix, prompt cache expiry footer hint, removed /tag and /vim, Linux sandbox apply-seccomp helper, Write tool 60% faster diff for large files. April 4, 2026. ↩↩↩↩↩↩↩↩

  136. Claude Code Buddy terminal pet. April 1, 2026. /buddy command launches a Tamagotchi-style ASCII companion pet. 18 species (duck, goose, cat, rabbit, owl, penguin, turtle, snail, dragon, octopus, axolotl, ghost, robot, blob, cactus, mushroom, chonk, capybara). 5 rarity tiers. 5 stats (DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK). Deterministic from account ID hash (Mulberry32). Pro subscription required. Originally discovered in source leak, officially shipped April 1. ↩

  137. Assessing Claude Mythos Preview’s cybersecurity capabilities (the earlier red.anthropic.com/2026/mythos-preview/ address redirects here). Anthropic, April 7, 2026. New frontier model beyond Opus 4.6. Restricted to Project Glasswing partners (Apple, Amazon, Microsoft, Google, Linux Foundation + others) for defensive cybersecurity. Found thousands of high/critical-severity zero-days including 27-year-old OpenBSD TCP SACK bug, 16-year-old FFmpeg H.264 vulnerability, FreeBSD NFS RCE (CVE-2026-4747). Runs via Claude Code in isolated containers. $100M in usage credits, $4M to open-source security. Led by Nicholas Carlini. Not generally available; future “Cyber Verification Program” planned for security professionals. See also: TechCrunch, VentureBeat, Simon Willison. ↩↩

  138. GitHub Releases v2.1.94. v2.1.94: Bedrock via Mantle (CLAUDE_CODE_USE_MANTLE=1), default effort level changed from medium to high for API/Bedrock/Vertex/Foundry/Team/Enterprise, compact Slack MCP header, hookSpecificOutput.sessionTitle for UserPromptSubmit hooks, plugin skill name from frontmatter, 429 rate-limit surfacing, macOS keychain login fix, plugin hook fixes, scrollback/rendering fixes. April 7, 2026. v2.1.96 (April 8): Bedrock auth regression hotfix. ↩↩↩

  139. GitHub Releases v2.1.97. v2.1.97: Fixed --dangerously-skip-permissions silently downgrading to accept-edits after protected path write. Fixed MCP HTTP/SSE connections leaking ~50 MB/hr on reconnect. Fixed 429 retries burning all attempts in ~13s. Focus view toggle (Ctrl+O) in NO_FLICKER mode. refreshInterval status line setting. Cedar syntax highlighting. 25+ bug fixes. April 8, 2026. ↩

  140. GitHub Releases v2.1.98. v2.1.98: Google Vertex AI setup wizard, CLAUDE_CODE_PERFORCE_MODE, Monitor tool for background scripts, --exclude-dynamic-system-prompt-sections, CLAUDE_CODE_SUBPROCESS_ENV_SCRUB PID namespace isolation, CLAUDE_CODE_SCRIPT_CAPS limit. Bash security fixes: backslash-escaped flag bypass, compound command bypass, env-var prefix auto-allow, /dev/tcp and /dev/udp redirect blocking. April 9, 2026. ↩↩

  141. GitHub Releases v2.1.101. v2.1.101: /team-onboarding command, OS CA certificate store trust by default (CLAUDE_CODE_CERT_STORE=bundled to override), /ultraplan auto-creates cloud environment, improved brief mode retry, improved focus mode summaries, rate-limit retry shows which limit and reset time, settings resilience for unrecognized hook events. April 10, 2026. ↩↩↩

  142. Introducing Claude Opus 4.7. Anthropic, April 16, 2026. New flagship model. Pricing: $5/$25 per MTok (same as Opus 4.6). Model ID: claude-opus-4-7. Available across Claude products, API, Amazon Bedrock, Google Cloud Vertex AI, and Microsoft Foundry. Customer reports quoted in the post, fetched November 11, 2026: “On Rakuten-SWE-Bench, Claude Opus 4.7 resolves 3x more production tasks than Opus 4.6” and “On CursorBench, Opus 4.7 is a meaningful jump in capabilities, clearing 70% versus Opus 4.6 at 58%.” See also Claude model pricing. ↩↩↩↩

  143. What’s new in Claude Opus 4.7. Anthropic platform docs, archived April 22, 2026; the live URL now redirects to the Opus 5.5 page. 1M token context at standard API pricing with no long-context premium. 128K max output. Breaking changes: extended thinking budget_tokens removed (adaptive thinking only), temperature/top_p/top_k non-default returns 400, thinking content omitted by default. New tokenizer (roughly 1x to 1.35x token counts). New xhigh effort level. Task budgets beta (header task-budgets-2026-03-13). Vision: 2,576 px / 3.75 MP with 1:1 pixel coordinates. The live Claude Opus 4.7 model page, fetched November 10, 2026, still gives “Context window: 1M tokens” and “Max output: 128K tokens”. ↩↩↩↩↩↩↩

  144. 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. ↩↩↩↩↩↩↩↩↩↩

  145. Claude Code: Model Configuration. Fetched April 2026; the current defaults are in 218. Per-plan defaults at that fetch (Max/Team Premium → Opus 4.7; Pro/Team Standard/Enterprise/API → Sonnet 4.6; Bedrock/Vertex/Foundry → Sonnet 4.5; Enterprise + API change to Opus 4.7 on April 23, 2026). Covers /effort levels (low/medium/high/xhigh/max for Opus 4.7; low/medium/high/max for Opus 4.6 and Sonnet 4.6), effort fallback behavior, adaptive reasoning (Opus 4.7 uses adaptive only; CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 reverts 4.6 to fixed budgets), and extended context rules per plan (Max/Team/Enterprise: Opus 1M included; Pro: via extra usage; API: full access). Opus 4.7 requires Claude Code v2.1.111+. ↩↩↩↩↩↩

  146. Anthropic — Pricing. Canonical pricing reference (April 2026). Base input/output rates: Opus 4.7 and 4.6 at $5/$25 per MTok; Sonnet 4.6 at $3/$15; Haiku 4.5 at $1/$5. Prompt caching multipliers: 5-min cache write 1.25×, 1-hour cache write 2×, cache hit 0.1× base input price. Long-context: “Claude Mythos Preview, Opus 4.7, Opus 4.6, and Sonnet 4.6 include the full 1M token context window at standard pricing” — no long-context premium on any current-generation model. Data residency (inference_geo="us"): 1.1× multiplier on all token categories for Opus 4.6 and newer. Batch API: 50% discount. ↩

  147. Superseded: retained for the Opus 4.6 era only; see 284 and 298 for current fast-mode facts. Claude Code: Fast Mode, as documented February 2026. Research-preview feature. Opus 4.6-only: “Fast mode is not available on Opus 4.7 or other models.” Provides ~2.5× faster output at 6× base pricing ($30 input / $150 output per MTok). Enabling /fast automatically switches session to Opus 4.6; disabling leaves session on Opus 4.6. Not available on Bedrock/Vertex/Foundry. Requires extra usage; Team/Enterprise require admin enablement. Disable entirely with CLAUDE_CODE_DISABLE_FAST_MODE=1. ↩

  148. Claude Code CHANGELOG. v2.1.113 (April 17, 2026): CLI spawns a native Claude Code binary via per-platform optional dependency instead of bundled JavaScript; sandbox.network.deniedDomains blocks specific domains even when allowedDomains wildcards would permit them; fullscreen Shift+↑/Shift+↓ scrolls the viewport when extending a selection past the visible edge; Ctrl+A/Ctrl+E move to the start/end of the current logical line in multiline input (readline-style); Windows Ctrl+Backspace deletes the previous word; /loop Esc cancels pending wakeups and shows “Claude resuming /loop wakeup” messages; /extra-usage now works from Remote Control (mobile/web) clients; /ultrareview faster launch with parallelized checks, diffstat in the launch dialog, and animated launching state; subagents that stall mid-stream fail with a clear error after 10 minutes; Bash multi-line commands whose first line is a comment show the full command in the transcript (UI-spoofing fix); cd <current-directory> && git … no longer prompts on no-ops; macOS Bash(rm:*) allow rules treat /private/{etc,var,tmp,home} as dangerous removal targets; Bash deny rules match commands wrapped in env/sudo/watch/ionice/setsid and similar wrappers; Bash(find:*) allow rules no longer auto-approve find -exec/-delete; Opus 4.7 via Bedrock Application Inference Profile ARN no longer returns thinking.type.enabled is not supported 400; plus fixes for MCP concurrent-call timeout handling, markdown tables with pipe-containing inline code, session recap auto-firing during composition, Remote Control subagent streaming and archival, SDK image-block failures degrading to text, and dangerouslyDisableSandbox bypassing permission prompts. v2.1.114 (April 18, 2026): single fix for a crash in the permission dialog when an agent-teams teammate requested tool permission. ↩↩↩↩↩↩↩

  149. 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). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  150. 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. ↩↩↩↩↩↩

  151. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  152. Claude Code v2.1.123 release notes. April 29, 2026, 03:29 UTC. Single bug fix: “Fixed OAuth authentication failing with a 401 retry loop when CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 is set.” ↩

  153. 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. ↩↩↩↩↩↩↩

  154. Higher usage limits for Claude and a compute deal with SpaceX. Anthropic, May 6, 2026. Three changes: (1) Claude Code five-hour rate limits doubled for Pro, Max, Team, and seat-based Enterprise plans; (2) peak-hours reduction removed for Pro and Max Claude Code accounts; (3) API rate limits for Claude Opus models raised “considerably,” with a per-tier table on the announcement page. Compute backstop: Anthropic gets “all of the compute capacity at their Colossus 1 data center” — “more than 300 megawatts of new capacity (over 220,000 NVIDIA GPUs) within the month.” Anthropic also expressed interest in developing “multiple gigawatts of orbital AI compute capacity” with SpaceX. ↩↩

  155. Agents for financial services. Anthropic, May 5, 2026. Ten ready-to-run agent templates: pitch builder, earnings reviewer, KYC screener, month-end closer, and six more. Each ships as a plugin in Claude Cowork and Claude Code, and as a cookbook for Claude Managed Agents. Microsoft 365 add-ins: Claude in Excel, PowerPoint, and Word with cross-application context; Outlook integration coming soon. Data connector partnerships with Dun & Bradstreet, Fiscal AI, Financial Modeling Prep, Guidepoint, IBISWorld, SS&C IntraLinks, Third Bridge, and Verisk. Moody’s MCP app: credit ratings and data on more than 600 million companies, accessible within Claude. Claude Cowork Dispatch: voice and text task assignment for analysts. Opus 4.7 cited at 64.37% on Vals AI Finance Agent benchmark. ↩↩

  156. 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. ↩↩↩↩

  157. 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. ↩↩↩↩↩↩↩↩

  158. Collaborate with Claude across Excel, PowerPoint, Word and Outlook, Claude, May 7, 2026, fetched November 11, 2026 (the earlier claude.com/blog address redirects here): “Starting today, Claude for Excel, PowerPoint, and Word are generally available, and Claude for Outlook is now in public beta for all paid plans.”; “Adjust an assumption in Excel and the chart in PowerPoint and the number in your Word memo automatically update, too.”; “Ask Claude to triage your inbox and it sorts messages by what needs your response, what it can draft for you, and what’s noise.”; “All Mac and Windows users on paid plans can access Claude for Microsoft 365.” ↩↩↩↩↩↩

  159. Claude Code v2.1.137 through v2.1.139 release notes. v2.1.137 (May 9, 2026): “[VSCode] Fixed extension failing to activate on Windows.” v2.1.138 (May 9, 2026): “Internal fixes.” v2.1.139 (May 11, 2026): Agent View (claude agents), /goal, command-hook args: string[], continueOnBlock for PostToolUse, CLAUDE_PROJECT_DIR for MCP stdio servers, ${CLAUDE_PROJECT_DIR} interpolation in plugin commands, OpenTelemetry active-time fix in --print, and related reliability fixes. See also: Agent View docs and Goal docs. ↩↩↩

  160. Claude Code v2.1.140 release notes. May 12, 2026. Adds subagent_type to agent hook input and fixes: ConfigChange hooks not firing for settings changes; disableAllHooks failing to disable hooks when no other settings were configured; allowManagedHooksOnly and disableAllHooks not composing correctly across settings levels; permission dialogs showing environment variables unexpectedly when hooks returned results; custom style reset after settings updates; native package resolution fallback for Windows Git Bash; and /scroll-speed not taking effect. ↩

  161. Claude Code v2.1.141 release notes. May 13, 2026. Adds terminalSequence to hook JSON output for desktop notifications, window titles, and bells; CLAUDE_CODE_PLUGIN_PREFER_HTTPS for HTTPS plugin-source cloning; ANTHROPIC_WORKSPACE_ID for workload identity federation workspace scoping; claude agents --cwd <path> for Agent View directory filtering; and /feedback session attachment options for the last 24 hours or 7 days. Fetched May 14, 2026. ↩↩

  162. Claude Code v2.1.142 release notes and Claude Code CHANGELOG. May 14, 2026. Adds background-session configuration flags to claude agents; switches Fast mode to Opus 4.7 by default with CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1 as the pinning override; surfaces root-level plugin SKILL.md files as skills when no skills/ directory exists; shows plugin-provided LSP servers in plugin details; warns before replacing an existing GitHub App connection in /web-setup; fixes MCP_TOOL_TIMEOUT for remote HTTP/SSE MCP servers; and closes background-session, daemon, Agent View, plugin cache, plugin advisory, and reactive-compaction reliability issues. Fetched May 15, 2026. ↩

  163. Claude Code v2.1.143 release notes, Claude Code changelog, and Claude Code CHANGELOG. May 15, 2026. Adds plugin dependency enforcement, projected plugin context cost, worktree.bgIsolation: "none", Agent View dispatch flag consistency, PowerShell policy behavior, and reliability fixes for stop-hook loops, /goal evaluator timing, background sessions, credentials startup, Agent View, color env handling, and plugin-contributed agents. Fetched May 18, 2026. ↩

  164. Claude Code v2.1.144 release notes, Claude Code changelog, and Claude Code CHANGELOG. May 19, 2026. Adds /resume support for background sessions, background subagent duration notifications, plugin last-updated display, /model current-session/default behavior, /usage-credits, and reliability fixes for startup network timeouts, terminal display corruption, macOS background-session startup, mismatched image extensions, MCP pagination and unsupported image MIME types, Agent View interactions, background-session detach/resume, and skill reload file-descriptor exhaustion. Fetched May 19, 2026. ↩

  165. Claude Code v2.1.145 release notes, Claude Code changelog, and Claude Code CHANGELOG. May 19, 2026. Adds claude agents --json, GitHub repo/PR status-line JSON fields, richer pre-install plugin discovery, Agent View awaiting-input tab counts, fullscreen slash-command / @-mention mouse interactions, Stop/SubagentStop background_tasks and session_crons input fields, OTEL agent_id and parent_agent_id span attributes, and fixes for permission-prompt bypass, MCP prompt validation errors, spinner/elapsed-time display freezes, Windows cross-project resume hints, Agent View voice push-to-talk, task-list ordering, stale marketplace banners, PR badge refresh, non-ASCII Agent Teams teammate names, /review Classic Projects errors, claude plugin validate, skill context: fork loops, and overlarge Read tool failures. Fetched May 19, 2026. ↩

  166. Claude Code v2.1.147 release notes and Claude Code CHANGELOG. May 21, 2026. Adds the off-by-default Workflow tool for deterministic multi-agent orchestration (CLAUDE_CODE_WORKFLOWS=1), pinned Agent View background sessions, and /code-review [effort] --comment as the replacement for /simplify. The release hardens REPL and Workflow sandboxes; improves auto-updater diagnostics, large diff rendering, and prompt-history deduplication; and fixes enterprise login restrictions, PowerShell output/rules, MCP paginated resources/list, resources/templates/list, and prompts/list, Agent View CJK row rendering, pasted text delivery, plugin component counts, hook condition matching, unknown slash commands in headless/SDK mode, and stripped-image loops. Fetched May 21, 2026. Read again November 11, 2026: the v2.1.147 release notes and CHANGELOG section have no line about workflows, and CLAUDE_CODE_WORKFLOWS is in neither the CHANGELOG nor the environment variables reference; for how workflows are turned on and off today, see 474. ↩↩

  167. Claude Code v2.1.148 release notes, Claude Code v2.1.149 release notes, Claude Code v2.1.150 release notes, and Claude Code CHANGELOG. v2.1.148 (May 22, 2026) fixes a Bash tool regression that returned exit code 127 on every command for some users. v2.1.149 (May 22, 2026) adds /usage per-category limits usage, /diff keyboard scrolling, GFM task-list checkbox rendering, and Enterprise allowAllClaudeAiMcps; it also fixes PowerShell permission bypasses and permission-analysis gaps, git-worktree sandbox write-allowlist scope, Bash find macOS vnode exhaustion, managed-settings startup freezes, /ultraplan and remote-session no-change capture failures, otelHeadersHelper paths with spaces, status-bar effort display from skill/agent frontmatter, Ctrl+O transcript tailing, /insights, Remote Control session rename sync, and /feedback context capture before compaction. v2.1.150 (May 23, 2026) is internal infrastructure only. Fetched May 24, 2026. ↩

  168. Claude Code v2.1.172 release notes, Claude Code v2.1.173 release notes, and the Claude Code Changelog (canonical). June 10 to 11, 2026. v2.1.172 (June 10): sub-agents can spawn their own sub-agents, up to 5 levels deep (recursive delegation); when AWS_REGION is unset, the AWS Bedrock region is read from ~/.aws and /status shows the resolved source; /plugin gains a marketplace search bar; the claude_code.lines_of_code.count OTEL metric adds a model attribute. Fixes: stuck sessions on 1M context without credits, image-processing errors, a background sub-agent stuck state, model picker/restrictions, and team-memory recall. v2.1.173 (June 11, UTC): Fable 5 model names carrying a [1m] suffix are automatically normalized/stripped (Fable 5 already includes 1M context by default, so the suffix, meaningful only on Opus/Sonnet, is redundant); plus a Windows fix for a spurious “sandbox dependencies missing” startup warning. ↩↩↩

  169. 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. ↩↩↩↩↩↩

  170. Claude Code v2.1.178 release notes and v2.1.179 release notes, plus the Claude Code Changelog (canonical). June 15 to 16, 2026. v2.1.178: Tool(param:value) permission-rule syntax matching tool input parameters with a * wildcard (e.g. Agent(model:opus)); skills in nested .claude/skills load when working on files there, with <dir>:<name> disambiguation on name clash; nested .claude/ agents, workflows, and output-styles resolve closest-to-cwd on collision (project-scope workflow saves target the closest existing .claude/workflows/); auto mode evaluates subagent spawns with the classifier before launch; compaction now honors the --fallback-model chain on overload/availability errors; MCP server-level specs (mcp__server, mcp__server__*, mcp__*) in subagent disallowedTools no longer silently ignored; /doctor flat-tree layout; /bug requires a description; the workflow prompt keyword triggers only on explicit phrases; plus numerous subagent-transcript, Remote Control, auth/credential, and claude agents fixes. v2.1.179: preserves partial responses on mid-stream connection drops; fixes WSL2 mouse-wheel scrolling (v2.1.172 regression), a sandbox denyRead/allowRead glob over a large tree making the Bash tool description enormous on Linux, the feedback-survey single-digit capture, welcome-screen promo stacking, Ctrl+O subagent transcript viewing, and remote background-task and plugin-loading reliability. v2.1.177: CHANGELOG.md/feed.xml chore only. Fetched June 17, 2026. ↩↩↩↩↩

  171. 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. ↩↩↩

  172. Claude Code v2.1.185 release notes and v2.1.186 release notes, plus the Claude Code Changelog (canonical). June 20 to 22, 2026. v2.1.186: claude mcp login <name> and claude mcp logout <name> authenticate/sign out of MCP servers from the CLI without opening /mcp, with --no-browser stdin redirect to complete over SSH; ! bash commands now trigger Claude to respond to the output automatically ("respondToBashCommands": false keeps the prior context-only behavior); Agent(type) deny rules and Agent(x,y) allowed-types restrictions are now enforced for named subagent spawns; background subagents surface permission prompts in the main session (showing which agent asks; Esc denies just that tool) instead of auto-denying, and Esc/Ctrl+C stay responsive while background agents run after the main turn; /review <pr> uses the same review engine as /code-review medium; /workflows agent detail adds status filtering (press f); /plugin Installed adds a Skills section; teammateMode: "iterm2" (with a warning when auto mode can’t find the it2 CLI); /login adds “Claude Platform on AWS - refresh credentials” when awsAuthRefresh is configured; skill frontmatter display-name/default-enabled/fallback/metadata.* accept kebab-case, snake_case, and camelCase, and malformed SKILL.md YAML loads the body with empty metadata instead of failing silently; claude mcp get/claude mcp remove suggest the closest configured server name on a typo; the agent is reminded to compact its MEMORY.md index near the size limit; CLAUDE_CODE_MAX_RETRIES caps at 15 (use CLAUDE_CODE_RETRY_WATCHDOG for unattended sessions).

    Fixes: streaming “Content block not found”/JSON parse errors after sleep-wake; subagent transcript scroll bleeding into the main transcript on exit; background task previews flashing raw tool names; Chrome tab-group isolation with the permissions gate off; duplicated background recaps; Agent(type) deny / Agent(x,y) allowed-types not enforced for named spawns; ~~strikethrough~~ rendering literal tildes; Workflow agent({schema}) subagents looping forever on repeated schema-validation failures (now aborts after 5). v2.1.185: the stream-stall hint now reads “Waiting for API response · will retry in …” (was “No response from API · Retrying in …”) and triggers after 20s of silence instead of 10s. v2.1.184 was not released. Fetched June 23, 2026. ↩↩↩

  173. 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. ↩↩↩

  174. Anthropic, “Introducing Claude Tag,” anthropic.com, June 23, 2026: Introducing Claude Tag. Claude Tag is a Slack-native agent for Claude Enterprise and Team customers: members tag @Claude in a channel to delegate a task, which the agent decomposes into stages and completes asynchronously, posting results back to the channel; a shared single Claude identity lets teammates hand off in-progress work; administrators scope tool, data-source, and memory access per channel with token-spend limits and activity logs; it runs on Opus 4.8. Anthropic reports its product team routes roughly 65% of its code changes through an internal version. Corroborated by contemporaneous coverage: Fortune and TechCrunch, June 23, 2026. Fetched June 24, 2026. ↩↩↩↩

  175. Claude Code v2.1.191 release notes and the Claude Code Changelog (canonical). June 24, 2026. v2.1.191: /rewind supports resuming a conversation from before /clear was run; the sandbox network-permission dialog remembers allowed hosts for the session; ~37% CPU reduction during streaming responses; reduced long-session memory growth from the terminal-output cache. Fixes: stopping a background agent from the tasks panel is now permanent (no resurrection); scroll no longer jumps to the bottom while reading earlier output mid-stream; /voice explains an org-policy restriction instead of a generic “not available”; /login URL no longer truncates when wrapped in Windows Terminal; Cmd+click links in fullscreen Ghostty over ssh/tmux; claude agents no longer sends builtin slash commands (e.g. /usage) as prompt text and shows the [Image #N] placeholder for pasted images; hooks with comma-separated matchers (e.g. Bash,PowerShell) no longer silently never fire; /permissions Recently-denied approvals persist on close; the agent panel no longer jumps a row past the overflow cap; the welcome splash no longer overflows an 80×24 Terminal; managed forceRemoteSettingsRefresh now takes effect via MDM/file policy; improved MCP server reliability. Fetched June 25, 2026. ↩↩

  176. 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. ↩↩↩↩↩

  177. Anthropic, canonical model documentation, Models overview and Introducing Claude Sonnet 5, June 30, 2026. Claude Sonnet 5: model ID claude-sonnet-5 (dateless pinned snapshot); Claude API alias claude-sonnet-5; AWS Bedrock anthropic.claude-sonnet-5; Google Cloud claude-sonnet-5. 1M-token context window; 128K max output (up to 300K on the Message Batches API with the output-300k-2026-03-24 beta header); adaptive thinking (always on), no extended thinking; reliable knowledge cutoff January 2026. Pricing $3/MTok input and $15/MTok output, with introductory pricing of $2/$10 through August 31, 2026 (vs Opus 4.8 at $5/$25). Anthropic positions it as “the best combination of speed and intelligence,” with performance “close to that of Opus 4.8, but at lower prices,” a substantial improvement over Sonnet 4.6 on agentic reasoning/tool-use/coding/knowledge-work, a lower rate of undesirable behaviors, and much weaker cybersecurity capability than the Opus models. On Claude Code and the Claude API the effort parameter defaults to high on Sonnet 5. Fetched July 1, 2026. ↩↩

  178. 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. ↩↩↩↩↩

  179. Claude Code Changelog (canonical) and GitHub releases, July 3 to 6, 2026. v2.1.200 (July 3): the default permission mode is relabeled “Manual” across the CLI, --help, VS Code, and JetBrains, with --permission-mode manual and "defaultMode": "manual" accepted alongside the unchanged default config value; AskUserQuestion dialogs no longer auto-continue by default (opt into an idle timeout via /config); plus fixes for a startup crash on non-array disabledMcpServers/enabledMcpServers, background sessions stopping after sleep/wake, stale daemon.lock handling, subagents cut off by a rate limit before any output now returning cleanly, and tmux 3.4+ synchronized-output flicker. v2.1.201 (July 3): Claude Sonnet 5 sessions no longer use the mid-conversation system role for harness reminders. v2.1.202 (July 6): a “Dynamic workflow size” /config setting (advisory small/medium/large agent counts, not an enforced cap); workflow.run_id and workflow.name OpenTelemetry attributes on workflow-spawned agents; /review <pr> reverts to a fast single-pass review (use /code-review <level> <pr#> for the multi-agent pass at a chosen effort); re-invoking an already-loaded skill no longer appends a duplicate copy of its instructions to context; a clearer MCP error suggesting "type": "http" when a server config has url but no type; plus Remote Control, resume-by-name performance in many-worktree repos, and installer/updater mid-download retry fixes. GitHub release timestamps: v2.1.200 and v2.1.201 published 2026-07-03, v2.1.202 published 2026-07-06. Fetched July 7, 2026. ↩↩

  180. Claude Code Changelog (canonical) and GitHub releases, July 7 to 9, 2026. v2.1.203 (July 7): grey ⏸ footer badge when in manual permission mode; the session’s additional working directories are added to MCP roots/list, with notifications/roots/list_changed on changes; fixes include background sessions dropping a shell-exported ANTHROPIC_BASE_URL (API keys were sent to the default endpoint and failed with 401), stale-daemon-token background sessions auto-recovering, worktree-isolated subagents sometimes executing in the parent checkout, and TaskStop/TaskOutput failing to find agents spawned by another agent. v2.1.204 (July 8): bug-fix only: hook events not streaming during SessionStart hooks in headless sessions, which could idle-reap remote workers mid-hook. v2.1.205 (July 9): auto mode blocks tampering with session transcript files; auto mode asks before running rm -rf on a variable it cannot resolve from context; background-task notifications explicitly state that no human input occurred, preventing fabricated in-transcript approvals from being acted on; /doctor becomes a full setup checkup that can diagnose and fix issues, with /checkup as an alias; “Claude Browser” reserved as an MCP server name (alongside “Claude Preview”); agent-view rows show a colored state word and classifier-written headline, and sessions that touch an existing PR link it in claude agents; auto-update downloads stream to disk (~400 MB lower peak memory). Fetched July 9, 2026. ↩↩

  181. Claude Code v2.1.206 release notes. July 2026. v2.1.206: /login supports authenticating through Anthropic-operated public gateway endpoints; /commit-push-pr auto-allows git push to the repository’s configured push remote (remote.pushDefault if set, or the sole remote) rather than only origin. Fetched July 17, 2026. ↩↩↩↩

  182. 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. ↩↩↩↩↩↩↩↩

  183. 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. ↩↩↩↩↩↩↩↩↩↩↩↩

  184. Claude Code v2.1.210 release notes. July 2026. v2.1.210: Claude Code now shows a startup warning for permission rules using the Write(path), NotebookEdit(path), or Glob(path) forms: write-side file rules should use Edit(path) (which governs all file-writing tools) and read-side rules Read(path) (which governs file-reading tools, Glob included). Fetched July 17, 2026. The same release changes the auto-mode permission classifier to default to Claude Sonnet 5 for external sessions. ↩↩↩↩↩

  185. 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. ↩↩↩↩

  186. 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. ↩↩↩↩↩↩↩↩↩↩↩

  187. 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.) ↩↩↩↩↩↩↩↩↩

  188. Claude Code CHANGELOG, v2.1.215 entry. July 2026. v2.1.215 (single change): Claude no longer runs the /verify and /code-review skills on its own; invoke them with /verify or /code-review when you want them. Fetched July 21, 2026. ↩↩

  189. Claude Code CHANGELOG, v2.1.216 entry. July 2026. v2.1.216: adds the sandbox.filesystem.disabled setting to skip filesystem isolation while keeping network egress control; fixes a quadratic message-normalization slowdown in long sessions, auto-mode HTTP 401 denials after OAuth token rotation, worktree-isolated subagents redirecting git into the shared checkout via git -C/--git-dir/GIT_DIR, and .claude symlink write redirection; /rewind refuses symlink/hardlink restore paths; /context warns on context-window overflow; mid-session skill/command edits appear in the slash menu without restart; the /fork confirmation shows the new session’s name and claude attach id; cloud sessions recover the in-flight turn after a mid-turn container restart. Fetched July 21, 2026. ↩↩↩

  190. Anthropic research: Claude’s ability to end a rare subset of conversations. 2025. Background on the conversation-ending capability that v2.1.214 brings to Claude Code as the EndConversation tool — deployed on claude.ai since 2025 for rare cases of persistently abusive or harmful interactions. ↩↩

  191. 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. ↩↩↩↩↩↩↩↩

  192. Claude Code CHANGELOG, v2.1.218 entry. July 2026. v2.1.218: /code-review runs as a background subagent so review work no longer fills the conversation, with stacked slash commands remaining its review target; skills with context: fork run in the background by default, with per-skill opt-out via the new background: false frontmatter key; the dangerous-rm, background-&, and suspicious-Windows-path checks no longer open permission dialogs (the auto-mode classifier adjudicates them), and plan mode with auto no longer prompts for Bash commands the static analyzer can’t prove read-only; agent frontmatter hooks require the agent file’s own folder to have accepted workspace trust before running; /deep-research starts only when invoked manually. Plus: left-arrow discard confirmation and Esc-returns-from-agent-view; benign server-managed feature/cost toggles skip the settings-approval prompt; agent names with : rejected; yes/no/on/off/1/0 accepted for skill and plugin frontmatter booleans; trust dialogs name the repository root; improved sandbox restrictions for IDE interactions; Ctrl+B background-shell caps; Bedrock ARN spend metering; fork-session lineage after compaction in headless/SDK sessions; Windows \u-path corruption fix; remote-session zombie-heartbeat fix. Fetched July 24, 2026, when v2.1.218 (published 2026-07-22T21:24Z) was npm latest. (Attribution correction, July 25, 2026: the claude mcp list//mcp HTTP-status-and-error-text item and the MCP hidden-whitespace warning were originally listed here under v2.1.218; the raw changelog places both in the v2.1.219 entry. Moved to 193.) ↩↩↩↩↩↩↩↩

  193. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  194. Anthropic, Introducing Claude Opus 5, plus canonical model documentation: Models overview and Migration guides (the Opus 4.8 to Opus 5 section quoted here was on this page on July 25, 2026 and has since been replaced by the per-model guides). July 2026. Claude Opus 5: model ID claude-opus-5 (dateless pinned snapshot; Bedrock anthropic.claude-opus-5, Google Cloud claude-opus-5); “For complex agentic coding and enterprise work”; 1M token context window, 128K max output (300K on the Message Batches API with the output-300k-2026-03-24 beta header); pricing $5 / input MTok, $25 / output MTok, “the same as Opus 4.8”; adaptive thinking Yes, thinking.type: "enabled" extended thinking No; reliable knowledge cutoff May 2026, training data cutoff May 2026; the effort parameter “defaults to high on the Claude API and Claude Code,” levels low, medium, high, xhigh, max. Anthropic states it is “the new default model on Claude Max, and the strongest model on Claude Pro,” and that it “provides greatly improved performance for the same cost as its predecessor, Opus 4.8.”

    The 26% figure in the post is a customer’s (Niko Grupen, Head of Applied Research), not Anthropic’s: “achieving similar performance while generating 26% fewer tokens on average compared to Opus 4.8 at max reasoning.” Breaking changes from the migration guide: (1) “On Claude Opus 4.8, requests without a thinking field run without thinking; on Claude Opus 5, the same requests run with adaptive thinking”; (2) “You can still turn thinking off with thinking: {type: "disabled"}, but only at an effort level of high or below. A request that combines thinking: {type: "disabled"} with effort xhigh or max returns a 400 error”, “enforced on each request.” Claude Opus 4.8 now appears in the Models overview Legacy models table. Effort-level availability from Effort: xhigh is “Available on Claude Fable 5, Claude Mythos 5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, and Claude Sonnet 5”; max adds Claude Opus 4.6 and Claude Sonnet 4.6; “Claude Opus 5 supports all five effort levels” and “The API default is high.” Fetched July 25, 2026; the three sentences from the announcement were read again on November 11, 2026. ↩↩↩↩↩↩↩↩↩↩↩

  195. Fast mode (research preview), Anthropic platform documentation. Fetched July 25, 2026. “Fast mode delivers up to 2.5x higher output tokens per second from Claude Opus 5 and Claude Opus 4.8 at premium pricing. Set speed: "fast" with the fast-mode-2026-02-01 beta header on your request to opt in.” Supported models: Claude Opus 5 (claude-opus-5) and Claude Opus 4.8 (claude-opus-4-8): $10 USD / MTok input, $50 USD / MTok output, “priced at a multiplier on standard rates across the full context window, including requests over 200k input tokens.” Research preview on the Claude API (including Claude Managed Agents) only: “It is not available on Amazon Bedrock, Google Cloud, or Microsoft Foundry,” nor on Claude Platform on AWS, the Batch API, or with a Priority Tier commitment. On Opus 4.7: “Fast mode is not available on Claude Opus 4.7. Requests to claude-opus-4-7 with speed: "fast" return an error; unlike Claude Opus 4.6 …, requests do not fall back to standard speed.” On Opus 4.6: requests “do not return an error: they run at standard speed and are billed at standard rates … and the response reports usage.speed: "standard".” Same weights and behavior as standard speed; gains are in output tokens per second, not time to first token. Dedicated rate limit with anthropic-fast-*-tokens-* headers; “Switching between fast and standard speed invalidates the prompt cache.” ↩↩↩↩↩↩↩↩↩↩

  196. Claude Code v2.1.221 release notes and Claude Code v2.1.222 release notes, August 4, 2026. v2.1.221: VSCode Focus view (Ctrl+Alt+F); mode: "mask" for sandbox credential files on Linux/WSL with sentinel copies and egress substitution, macOS falling back to deny; background sessions commit/push, draft-PR-only-when-warranted, CLAUDE.md git instructions, and end-of-run location reporting; /fork sessions get their own worktree; /plugin install catalog refresh and retry; immediate plugin activation when safe; "." as plugin skills path; zsh [[ ]] regex-conditional permission bypass fix; PowerShell quoted-path permission fix; prompt-audit subcommand; Stats cache-token breakdown; auto-mode prompt-cache reuse. v2.1.222: Remote Control auto-start restricted to user scope; worktree-isolation git fix extended to file edits and Bash in every session type; PreToolUse auto-allow bypass fix for background tasks; SendMessage permission classification; ultraplan removed. Fetched August 5, 2026. ↩↩↩↩↩↩↩↩

  197. 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. ↩↩↩↩↩↩

  198. 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. ↩↩↩↩↩↩↩↩

  199. Claude Code v2.1.225 release notes and Claude Code v2.1.226 release notes, August 7, 2026 (PST; published 2026-08-08T01:09:26Z and 2026-08-08T02:48:05Z UTC). v2.1.225: cross-machine SendMessage to Remote Control sessions by name with name [ref] listing; gateway spend-limit detail in the usage warning; claude agents workspace trust prompt; OAuth-token, keychain, auto-mode consecutive-block, cross-session parking, self-hosted-runner startup, and Focus view fixes. v2.1.226: bug fixes and reliability improvements only. Fetched August 7, 2026. ↩↩↩

  200. Auto mode is now the default in Claude Code for Pro, Max, Ultra, and Team plans, Anthropic, August 7, 2026, fetched November 11, 2026; the post named Pro, Max, and Team when it was published. The permission-modes docs, as captured on August 13, 2026, stated: “Starting August 14, 2026, auto mode becomes the default permission mode for new sessions on Pro, Max, and Team plans. You can switch modes at any time. A default you set yourself stays in place unless you accept the one-time switch prompt, and a default your organization manages is unchanged.” Effective August 14, 2026 for Pro/Max/Team. Auto mode “routes each tool call through a classifier targeted at blocking actions that are irreversible, destructive, or aimed outside your environment.” Study basis: 1,053 paid testers; auto mode caught 89% of dangerous commands vs 13.6% for human review; users approve 97% of permission prompts. “we’re no longer charging Claude Code users on Pro, Max, Ultra, and Team plans for that classifier overhead, effective today.” Enterprise, the Claude API, Claude Platform on AWS, Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry remain opt-in: “In the coming month, working with our cloud partners, we plan to make it the default across all of these.” Opt out per-session via Shift+Tab or the desktop mode dropdown; pin via defaultMode in managed settings; disable org-wide via disableAutoMode. ↩↩↩↩

  201. How Claude marks AI-generated content, Anthropic Help Center, published August 11, 2026; accessed August 18, 2026. Source for the two-component structure (text watermark + C2PA “signed provenance metadata” on files “such as a .svg, .png, or .jpg”), the unified model timeline (“Claude models launched on or after August 2, 2026 will support machine-readable marking at launch”; existing models: “we’re working to add marking support for those models as well”), the product list (Claude Platform (API), Claude, Claude Code, Claude Cowork, Claude Tag, “wherever Claude is offered, worldwide”), the file-side stripping vectors (format conversion, re-saving, screenshots; heavy editing/paraphrase/translation for text), and the detection limits (“Detecting a Claude mark tells you that the content may have been processed by Claude. It does not, on its own, confirm the full provenance”; an absent mark is not clearance).

    Read again November 11, 2026: the timeline sentences now read “Claude models launched in the EU on or after August 2, 2026 will support machine-readable marking at launch” and “we’re working to add marking support for earlier Claude models”; the page adds a table, “Which Claude models support watermarking”, that marks text watermarks on Fable 5.2, 5.1 and 5, Mythos 5.2, 5.1 and 5, Opus 5.5, 5, 4.8 and 4.7, Sonnet 5.5, 5 and 4.6, and Haiku 5.5, and Content Credentials (C2PA) in files on all eighteen models it lists (Opus 4.6, Opus 4.5, Sonnet 4.5 and Haiku 4.5 carry the file metadata only), with the note “For Sonnet 4.6, outputs may not reliably carry the text watermark when temperature, top_p, or top_k is set to a non-default value.”; and it says “Watermark detection is in private preview.” ↩↩↩↩↩↩

  202. Claude Code release notes v2.1.239 (Aug 21), v2.1.240 and v2.1.241 (Aug 22 and 23, both verbatim “Bug fixes and reliability improvements”), and the canonical CHANGELOG.md on August 24, 2026 (latest heading: 2.1.241; npm latest 2.1.241). v2.1.239 verbatim: “Cost estimates (/cost, status line, --max-budget-usd) now include the 1.1× US-only-inference premium for data-residency workspaces”; “Added /claude-api upgrade to migrate Python projects from anthropic 0.x to 1.x”; “Windows: cross-session messaging is now available”; plugins “now show as name@synced … and never override a same-named plugin you installed”; “ListAgents now tells a session its own name”; readline word keys “Alt+F and Ctrl/Option+→ stop at the end of the word, Alt+D deletes to it (Ctrl+Y pastes it back)”. /design and Remote Control status from the Week 34 digest: “The /design skill brings Claude Design’s artboard workflow into the CLI and Claude Code Desktop, built on artifacts … Available on Pro, Max, Team, and Enterprise. Requires v2.1.233 or later”; “Remote Control is also out of research preview.” Both fetched directly August 24, 2026. ↩↩↩↩↩

  203. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  204. Model configuration, fetched August 30, 2026, section “default model setting”. Verbatim: “The behavior of default depends on your account type”; “Max, Team Premium, Enterprise pay-as-you-go, and Anthropic API: defaults to Opus 5”; “Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform: defaults to Opus 5”; “Pro, Team Standard, and Enterprise subscription seats: defaults to Sonnet 5”; “Microsoft Foundry: defaults to Sonnet 4.5”; “Enterprise pay-as-you-go means an Enterprise organization billed by usage rather than by subscription seat.” History note verbatim: “Before v2.1.219, default resolved to Opus 4.8 on the Anthropic API, Max, Team Premium, and Enterprise pay-as-you-go from v2.1.154, and on Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform from v2.1.207. Before v2.1.207, default resolved to Opus 4.7 on Claude Platform on AWS and to Sonnet 4.5 on Amazon Bedrock and Google Cloud’s Agent Platform.” The Enterprise-seat row is the one surface the CLI has already moved past: the v2.1.251 CHANGELOG (August 28, 2026) says “Changed the default model for seat-based Enterprise subscriptions to Opus 5, matching other premium plans”, which is newer than the docs page – the guide reports Opus 5 for seats and notes the docs lag. ↩↩↩↩↩

  205. Hooks reference, fetched August 30, 2026. PreModelSwitch: “Runs before Claude Code applies a model switch that you or a client requested”; “PreModelSwitch requires Claude Code v2.1.251 or later”; it runs for /model <name> and the pickers, the Model setting in /config, fast-mode toggles that change the session’s model, and SDK/Remote Control set_model or apply_flag_settings requests, but not “for switches it makes on its own, such as an automatic model fallback or restoring the model when you resume a session. Those changes reach PostModelSwitch only”; “Claude Code compares the matcher against the canonical name of the model the session is switching to, ignoring any [1m] suffix”, and when it “can’t determine a canonical name for the target”, “it runs every PreModelSwitch hook regardless of matcher”; decision control: exit code 2 or decision: "block" cancels the switch, and permissionDecision accepts "allow", "deny", and "ask"; the command-hook default timeout is lowered to 30 seconds on UserPromptSubmit, PreModelSwitch, and PostModelSwitch, and “On PreModelSwitch, a hook canceled at its timeout blocks the model switch.”

    PostModelSwitch: “Runs after the session’s model changes”; “It can’t block, because the model has already changed”; it is among the events where “Claude Code adds plain-text stdout as context that Claude can see and act on”, delivered “with the next request after the switch”; its input adds source values "auto" and "resume". SessionStart resume fields: “When source is "resume" or "fork" and the transcript contains at least one response from Claude, SessionStart hooks also receive the four fields below”; “These fields require Claude Code v2.1.251 or later”: seconds_since_last_response, context_tokens, prompt_cache_likely_expired, estimated_cache_write_usd. ↩↩↩↩

  206. Status line and CLI reference, fetched August 30, 2026. Status line, rate_limits.spend_limit.used_percentage / resets_at: “Behind a Claude apps gateway, how much of your spend limit you have used and when its period resets… Requires Claude Code v2.1.251 or later”; “Each window (five_hour, seven_day, spend_limit) may be independently absent, and Claude Code drops a window once its resets_at time passes.” prompt_cache: “The object appears after the main conversation’s first API response. Claude Code doesn’t count subagent requests in these statistics. Requires Claude Code v2.1.251 or later”; “Claude Code computes it from the cache token counts in the API’s responses, so it works on every provider”; “Claude Code shows the same statistics in the terminal, on the /usage command’s Prompt cache (main) line.” CLI reference, --restricted: “Use it when an evaluation harness drives claude on a shared machine and Claude Code must not run commands or read that machine’s user and project settings. Claude Code removes the built-in tools that run commands or code, and WebFetch, unless you name them individually in --tools, not through the default preset. It also confines the built-in file tools to the working directories, loads only managed settings and --settings, refuses bypassPermissions, and refuses to create cloud sessions. Requires Claude Code v2.1.248 or later.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩

  207. Johann Rehberger, “Breaking Claude Code Opus 5 Auto Mode”, Embrace The Red, August 26, 2026. Source for the attack chain (HTTP 415 pushing the agent from WebFetch to curl, archive extraction, the agent-authored decoder, and base64 importing the attacker’s struct.py from the extraction directory), the reported outcomes (3 of 5 for the python3 C2 chain; 3 of 5 and 4 of 5 for two claude -p subprocess configurations, the post’s 60-80%) with the author’s small-sample caveat, the blocked-cleanup observation, Anthropic’s disposition (closed Informative as working as designed; best-effort classifier rather than security guarantee; OS isolation and network egress control as the real boundary), the commissioned 72-scenario evaluation reporting 0.00% and his reading of it as a mixed message, and — via Simon Willison, “Breaking Claude Code Opus 5 Auto Mode”, August 27, 2026, whose August 30 update endorses a Lobste.rs reader’s point — the reclassification of the chain as a confused environment attack rather than a classic prompt injection. ↩↩↩↩↩↩

  208. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  209. Claude Code v2.1.260 release notes, published September 3, 2026 at 23:48 UTC (4:48 PM PT; the npm publish preceded it at 22:32 UTC), and the canonical CHANGELOG the same evening. npm dist-tags that evening: latest and next both 2.1.260, stable 2.1.236. Revert verbatim: “Reverted the 2.1.259 change applying Read() deny rules to Bash arguments; it denied npm run build under a Read(./**/build/**) rule in every mode and made cd … && grep prompt even in auto mode” – the v2.1.257 redirect and reader-command coverage is not named in the revert and stands. Source for: the /diff fullscreen diff panel (“Added a diff panel that opens beside the conversation in fullscreen mode and shows your uncommitted changes as Claude edits; toggle it with /diff”); the parenthesis-path permission fixes (rules with parentheses in the path “being dropped as invalid or ignored by the Bash sandbox, which left ‘read-only’ folders writable”; an uncompilable pattern such as an unclosed [ no longer “making every file edit fail with Invalid regular expression”, such a deny rule now guarding the literal path it spells; the improved settings error for Edit(C:\dir\(name)\**) where \( reads as an escaped parenthesis rather than a path separator; trailing-text rules such as Bash(ls) x reported as invalid settings);

    the four Fable 5.1 launch-cluster fixes (the /model picker showing Fable 5.1 for organizations that can use it, previously “only accepted when typed as /model claude-fable-5-1”; prompt caching covering “the context attached after tool results, so it was re-sent as uncached input on every tool-call turn” before the fix; mid-session /effort changes no longer invalidating the prompt cache; model: fable agents honoring the [1m] tag on an ANTHROPIC_DEFAULT_FABLE_MODEL pin instead of “silently running with a 200K context window”); the auto-compact improvement (“Opus and Fable sessions now compact shortly before the 1M-token limit, and recovery compaction on very large contexts no longer times out at 10 minutes”); the likely-miss-cause line added to /cost and the status line’s prompt_cache field (“e.g. tool definitions or system prompt changed, idle past the TTL”); the ! bash-mode carve-out (“Changed commands typed at the ! bash-mode prompt to run outside the sandbox even when strict sandbox mode (sandbox.allowUnsandboxedCommands: false) is on, like typing into your own terminal”); the managed CLAUDE.md change (“a managed CLAUDE.md (claudeMd) no longer triggers the security approval dialog; hooks, shell-command, sandbox, and unsafe env settings still require approval”); and Claude in Chrome following “your organization’s Claude in Chrome admin setting; when an admin turns it off, --chrome, /chrome and the browser tools are unavailable”. Strict-sandbox-mode semantics (allowUnsandboxedCommands: false ignores dangerouslyDisableSandbox entirely, every command must run sandboxed or be listed in excludedCommands, and the /sandbox Overrides tab labels the state Strict sandbox mode) from the sandboxing docs, fetched September 3, 2026. ↩↩↩↩↩↩↩↩↩↩↩

  210. Claude Developers (@ClaudeDevs) on X, August 29, 2026, two posts: 2093742321473065266, verbatim: “Starting September 14, we’re permanently raising standard weekly limits in Claude Code by 25% for Pro, Max, Team, and seat-based Enterprise plans. Until then, the current 50% increase will be in place.” and 2093742322525810912, verbatim: “Compared to today, this works out to a 17% reduction in weekly limits on Claude Code. We’re working on exciting changes that will make it feel like you’re getting more from Claude, while having more visibility and control of your usage.” Fetched September 3, 2026 via the syndication endpoint (timestamps 2026-08-29T16:47Z). The 150-to-125 illustration is this guide’s arithmetic on those two statements, not a figure Anthropic published. ↩↩

  211. 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. ↩↩↩↩↩↩

  212. 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. ↩↩↩↩↩↩↩↩↩↩↩

  213. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  214. 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)”). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  215. 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)”). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  216. 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). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  217. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  218. Anthropic canonical model documentation, fetched September 22, 2026: Models overview and the Claude Code model configuration docs. Source for Claude Opus 5.5: Claude API ID and alias claude-opus-5-5; Amazon Bedrock ID anthropic.claude-opus-5-5, Google Cloud, Microsoft Foundry, and Claude Platform on AWS IDs claude-opus-5-5; pricing “$4 / input MTok, $20 / output MTok”; cache reads at 5% of the base input price (“Cache hits and refreshes on Claude Opus 5.5 and Claude Sonnet 5.5 are priced at 0.05x the base input price”), which is $0.20/MTok; thinking “Adaptive (always on)” – the same designation as Claude Fable 5.1, where Claude Sonnet 5 reads “Adaptive”; default effort medium (Claude Fable 5.1 and Claude Sonnet 5 both read high); context window 1M tokens; max output 128K tokens, with Opus 5.5 named among the models supporting “up to 300k output tokens with the output-300k-2026-03-24 beta header” on the Message Batches API; reliable knowledge cutoff Jun 2026 and training data cutoff Jun 2026, tying Claude Fable 5.1; retirement “Not sooner than September 22, 2027”; the overview’s recommendation to “start with Claude Opus 5.5 for most workloads”; and Claude Opus 5 now listed in the Legacy models table alongside Fable 5, Opus 4.8, 4.7, 4.6, 4.5 and Sonnet 4.6, 4.5. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    From the model-config docs, the by-plan default table verbatim: “Pro, Max, Team, Enterprise, and Anthropic API: defaults to Opus 5.5”; “Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform: defaults to Opus 5.5”; “Microsoft Foundry: defaults to Sonnet 4.5”; the opus alias table (Anthropic API, Claude Platform on AWS, Amazon Bedrock and Google Cloud’s Agent Platform all resolve to Opus 5.5; Microsoft Foundry resolves to Opus 4.6); the version floor (“Opus 5.5 requires Claude Code v2.1.280 or later. Opus 5 requires v2.1.219 or later. Sonnet 5 requires v2.1.197 or later.”); and the history note (“Before v2.1.280, default resolved to Sonnet 5 on Pro and Team Standard, and to Opus 5 on Max, Team Premium, Enterprise, the Anthropic API, Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform from v2.1.219.”). ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  219. Anthropic platform documentation, fetched September 23, 2026: the Claude Opus 5.5 model page, Migrating to Claude Opus 5.5, and Pricing. Source for Opus 5.5 pricing ($4/$20 per MTok, $0.20 cache reads, “Cache hits and refreshes on Claude Opus 5.5 are priced at 0.05x the base input price”), fast-mode pricing ($8/$40 on Opus 5.5; $10/$50 on Opus 5 and Opus 4.8), and the breaking changes: “Four breaking changes affect code already running on Claude Opus 5: thinking can’t be disabled, forced tool use returns an error, thinking blocks are tied to the model and the conversation, and, on the Claude API and Google Cloud, the earlier computer_20251124 computer use tool is not accepted.” The migration guide supplies the tool_choice detail (any and tool return a 400, including on the token-counting endpoint), the Bedrock exception for computer_20251124, and the change that returns text between tool calls as thinking blocks. ↩↩↩↩↩↩↩↩↩

  220. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  221. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  222. 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”. ↩↩↩↩↩↩↩↩

  223. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩

  224. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  225. Claude Code v2.1.284 release notes (npm published September 28, 2026 at 17:11 UTC; GitHub release 18:02 UTC; 100 bullets, identical to the 2.1.284 section of the canonical CHANGELOG, fetched September 29, 2026, which runs 2.1.283 to 2.1.285 with no gap). Source for every v2.1.284 item in this guide. Key quotes: “Added Claude Sonnet 5.5 (claude-sonnet-5-5), now the default Sonnet model on the Anthropic API”; “Changed interactive terminal and VS Code sessions to start in auto mode when no permission mode is configured, on every plan and provider; permissions.defaultMode still overrides it”; “Changed Ultracode into its own toggle in /effort (Tab, or /effort ultracode [on|off]): it no longer forces xhigh effort and stays on at any effort level”; “Added /mcp reconnect all in the interactive terminal to retry every MCP server that failed to connect or needs authentication at once”; “Added a ‘Yes, but ask again next time’ answer to auto mode’s prompt before a read outside the working directories”; “Added effortSlider:decreaseEffort, increaseEffort and toggleUltracode keybinding actions”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  226. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩

  227. Anthropic documentation, fetched September 29, 2026. Model configuration: the alias table reads “Anthropic API | Opus 5.5 | Sonnet 5.5”; “Sonnet 5.5 requires Claude Code v2.1.284 or later”; the effort default is high “except that Opus 5.5 and Sonnet 5.5 default to medium”; “You can’t turn thinking off on Opus 5.5, Sonnet 5.5, or the Fable models”; for Sonnet 5.5, “cybersecurity-flagged requests re-run on Sonnet 5. Biology-flagged requests end with a refusal”; “Turning ultracode on or off with /effort or the ultracode setting leaves the effort level unchanged”, while “The --effort ultracode flag … turn[s] it on and also set[s] the level to xhigh”. Claude Sonnet 5.5 model page: released September 28, 2026; 1M context, 128K max output; $2/$10 per MTok with $0.20 cache reads (the page’s figure on September 29; it reads $0.10 since, see 236); reliable knowledge cutoff June 2026; retirement no sooner than September 28, 2027; the five breaking changes against Sonnet 5. 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”; the starting-mode table still lists claude -p or the Agent SDK as default. ↩↩↩↩↩↩↩↩↩↩

  228. Claude Code v2.1.286 release notes (npm published September 30, 2026 at 17:14 UTC; GitHub release 19:10 UTC; 88 bullets, identical to the 2.1.286 section of the canonical CHANGELOG, fetched October 1, 2026, which runs 2.1.285 to 2.1.287 with no gap). Source for every v2.1.286 item in this guide. Key quotes: “Changed --bare to connect only the MCP servers named on the command line, send the model no system reminders, and start no background tasks”; “Fixed every turn failing when the Anthropic API refuses the model your default or a model alias resolves to: Claude Code now retries once on the previous model of the same tier”; “Changed /hooks to open on one list of your configured hooks grouped by event”; “Fixed claude auth status reporting a Console sign-in’s stored API key as claude.ai; it now reports api_key”; “Changed plugin installs to refuse npm sources that are git repositories or folders, and to install plugin dependencies only from registry packages”; “Changed how failed API requests are retried: one limit now covers a whole model call, so with the default retry settings a failing call sends at most 14 requests”. ↩↩↩↩↩↩

  229. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  230. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  231. 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)”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  232. 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()”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  233. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩

  234. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  235. 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)”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  236. 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. ↩↩↩↩↩↩↩↩↩↩↩

  237. 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. ↩↩↩↩↩↩↩↩↩↩↩↩

  238. Claude Fable 5.1 model overview and Introducing Claude Fable and Mythos 5.1, Anthropic; fetched September 3, 2026. Source for: the September 1, 2026 release date; $10/$50 per MTok pricing with cache reads at $0.25/MTok (0.025x the input price – 2.5%, versus the standard 10% – a rate only Fable 5.1 and Mythos 5.1 carry) and standard cache writes ($12.50 per MTok 5-minute, $20 per MTok 1-hour); the 1M context window and 128K max output; adaptive always-on thinking with effort defaulting to high; the reliable knowledge cutoff of June 2026 with a June 2026 training-data cutoff; retirement no sooner than September 1, 2027; the Bedrock ID anthropic.claude-fable-5-1; the three breaking changes against Fable 5 (forced tool use returns an error, earlier models cannot read its thinking blocks, editing earlier turns invalidates thinking blocks) and the five additive changes (per-message effort, beta; turn-scoped system messages, beta; progress updates between tool calls with display: "updates", beta; the cheaper cache reads; content provenance); and, as the page read on that date, Claude Mythos 5.1 as the same-spec invitation-only model under Project Glasswing (the page now describes access through Anthropic’s verification programs; see 404).

    On that date the overview’s floor read “Fable 5.1 requires Claude Code v2.1.255 or later”, which named a build never published on npm; the overview carries no Claude Code version today, and the model configuration page says v2.1.257 (see 208 and 404). Models overview, same fetch: Fable 5 now sits in the Legacy models table alongside Opus 4.8, 4.7, 4.6, and 4.5 and Sonnet 4.6 and 4.5. ↩↩↩↩↩↩

  239. Model configuration, fetched September 3, 2026. Verbatim: “Unless you set ANTHROPIC_DEFAULT_FABLE_MODEL, the fable alias resolves to Fable 5.1. Before v2.1.255, it resolved to Fable 5.” The best alias is “the latest Fable model where it’s available to you”. Plan defaults are unchanged by the launch: Opus 5 on the premium plans, Sonnet 5 on Pro and Team Standard. ↩↩

  240. Settings and CLI reference, fetched September 3, 2026. Settings, on permissions.defaultMode: the values auto and bypassPermissions “don’t take effect from project or local settings”. CLI reference, on --effort: the flag “Overrides” the default effort “for this session and doesn’t persist” – the pick no longer outlives the session. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  241. 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. ↩↩

  242. 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. ↩↩↩↩↩↩↩↩↩

  243. Claude Code release notes v2.1.235 (Aug 18), v2.1.236 (Aug 19), v2.1.237 and v2.1.238 (Aug 20), and the canonical CHANGELOG.md on August 20, 2026 (latest heading: 2.1.238). Quoted behavior verbatim from the notes: spellcheck “using your installed aspell, hunspell, or ispell”; ANTHROPIC_DEFAULT_MODEL “sets the model new sessions start on, while a /model pick still overrides it and persists across restarts (unlike ANTHROPIC_MODEL)”; Concise “leads with results and skips preamble and narration, while doing the work just as thoroughly”; keybindingFlavor "readline" “Ctrl+W in the prompt delete back to the previous whitespace, as in Bash”; headersHelper “runs a command that mints HTTP headers (e.g. a short-lived token)” with install/update-only execution for catalog entries and credential-env stripping for project/plugin/agent scopes; auto mode “Monitor allow rules are now set aside while auto mode is active”; macOS sandbox “wildcard read-deny rules (e.g. **/.env) now take precedence inside allowed read regions… and can’t be bypassed by renaming the denied file.” ↩↩↩↩↩

  244. Claude Code documentation, fetched August 26, 2026. Model configuration, effort table: “Fable 5 | low, medium, high, xhigh, max” and “Opus 5, Sonnet 5, Opus 4.8, and Opus 4.7 | low, medium, high, xhigh, max” (no min level exists); “The /effort menu also offers ultracode. Ultracode is a Claude Code setting rather than a model effort level: it sends xhigh to the model and additionally has Claude orchestrate dynamic workflows for substantive tasks”; “Passing ultracode to the --effort flag or the Agent SDK effortLevel value requires Claude Code v2.1.203 or later”; “The persisted effortLevel setting and the CLAUDE_CODE_EFFORT_LEVEL environment variable don’t accept ultracode.” Auto mode configuration: “run /permissions in the CLI and select the Auto mode tab. The tab requires Claude Code v2.1.246 or later, and it appears only when auto mode is available to your session”; “Claude Code shows entries from managed settings or the --settings flag as read-only, and saves every change you make on the tab to ~/.claude/settings.json”; “When you add the first rule to a section, Claude Code also inserts "$defaults" so the built-in rules stay in effect.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Permissions: “Put the * after the subcommand. In git log --oneline main, git is the program and log is the subcommand … Bash(git log *) allows only git log commands, and Bash(git *) allows every git command. Claude Code warns at startup about an allow rule with a * before the subcommand, such as Bash(git * main).” Errors: “Bash(git * main) also approves git -c core.fsmonitor=<script> diff main, where -c makes git run a program the command names”; the fix: “Replace the * before the subcommand with the exact value you mean: Bash(git checkout main) in place of Bash(git * main).” Claude Code on the web: “Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats”; “Run /web-setup in your terminal to sync your local gh CLI token to your Claude account”; “Team and Enterprise Owners can disable /web-setup with the Quick web setup toggle at claude.ai/admin-settings/claude-code”; “Organizations with Zero Data Retention enabled can’t use /web-setup or other cloud session features.”

    (These four cloud-session quotes are the page as it read on August 26, 2026. On November 10, 2026 it reads “Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats”, “Run /web-setup in your terminal to send your local gh CLI token to your Claude account”, and, of the Quick setup toggle, “On Team and Enterprise plans it’s off by default”.) Costs, /usage: “Loops: a row for each of the heaviest /loop or other scheduled tasks that ran recently, ordered by total tokens, with a count of the rest. Claude Code reports how often each task fires, how many times it ran, its total and per-run tokens, and when it last ran. Claude Code keys a row by the task’s prompt, so a loop you stop and re-create stays one row. Requires Claude Code v2.1.242 or later.” ↩↩↩↩↩↩↩

  245. 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). ↩↩↩↩↩↩↩↩

  246. Claude Code CHANGELOG, sections 2.1.246 and 2.1.245, fetched August 26, 2026; npm published 2.1.245 on August 25, 2026 at 04:45 UTC and 2.1.246 at 19:17 UTC, with a matching GitHub release for each. Verbatim 2.1.246: “Added a startup warning for Bash allow rules with a wildcard before the subcommand (e.g. Bash(git * main)), since they also match options inserted before the subcommand”; “Added an Auto mode tab to /permissions for viewing and editing auto mode classifier rules”; “Improved /cd: the new directory’s project settings, hooks, .mcp.json servers (behind the usual approval prompt), skills, and agents now take effect right after the move instead of on --resume”; “Improved subagent results: a subagent that stops at its maxTurns limit now returns its output marked as partial, with a hint to continue it via SendMessage, instead of appearing finished”; “/goal: Changed idle sessions to start at most three check-ins on long-running background work per goal; your next message allows three more”; “Fixed Bash permission checks to always require approval for malformed commands with a dangling && or || operator”; “Fixed telemetry and metrics requests to Anthropic carrying the API key configured for a third-party gateway (ANTHROPIC_BASE_URL); a credential is now only sent to its own host”; “Added the turn’s completion time to the end-of-turn duration line”. Verbatim 2.1.245: “Fixed a crash on startup on Linux distributions that ship glibc 2.44 (for example Arch Linux, CachyOS and Fedora Rawhide)”. ↩↩↩↩↩↩↩↩↩

  247. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  248. Anthropic Pricing, fetched August 26, 2026. Verbatim note: “The $2/$10 per million input/output token pricing for Claude Sonnet 5, announced at launch as introductory pricing through August 31, 2026, is now the standard price. The previously scheduled increase to $3/$15 per million input/output tokens on September 1, 2026 will not occur.” The pricing table lists Claude Sonnet 5 at $2 / MTok input and $10 / MTok output. Claude Code CHANGELOG, 2.1.243: “Updated the /model picker and the bundled claude-api skill to show Sonnet 5’s $2/$10 per Mtok pricing as its standard list price rather than a limited-time promo”. Model configuration on the sonnet[1m] alias: “No effect when sonnet already resolves to Sonnet 5 with its native 1M window; behind an LLM gateway, selects the 1M window for Sonnet 5”; and: “On the Anthropic API, Sonnet 5 always runs with the 1M context window. There is no 200K variant, no [1m] suffix to select, and no usage credits required on any plan.” ↩↩↩

  249. How Claude’s text watermarking works, Anthropic, August 14, 2026. Source for all quoted language: “Future Claude models will generate text that contains a watermark”; the pre-August-2 transition-period status of existing models (“we’re working to add watermarking for those models as well”); the SynthID-Text basis and randomness-source mechanism; light-editing/full-rewrite durability; translation carrying its own mark; the planned detection API; “Claude was likely involved with the content at some point” and the wrote-vs-edited limit; the no-quality-impact claim. Code sparsity detail (“negligible effect on the actual code produced,” watermark in arbitrary choices such as comments) per Anthropic as reported in TechCrunch’s August 15 follow-up. Regulatory trigger: EU AI Act Article 50, enforceable August 2, 2026 for newly launched systems. ↩↩↩↩↩↩

  250. 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. ↩↩↩

  251. 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. ↩↩↩↩

  252. Claude Code v2.1.231 and v2.1.232 release notes, August 13, 2026. v2.1.231: MCP OAuth redirect-URI fix for pre-registered clients. v2.1.232: subagent forking on by default with prompt-cache inheritance; @-mention of live sessions with bare-name exact-match SendMessage delivery; unique per-machine session names; /config rows for dialog expiry and cross-session inbound; GitLab token-family redaction, glab credential protection, and GitLab plugin marketplaces; additionalMarketplaces/allowedMarketplaces aliases; gateway desktop-overlay schema validation and policy-entry boot validation; Fable 5 in /advisor; PowerShell, Cygwin-symlink, and nested-git-trust security fixes. Fetched August 14, 2026. ↩↩↩↩

  253. Claude Code v2.1.228 release notes, August 11, 2026. Fix-heavy release: TUI redraw stall, Windows git discovery, /tui model reversion, cross-session inbox initialization and inline message display, Remote Control /resume history leak, self-hosted-runner checkout-hook and cleanup-gap fixes, memory-folder cleanup, plugin-cache symlink protection, marketplace whole-entry settings merge, deferred-tools reminder dedupe; hardens claude.ai-synced skills (no command/MCP shadowing, sanitized descriptions, no !/@ execution); Vertex credentials fail fast; Write tool matches Edit’s overwrite rules on newer models; removes the outdated auto-mode cost note from the first-use notice. ↩

  254. 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. ↩↩↩↩↩↩↩↩↩↩

  255. Claude Code v2.1.227 release notes, August 10, 2026. Bug-fix and polish release: subscription-tier feature-flag evaluation on expired login tokens, claude-code-action Bash failures with allowed_non_write_users on GitHub-hosted runners, /tui rewind restoration, slash-command menu highlighting, and event-loop stall reductions. Fetched August 11, 2026. ↩

  256. Message your other Claude Code sessions, Anthropic Claude Code documentation. Accessed August 8, 2026. Source for the delivery outcomes (delivered/held/refused), crossSessionInbound semantics and the permission-mode-class default, dialogExpiry five-minute default and 100-held cap, the four receiving-side restrictions, transport table and filesystem-visibility rule, -p/bare-mode socket behavior, own-child verification per platform, CLAUDE_CODE_MESSAGING_SOCKET export timing, isolatePeerMachines any-scope-true semantics, loop throttling and the 50 unread-message cap, availability (macOS/Linux/WSL 2; not native Windows; not Bedrock/Claude Platform on AWS/Google Agent Platform/Microsoft Foundry), and the feature-flag dependency on CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, DISABLE_TELEMETRY, DO_NOT_TRACK, and DISABLE_GROWTHBOOK. ↩↩↩

  257. Claude Code v2.1.190 release notes and the Claude Code Changelog (canonical). June 24, 2026. v2.1.190: bug fixes and reliability improvements only, with no user-facing feature, setting, command, or pricing changes. (v2.1.188 and v2.1.189 were not released.) Fetched June 24, 2026. ↩

  258. Claude Code v2.1.170 release notes, the Claude Code Changelog (canonical), and Anthropic news: Claude Fable 5. June 9, 2026. v2.1.170 makes Claude Fable 5 selectable in Claude Code (/model claude-fable-5 after claude update): a new tier above Opus, model ID claude-fable-5, 1M context / 128K output, $10/$50 per MTok, with safety classifiers that fall back to Opus 4.8 on cyber/bio-chem/distillation queries and a rollout to subscription plans through June 22, 2026. Fable 5 shares Opus 4.8’s request surface (adaptive thinking only; temperature/top_p/top_k and budget_tokens removed) but adds one breaking change: an explicit thinking: {type: "disabled"} returns HTTP 400, so omit the parameter to run without thinking. The release also fixes sessions launched from the VS Code integrated terminal (or any shell inheriting Claude Code environment variables) failing to save transcripts and not appearing under --resume. Pricing, context window, and request-surface details are from the bundled claude-api model catalog (cached 2026-05-26). Claude Code-specific Fable 5 behavior (the fable/best aliases, the full low to max effort scale (high default), thinking that cannot be disabled (session toggle / alwaysThinkingEnabled / MAX_THINKING_TOKENS=0 all no-ops), the claude-fable-5[1m] extended-context variant, and the ANTHROPIC_DEFAULT_FABLE_MODEL / DISABLE_PROMPT_CACHING_FABLE config) is from the Claude Code model configuration docs, read June 10, 2026. Fetched June 9 and 10, 2026. ↩↩↩↩

  259. Claude Code v2.1.169 release notes and the Claude Code Changelog (canonical). June 8, 2026. Adds the --safe-mode flag and CLAUDE_CODE_SAFE_MODE env var (launch with CLAUDE.md, plugins, skills, hooks, and MCP servers all disabled for troubleshooting), the /cd command (move a session to a new working directory without breaking the prompt cache), and the disableBundledSkills setting plus CLAUDE_CODE_DISABLE_BUNDLED_SKILLS env var (hide bundled skills, workflows, and built-in slash commands from the model). Plus ~20 fixes: wrapped-row Up/Down navigation, enterprise MCP policy enforcement on reconnect and IDE-typed configs, a 30 to 50ms macOS UI stall with claude.ai credentials, claude -p Windows performance, Remote Control reconnection, Windows Git Credential Manager popup, custom-statusline footer hints, stale remote-session prompts, claude agents --json omitting blocked sessions, TaskCreate input auto-repair, lower streaming CPU, restored Vertex/Foundry idle timeout, skill-tag contrast, and background-session flag preservation across retire→wake. Fetched June 9, 2026. ↩↩↩

  260. Claude Code v2.1.166 release notes, Claude Code v2.1.167 release notes, Claude Code v2.1.168 release notes, and the Claude Code Changelog (canonical). June 6, 2026. v2.1.166 adds the fallbackModel setting (up to three fallback models tried in order when the primary is overloaded/unavailable), extends --fallback-model to interactive sessions, and retries a turn once on the fallback model for unexpected non-retryable API errors; adds glob support in the deny-rule tool-name position ("*" denies all tools) while allow rules reject non-MCP globs; hardens cross-session messaging so SendMessage-relayed messages from other Claude sessions no longer carry user authority; makes MAX_THINKING_TOKENS=0, --thinking disabled, and the per-model thinking toggle disable thinking on think-by-default models; and makes claude update announce the target version before downloading, plus fixes for image processing, remote-session stability, and terminal rendering (JetBrains, WezTerm/Ghostty). v2.1.167 and v2.1.168 (both June 6) are bug-fix/reliability-only with no individually documented user-facing changes. Fetched June 6, 2026. ↩↩↩↩↩

  261. Claude Code v2.1.163 release notes and the Claude Code Changelog (canonical). June 4, 2026; the changelog jumps from v2.1.160 to v2.1.163 with no published 161/162. Adds requiredMinimumVersion/requiredMaximumVersion managed settings (refuse to start outside an approved version range), /plugin list with --enabled/--disabled filters, Stop/SubagentStop hookSpecificOutput.additionalContext for non-error feedback that keeps the turn going, /btw “c to copy” raw markdown, skills \$ literal-dollar escape, and stdio MCP servers receiving the session’s CLAUDE_CODE_SESSION_ID on --resume. Fixes include claude -p hanging on never-exiting background commands, Bedrock/Vertex/Foundry claude -p under CI=true demanding an Anthropic key, the v2.1.154 $TMPDIR regression breaking bazel/EDR-protected Go, OneDrive/read-only session-env EEXIST on Windows, late-applying org-managed permission rules, background sessions losing tasks across updates, hook if: "Bash(...)" over-matching $()/$VAR, and ~-path deny rules not blocking $HOME references. Fetched June 4, 2026. ↩↩↩

  262. Claude Code v2.1.160 release notes and the Claude Code Changelog (canonical). June 2, 2026. Adds permission prompts before writing shell startup files (.zshenv, .zlogin, .bash_login) and ~/.config/git/; acceptEdits now prompts before build-tool config files that grant code execution (.npmrc, .yarnrc*, bunfig.toml, .bazelrc, .pre-commit-config.yaml, .devcontainer/, and similar). A single-file grep/egrep/fgrep now satisfies the read-before-edit check. Renames the dynamic-workflow trigger keyword from workflow to ultracode (violet-highlighted in the prompt input); the word “workflow” no longer triggers a run. Removes CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE (now a no-op) and the JetBrains plugin install suggestion at startup. Plus ~25 fixes: WSL copy-on-select via PowerShell interop instead of OSC 52, claude agents session restore dropping chat history and re-running the original prompt, overnight-retired background sessions losing conversation, claude --bg “socket missing” cold-start race, Windows background-session input unresponsiveness under heavy CPU, terminal sync-output artifacts on Apple Terminal/tmux, CJK IME caret position in the claude agents view, file:///C:/... link rewriting on Windows hyperlink terminals, voice mode failing on non-ASCII project/branch names, the auto-mode-unavailable message on third-party providers now pointing to CLAUDE_CODE_ENABLE_AUTO_MODE instead of blaming the model, /effort ultracode no longer offered on models that cannot run xhigh, model-not-found errors no longer suggesting --model under the SDK, vim p paste position after v$ yank, and SIGTERM-before-SIGKILL on background-session teardown. Fetched June 2, 2026. ↩↩

  263. Claude Code v2.1.156 release notes, Claude Code v2.1.157 release notes, Claude Code v2.1.158 release notes, Claude Code v2.1.159 release notes, and Claude Code Changelog (canonical). v2.1.156 (May 29, 2026) fixes an Opus 4.8 thinking-block mutation that surfaced as API errors; no 2.1.155 was published. v2.1.157 (May 29, 2026) makes .claude/skills/ plugins auto-load without marketplace registration, adds claude plugin init <name> scaffolding, gives /plugin argument autocomplete, lets EnterWorktree switch between Claude-managed worktrees mid-session, leaves background worktrees unlocked after the agent finishes so git worktree remove/prune work without manual unlocks, includes tool_parameters in tool_decision telemetry events when OTEL_LOG_TOOL_DETAILS=1, plus fixes for unprocessable-image crashes (now text placeholders), sandbox network permission prompts in auto/bypass mode across desktop / IDE / SDK surfaces, background-session retire-on-park, agents-list Esc cancellation of “opening…”, background worktrees orphaned by the 30-day retention sweep, --resume background-subagent reporting, terminal rendering / clipboard in tmux + VS Code + Cursor + Windsurf, WSL image / screenshot / drag paths, long-resumed-conversation performance, and /terminal-setup disabling GPU acceleration in integrated terminals. v2.1.158 (May 30, 2026) makes Auto Mode available on Bedrock, Vertex, and Foundry for Opus 4.7 and Opus 4.8 with CLAUDE_CODE_ENABLE_AUTO_MODE=1. v2.1.159 (May 31, 2026) is internal infrastructure only with no announced user-facing changes. Fetched May 31, 2026. ↩↩↩

  264. Claude Code v2.1.152 release notes, Claude Code v2.1.153 release notes, Claude Code v2.1.154 release notes, and Claude Code Changelog (canonical). No 2.1.151 was published; the May 23, 2026 infrastructure-only release is v2.1.150. v2.1.152 (May 27, 2026) introduces /code-review --fix apply-to-working-tree, disallowed-tools skill/command frontmatter, /reload-skills, SessionStart hook reloadSkills/sessionTitle outputs, the MessageDisplay hook event, pluginSuggestionMarketplaces managed setting, --fallback-model mid-session switching, removal of auto-mode opt-in, vim / reverse history, plus rendering, performance, and reliability fixes. v2.1.153 (May 28, 2026) adds skipLfs to plugin marketplaces, makes /model save as the new-session default (with s for session-only and a modelPicker:thisSessionOnly keybind replacing modelPicker:setAsDefault), and puts COLUMNS/LINES in status-line env; macOS background agents persist Privacy & Security grants; plus 25+ fixes covering stateful MCP tools/list reconnect loops, custom-gateway OAuth-credential leak, subagent MCP policy enforcement, Windows installer / update channel fixes, and background-session attach reliability.

    v2.1.154 (May 28, 2026) makes Opus 4.8 the default with high effort by default and a new /effort xhigh level, introduces dynamic workflows orchestrating tens to hundreds of agents in the background via /workflows, makes Fast mode on Opus 4.8 available at 2× standard rate for 2.5× speed, defaults the lean system prompt for all models except Haiku/Sonnet/Opus 4.7-and-earlier, narrows the multiple-choice-question prompt to genuinely unmakeable decisions, reverts /simplify to cleanup-only review separate from /code-review --fix’s bug-hunting pass, relabels /effort slider to “Faster”/”Smarter”, adds claude agents ! <command> background-shell sessions plus claude --bg --exec '<command>', lets plugins declare defaultEnabled: false, pins suggested plugins to the current directory in /plugin Discover, makes streaming tool execution always-on, passes CLAUDE_CODE_SESSION_ID and CLAUDECODE=1 to stdio MCP subprocess env, marks unapproved .mcp.json servers as ⏸ Pending approval instead of auto-connecting, and deprecates CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE (removed June 1; switch to /model claude-opus-4-6[1m] then /fast on). Fetched May 28, 2026. ↩↩↩

  265. 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. ↩↩↩↩↩

  266. Configure the sandboxed Bash tool, Claude Code Docs, fetched October 11, 2026. Defaults table: writes to “The working directory, a per-user temp directory, and directories you’ve added”; reads “Most of the machine, including credential files such as ~/.ssh and ~/.aws/credentials”; network through a local proxy whose allowed domains “start empty”. Outside the sandbox: built-in file and web tools “follow permission rules instead. A denyRead entry doesn’t stop the Read tool”; “command hooks, local MCP servers, plugin monitors, LSP servers, and helper commands such as your status line command and apiKeyHelper run with your full access.” Narrowing reads: sandbox.filesystem.denyRead, allowRead, and permissions.blockReadsOutsideWorkingDirectories. ↩↩↩

  267. Claude Code documentation, re-fetched October 13, 2026. Mods reference: still “as of v2.1.290”; tool.check gains “e.agentId: set when a subagent or an in-process teammate makes the call” and “e.ceiling: ask for a connector tool your organization set to ask”, with “On tool.check, e.agentId and e.ceiling require Claude Code v2.1.290 or later”; prompt.autocomplete is listed (“The user types in the prompt box and a word ends at the cursor. e.token is that word”); the $.ui namespace lists resolve, invalidate, open, close, panes, focus, scroll, toast, status, log, notice, ask, copy, selection, and blit, with no notify; no entry for serverToolUses or $.tool.register. Hooks: “In Claude Code v2.1.296 or later, each command hook on a tool event, UserPromptSubmit, SessionStart, Stop, and several other events leaves one when it finishes, whatever it printed”; “PowerShell commands receive the variables from CLAUDE_ENV_FILE too, in Claude Code v2.1.296 or later, but PowerShell never runs the file”. Claude apps gateway: “On machines with no managed settings, have each developer add forceLoginMethod and forceLoginGatewayUrl to their own user settings file, ~/.claude/settings.json”; “Under code, they also reach the Code tab’s session when the conditions for the Code tab hold. They don’t reach Cowork or Chat sessions.” Environment variables and Sub-agents: still no entry for CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL, CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, or autoCompactWindow. ↩↩

  268. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  269. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩

  270. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩

  271. 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). ↩↩↩↩↩↩↩↩↩↩↩↩

  272. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  273. 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”. ↩↩↩↩↩↩↩↩↩↩↩

  274. Hooks reference, Claude Code documentation, fetched October 21, 2026 and re-read November 25, 2026; every quotation here is the November 25 wording. JSON output: “Print nothing but the JSON object to stdout.”; “Universal fields like continue are listed in the table below. Every event accepts them, but some events discard them or deliver systemMessage somewhere other than the transcript. Each event’s section says so.”; “Top-level decision and reason are used by some events to block or provide feedback.”; “hookSpecificOutput is a nested object for events that need richer control. It requires a hookEventName field set to the event name.” Universal fields table: continue “If false, Claude stops processing entirely after the hook runs. It doesn’t block a PreToolUse tool call, so to do that, also return permissionDecision: "deny"”; stopReason “Message shown to the user when continue is false. It stays in the conversation, so Claude sees it if the conversation continues”; suppressOutput “Has no effect”; systemMessage “Warning message shown to the user. In Agent SDK and --output-format stream-json output, it can arrive as an SDKInformationalMessage”; terminalSequence “A terminal escape sequence for Claude Code to emit on your behalf, such as a desktop notification, window title, or bell. Restricted to OSC 0/1/2/9/99/777 and BEL. If the value contains anything outside the allowlist, the field is ignored.”, with the limit “Claude Code writes the sequence only in an interactive session, and only while its interface is open. In non-interactive mode with the -p flag and in the Agent SDK, it ignores the field.” Where continue: false does something else: “on events such as Stop and SubagentStop, the field takes precedence over exit code 2, so Claude or the subagent ends its turn”; “On PreToolUse, the tool call stays blocked with or without the field.”; TaskCreated, “Claude Code ignores continue: false from this event and Claude keeps working.” Exit code 0: “your stdout counts as JSON output only when you print one JSON object, on one line or several, with nothing around it but whitespace”; “Claude never sees stderr from a hook that exits 0.” Other exit codes: “A <hook name> hook error notice with Failed with non-blocking status code: means your hook didn’t exit 0 or 2 and its stdout was plain text or empty.”; “If the notice cuts off your stderr, turn on debug logging”. Failed hooks on Windows without Git Bash: “a shell-form PreToolUse, PermissionRequest, or PreSkillShellCommand command hook that fails with onFailure unset can instead block the action”; “The call should go ahead when the hook fails: add "onFailure": "continue" to the hook”. Failures counted: “MCP failure: an mcp_tool hook’s server isn’t connected, or its tool returns an error.”

    The word “modifications” occurs on the page only in the ConfigChange prose (“block unauthorized modifications to configuration files”), never as an output field. Exit code 0: “For most events, Claude Code writes stdout to the debug log and doesn’t show it in the transcript. The exceptions are UserPromptSubmit, UserPromptExpansion, SessionStart, and PostModelSwitch, where Claude Code adds plain-text stdout as context that Claude can see and act on.” JSON output: “Print nothing but the JSON object to stdout. For a hook that isn’t async, other text there, such as a line your shell profile echoes at startup, keeps Claude Code from reading the object as JSON, and Hook JSON has no effect shows how to find and silence that text.”

    Exit code 0 with JSON: “Claude Code applies any JSON output fields your hook printed, and the action goes ahead unless those fields block or deny it.” Other exit codes: “Unless the hook is one whose failure blocks the action, this is a non-blocking error, so your hook didn’t stop the action.”; “To capture your hook’s full stderr rather than the first line the notice shows, enable debug logging.”; and in the output table, any other exit code with a “JSON object that passes schema validation” is “Success. Claude Code ignores the exit code, and the fields alone decide. For hooks whose failure blocks the action, the run counts as a failure instead”. terminalSequence: “Claude Code writes the sequence only in an interactive session, and only while its interface is on screen. In non-interactive mode with the -p flag and in the Agent SDK, it ignores the field.” Re-read November 10, 2026: the page now adds “PreCompact: your stdout becomes instructions for the compaction summary” to the events whose stdout is used. ↩↩↩↩↩↩

  275. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  276. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  277. Let Claude coordinate ongoing work with Projects, Claude Code documentation, fetched October 26, 2026 and re-read November 10, 2026: “Projects are in public beta on Pro, Max, and Ultra plans and rolling out gradually” (“Pro and Max plans” on October 26); “Projects aren’t offered on Team or Enterprise plans yet”; “Project instructions: Text sent to each new thread and to Claude in the project conversation, up to 16,000 characters”; “A new project runs every thread on Opus at medium effort”; “The enforced limit is 500 new threads per day across your projects” (200 on October 26); “Both need Claude Code v2.1.280 or later on that computer”; the “What threads pick up from your repositories” table. Launch post: Projects redesigned: from folder to conversation, Anthropic, September 17, 2026: “Starting today, updated projects are available in beta to select Claude Pro and Max subscribers who use cloud sessions in Claude Code”. The canonical CHANGELOG through 2.1.310 never mentions the feature. The cloud sessions page lists “Mobile: the Code tab in the Claude app”, and the Projects page names the Claude mobile app for iOS and Android. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩

  278. Use Claude Code in the cloud, Claude Code documentation, fetched October 26, 2026: “Start a cloud session from the command line with the --cloud flag”; “The cloud VM clones your current directory’s GitHub remote at your current branch, not your local checkout, so push first if you have local commits”; “The older --remote spelling still works as a deprecated alias for --cloud”; “The CLI queues the message into the session and exits without waiting for a reply”; “--output-format stream-json isn’t supported with --cloud <session-id>”; “--cloud creates cloud sessions. --remote-control is unrelated”. claude --help on 2.1.310 lists --cloud [description|session_id|url] Create a cloud session; the flag appears in no CHANGELOG entry. ↩↩↩↩↩↩↩

  279. Automate work with scheduled tasks, Claude Code documentation, fetched October 26, 2026: “Create scheduled tasks, formerly routines, that run in the cloud on a schedule, on API calls, or on GitHub events”; “Scheduled tasks are in research preview”; “Expressions that run more often than once per hour are rejected”; the hourly limits table (100 scheduled runs per hour per account; 30 per hour per task for Run now, API fires, and re-running a one-off); “the /routines alias for /schedule”; “Adding one from the CLI requires Claude Code v2.1.225 or later”; the Scheduled tasks (Was Routines) toggle. Schedule recurring tasks in Claude Code Desktop, same fetch: “only fires while the app is open and your computer is awake”, and the Cloud, Desktop, /loop comparison table. ↩↩↩↩↩

  280. 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”). ↩↩↩↩

  281. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  282. 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. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  283. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  284. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  285. 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. ↩↩

  286. Claude Code Docs, fetched November 10, 2026. How Claude remembers your project: “Reading AGENTS.md directly requires Claude Code v2.1.277 or later.” and, of the sessions that read CLAUDE.md only, “In some cases, it’s your first session after you upgrade from v2.1.276 or earlier. Claude reads AGENTS.md from your next session on” Authentication: “Claude for Teams or Enterprise: log in with the claude.ai account your team admin invited you to.” Claude Code on Google Cloud’s Agent Platform: “Learn about configuring Claude Code through Google Cloud’s Agent Platform, formerly Vertex AI, including setup, IAM configuration, and troubleshooting.” Claude Code on Claude Platform on AWS: export CLAUDE_CODE_USE_ANTHROPIC_AWS=1, and “ANTHROPIC_AWS_WORKSPACE_ID is required.” The CHANGELOG for v2.1.281: “Changed AGENTS.md support to also work on Amazon Bedrock, Google Vertex AI, Microsoft Foundry, LLM gateways, and sessions with telemetry disabled” ↩↩↩

  287. Anthropic. “Donating the Model Context Protocol and establishing the Agentic AI Foundation.” December 9, 2025. “There are now more than 10,000 active public MCP servers, covering everything from developer tools to Fortune 500 deployments” Fetched November 10, 2026. ↩↩↩↩↩

  288. Claude Code Docs. “Advanced setup.” Fetched November 10, 2026. System requirements: “macOS 13.0+”, “Windows 10 1809+ or Windows Server 2019+”, “Ubuntu 20.04+”, “Debian 10+”, “Alpine Linux 3.19+”, and “4 GB+ RAM, x64 or ARM64 processor”. Windows options: “Installing Git for Windows is optional.”; sandboxing is listed as “Supported” for WSL 2 and “Not supported” for native Windows and WSL 1. Linux packages: “Claude Code publishes signed apt, dnf, and apk repositories.” Updates: “Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default; see below to opt in for Homebrew and WinGet.” Node floor for npm: “The npm package requires Node.js 22 or later.” Uninstall: “The VS Code extension, the JetBrains plugin, and the Desktop app also write to ~/.claude/. If any of them is still installed, the directory is recreated the next time it runs.” ↩↩↩↩↩↩↩↩↩↩↩

  289. 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". ↩↩↩↩

  290. 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. ↩↩↩↩↩↩↩↩↩↩

  291. Docker Docs, fetched November 10, 2026. Claude Code sandbox: the quick start is sbx run claude ~/my-project; “Without extra args, the sandbox runs:” claude --dangerously-skip-permissions; “Sandboxes don’t pick up user-level configuration from your host, such as ~/.claude. Only project-level configuration in the working directory is available inside the sandbox.”; “The sandbox uses docker/sandbox-templates:claude-code.” Install Docker Sandboxes. sbx run: “Run an agent in a sandbox, creating the sandbox if it does not already exist.” sbx rm, fetched November 11, 2026: “For local sandboxes, stops them, removes their containers, removes any Git remote added to the host repository for them, deletes sandbox state, and deletes secrets scoped to each removed sandbox.” “This action cannot be undone.” ↩

  292. Claude Code Docs, “Run Claude Code programmatically”, and Claude Code Docs, “CLI reference.” Fetched November 10, 2026. SIGTERM, from the headless page: “If you stop a claude -p run with SIGTERM, for example with kill or from a process supervisor, Claude Code exits with code 143. Claude Code leaves the turn that was in progress unfinished and records no result for it.” --permission-prompts, from the CLI reference: “With the default host, Claude Code sends them to the Agent SDK host or the --permission-prompt-tool tool.” --from-pr: “Accepts a PR number, a GitHub or GitHub Enterprise PR URL, a GitLab merge request URL, or a Bitbucket pull request URL.” Streaming output, from the headless page: “Use --output-format stream-json with --verbose and --include-partial-messages to receive tokens as they’re generated.” The CLI itself (v2.1.322) stops a print-mode run that omits the flag with Error: When using --print, --output-format=stream-json requires --verbose. ↩↩↩↩↩

  293. Claude Code Docs. “Choose a permission mode.” Fetched November 10, 2026. “Plan mode tells Claude to research and propose changes without making them. Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source. Except in interactive terminal sessions with bypass permissions available, edits stay blocked until you approve the plan.” The Shift+Tab cycle: “From auto, the first press switches to default, and the cycle then runs default → acceptEdits → plan.” Shell commands in plan mode: “the classifier reviews shell commands other than critical-path removals instead of prompting you.” Plan approval: “Press Ctrl+G to open the proposed plan in your default text editor and edit it directly before Claude proceeds.” The All settings page gives the plansDirectory default as “unset, so Claude Code uses ~/.claude/plans” and the showClearContextOnPlanAccept default as false. ↩↩↩↩

  294. 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.” ↩↩↩↩↩↩

  295. 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)” ↩↩↩↩

  296. Model configuration and Interactive mode, fetched November 10, 2026. Model configuration, version history for v2.1.321: “best resolves to the same model as opus. Earlier versions use the model fable resolves to, where Fable is available” and “fable resolves to Fable 5.2, except in Claude apps gateway sessions”. Default model: “Pro, Max, Ultra, Team, Enterprise, and Anthropic API: defaults to Opus 5.5”. Context: “Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later run with the 1M window by default, with no [1m] suffix needed” and “Opus 4.6 and Sonnet 4.6 reach 1M only through their [1m] variant, and access to that variant depends on your plan. On Max, Ultra, Team, and Enterprise plans, including both Team Standard and Team Premium seats, Opus 4.6 with 1M context is included with your subscription.” Re-read November 25, 2026, where the wording had changed: model-config, “The terminal prompt, where the word shows in rainbow colors when it can raise the turn. Requires Claude Code v2.1.311 or later.”

    Effort: “Opus 5.5 and models released after it start at their own default until you choose a level”. Flagged requests: “Fable models and Opus 5.5: biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8.” Thinking: “You can’t turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models” and “Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning. The fixed thinking budget mode and CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING don’t apply to them.” On ultrathink: “Typed in the terminal prompt, the word can also raise that turn to xhigh effort.” Interactive mode, on the Option+T / Alt+T thinking toggle: “Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  297. Anthropic platform model pages, fetched November 10, 2026: Claude Opus 4.7 (“Legacy. Released April 16, 2026.” “Although Claude Opus 4.7 is still available, you should consider migrating to Claude Opus 5.5.”; retirement “Not sooner than April 16, 2027”), Claude Opus 4.6 (“Although Claude Opus 4.6 is still available, you should consider migrating to Claude Opus 5.5.”), Claude Sonnet 4.6 (“Although Claude Sonnet 4.6 is still available, you should consider migrating to Claude Sonnet 5.5.”) and Claude Fable 5 (“Although Claude Fable 5 is still available, you should consider migrating to Claude Fable 5.2.”; its comparison table lists thinking as “Adaptive (always on)”). ↩↩↩↩

  298. Fast mode and Ultrareview, fetched November 10, 2026. Fast mode: “on a Pro, Max, Ultra, Team, or Enterprise plan, your account must have usage credits turned on, which allows billing beyond your plan’s included usage. Until they’re on, /fast reports ‘Fast mode requires usage credits’.” and “fast mode is disabled by default for Team and Enterprise organizations. An Owner must explicitly enable fast mode before users can access it.” Ultrareview: “the three Pro, Max, and Ultra runs are a one-time allotment per account and don’t refresh.” ↩↩↩

  299. Advisor tool, fetched November 10, 2026. “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.” Pairing table rows: “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.2 | Fable 5.2”. “Haiku 5.5 as the main model or as the advisor requires Claude Code v2.1.293 or later.” “unless you’re on Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), the advisor needs a feature flag fetched from Anthropic.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩

  300. Configure auto mode, fetched November 10, 2026. “The classifier doesn’t read autoMode from project settings in .claude/settings.json or .claude/settings.local.json.” “Each is an array of prose descriptions, read as natural-language rules. For tool-pattern-based hard blocks that run before the classifier, use permissions.deny.” “After you save your settings, run claude auto-mode config to confirm the rules include your entries.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  301. Commands, fetched November 10, 2026, and the Claude Code CHANGELOG. Commands: /fewer-permission-prompts: “Scan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project .claude/settings.json to reduce permission prompts”; /cost: “Alias for /usage”; /stats: “Alias for /usage. Opens on the Stats tab”; /ultrareview: “The preferred invocation is /code-review ultra, and /ultrareview is an alias. Includes 3 free runs on Pro, Max, and Ultra”; /code-review takes a “PR number, branch, or path you pass”. CHANGELOG 2.1.111: “Added /less-permission-prompts skill”; 2.1.118: “Merged /cost and /stats into /usage”; 2.1.144: “/extra-usage is now /usage-credits (old name still works)”. ↩↩↩↩↩

  302. Anthropic platform model pages, fetched November 10, 2026: Claude Haiku 5.5, What’s new in Claude Haiku 5.5, Claude Fable 5.2 and What’s new in Claude Fable 5.2. A search of the four pages for watermark, C2PA, provenance and marking returns nothing: none of them mentions content marking. ↩

  303. Manage costs effectively, fetched November 10, 2026. “The Session block in /usage shows API token usage and is intended for API users. Claude Pro, Max, and Ultra subscribers have usage included in their subscription, so the session cost figure isn’t relevant for billing purposes.” The sample Session block carries a “Usage by model:” line; the prompt-cache line “works on every provider and gateway. It covers the main conversation only, not subagents.” Rate table rows: “100-500 users | 15k-20k | 0.37-0.47” and “500+ users | 10k-15k | 0.25-0.35”. Thinking: “Thinking tokens are billed as output tokens”. Background usage: “Session recap and idle compaction can use tokens while you’re idle.” and, for prompt suggestions, “That request reuses the conversation’s prompt cache, so it is mostly cache reads plus a few output tokens.” ↩↩↩↩↩

  304. Claude plans and pricing, fetched November 10, 2026. Pro: $17 per month with the annual discount ($200 billed up front) or $20 billed monthly, “More usage than Free”, “Fable, paid with usage credits”. Max ($100): “5x Pro usage”, “Fable included, up to half your weekly limit”, “$100 a month in API credits to build on the Claude Platform”. Ultra ($200): “No 5-hour limit” (footnoted as applying to verified accounts), “10x Pro usage”, “$200 a month in API credits, up from $100 on Max”. Team: a Standard seat has “more usage than Pro” and a Premium seat “5x more usage than standard seats”. Enterprise: “US$20/seat/month, billed annually, 20 seat minimum. Usage cost scales with model and task.” The page’s questions section says Claude Code “is included in all paid plans” and that paid plans can turn on usage credits “to keep working at standard API rates”. Re-read November 25, 2026: every quotation above is still on the page. ↩↩↩

  305. Claude Help Center and Anthropic Usage Policy, fetched November 10, 2026. Verify your phone number: “We only allow a maximum of three Claude accounts to be verified with the same phone number.” Move your personal Claude account to a Team or Enterprise organization: “Your personal account is the Claude account you signed up for yourself. Your organization account is the one you get in your organization’s Team or Enterprise plan. Both can be on one email address, and you switch between them by clicking your initials or name in the lower left corner.”; “You can keep both accounts and nothing changes.”; “A move can’t be reversed, and not everything moves.” Usage Policy, prohibited uses: “Coordinate malicious activity across multiple accounts, or create multiple accounts, to avoid detection, circumvent product guardrails, or generate identical or similar inputs that otherwise violate our Usage Policy” and “Circumvent a ban through the use of a different account, such as the creation of a new account, use of an existing account, or providing access to a person or entity that was previously banned”. The policy text has no rule about households or shared networks. ↩

  306. Environment variables, fetched November 10, 2026. CLAUDE_CODE_MAX_OUTPUT_TOKENS: “Set the maximum number of output tokens for most requests. Defaults and caps vary by model”. The page lists no variable named MAX_OUTPUT_TOKENS. ↩

  307. Pricing, Anthropic platform docs, fetched November 10, 2026. Bash tool: “The bash tool definition adds the following input tokens to your request”, with “Claude 4.7 and later models and Claude Mythos Preview | 325 tokens” and “Claude 4.6 and earlier models | 244 tokens”. Text editor tool: 974 tokens on Claude 4.7 and later models, 745 on Claude 4.6 and earlier. Code execution: “Each organization receives 1,550 free hours of usage per month.” and “Additional usage beyond 1,550 hours is billed at $0.05 USD per hour, per container.” Web search: “A web search that fails with an error is not billed.” ↩

  308. CLI reference, fetched November 10, 2026. --output-format: “Specify output format for print mode (options: text, json, stream-json)”. --max-turns: “Limit the number of agentic turns (print mode only).” --max-budget-usd: “Stop the run once estimated spend on API calls reaches this amount (print mode only)” and “Spend can pass the cap, so leave headroom.” --from-pr: “Open the session picker filtered to sessions linked to a specific pull request.” The installed CLI (2.1.322) lists no --json flag in claude --help. ↩↩

  309. Claude Code Analytics API, Anthropic platform docs, fetched November 11, 2026. “The Admin API isn’t available to organizations on the claude.ai Team plan or to individual Claude Console accounts.“ “You can access them using an Admin API key, an OAuth token with the org:admin scope, or a personal or service account key that isn’t scoped to a workspace; workspace API keys don’t work.” “The customer_type field is either api or subscription. Every record, whichever value it has, describes usage authenticated against your Claude Console organization.” “When someone signs in to Claude Code with a Claude subscription plan, such as Pro, Max, Team, or Enterprise, their usage is attributed to their claude.ai organization, and this API doesn’t return it.” “Claude Code analytics data typically appears within 1 hour of user activity completion.” ↩↩

  310. Subagents, Agent teams and Tools reference, fetched November 10, 2026. Subagents: “In version 2.1.63, the Task tool was renamed to Agent. Existing Task(...) references in settings and agent definitions still work as aliases.” Agent teams: “There’s no hard limit on the number of teammates, but practical constraints apply” and “Start with 3-5 teammates for most workflows.” Tools reference: “Glob | Finds files based on pattern matching. Absent by default on macOS, Linux, and WSL.”; “Claude searches with find and grep through the Bash tool instead. In Claude’s shell those two commands run embedded versions of bfs and ugrep”; on LSP, “Claude Code keeps the tool inactive until you install a code intelligence plugin for your language” and “you install the server binary yourself.” ↩↩↩

  311. Hooks reference, Hooks guide and Memory, fetched November 10, 2026. Hooks reference, handler types: command hooks “run a shell command. Your script receives the event’s JSON input on stdin”; HTTP hooks “send the event’s JSON input as an HTTP POST request to a URL”; MCP tool hooks “call a tool on a configured MCP server”; prompt hooks “send a prompt to a Claude model for single-turn evaluation”; agent hooks “spawn a subagent that can use tools like Read, Grep, and Glob to verify conditions before returning a decision. Agent hooks are experimental and may change.” Prompt field: “Use $ARGUMENTS as a placeholder for the hook input JSON.” Event support: “Events that support all five hook types (command, http, mcp_tool, prompt, and agent)” lists PreToolUse, PostToolUse, Stop, SubagentStop, UserPromptSubmit and the task events, and “PermissionRequest supports command, http, mcp_tool, and prompt hooks but not agent hooks.” On additionalContext: “The additionalContext field passes a string from your hook into Claude’s context window.” Hooks guide, the formatter example: "command": "jq -r '.tool_input.file_path' | xargs npx prettier --write" under "matcher": "Edit|Write". Memory: “Rules can also be scoped to specific file paths, so they only load into context when Claude works with matching files”. ↩

  312. Permissions, fetched November 10, 2026. Tool table: “Bash commands | Shell execution | Yes, except a built-in set of read-only commands | Permanently per repository and command”, “File modification | Edit/write files | Yes, except files such as Claude Code’s own plan and auto memory files | Until session end”, “Web search | WebSearch | Yes | Permanently per repository”. Saved approvals: “Claude Code saves the rule to .claude/settings.local.json at the root of the git repository”. Evaluation: “Rules are evaluated in order: deny, then ask, then allow. The first match in that order determines the outcome, and rule specificity doesn’t change the order.” Wildcards: “A * can go anywhere in the rule: at the start, in the middle, or at the end.”; “A rule with no * matches one exact command.”; “The space before a trailing * is part of the rule.”; “The :* suffix is an equivalent way to write a trailing wildcard, so Bash(ls:*) matches the same commands as Bash(ls *).” Limits: “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Paths: “/path | Path relative to the settings source”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩

  313. Permission modes, fetched November 10, 2026. Mode table: acceptEdits runs “Reads, file edits, and common filesystem commands (mkdir, touch, mv, cp, etc.)” without asking; plan runs “Reads, plus classifier-approved commands when auto mode is available”; dontAsk is for “Locked-down CI and scripts”; bypassPermissions is for “Isolated containers and VMs only”. Cycle: “From auto, the first press switches to default, and the cycle then runs default → acceptEdits → plan. Optional modes slot in after plan.” Bypass: “Even in bypassPermissions mode, each of the actions no mode auto-approves ends in a prompt or a denial”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩

  314. Choose a permission mode: “By default, classifier requests go to Claude Sonnet 5.”; “Read-only actions and file edits in your working directory are auto-approved”. Auto mode classifier request charges: “the server performs those checks as part of the session’s own model requests, at no charge”. Fetched November 10, 2026. ↩↩↩

  315. Tools reference, Claude Code documentation, fetched November 10, 2026. Task tools: “The task-tracking tools, TaskCreate, TaskGet, TaskUpdate, TaskList, and TodoWrite, are available by default only on Opus 4.7, Sonnet 4.6, Haiku 4.5, and earlier models”, with CLAUDE_CODE_ENABLE_TODO_TOOLS=1 or claude --allowedTools TaskCreate to opt in, and “In background sessions and in cloud sessions, Claude Code provides the same tools on every model”. WebSearch: “An interactive terminal session has a limit of 200 WebSearch calls”; “on Claude Code v2.1.290 or later, an interactive terminal session’s limit refills at about 100 calls per hour”; “The cap can be raised but not turned off”; “In non-interactive mode with -p and in the Agent SDK, the limit applies per turn, not per session.” ↩↩

  316. Hooks reference, Claude Code documentation, fetched November 10, 2026. Matchers: “Only letters, digits, _, -, spaces, ,, and |” are compared as an “Exact string, or list of exact strings”, and “The .* is required: a matcher like mcp__memory or mcp__brave-search contains only exact-match characters, so it is compared as an exact string and matches no tool.” Events: Setup fires “When you start Claude Code with --init-only, or with --init or --maintenance in -p mode” and “Fires only when you launch Claude Code with --init-only, or with --init or --maintenance in non-interactive mode with the -p flag”; FileChanged: “The matcher field specifies which filenames to watch”; WorktreeRemove: “Any non-zero exit code causes worktree removal to fail if the directory still exists afterward”; PermissionRequest: “Not read as a decision. Deny through the decision object instead”; PermissionDenied: “Use JSON hookSpecificOutput.retry: true to tell the model it may retry”; InstructionsLoaded: “Exit code is ignored”. Output: “PreCompact: your stdout becomes instructions for the compaction summary”. PreToolUse decisions: “"allow" skips the permission prompt, except for actions no mode auto-approves and reads from network paths” and, for the reason, “For "allow" and "defer", written to the debug log only”. Also the source for the common input fields, the hook locations (settings files, plugin hooks/hooks.json, skill and agent frontmatter), “CLAUDE_ENV_FILE is available for SessionStart, Setup, CwdChanged, and FileChanged hooks”, updatedMCPToolOutput (“Replaces the output for MCP tools only. Prefer updatedToolOutput”), and the debug log: “The --debug flag doesn’t print to the terminal.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  317. Hooks reference, Claude Code documentation, fetched November 11, 2026. Hook types by event: “Events that support all five hook types (command, http, mcp_tool, prompt, and agent)” lists PermissionDenied, PostToolBatch, PostToolUse, PostToolUseFailure, PreToolUse, Stop, SubagentStop, TaskCompleted, TaskCreated, TeammateIdle, UserPromptExpansion and UserPromptSubmit; “PermissionRequest supports command, http, mcp_tool, and prompt hooks but not agent hooks”; “PermissionRequest: ok: false doesn’t deny the request”; “Agent hooks are experimental.” Timeouts: “Defaults: 600 for command, http, and mcp_tool; 30 for prompt; 60 for agent.” Concurrency: “If more than 12 of them are prompt or agent hooks, 12 of those run at once and the rest start as running ones finish.” Hooks in skills and agents: defined “in the same configuration format as settings-based hooks”; “Claude Code converts a Stop hook here to SubagentStop”; skill hooks are kept “for the rest of the session”; once: “If true, Claude Code removes the hook after its first successful run … Only honored for hooks declared in skill frontmatter; ignored in settings files and agent frontmatter”. The page’s skill example nests each handler under a hooks: list inside its matcher entry. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩

  318. Environment variables, Claude Code documentation, fetched November 10, 2026: CLAUDE_CODE_SESSION_ID: “Set automatically to the current session ID in Bash and PowerShell tool subprocesses, hook command subprocesses, and stdio MCP server subprocesses”; CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION: “Removed in v2.1.224 and now a no-op”; 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”; MAX_THINKING_TOKENS: “Claude Code caps it at one token below the request’s max output tokens and never below 1,024 … When unset and thinking is enabled, models with adaptive reasoning choose their own thinking depth, and other models use the cap … For a positive value, Claude Code ignores the number itself on adaptive reasoning models”. ↩↩↩↩↩

  319. Automate actions with hooks and the Hooks reference, Claude Code documentation, fetched November 10, 2026. Guide: “Claude Code overrides a Stop hook after it blocks eight times in a row with no tool call from Claude in between. Your hook script needs to check whether it already triggered a continuation. Parse the stop_hook_active field from the JSON input”. Reference: timeout is “Seconds before canceling”; on exit 2, PostToolUse “Shows stderr to Claude; the tool already ran” and Stop “Prevents Claude from stopping, continues the conversation”. ↩

  320. Anthropic, Introducing advanced tool use on the Claude Developer Platform, November 24, 2025, fetched November 10, 2026: “This represents an 85% reduction in token usage while maintaining access to your full tool library” and “Opus 4 improved from 49% to 74%, and Opus 4.5 improved from 79.5% to 88.1% with Tool Search Tool enabled.” Anthropic, Donating the Model Context Protocol and establishing the Agentic AI Foundation, December 9, 2025, same fetch: “There are now more than 10,000 active public MCP servers” and “97M+ monthly SDK downloads across Python and TypeScript.” ↩↩

  321. MCP server, Linear documentation, fetched November 10, 2026: claude mcp add --transport http linear-server https://mcp.linear.app/mcp followed by “Then run /mcp once you’ve opened a Claude Code session to go through the authentication flow”; “The SSE endpoint at https://mcp.linear.app/sse is a deprecated fallback for clients that do not support Streamable HTTP.” ↩

  322. Connect Claude Code to tools via MCP, Claude Code documentation, fetched November 10, 2026. Tool search: “Tool search is enabled by default: MCP tools are deferred and discovered on demand”; “Control tool search behavior with the ENABLE_TOOL_SEARCH environment variable”, whose auto value is “Threshold mode. Tools that would otherwise be deferred load upfront while their definitions total under 10% of the context window”; on Google Cloud’s Agent Platform, “Claude Opus 4.5, Sonnet 4.5, Haiku 4.5, and later: tool search is on by default” while earlier models load all tools upfront and “ENABLE_TOOL_SEARCH=true doesn’t override this”; “Tool search isn’t supported on Microsoft Foundry deployments hosted on Azure”. Description limits: “Claude Code uses that number for both limits”, and text from some Anthropic-hosted servers “reach Claude in full, and setting this variable doesn’t cut them”. Adding servers: claude mcp add --transport http <name> <url>, claude mcp add-json, and “The claude mcp add --transport flag doesn’t accept ws”; WebSocket servers are configured “in .mcp.json or with claude mcp add-json” and “Authentication is header-only”. Database example: claude mcp add --transport stdio db -- npx -y @bytebase/dbhub --dsn "postgresql://readonly:pass@prod.db.com:5432/analytics" with “Use a read-only database user”. Variable expansion works “in a server’s command, args, env, url, or headers value”. Checked the same day: claude mcp add with no arguments on Claude Code 2.1.322 prints “error: missing required argument ‘name’”; the npm registry has @bytebase/dbhub 1.6.1, has no package named @anthropic-ai/mcp-server-postgres, and marks @modelcontextprotocol/server-postgres deprecated (“Archived and unmaintained”). ↩↩↩↩↩↩↩↩↩

  323. Sequential Thinking MCP Server, README in the modelcontextprotocol/servers repository, fetched November 10, 2026: “An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.” ↩

  324. Control MCP server access for your organization, Claude Code documentation, fetched November 10, 2026: managed-mcp.json “uses the same format as a project .mcp.json file” and lives at /Library/Application Support/ClaudeCode/managed-mcp.json (macOS), /etc/claude-code/managed-mcp.json (Linux and WSL) and C:\Program Files\ClaudeCode\managed-mcp.json (Windows); “To make the allowlist authoritative, set allowedMcpServers and allowManagedMcpServersOnly: true together in a managed settings source”; “A serverName entry, in either list, is not a security control”; “Commands match exactly. Every argument, in order.”; the provided-servers pattern: “Every user gets the remote servers you list and keeps their own”. ↩↩

  325. Create custom subagents, Claude Code documentation, fetched November 10, 2026. Limits: “There’s no limit on the total number of subagents Claude can spawn over a session”; “when 20 subagents are running in a session, spawning another with the Agent tool fails with Concurrent subagent limit reached”; “Sessions with ultracode active are exempt”. Frontmatter: model takes “sonnet, opus, haiku, fable, a full model ID such as claude-opus-5-5, or inherit”; permissionMode takes “default, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual as an alias for default. Ignored for plugin subagents”; rows for effort, color and initialPrompt; the model order (per-invocation parameter, frontmatter, CLAUDE_CODE_SUBAGENT_MODEL, main conversation’s model). “The Agent(agent_type) allowlist syntax applies only to an agent running as the main thread with claude --agent.” Explore: “With a Claude subscription, an Anthropic Console account, or an LLM gateway reached through ANTHROPIC_BASE_URL, Explore runs on the Opus model that the opus alias resolves to”; the helper agents claude, statusline-setup and claude-code-guide. Results and resuming: “A background subagent’s results reach Claude as a completion notification in a later turn”; “Claude uses the SendMessage tool with the agent’s ID or name as the to field to resume it.” Fork mode: “on by default from Claude Code v2.1.302, and in an interactive terminal session from v2.1.232.” Workflow limits, from Orchestrate subagents at scale with dynamic workflows, same fetch: “Up to 16 concurrent agents by default” (CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS) and “1,000 agents total per run”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  326. All settings, Claude Code documentation, fetched November 10, 2026. 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”. Claude Code CHANGELOG, 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”. ↩

  327. CLI reference, Claude Code documentation, fetched November 10, 2026: claude agents: “Open agent view to monitor and dispatch parallel background sessions … or --json to print active sessions as a JSON array for scripting”; claude remote-control: “Start a Remote Control server to control Claude Code from claude.ai or the Claude app. Alias: claude rc. Runs in server mode (no local interactive session).” claude agents --help on Claude Code 2.1.322, run the same day, describes the command as “Manage background agents”. Re-read November 25, 2026, where the wording had changed: cli-reference, “Open agent view to monitor and dispatch parallel background sessions.”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩↩

  328. Message your other Claude Code sessions, Claude Code documentation, fetched November 10, 2026: “Cross-session messaging requires Claude Code v2.1.224 or later on macOS, Linux, and WSL 2, and v2.1.234 or later on native Windows.” The CHANGELOG, same fetch, lists “Windows: cross-session messaging is now available” under 2.1.239, and its 2.1.234 section has no Windows messaging entry. ↩

  329. Orchestrate teams of Claude Code sessions, Claude Code documentation, fetched November 10, 2026: “Agent teams are experimental and disabled by default”; “use the up and down arrow keys in the agent panel to select a teammate, then press Enter to view its session and type to send it a message. Press x on a selected teammate to stop it. Press Ctrl+T to toggle the task list”; “To cycle a running teammate’s permission mode, press Shift+Tab”; “Switch the lead into plan mode first, then ask for the teammate”; “If you haven’t changed that teammate’s permission mode since it was spawned, Claude Code approves the plan as soon as the request arrives, without the lead reviewing it”; teammateMode: “Teammates run in-process until you change the teammateMode setting.”; “The --teammate-mode flag is experimental and doesn’t appear in claude --help.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩

  330. Extend Claude with skills, Claude Code documentation, fetched November 10, 2026: “Custom commands have been merged into skills. Your existing .claude/commands/ files keep working.” and, in the Glossary, “A file at .claude/commands/deploy.md and one at .claude/skills/deploy/SKILL.md both create /deploy and work the same way; existing command files continue to work.”; “Every skill needs a SKILL.md file”; “the combined description and when_to_use text is truncated at 1,536 characters in the skill listing”; “The allowed-tools field grants permission for the listed tools during the turn that invokes the skill … It does not restrict which tools are available”; “To remove tools from Claude’s available pool while a skill is active, list them in disallowed-tools”; $N is “Shorthand for $ARGUMENTS[N], such as $0 for the first argument or $1 for the second”; a file in a subdirectory of .claude/commands/ is named by the “Subdirectory path relative to commands/ with each / replaced by :”, as in /frontend:component; “In a local terminal session, your skill replaces the built-in command, but not its aliases”; disable-model-invocation: “Set to true to prevent Claude from automatically loading this skill.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩↩

  331. Model configuration and Interactive mode, Claude Code documentation, fetched November 10, 2026. Model configuration: “Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning. The fixed thinking budget mode and CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING don’t apply to them”; “You can’t turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models. The session toggle and the /config row show Thinking can't be turned off”; the effort table (Fable models and “Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, and Opus 4.7”: low, medium, high, xhigh, max; Opus 4.6 and Sonnet 4.6: low, medium, high, max); “Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to medium, and Opus 4.7 defaults to xhigh. Other models in the effort levels table default to high”; ultrathink applies on “an Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, or Fable 5.1 model”; “You are charged for all thinking tokens generated, even when collapsed or redacted.” Interactive mode: “Option+T (macOS) or Alt+T (Windows/Linux)” toggles extended thinking and “Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models”. ↩↩↩↩↩↩↩↩↩↩↩↩

  332. Thinking, Claude API documentation, and How Claude Code uses prompt caching, Claude Code documentation, fetched November 10, 2026. API page: “Each thinking block also carries a signature field, an encrypted copy of the full reasoning that you pass back unchanged in multi-turn and tool-use conversations” and “The thinking configuration and the resolved effort level are rendered into the prompt itself, so changing any of them changes the prompt … Message-level breakpoints always miss, and tool and system-prompt breakpoints can miss too”. Claude Code page: “on most models, each effort level has its own cache, so changing effort mid-session recomputes the entire request. With an API key or a Claude subscription, the cache stays intact by default on Fable 5.1 and later, Opus 5.5, Sonnet 5.5, and Haiku 5.5.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  333. Output styles, Claude Code documentation, fetched November 10, 2026: “Claude Code starts in the Default style, its standard instructions for completing software engineering tasks. Each of the four other built-in styles keeps those instructions and adds its own” (Proactive, Concise, Explanatory, Learning); custom styles are saved at “User: ~/.claude/output-styles” or “Project: .claude/output-styles”, and “The file name becomes the style name unless you set name in the frontmatter”; “Set keep-coding-instructions: true if you’re changing how Claude communicates but still want it coding the same way”; “The value is case-sensitive … A value that doesn’t match a style name exactly, such as explanatory, gives you the Default style. The /output-style command ignores case.” ↩↩↩

  334. Commands, Claude Code documentation, fetched November 10, 2026 (120 commands). Source for each row that cites it; for example /memory: “Edit CLAUDE.md files, enable or disable auto memory, and view auto memory entries”; /tasks: “View and manage background work in the current session, including subagents that have finished. Also available as /bashes”; /loop [interval] [prompt]: “Omit the interval and Claude self-paces between iterations”; /simplify [target]: “The review doesn’t look for correctness bugs. Use /code-review to find bugs”; /passes: “Share a free week of Claude Code with friends. Only visible if your account is eligible”; /ultraplan: “Removed. Use plan mode instead”; /vim: “Removed in v2.1.92”. The page has no /buddy row; the CHANGELOG, same fetch, carries its one first-party line, “/buddy is here for April 1st”, and the 2.1.154 entry “/simplify now runs a cleanup-only review (reuse, simplification, efficiency, altitude) and applies the fixes”. The Ctrl+T note is from Interactive mode: “Toggle syntax highlighting for code blocks … Only works inside the /theme picker menu”; the keybindings path is from Customize keyboard shortcuts: “Run /keybindings to create or open your configuration file at ~/.claude/keybindings.json.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  335. Share session output as artifacts, Claude Code documentation, fetched November 10, 2026: “Artifacts are available on Pro, Max, Ultra, Team, and Enterprise plans”; “On Team and Enterprise plans, the template turned on for your organization.”; “Claude Code v2.1.265 or later, if you start the Design template with its /design command”; Commands, /slides: “Requires Claude Code v2.1.265 or later, a session where artifacts are available, and an account where the Slides template is available; otherwise the command doesn’t appear.”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  336. Extend Claude with skills, Claude Code documentation, fetched November 10, 2026: “Claude uses skills when relevant, or you can invoke one directly with /skill-name”; “Custom commands have been merged into skills. Your existing .claude/commands/ files keep working.” and, in the Glossary, “A file at .claude/commands/deploy.md and one at .claude/skills/deploy/SKILL.md both create /deploy and work the same way; existing command files continue to work.”; “All fields are optional. Only description is recommended”; “the combined description and when_to_use text is truncated at 1,536 characters in the skill listing”; “The allowed-tools field grants permission for the listed tools during the turn that invokes the skill, so Claude can use them without prompting you for approval”; “It does not restrict which tools are available: every tool remains callable, and your permission settings still govern tools that are not listed”; “To remove tools from Claude’s available pool while a skill is active, list them in disallowed-tools in the skill’s frontmatter”; the frontmatter reference table (20 fields, none required) and the “Using skill frontmatter outside Claude Code” table, which limits claude.ai uploads and the Skills API to name, description, license, compatibility, metadata, and allowed-tools. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩↩↩↩↩↩↩

  337. Claude Code documentation, fetched November 10, 2026. Plugin commands reference: “Scaffold a new plugin at ~/.claude/skills/<name>/”; /plugin install <plugin>: “Opens the plugin’s details in the Discover tab. With name@marketplace, opens them in that marketplace’s list”. Create a Claude Code plugin: “To make a plugin load for everyone in one repository, create the same layout yourself at <project>/.claude/skills/<name>/, including its .claude-plugin/plugin.json”. Plugin loading reference: “it loads only after the same trust check that applies to project allow rules in .claude/settings.json”. Marketplace reference: “name, owner, and plugins are required”; “The directory that contains .claude-plugin/ is called the marketplace root, and every relative plugin source resolves from it, not from .claude-plugin/”. Scan your codebase for vulnerabilities, on /plugin install: “The command opens the plugin’s details, where you choose an installation scope to start the install”. claude plugin init --help on 2.1.322 reads “Scaffold a new plugin at ~/.claude/skills// (auto-loads next session as @skills-dir)”, and the example catalog passes claude plugin validate on 2.1.322. Re-read November 25, 2026, where the wording had changed: plugins/cli-reference, “Scaffold a new plugin at ~/.claude/skills/<name>/. Unless your administrator has blocked skills-directory plugins, it loads in your next session as <name>@skills-dir with no install step.”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩↩↩

  338. Claude Code mods documentation, fetched November 10, 2026. Mods 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”; “On tool.check, e.agentId and e.ceiling require Claude Code v2.1.290 or later”; the events table lists prompt.autocomplete and the components table lists rows on Input. React to events with a mod, on result.serverToolUses: “The field is absent when the response has no such calls, and it requires Claude Code v2.1.290 or later”. Manage mods for your organization lists $.env.set. None of the ten mods pages mentions virtualText, $.ui.view, prompt.change, $.prompt.media, or $.session.identity. ↩↩

  339. How Claude remembers your project, Claude Code documentation, fetched November 10, 2026: “Imported files can recursively import other files, with a maximum depth of four hops”; “Before v2.1.281, some sessions, such as those on Amazon Bedrock or with telemetry disabled, read CLAUDE.md files only”; “Before v2.1.285, the plugin’s ID was agents-md@builtin”; “A path-scoped rule loads when Claude uses the Read, Write, or Edit tool on a matching file”; “While auto memory is on, the first 200 lines or 25KB of MEMORY.md, whichever comes first, load at session start.”; “After Claude writes to MEMORY.md, Claude Code measures the file against the 200-line and 25KB read limits”; “To disable auto memory via environment variable, set CLAUDE_CODE_DISABLE_AUTO_MEMORY=1”; the “CLAUDE.md vs auto memory” table; the status messages Saved 2 memories and Recalled 2 memories. Claude Code CHANGELOG, 2.1.281: “Changed AGENTS.md support to also work on Amazon Bedrock, Google Vertex AI, Microsoft Foundry, LLM gateways, and sessions with telemetry disabled”; 2.0.70: “Removed # shortcut for quick memory entry (tell Claude to edit your CLAUDE.md instead)”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩↩↩

  340. Claude Code documentation, fetched November 10, 2026. Environment variables, MAX_THINKING_TOKENS: “For a positive value, Claude Code ignores the number itself on adaptive reasoning models”; CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: “Has no effect on Fable models, Sonnet 5 and later, Haiku 5.5, or Opus 4.7 and later, which always use adaptive reasoning”. Tools reference: “For PDFs longer than 10 pages, it reads in ranges with a pages parameter, such as "1-5", up to 20 pages at a time”; “Page-range reads render pages with pdftoppm from poppler-utils”. Error reference: “PDF too large (max 100 pages, 20MB)”. Interactive mode: “Ctrl+V or Cmd+V (iTerm2) or Alt+V (Windows and WSL)” pastes an image from the clipboard. The Read tool in claude 2.1.322 describes pages as a page range such as “1-5”, “3”, or “10-20” and answers a list with “Give one page (“3”) or one range (“1-5”), not a list.” Claude Code CHANGELOG, 2.1.30: “Large PDFs (>10 pages) now return a lightweight reference when @ mentioned instead of being inlined into context”. Re-read November 25, 2026, where the wording had changed: tools-reference, “For PDFs longer than 10 pages, it reads in ranges with a pages parameter, such as "1-5", up to 20 pages at a time.” ↩↩↩↩

  341. Voice dictation, Claude Code documentation, fetched November 10, 2026: “Hold mode is push-to-talk: recording runs while you hold the key and stops when you release it. This is the default mode”; “By default, when you release the key, Claude Code inserts the transcript and waits for you to press Enter”; “Recording also stops automatically after 15 seconds of silence or two minutes total”; “the speech-to-text service is only available when you authenticate with one, and is not available when Claude Code is configured to use an Anthropic API key directly, Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry”; “Transcription does not consume Claude messages or tokens and does not count toward the limits shown in /usage”; “If your language setting is not in the supported list, /voice warns you on enable and falls back to English for dictation”; the supported dictation languages table (20 languages; Indonesian is listed and Chinese is not). All settings, voiceEnabled: “Deprecated since v2.1.92”. ↩↩↩↩↩↩

  342. Choose a permission mode, Claude Code documentation, fetched November 10, 2026: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions”; “a second model, the classifier, reviews actions instead of you”. ↩

  343. Code Review is now generally available, Claude Blog, October 15, 2026: “Code Review is out of research preview and available to Claude Team and Enterprise organizations”; “Most reviews now finish about 3x faster (~20 minutes down to 6-10 minutes) compared to during preview”. Claude Code documentation, fetched November 10, 2026: Code Review costs and usage: “has no flat per-review price”; “Code Review is billed on token usage through usage credits”. Set up Code Review: “Each repository starts set to review after every push”. Read and request reviews on a pull request, @claude review stop: “Ends the PR’s subscription to push-triggered reviews, without starting a review or canceling one that’s already running”. ↩↩↩↩↩

  344. Claude Code documentation, fetched November 10, 2026. Use Claude Code in VS Code: “VS Code 1.94.0 or later”; “any paid Claude subscription (Pro, Max, Ultra, Team, or Enterprise) or a Claude Console account works”. JetBrains IDEs: “The Claude Code plugin works with most JetBrains IDEs, including” IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, and GoLand. ↩↩

  345. Claude Code in Slack, Claude Code documentation, fetched November 25, 2026 (sitemap lastmod 2026-11-25): “The earlier Claude Code in Slack is retired. In a workspace that isn’t connected to Claude Tag, @Claude replies that the workspace isn’t set up for Claude Tag.”; “Team and Enterprise plans: use Claude Tag if it’s in your channel. If it isn’t, see how to set it up. To move a workspace from the earlier version, see the migration guide.”; “Pro, Max, and Ultra plans: Claude Tag isn’t available on individual plans. Start tasks in Projects if your account has them, or in cloud sessions.” The description of the retired integration in the section’s first paragraph is from the same page as fetched on November 10, 2026, which then read “it gathers context from your messages and its own in that thread” and “Opens GitHub’s compare page for the session’s branch, where you create the pull request”. Launch post for the retired integration: Claude Code and Slack, Claude Blog, December 8, 2025. ↩↩↩↩↩

  346. Claude Code documentation, fetched November 10, 2026. Commands, /tasks: “View and manage background work in the current session, including subagents that have finished. Also available as /bashes”; /background [prompt]: “Detach the current session to run as a background agent and free this terminal”. Manage multiple agents with agent view: “Background sessions don’t need any terminal open to keep working”. Interactive mode: “Background tasks are automatically cleaned up when Claude Code exits”. claude --help on 2.1.322 lists --bg, --background, agents, attach <id|name>, and stop|kill <id>. ↩↩↩↩

  347. Claude Code CHANGELOG, read November 10, 2026. 2.1.47: “Increased initial session count in resume picker from 10 to 50 for faster session discovery”; 2.1.243: “Fixed /resume only listing the 50 most recent sessions; the picker now loads more as you scroll”. ↩

  348. Use Claude Code in the cloud, Claude Code documentation, fetched November 10, 2026: “Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats”; “From the CLI, session handoff is one-way: you can pull cloud sessions into your terminal with --teleport, but you can’t push an existing terminal session to the cloud”; “can send a local session in its Code tab to the cloud from its Open in menu”; “Your organization’s allow_remote_sessions policy must also be enabled. An Owner can turn it on in the Claude Code admin settings at claude.ai/admin-settings/claude-code”; “run /tasks to see your background sessions, then press t to teleport into one”; “Run /web-setup in your terminal to send your local gh CLI token to your Claude account”; “Quick setup is an organization setting that removes steps from members’ GitHub and environment setup. On Team and Enterprise plans it’s off by default”; “members can connect GitHub with /web-setup. While the setting is off, the command is hidden”; “enabled, or with the HIPAA configuration applied, can’t use /web-setup or other cloud session features”. Launch post: Claude Code on the web, Claude Blog, October 20, 2025, with an update dated September 23, 2026: “Cloud sessions (previously known as Claude Code on the web) are now generally available for Pro, Max, Ultra, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats”. ↩↩↩↩↩↩↩↩↩↩

  349. Claude Code CHANGELOG, 2.0.45: “Send background tasks to Claude Code on the web by starting a message with &”; 2.1.154: “Removed the stale “& for background” hint from the shortcuts help panel”; no entry through 2.1.322 says more about the prefix (read November 10, 2026). Interactive mode, Claude Code documentation, fetched November 10, 2026: the Quick commands table has rows for “/ at start”, “! at start”, “@”, “:”, and “? on empty input”, and none for &. ↩↩

  350. Claude Code documentation, fetched November 10, 2026. Continue local sessions from any device with Remote Control: “available on Pro, Max, Ultra, Team, and Enterprise plans. API keys are not supported. On Team and Enterprise, an Owner must first enable the Remote Control toggle”; “Your local Claude Code session makes outbound HTTPS requests only and never opens inbound ports on your machine”; “All traffic travels through the Anthropic API over TLS”. CLI reference, claude remote-control: “Alias: claude rc. Runs in server mode (no local interactive session)”; --remote-control, --rc: “Start an interactive session with Remote Control enabled”. ↩↩↩

  351. Claude Code documentation, fetched November 10, 2026. Push events into a running session with channels: “They require Anthropic authentication through claude.ai or a Console API key, and are not available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry”; “Channels can be two-way: Claude reads the event and replies back through the same channel, like a chat bridge”; “You install a channel as a plugin and configure it with your own credentials. Telegram, Discord, and iMessage are included in the research preview”; “It requires macOS and needs no bot token or external service”; the launch command claude --channels plugin:telegram@claude-plugins-official. Channels reference, claude/channel/permission: “When declared, Claude Code forwards tool approval prompts to your channel so you can approve or deny them remotely”. ↩↩

  352. Claude Security, Anthropic product page, fetched November 10, 2026: “Claude scans your codebase with Claude Mythos, validates findings, and suggests patches you can review and approve. Available in public beta for Claude Enterprise”; “The Claude Security Plugin for Claude Code is now in beta”. Scan your codebase for vulnerabilities, Claude Code documentation, same date: “By default, when you scan a whole repository, Claude agents map your architecture, hunt for vulnerabilities, and independently review every finding before writing the report”; “Python 3.9 or later available on your PATH as python3”; “Run /claude-security and pick Scan codebase”. Making frontier cybersecurity capabilities available to defenders, Anthropic, February 20, 2026: “a new capability built into Claude Code on the web, is now available in a limited research preview”; “our team found over 500 vulnerabilities in production open-source codebases”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩

  353. Use Claude Code with Chrome, Claude Code documentation, fetched November 10, 2026: “Chrome integration works with Google Chrome and Microsoft Edge. Claude Code also detects the extension and sets up the connection in other Chromium-based browsers, including Brave, Arc, Vivaldi, and Opera. Chrome integration isn’t supported in Windows Subsystem for Linux (WSL)”; “A direct Anthropic plan (Pro, Max, Ultra, Team, or Enterprise)”; “Chrome integration also requires signing in with /login”; “The first time you enable Chrome integration, Claude Code installs a native messaging host configuration file”; “The extension collects the tabs Claude opens into a Chrome tab group tied to your session”; “Claude works across tabs to gather information and complete the workflow”; “The Chrome extension’s service worker can go idle during extended sessions, which breaks the connection”. ↩↩↩↩

  354. Automate work with scheduled tasks, Claude Code documentation, fetched November 10, 2026: “Scheduled tasks are available on Pro, Max, Ultra, Team, and Enterprise plans”; “Scheduled tasks are in research preview”; “When you create a scheduled task from the CLI with /schedule, Claude checks whether your account has GitHub access for the repository you ran it from. If it doesn’t, Claude adds a setup note naming how to grant it”. ↩↩

  355. Pricing (the table lists input and output per million tokens as $8 and $40 for Fable 5.2, $4 and $20 for Opus 5.5, $2 and $10 for Sonnet 5.5, and $0.10 and $0.50 for Haiku 5.5): “Claude Haiku 5.5 (for prompts up to 100,000 tokens)”; “provides up to 2.5x higher output tokens per second at premium pricing. It is available for Claude Fable 5.2, Claude Opus 5.5, Claude Opus 5, and Claude Opus 4.8.” Model configuration: “No Fable model is the account-type default on any plan or provider.” Fetched November 11, 2026. ↩↩

  356. How Claude Code uses prompt caching: “For a subagent’s requests, the cacheTtl value in the subagent’s experimental frontmatter field, which requires Claude Code v2.1.248 or later.”; “Actions that invalidate the cache”. Environment variables: “for all models (takes precedence over per-model settings)”; “Set to 1 to disable prompt caching for Fable models”. Fetched November 10, 2026. ↩↩↩↩

  357. Tools reference: “A local session you work in from a terminal, the desktop app, or the VS Code extension has no time limit on background commands.”; “The time limit requires Claude Code v2.1.285 or later. Before v2.1.288, it applied in every session.”; “both defaults are 10 minutes instead of 30”. Fetched November 10, 2026. ↩

  358. CLI reference: “If you don’t give a name, Claude Code generates one.”; “Use a specific session ID for the conversation (must be a valid UUID)”; “Set a display name for the session”; “(Research preview) MCP servers whose channel notifications Claude should listen for in this session.”; “--sso to force SSO authentication”. Fetched November 10, 2026. ↩↩

  359. Troubleshoot installation and login: “If npm reports a platform mismatch during install, run npm config set os linux first, then install with npm install -g @anthropic-ai/claude-code@latest --force. Do not use sudo.” JetBrains IDEs: New-NetFirewallRule -DisplayName "Allow WSL2 Internal Traffic" -Direction Inbound -Protocol TCP -Action Allow -RemoteAddress 172.21.0.0/16 -LocalAddress 172.21.0.0/16; “requires Windows 11 22H2 or later”. Fetched November 10, 2026. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  360. Authentication: “Claude Code manages .credentials.json through /login and /logout”. Troubleshoot installation and login (section “Reset your login”): “Run /logout to sign out completely”. Fetched November 10, 2026. ↩

  361. Commands: “Enable debug logging for the current session and troubleshoot issues by reading the session debug log.”; “max is session-only”; “The preferred invocation is /code-review ultra, and /ultrareview is an alias.”; “Scan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project .claude/settings.json”; “Install the Claude GitHub App for a repository”. Fetched November 10, 2026. ↩

  362. Explore the .claude directory: “Don’t delete ~/.claude.json, ~/.claude/settings.json, or ~/.claude/plugins/”. Debug your configuration: “It prints read-only installation and settings diagnostics without starting a session.” Fetched November 10, 2026. ↩↩↩

  363. Anthropic Accidentally Exposes Claude Code Source via npm Source Map File (InfoQ, April 7, 2026; the second quote is Anthropic’s statement to CNBC as the article gives it): “Version 2.1.88 of the @anthropic-ai/claude-code package shipped with a source map file that should never have been included.”; “a release packaging issue caused by human error, not a security breach”. Fetched November 10, 2026. ↩

  364. Authentication: “self-service plan with collaboration features, admin tools, SSO, billing management, and server-managed settings”; “adds domain capture, role-based permissions, and the compliance API”. Set up Claude Code for your organization: “SSO, SCIM provisioning, and seat assignment are configured at the Claude account level.” Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry: “Developers sign in with your corporate identity provider (IdP) instead of holding API keys or cloud credentials.”; “SAML and LDAP aren’t supported.” Claude Code on Claude Platform on AWS: “Claude Platform on AWS is the Anthropic-operated Claude API with AWS authentication, IAM access control, and AWS Marketplace billing.” Fetched November 10, 2026. ↩↩↩

  365. All settings: “is the only supported target; Claude Code ignores other entries.”; “true: only managed hooks run, plus Agent SDK hooks and hooks from plugins your managed settings force-enable.”; “A true in managed settings can’t be overridden by false elsewhere.”; “Also accepted under permissions as permissions.disableAutoMode.” Configure permissions: “disableBypassPermissionsMode is typically placed in managed settings to enforce organizational policy, but it works from any scope.” Deploy managed settings: “the com.anthropic.claudecode managed preferences domain”; “the JSON as a REG_SZ or REG_EXPAND_SZ value named Settings under HKLM\SOFTWARE\Policies\ClaudeCode”. Fetched November 10, 2026. ↩↩↩↩↩↩↩↩↩↩↩

  366. Configure permissions: “a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program”; “Rules are evaluated in order: deny, then ask, then allow.”; “A deny rule doesn’t match the same program by path or inside sh -c, so pair it with the sandbox network allowlist when the restriction must hold”. Fetched November 10, 2026. ↩↩

  367. Run Claude Code behind a corporate launcher: “CLAUDE_CODE_PROCESS_WRAPPER requires Claude Code v2.1.208 or later.”; “The equivalent processWrapper setting requires v2.1.210 or later.”; “On Windows, the variable is ignored”; “Project and local settings can’t configure the launcher.” Fetched November 10, 2026. ↩

  368. Claude Code CHANGELOG (the first quote is from version 2.0.70, the second from version 2.1.154): “Removed # shortcut for quick memory entry (tell Claude to edit your CLAUDE.md instead)”; “Removed the stale “& for background” hint from the shortcuts help panel”. How Claude remembers your project: “or edit the file yourself via /memory”; “target under 200 lines per CLAUDE.md file”; “Before v2.1.281, some sessions, such as those on Amazon Bedrock or with telemetry disabled, read CLAUDE.md files only.”; “C:\Program Files\ClaudeCode\CLAUDE.md”. Fetched November 10, 2026. ↩↩↩↩↩↩

  369. Legal and compliance: “If a customer has executed a Business Associate Agreement (BAA) with Anthropic, that BAA extends to Claude Code in two configurations”; “Claude Code routed through a third-party cloud provider or a gateway aren’t covered”. What Certifications has Anthropic obtained?: “HIPAA-ready configuration (BAA available)”; “ISO 27001:2022”; “ISO/IEC 42001:2023”; “SOC 2 Type I & Type II”; “to request copies of our compliance documentation, please visit our Trust Portal”. Data usage: “Anthropic does not train generative models using code or prompts sent to Claude Code under commercial terms”; “We will train new models using data from Free, Pro, Max, and Ultra accounts when this setting is on”; “Claude Code clients store session transcripts locally in plaintext under ~/.claude/projects/ for 30 days by default”; “Metrics never include your code, prompts, or file paths.”; “Set DISABLE_TELEMETRY=1 to opt out.”; on error reports, “Claude Code redacts known patterns of secrets, file paths, email addresses, and other personal information before anything leaves your machine. Set DISABLE_ERROR_REPORTING=1 to opt out.”; error reports on the Claude API are “On for Pro, Max, and Ultra sign-ins on v2.1.198+, otherwise off.”; “By default, error reporting, telemetry, and bug reporting are disabled when using Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or Claude Platform on AWS.” Monitoring: “OpenTelemetry events are the audit data source for Claude Code activity.” Fetched November 10, 2026; the data usage page was read again on November 11, 2026. ↩↩↩↩↩

  370. Claude Code Analytics API: “When someone signs in to Claude Code with a Claude subscription plan, such as Pro, Max, Team, or Enterprise, their usage is attributed to their claude.ai organization, and this API doesn’t return it.”; “This API only tracks Claude Code usage on the Claude API.”; “Number of records per page (default: 20, max: 1000)”; “The Claude Code Analytics API is free to use for all organizations with access to the Admin API.” Fetched November 10, 2026. ↩↩

  371. Interactive mode: “Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking.”; “Redraw the screen”; “Toggle transcript viewer”; “Toggle Claude’s task checklist”; “When the input is empty, double Esc opens the rewind menu”; “Toggle fast mode”. Model configuration: “You can’t turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models”. Customize keyboard shortcuts: “Extend the active selection one row down”. Fetched November 10, 2026. ↩↩↩

  372. Orchestrate teams of Claude Code sessions: “Up and down arrows: select a teammate”. Fetched November 10, 2026. ↩

  373. Use Claude Code in the cloud: “you can pull cloud sessions into your terminal with --teleport, but you can’t push an existing terminal session to the cloud”; “The --cloud flag with a task description creates a new cloud session for your current repository”. Configure cloud environments: “the session runs on an Anthropic-managed VM”. Fetched November 10, 2026. ↩↩↩

  374. Configure the sandboxed Bash tool: “The sandbox covers shell commands only.” Choose a sandbox environment: “Always run --dangerously-skip-permissions sessions inside a container, a VM, or the sandbox runtime”; “By default the runtime denies network access”; “Docker Sandboxes provides a microVM with its own Docker daemon and workspace sync”. Development containers: "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}. Troubleshoot installation and login: RUN curl -fsSL https://claude.ai/install.sh | bash. The Docker Hub API returned HTTP 404 for the repository anthropic/claude-code and listed no repositories under the anthropic namespace on the same day. Fetched November 10, 2026. ↩↩

  375. Claude Code GitHub Actions: “Create and merge that pull request to turn on the workflows. To test mentions, tag @claude in an issue comment.”; “automatic review on every pull request, without writing a workflow”. Fetched November 10, 2026. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  376. claude-squad README: brew install claude-squad; ln -s "$(brew --prefix)/bin/claude-squad" "$(brew --prefix)/bin/cs". Fetched November 10, 2026. ↩

  377. About Boris Cherny (the page links his X account as https://x.com/bcherny and his Threads account as https://www.threads.net/@boris_cherny). Fetched November 10, 2026. ↩

  378. Connect Claude Code to tools via MCP: claude mcp add --transport http sentry https://mcp.sentry.dev/mcp; claude mcp login sentry. Fetched November 10, 2026. ↩

  379. Create custom subagents: “In version 2.1.63, the Task tool was renamed to Agent.” Manage Claude Code plugins for your organization: “The managed strictKnownMarketplaces allowlist and blockedMarketplaces blocklist decide which marketplace sources plugins may come from.” Fetched November 10, 2026. ↩↩

  380. Hooks reference (the event table has 34 rows since v2.1.332 added PreSkillShellCommand; it had 33 on November 10, 2026: SessionStart, Setup, UserPromptSubmit, UserPromptExpansion, PreSkillShellCommand, PreToolUse, PermissionRequest, PermissionDenied, PostToolUse, PostToolUseFailure, PostToolBatch, Notification, MessageDisplay, SubagentStart, SubagentStop, TaskCreated, TaskCompleted, Stop, StopFailure, TeammateIdle, InstructionsLoaded, ConfigChange, CwdChanged, DirectoryAdded, FileChanged, WorktreeCreate, WorktreeRemove, PreCompact, PostCompact, PreModelSwitch, PostModelSwitch, Elicitation, ElicitationResult, SessionEnd). Fetched November 25, 2026. ↩↩↩

  381. OpenAI Codex documentation (the developers.openai.com/codex/... addresses now redirect to these pages). Codex models: “For demanding work across code, apps, or research, choose GPT-6.2 Astra.”; “Choose GPT-6.2 Sol for everyday coding, writing, and work across several sources.”; “GPT-6.1 Terra is a fast, efficient choice for writing, visual understanding, and computer use. Luna suits focused, repeatable tasks.”; the model cards give “Default context in Codex” as 500,000 tokens for GPT-6.2 Sol and 272,000 tokens for GPT-6.2 Astra; “GPT-6.2 Astra and GPT-6.2 Sol each support a context window of up to 1 million tokens.”; “GPT-6.1 Terra requires Codex CLI 0.159.0 or later.”; “Effective October 14, 2026, at noon PDT (19:00 UTC), GPT-5.5 retires from Codex for users signed in with ChatGPT.” Hooks (the page lists PreToolUse, PermissionRequest, PostToolUse, PreCompact, PostCompact, UserPromptSubmit, SubagentStop, and Stop during a turn, PreModelRequest and PostModelRequest for each model request attempt, Interrupt, SessionStart, SubagentStart, and SessionEnd: fourteen events, the same fourteen as the HookEventName type in the openai/codex source at tag rust-v0.172.0). Plugins: “In Codex CLI, enter /plugins to open the plugin browser.” Windows sandbox: “The app can run natively in PowerShell with a Windows sandbox instead of requiring WSL or a virtual machine.” Agent approvals and security: “Linux uses bwrap plus seccomp by default.”; “the default workspace-write sandbox mode keeps network access turned off unless you enable it in your configuration” Subagents: “can run subagent workflows by spawning specialized agents in parallel”. MCP (the page lists STDIO servers and Streamable HTTP servers, with bearer token and OAuth authentication). Pricing: “ChatGPT Work and Codex are included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan”; “API-key sessions use separate API pricing, not your ChatGPT allowance.”; the plan cards read “Get Free GPT-6 Luna at Standard speed in the desktop app, subject to rollout”, “Get Go GPT-6 Luna at Standard speed in the desktop app, subject to rollout”, and “Get Plus Codex on the web, in the CLI, in the IDE extension, and on iOS”. Developer commands: “Start or stop a voice conversation when available.” Managed configuration: “Paste requirements into requirements.toml and defaults into config.toml”. Codex Cloud: “Review changes and continue from the web, mobile, or desktop app.” Codex releases: 0.172.0 is the latest stable release (published 2026-11-24T00:03:55Z); the 0.171.0 notes (2026-11-20) say “Added GPT-6.2 Sol and Astra to model catalogs, with Sol as the default catalog selection. (#62106)”, and the commit behind that line (6ae30bd1, 2026-11-17) is in tag rust-v0.169.1. Fetched November 25, 2026. ↩↩↩↩↩↩

  382. Claude Code Docs, “Advanced setup”; Claude Code Docs, “Troubleshoot installation and login”; and the installer script at claude.ai/install.sh. Fetched November 11, 2026. Setup: “4 GB+ RAM, x64 or ARM64 processor” Troubleshooting: “Prebuilt binaries are published for darwin-arm64, darwin-x64, linux-x64, linux-arm64, linux-x64-musl, linux-arm64-musl, win32-x64, and win32-arm64.” A comment in the installer script: “Detect Rosetta 2 on macOS: if the shell is running as x64 under Rosetta on an ARM Mac,” then “download the native arm64 binary instead of the x64 one” ↩

  383. 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. ↩↩↩↩↩

  384. Claude Code Docs, “CLI reference”, and the Claude Code CHANGELOG. Fetched November 11, 2026. The two sources give different versions for --system-prompt-snapshot. The CLI reference row ends “Requires Claude Code v2.1.257 or later”; the CHANGELOG lists the flag under 2.1.267: “Added --system-prompt-snapshot off to render the system prompt fresh on every request instead of reusing the conversation’s recorded prompt (for iterating on prompt text)” ↩

  385. Claude Code Docs. “Run Claude Code programmatically.” Fetched November 11, 2026. “Set ANTHROPIC_API_KEY before running it, because bare mode doesn’t use your subscription login” and “In bare mode, Claude Code never reads OAuth credentials or the system keychain. For the Anthropic API, set ANTHROPIC_API_KEY in the environment” and “supply an apiKeyHelper in the --settings JSON. Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry continue to read their own provider credentials as usual.” ↩

  386. 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.” ↩↩↩↩↩↩

  387. Claude Code Docs, “Choose a permission mode”; Claude Code Docs, “Tools reference”; and the Claude Code CHANGELOG. Fetched November 11, 2026. Plan mode: “Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source.” The tools reference: “Claude uses AskUserQuestion to ask you multiple-choice questions when it needs a decision or a clarification.” CHANGELOG 2.0.21: “Claude will now ask you questions more often in plan mode” ↩

  388. 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.” ↩↩↩

  389. 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.” ↩

  390. 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.” ↩↩↩↩

  391. 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.” ↩↩↩↩↩↩↩↩↩↩

  392. 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“ ↩

  393. 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. ↩

  394. 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” ↩↩↩↩

  395. 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” ↩

  396. 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. ↩

  397. 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” ↩

  398. 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” ↩↩↩

  399. 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.” ↩

  400. What’s new in Claude Haiku 5.5, Claude Platform Docs, and Claude Code Docs, “Model configuration.” Fetched November 11, 2026. The model page: “Adaptive thinking is on by default.” It adds that thinking can still be turned off with thinking: {"type": "disabled"} “at high effort or below”. The model configuration page, for Claude Code: “You can’t turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models.” ↩

  401. What’s new in Claude Sonnet 5.5, Claude Platform Docs. Fetched November 11, 2026. “Five breaking changes can affect code already running on Claude Sonnet 5:” The fifth: “The advisor tool rejects four models as advisors: Claude Opus 4.8, Claude Opus 4.7, Claude Sonnet 5, and Claude Haiku 5.5.” ↩

  402. What’s new in Claude Opus 5.5, Claude Platform Docs. Fetched November 11, 2026. The table of model switches and whether each “Keeps its reasoning”: “From Claude Opus 5.5, to Claude Fable 5.2 or Claude Mythos 5.2” keeps it “on the Claude API and Claude Models on Google Cloud (Google managed) only”; “From Claude Opus 5.5, to Claude Fable 5.1 or Claude Mythos 5.1” keeps it “on the Claude API only”; “From Claude Opus 5.5, to any other model” does not. ↩

  403. Introducing Claude Opus 5, Anthropic, fetched November 11, 2026. “Claude Opus 5 provides greatly improved performance for the same cost as its predecessor, Opus 4.8.” and “It’s the new default model on Claude Max, and the strongest model on Claude Pro.” and “priced at $5 per million input tokens and $25 per million output tokens (the same as Opus 4.8)”. The 26% figure is in a customer quotation, attributed on the page to Niko Grupen, Head of Applied Research: “ability to maintain quality at lower reasoning levels, achieving similar performance while generating 26% fewer tokens on average compared to Opus 4.8 at max reasoning”. The post does not call the model a drop-in upgrade. ↩

  404. Claude Code Docs, “Model configuration”; Claude Fable 5.1 model overview, Claude Platform Docs; and the npm registry record for @anthropic-ai/claude-code. Fetched November 11, 2026. The model configuration page: “Fable 5.2 requires Claude Code v2.1.321 or later, and Fable 5.1 requires v2.1.257 or later.” The registry lists 2.1.252 (published 2026-08-31) and 2.1.257 (published 2026-09-01) and no version between them. The Fable 5.1 overview carries no Claude Code version today, and says of the sibling model: “Claude Mythos 5.1 offers the same capabilities only to organizations verified through Anthropic’s verification programs, such as the Cyber Verification Program. It shares Claude Fable 5.1’s specifications and pricing.” ↩↩↩↩

  405. Claude Fable 5 and Claude Mythos 5, Anthropic, June 9, 2026, fetched November 11, 2026. “It is state-of-the-art on nearly all tested benchmarks of AI capability” and “Fable 5 stays focused across millions of tokens in long-running tasks”. On Mythos 5: “It’s the same underlying model as Fable 5, but with the safeguards lifted in some areas.” Plans: “From today through June 22, Fable 5 is included on Pro, Max, Team, and seat-based Enterprise plans at no extra cost. On June 23, we’ll remove Fable 5 from those plans. Using it after that will require usage credits”. Two dated notices on the page: June 12, 2026, “We are suspending access to Claude Fable 5 and Claude Mythos 5.”, and July 1, 2026, “Claude Fable 5 and Mythos 5 are now available.” ↩

  406. Introducing Claude Opus 4.7, Anthropic, April 16, 2026, fetched November 11, 2026; and two OpenAI announcements read in their Wayback Machine captures the same day: Introducing GPT-5.4 (captured April 21, 2026) and Introducing GPT-5.3-Codex (captured April 20, 2026). Anthropic’s benchmark table is an image and reads: SWE-bench Pro, Opus 4.7 64.3%, Opus 4.6 53.4%, GPT-5.4 57.7%; SWE-bench Verified, Opus 4.7 87.6%, Opus 4.6 80.8%, GPT-5.4 a dash; Terminal-Bench 2.0, Opus 4.7 69.4%, Opus 4.6 65.4%, GPT-5.4 75.1% with the label self-reported harness. Customer reports in the post’s text: “On CursorBench, Opus 4.7 is a meaningful jump in capabilities, clearing 70% versus Opus 4.6 at 58%.” and “On our 93-task coding benchmark, Claude Opus 4.7 lifted resolution by 13% over Opus 4.6” and “On Rakuten-SWE-Bench, Claude Opus 4.7 resolves 3x more production tasks than Opus 4.6”. OpenAI’s GPT-5.4 table: “SWE-Bench Pro (Public) 57.7% 56.8% 55.6%” for GPT-5.4, GPT-5.3-Codex, and GPT-5.2, and Terminal-Bench 2.0 at 75.1% for GPT-5.4 and 77.3% for GPT-5.3-Codex. OpenAI’s GPT-5.3-Codex appendix, at xhigh effort: “SWE-Bench Pro (Public) 56.8% 56.4% 55.6%” and “Terminal-Bench 2.0 77.3% 64.0% 62.2%” for GPT-5.3-Codex, GPT-5.2-Codex, and GPT-5.2. Neither OpenAI table has a SWE-bench Verified row. ↩

  407. Claude Sonnet 4.6 model overview, Claude Platform Docs, and the Claude Code CHANGELOG. Fetched November 11, 2026. The model page: “Context window: 1M tokens · Max output: 128K tokens”. CHANGELOG 2.1.77: “Increased default maximum output token limits for Claude Opus 4.6 to 64k tokens, and the upper bound for Opus 4.6 and Sonnet 4.6 models to 128k tokens”. ↩

  408. Claude Code Docs, “Model configuration.” Fetched November 11, 2026. “append [1m] to the ID where you set the model, such as claude --model 'my-gateway-opus[1m]' in your shell”. Checked in zsh 5.9 on November 11, 2026: echo claude --model sonnet[1m] stops with zsh:1: no matches found: sonnet[1m], and the quoted form passes the argument through. ↩

  409. Claude Code CHANGELOG. Fetched November 11, 2026. 2.1.76: “Added /effort slash command to set model effort level”. 2.1.111: “Added xhigh effort level for Opus 4.7, sitting between high and max. Available via /effort, --effort, and the model picker; other models fall back to high” and “/effort now opens an interactive slider when called without arguments” and “Auto mode no longer requires --enable-auto-mode”. The flag is absent from claude --help in v2.1.322, read the same day. ↩↩

  410. Claude Code Docs, “Auto mode classifier request charges.” Fetched November 11, 2026. “On a Pro, Max, Ultra, or Team plan, you never see the notice.” ↩

  411. Claude Code Docs, “All settings.” Fetched November 11, 2026. The autoMode.classifyAllShell entry: “By default, auto mode suspends only allow rules that could run arbitrary code: tool-wide and wildcard rules such as Bash(*), and interpreter or shell-wrapper prefixes such as Bash(python *). A command that any other allow rule matches, such as Bash(npm test), skips the classifier unless it carries per-command allowed domains.” and “Setting this key suspends every shell allow rule for the session so the classifier sees every command.” Its scope is “User or managed”. ↩

  412. Claude Code Docs, “CLI reference.” Fetched November 11, 2026. The claude auto-mode reset row: “Restore the default auto mode configuration by removing the autoMode section from your user settings file. Prompts for confirmation before writing; pass -y/--yes to skip the prompt. Rules from managed settings or the --settings flag still apply. Requires Claude Code v2.1.212 or later.” claude auto-mode reset --help in v2.1.322, read the same day, says the same and lists -y, --yes. ↩

  413. Claude Code Docs, “Commands”; Claude Code Docs, “Interactive mode”; and Claude Code Docs, “Environment variables.” Fetched November 11, 2026. /recap: “Generate a one-line summary of the current session on demand. See Session recap for the automatic recap that appears after you’ve been away”. /tui: “Set the terminal UI renderer and relaunch into it. fullscreen enables the flicker-free alt-screen renderer. default, or classic on v2.1.327 or later, selects the classic renderer. With no argument, prints the active renderer”. Interactive mode: “Session recap is on by default for every plan and provider. To turn automatic recaps off, open /config and turn off Session recap.” CLAUDE_CODE_ENABLE_AWAY_SUMMARY: “Set to 0 to force recaps off regardless of the /config toggle. Set to 1 to force recaps on when awaySummaryEnabled is false.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  414. Claude Code Docs, “Environment variables.” Fetched November 11, 2026. CLAUDE_CODE_USE_POWERSHELL_TOOL: “Controls the PowerShell tool. On Windows without Git Bash, the tool is enabled automatically; set to 0 to disable it. On Windows with Git Bash installed, the tool is on by default for claude.ai and Console accounts; set to 1 to enable it in Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry sessions, or 0 to turn it off. On Linux, macOS, and WSL, set to 1 to enable it, which requires pwsh on your PATH.” ↩

  415. Claude Code Docs, “Choose a permission mode.” Fetched November 11, 2026. The starting-mode table: “Your organization has the HIPAA configuration applied and the session is eligible for it” starts in “default with Claude Code v2.1.285 or later; auto mode stays available to switch to”, and “claude -p or the Agent SDK” starts in default. “Before v2.1.302, these runs could start in auto mode if they didn’t fetch feature flags, for example on a third-party provider or with DISABLE_TELEMETRY.” What the classifier blocks by default includes “Downloading and executing code, like curl | bash”, “Production deploys and migrations”, “Mass deletion on cloud storage”, “Granting IAM or repo permissions”, and “Force push”, listed with no branch named. ↩↩

  416. Claude Code Docs, “Configure permissions”, and the Claude Code CHANGELOG. Fetched November 11, 2026. Rule order: “Rules are evaluated in order: deny, then ask, then allow. The first match in that order determines the outcome, and rule specificity doesn’t change the order.” and “An allow rule can’t carve an exception out of a deny rule.” Tool name wildcards: “Deny and ask rules also accept glob patterns in the tool-name position.” and “A tool matched by a bare-name glob deny rule is removed from Claude’s context” and “Allow rules accept tool-name globs only after a literal mcp__<server>__ prefix.”; an unanchored allow glob “is skipped and doesn’t auto-approve anything.” The CHANGELOG’s 2.1.166 entry adds glob support in the deny rule tool-name position and says “allow rules reject non-MCP globs, and unknown tool names in deny rules warn at startup”; it says nothing about allowing tools back after a glob deny. ↩↩

  417. Claude Code Docs, “Configure permissions”; Claude Code Docs, “Create custom subagents”; and Claude Code Docs, “All settings.” Fetched November 11, 2026. Parameter rules: “Deny and ask rules can match a top-level input parameter on any built-in tool with Tool(param:value).” and “A parameter rule matches when Claude calls the tool with that parameter set to that exact value.” and “allow rules continue to use each tool’s own specifier syntax” and “A parameter the model omits is never matched, so Agent(model:*) doesn’t match a call that leaves model unset” and “Agent(model:opus) matches the alias opus but not a full model ID”. From the subagents page: “When more than one source sets a model, Claude Code uses the first in this order:” the per-invocation model parameter, the definition’s model frontmatter, the CLAUDE_CODE_SUBAGENT_MODEL environment variable, then the main conversation’s model; and “If an availableModels allowlist in your settings blocks the model set for a subagent other than web-fetch, the subagent runs on the first of these that applies:”. The settings reference on availableModels: “Restrict which models people can select for the main session, subagents, skills, and the advisor.” On enforceAvailableModels: “so Default can still resolve to a model outside the list. This key closes that gap.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  418. Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. Denied hosts: “A connection to a host in deniedDomains is refused in every permission mode too.” The unsandboxed retry: “The retried command runs unsandboxed. In an interactive terminal session, who approves it depends on your permission mode”, with the entries bypassPermissions mode (“the retry runs without a prompt”), auto mode (“a separate classifier model evaluates the underlying command”), and dontAsk mode (“Claude Code denies the retry”); in Manual and acceptEdits mode the page says you get a prompt. Turning the retry off: “With the retry disabled, Claude Code ignores the dangerouslyDisableSandbox parameter.” The page’s own limit: “Sandboxing reduces risk but is not a complete isolation boundary. Review the limitations below before relying on it as a hard security control.” ↩↩↩

  419. Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. “Strict sandbox mode applies to the commands Claude runs. Commands you type yourself at the ! shell-mode prompt run outside the sandbox unless the session is one of these:” The two entries: a background session (“strict sandbox mode covers shell-mode commands too”) and a Linux session with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB set (“every command runs sandboxed, shell-mode commands included”). “Before v2.1.260, strict sandbox mode sandboxed shell-mode commands in every session.” ↩

  420. Claude Code Docs, “Configure permissions”, and the Claude Code CHANGELOG. Fetched November 11, 2026. CHANGELOG 2.1.113: “Security: Bash deny rules now match commands wrapped in env/sudo/watch/ionice/setsid and similar exec wrappers”. The permissions page, on what a Bash rule doesn’t match: “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Its table lists Bash(rm *) as stopping rm -rf build/ and not stopping /bin/rm -rf build/ or bash -c 'rm -rf build/'. “For filesystem and network enforcement that doesn’t depend on the command text, use sandboxing.” ↩

  421. Hooks reference, Claude Code documentation, fetched November 11, 2026. Async hooks: “set "async": true to run the hook in the background while Claude continues working”; “This field is only available on type: "command" hooks.” duration_ms: “Optional. Tool execution time in milliseconds. Excludes time spent in permission prompts and PreToolUse hooks”. The Read, Edit and Write tool inputs each list file_path: “Absolute path to the file to read”, “Absolute path to the file to edit”, “Absolute path to the file to write”. Automate actions with hooks, same fetch, under “Block edits to protected files”: “Add a PreToolUse hook to .claude/settings.json that runs the script before any Edit or Write tool call”. Configure permissions, same fetch: “Read and Edit deny rules apply to Claude’s built-in file tools, to file commands Claude Code recognizes in Bash, such as cat, head, tail, sed, and tee”; “For OS-level enforcement on sandboxed shell commands, enable the sandbox and turn off the unsandboxed retry.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩

  422. Agent SDK changelogs, fetched November 11, 2026. TypeScript SDK CHANGELOG, 0.3.208: “Fixed a caller abort during a pending SDK hook callback being converted into hook success, which let PreToolUse-gated tools execute after the abort”. Python SDK CHANGELOG, 0.2.127: “Previously, closing stdin too early caused SDK-MCP tool calls from background tasks to fail with "Stream closed" and silently bypassed PreToolUse hooks.” ↩

  423. Claude Code CHANGELOG, fetched November 11, 2026. 2.0.72: “Changed thinking toggle from Tab to Alt+T to avoid accidental triggers”. 2.1.0: “Added hooks support to agent frontmatter, allowing agents to define PreToolUse, PostToolUse, and Stop hooks scoped to the agent’s lifecycle”; “Added hooks support for skill and slash command frontmatter”; “Improved subagents (Task tool) to continue working after permission denial, allowing them to try alternative approaches”. 2.1.7: “Enabled MCP tool search auto mode by default for all users. When MCP tool descriptions exceed 10% of the context window, they are automatically deferred and discovered via the MCPSearch tool instead of being loaded upfront.” ↩↩↩↩

  424. Connect Claude Code to tools via MCP, Claude Code documentation, section “MCP output limits and warnings”, fetched November 11, 2026: “when a successful result with no image content exceeds the token limit, Claude Code saves it to a file and replaces it in the conversation with a message that names the file path”; “Claude Code saves a successful result with no image content to a file once it’s longer than 50,000 characters, whatever its token count. Setting MAX_MCP_OUTPUT_TOKENS doesn’t change this threshold”. Under “Raise the limit for a specific tool”: “by setting _meta["anthropic/maxResultSizeChars"] in the tool’s tools/list response entry. Claude Code raises that tool’s threshold to the annotated value, up to a hard ceiling of 500,000 characters.”; “The annotation applies independently of MAX_MCP_OUTPUT_TOKENS for text content”; “Tools that return image data are still subject to the token limit.” The CHANGELOG, same fetch, 2.1.2: “Changed large tool outputs to be persisted to disk instead of truncated, providing full output access via file references”. ↩↩

  425. Control MCP server access for your organization, Claude Code documentation, fetched November 11, 2026: “The servers in managed-mcp.json need no allowedMcpServers entry, with one exception: Claude Code checks a server against the allowlist when it uses ${VAR} expansion outside env. Before v2.1.305, it also checked a server that used ${VAR} expansion only in env, and before v2.1.259, every managed server whenever an allowlist was set.”; “A managed-mcp.json server that uses ${VAR} expansion in its command, arguments, URL, or headers is still checked.”; “deniedMcpServers applies to managed servers too, so a managed server that matches an entry won’t load.”; “these servers start loading on each user’s first launch of a version that doesn’t check them, with no prompt or notice”. ↩↩

  426. Claude Platform release notes, fetched November 11, 2026. Entry of November 24, 2025: “launched programmatic tool calling in beta, allowing Claude to call tools from within code execution to reduce latency and token usage in multi-tool workflows”. Entry of February 17, 2026: “The web search tool and programmatic tool calling are available with no beta header required.”; “The code execution tool, web fetch tool, tool search tool, tool use examples, and memory tool no longer require a beta header.” Code execution tool, Claude API documentation, same fetch: “All operations run in a secure, sandboxed container.”; “code_execution_20250825 supports Bash commands and file operations.”; “None of the three tool versions requires an anthropic-beta header.” ↩↩↩

  427. Create custom subagents, Claude Code documentation, fetched November 11, 2026. Explore: “On Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, Claude Platform on AWS, or a Claude apps gateway, Explore stays on Fable.” name: “Unique identifier of at most 256 characters, such as code-reviewer or reviewer-v2”; “Names can’t contain :”. Delegation: “To encourage proactive delegation, include phrases like “use proactively” in your subagent’s description field.” hooks: “Lifecycle hooks scoped to this subagent. Ignored for plugin subagents”; “plugin subagents don’t support the hooks, mcpServers, or permissionMode frontmatter fields”. --agents JSON: “Each top-level key in the JSON is an agent’s name, and its value is that agent’s definition.”; “the agent’s system prompt, equivalent to the markdown body in file-based subagents”; “description, tools, disallowedTools, model, permissionMode, mcpServers, hooks, maxTurns, autoCompactWindow, skills, initialPrompt, memory, effort, background, omitClaudeMd, and isolation”; “color and experimental aren’t accepted here and are ignored rather than rejected.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩

  428. Message your other Claude Code sessions, Claude Code documentation, fetched November 11, 2026. Messages: “A message is a piece of text one Claude writes to another, never the sender’s conversation history or files.”; “The receiving Claude reads the message between tool calls during an active turn. When the receiving session is idle, Claude Code starts a new turn with the message.”; “Permission boundaries stay per-session.” Receiving rules: “a message from another session never counts as your consent”; “Claude Code never executes it”. Inbound default: “When no value applies, Claude Code decides per message from the two sessions’ permission modes.”; “The deadline defaults to five minutes.”; “Claude Code holds at most 100 messages, and past that drops the oldest.”; “A session in the VS Code extension or the Desktop app can’t show the dialog.”; “A -p session can’t show the approval dialog.”; “Claude Code drops the message and reports it as expired to a sender it can reach.”; “Set dialogExpiry to "never" to keep default-held messages until the session ends. A message held by an explicit hold setting doesn’t expire”; in bare mode “Claude Code doesn’t bind the socket”. The listing has rows for “Teammates” and “Your other local sessions”. Names: “When you don’t set one, Claude Code names the session itself.”; Manage sessions, same fetch: “The default combines the working directory’s name with a two-character suffix, for example my-app-3f”. ↩↩↩↩↩

  429. Message your other Claude Code sessions, Claude Code documentation, section “The session’s inbox socket”, fetched November 11, 2026: “/status shows it in the Peer address row. The path is prefixed with uds:.”; “Claude Code exports the variable before any hook runs, including SessionStart.”; “A script posting to its own session’s socket can send {"type":"auth","token":"<token>"} as the first line of its connection, where <token> is the value of CLAUDE_CODE_MESSAGING_TOKEN.”; “Claude Code closes any connection whose first line isn’t a valid auth line and delivers nothing from that connection.”; “On Linux, including inside WSL 2, Claude Code can verify by process evidence even for a child that has already exited. On macOS it can verify that way only while the posting process is still running, and in a container where Claude Code runs as process ID 1 it has no process evidence at all. On native Windows it also has none.”; “On native Windows, that token is the only way Claude Code verifies an own-child message.”; “When Claude Code can verify neither way, it treats the message like any other that asserts no permission class, so a session that bypasses permission prompts holds it for your approval.”; sandboxed commands are governed by “sandbox.network.allowAllUnixSockets and sandbox.network.allowUnixSockets”. ↩↩

  430. Message your other Claude Code sessions, Claude Code documentation, fetched November 11, 2026. Transport: “Over a per-session socket on macOS and Linux, or a per-session named pipe on native Windows, never through Anthropic servers”; “Through Anthropic servers, straight to the cloud session”; “A session inside a container and a session on the host can’t reach each other.”; “A session inside WSL 2 and a native Windows session on the same computer can’t reach each other either.” Cloud sessions: a cloud session “can’t use SendMessage to answer a message from another machine”; “The message still arrives. Read the cloud session’s response in its transcript at claude.ai/code.” isolatePeerMachines: “A true from any settings scope applies, so a checked-in project file can turn the requirement on but not off.” Limits: Claude Code “queues at most 50 accepted messages for Claude to read”. Availability: “Claude can’t find those sessions with an API key or on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, and Microsoft Foundry.”; “/list-agents isn’t recognized”; “Denying SendMessage also removes messaging to subagents and agent-team teammates, since the same tool serves both.”; “A refusing session shows no visible change”. ↩↩↩↩↩

  431. Commands, Claude Code documentation, fetched November 11, 2026. /usage: “Show session cost, plan usage limits, and activity stats. On a Pro, Max, Ultra, Team, or Enterprise plan, includes a breakdown of what counts against your plan limits.”; “/cost and /stats are aliases”. /skill-doctor: “Requires Claude Code v2.1.252 or later and feature-flag fetching”. The CHANGELOG, same fetch: 2.1.149, “/diff detail view can now be scrolled with the keyboard”; 2.1.222, “to use raw git blob content, ignoring workspace-configured diff drivers and textconv”; 2.1.243, “Added a Loops breakdown to /usage: per-loop run count, total tokens, tokens per run, and last run”; 2.1.305, “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”. ↩↩↩

  432. Commands, Claude Code documentation, fetched November 11, 2026: the command table has no /commit-push-pr row. Install and manage plugins, same fetch: the commit-commands plugin from Anthropic’s official marketplace “adds commands for committing, pushing, and opening pull requests”, installed with /plugin install commit-commands@claude-plugins-official. The plugin’s README, same day, on /commit-push-pr: “Complete workflow command that commits, pushes, and creates a pull request in one step.” ↩

  433. Extend Claude with skills, Claude Code documentation, fetched November 11, 2026: “Skill(anthropic-skills:pdf) approves the synced pdf skill”; “Skill(anthropic-skills *) approves every synced skill”; “Run with --debug to see the parse error”; “claude plugin validate .claude/skills for project skills or claude plugin validate ~/.claude/skills for personal skills. Requires Claude Code v2.1.233 or later.” Hooks reference, same date: “run claude --debug and read the log at ~/.claude/debug/<session-id>.txt. The --debug flag doesn’t print to the terminal.” ↩↩↩

  434. Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added support for running skills and slash commands in a forked sub-agent context using context: fork in skill frontmatter”. Extend Claude with skills, Claude Code documentation, same date, frontmatter reference: “Set to fork to run in a forked subagent context.” ↩

  435. Skill authoring best practices, Claude API documentation, fetched November 11, 2026: “Always use forward slashes in file paths, even on Windows”. ↩

  436. Customize Claude Code with plugins, Claude, October 9, 2025, fetched November 11, 2026 (the anthropic.com/news/claude-code-plugins address redirects here): “Plugins are now in public beta for all Claude Code users.” Anthropic’s marketplaces, Claude Code documentation, fetched November 11, 2026: “Anthropic publishes two general-purpose plugin marketplaces for Claude Code”; “The community marketplace’s name is claude-community, not its repository name”; “By default, Claude Code adds the official marketplace, claude-plugins-official, for you”; “You add it in a Claude Code session with /plugin marketplace add anthropics/claude-plugins-community”. ↩↩

  437. How Claude remembers your project, Claude Code documentation, fetched November 11, 2026: “As it works, Claude saves four kinds of notes for itself”; “project: ongoing work, deadlines, and decisions that Claude can’t derive from the code or git history”; “Claude skips anything it can derive from the codebase, such as architecture, file paths, or debugging fixes. It also skips anything your CLAUDE.md files already say.”; “The directory contains a MEMORY.md index and one topic file per memory”; “Claude Code doesn’t load topic files such as user_role.md or feedback_testing.md at startup. Claude reads them on demand”; “Claude Code records the write time in a modified frontmatter field as an ISO 8601 timestamp. The timestamp shows how current the fact is, both to you and to Claude when it reads the memory back.”; “The first time Claude Code encounters external imports in a project, it shows an approval dialog listing the files. If you decline, the imports stay disabled and the dialog doesn’t appear again.”; “User-scope memory files, such as ~/.claude/CLAUDE.md and ~/.claude/rules/, are files you wrote yourself. Except in Cowork sessions on your desktop, Claude Code loads their imports without the dialog”. ↩↩↩↩

  438. Common workflows, Claude Code documentation, fetched November 11, 2026: “When Claude references images (for example, [Image #1]), Cmd+Click (Mac) or Ctrl+Click (Windows/Linux) the link to open the image in your default viewer”. ↩

  439. Choose a permission mode, Claude Code documentation, fetched November 11, 2026. The Available modes table lists “Reads only” as what runs without asking in default (Manual) mode. Allowed by default in auto mode: “Pushing to any branch of the repository you’re working in, including the default branch”; “permissions.deny rules can still block push commands as written in every mode. The remote’s own branch protection still applies.” Blocked by default: “Force push”; “git commit --amend when the commit at HEAD was not created in this session”; “From v2.1.198, git commit --amend when the commit at HEAD has already been pushed”; “which the classifier presumes would discard uncommitted changes”; “Committing or pushing a change that would send secrets or sensitive data outside the repository when it runs”. On approvals: “include the specific thing that makes it dangerous, such as the branch of a force push”. Configure auto mode, same date: “By default in auto mode, Claude can push to the repository you’re working in, including its default branch, without a prompt. It can also open pull requests there when your task asks for one.”; on the permission-modes page, “A non-default branch whose name marks it as a deploy or publication target, such as production or gh-pages, isn’t covered: the classifier judges a push there on its own terms.”; “These rules match commands that begin with git push or gh pr create. A push Claude writes another way, such as git -C <dir> push”. Configure permissions, same date: “A push written another way, such as git -C . push, isn’t matched”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  440. Claude Code documentation, fetched November 11, 2026. All settings, respectGitignore: “Control whether the @ file picker leaves out files that match .gitignore patterns”; default true. Tools reference: “Glob doesn’t respect .gitignore by default, so it finds gitignored files alongside tracked ones”; “To make Glob respect .gitignore, set CLAUDE_CODE_GLOB_NO_IGNORE=false before launching Claude Code”; “Grep respects .gitignore, so gitignored files are skipped”. ↩

  441. Install and manage plugins, Claude Code documentation, fetched November 11, 2026: /plugin install commit-commands@claude-plugins-official; “which adds commands for committing, pushing, and opening pull requests”; “Type / and look for the plugin’s skills under its name, in the form /<plugin>:<skill>. For commit-commands, /commit-commands:commit appears.” The plugin’s README, same date, documents the command under the heading “/commit-push-pr”. The command is not on the docs’ commands page. ↩

  442. Claude Code GitHub Actions, Claude Code documentation, fetched November 11, 2026, whose “Run a skill” section carries the review workflow reproduced here. Manual setup: “install the app, add the secret, and copy the workflow file into your repository yourself”. On the workflow: “id-token: write: required for the Claude Code GitHub Action’s default GitHub App authentication”; “actions/checkout: gives Claude a local copy of the repository to work in”; “Without it, Claude posts nothing, and you read the findings in the workflow run log”; “the Claude Code GitHub Action starts the MCP server that posts inline comments only when --allowedTools in claude_args names it”; “replace the anthropic_api_key line in any example with claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}”; “For a plain-text prompt, Claude has no shell or GitHub API access until you grant the tools the prompt needs”; “GitHub withholds secrets from runs triggered by fork pull requests”. The action’s own FAQ, same date: “If you’re using the default GitHub App authentication, you must add the id-token: write permission to your workflow”. Use Claude Code GitHub Actions with cloud providers, same date: “includes the id-token: write permission, which GitHub requires to issue the OIDC token that your cloud provider exchanges for credentials”. Code Review, same date: “By itself, a review doesn’t approve or block the pull request. Its result counts toward approvals in a repository whose Claude Approvals policy file uses it.”; its comparison table lists Code Review as running on “Anthropic infrastructure” and Claude in your own CI, with GitHub Actions, on “Your own CI runners”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩

  443. Use Claude Code in VS Code, Claude Code documentation, fetched November 11, 2026: “Claude Code v2.1.318 or later doesn’t install the extension for you, so until you install it, /ide reports “No available IDEs detected” and /status shows the IDE as “Not connected”.”; “If VS Code is running without the extension, /ide installs it, unless you turned off autoInstallIdeExtension”; “use the Thinking switch in the Model section of the command menu (/). On models where thinking can’t be turned off, the menu has no Thinking switch and thinking stays on.”; “These guides cover configuring your provider in ~/.claude/settings.json, which ensures your settings are shared between the VS Code extension and the CLI.”; the extension settings table lists disableLoginPrompt: “Skip authentication prompts (for third-party provider setups)”. ↩↩↩

  444. Use Claude Code in the cloud, Claude Code documentation, fetched November 11, 2026: “When you run claude --cloud from a repository that has no git remote, or from a github.com repository that the Claude GitHub App isn’t installed on, Claude Code bundles your local repository and uploads it directly to the cloud session. This applies even if you connected GitHub with /web-setup.”; “For a full clone, the bundle includes your repository history across all branches, plus uncommitted changes to tracked files.”; “A Left on this machine: notice names the files left out”; “Native Windows: uncommitted changes to tracked files upload as they are, whatever the file’s name. Stash or revert an edit you don’t want in the cloud session before you start it.”; “The bundled repository must be under 100 MB. Larger repositories fall back to bundling only the current branch, then to a single squashed snapshot of the working tree”; Re-read November 25, 2026, where the wording had changed: claude-code-on-the-web, “When you teleport a session, Claude verifies you’re in the correct repository and loads the conversation into your terminal. To get the session’s branch too, check the requirements and run claude --teleport.”

    “Untracked files are not included”; “To upload a bundle even when Claude Code would otherwise clone from the remote, set CCR_FORCE_BUNDLE=1”; “run claude --teleport for an interactive session picker”; “run /teleport or /tp to open the same session picker”; “select Open in > Terminal from the session menu to copy a command you can paste into your terminal”; “Claude verifies you’re in the correct repository, fetches and checks out the branch from the cloud session, and loads the conversation into your terminal”; “the earlier messages it summarized aren’t copied to your terminal. Claude continues from the summary”; “The terminal gets its own copy of the session: new work there stays local and doesn’t appear in the cloud session”; “cloud sessions share rate limits with all other Claude and Claude Code usage within your account. Running multiple tasks in parallel consumes more rate limits proportionately.” ↩↩↩↩

  445. Scan your codebase for vulnerabilities, Claude Code documentation, fetched November 11, 2026: “On Pro, turn them on from the Dynamic workflows row in /config.” ↩

  446. Automate work with scheduled tasks, Claude Code documentation, fetched November 11, 2026, hourly limits table: scheduled runs, including one-off runs, 100 per hour for your account (“The run waits until the limit resets”); Run now, API fires, and setting a one-off task to run again, 30 per hour for each scheduled task, “one count shared by all three” (“The action fails until the limit resets”); Run now and setting a one-off task to run again, 100 per hour for your account; API fires, 100 per hour for your account, “counted separately from Run now”. “None of these hourly limits has overage.” ↩

  447. Claude Code Docs. “All settings.” Fetched November 11, 2026. The worktree.baseRef entry: “"fresh" branches from origin/<default-branch> for a clean tree matching the remote; "head" branches from your current local HEAD, so unpushed commits and feature-branch state are present in the worktree.” The allowedProviders entry lists its "vertex" value as “Google Cloud’s Agent Platform, formerly Vertex AI”. ↩↩

  448. Claude Code Docs. “Troubleshooting.” Fetched November 11, 2026. “Restart with claude --safe-mode to check whether a plugin, MCP server, or hook is the source.” On search: “If the Search tool, @file mentions, custom agents, or custom skills aren’t finding files, the bundled ripgrep binary may not run on your system.” After setting USE_BUILTIN_RIPGREP=0, run claude doctor and “check that the Search line shows the path of your system ripgrep instead of OK (bundled)”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩

  449. Claude Code Docs, “CLI reference”, and Claude Code Docs, “Hooks reference.” Fetched November 11, 2026. CLI reference, --debug: “Enable debug mode with optional category filtering, such as --debug='mcp,startup' or --debug='!mcp'. The filter binds only in the = form” and --debug-file: “Write debug logs to a specific file path. Implicitly enables debug mode.” Hooks reference: “run claude --debug and read the log at ~/.claude/debug/<session-id>.txt. The --debug flag doesn’t print to the terminal.” ↩

  450. Claude Code Docs, “Error reference”, and Claude Code Docs, “Connect Claude Code to tools via MCP.” Fetched November 11, 2026. The error reference gives these strings: “Context limit reached · /compact or /clear to continue” with “In -p output and the transcript, the text stays Prompt is too long.”; “API Error: Request rejected (429)” under “You have hit the rate limit configured for your API key, Amazon Bedrock project, or Google Cloud project.”; “You’ve hit your session limit” with the weekly, Opus and Sonnet variants under “Subscription plans include a rolling usage allowance.” (the CHANGELOG, same fetch, lists under 2.1.312 “Changed usage limit messages to call the 5-hour window the “5-hour limit” instead of the “session limit”“, and Claude Code 2.1.322 prints You've hit your 5-hour limit); “Not logged in · Please run /login” under “No valid credential is available for this session.”; “Login expired · Please run /login”; and “MCP server “” needs you to sign in again (run /mcp to re-authenticate)”. MCP page: “When a server’s status is ✘ Failed to connect, claude mcp list appends the failure detail to that status line, and claude mcp get <name> shows it on an Issue: line.” ↩↩

  451. Anthropic Accidentally Exposes Claude Code Source via npm Source Map File, InfoQ, April 7, 2026, and the npm registry record for the package. Fetched November 11, 2026. InfoQ: “Security researcher Chaofan Shou discovered on March 31 that Anthropic’s Claude Code CLI tool had its full TypeScript source code sitting in plain sight on the public npm registry.” The registry’s time field records 2.1.88 as published at 2026-03-30T22:36:48Z, and the version is no longer in its versions list. ↩

  452. How we built Claude Code auto mode, Anthropic, published March 25, 2026 (the older address anthropic.com/engineering/claude-code-auto-mode redirects to it). Fetched November 11, 2026. “the transcript classifier (running on Sonnet 4.6) evaluates each action against a set of decision criteria before it executes” and “The classifier runs in two stages: a fast single-token filter (deciding ‘yes’ to block or ‘no’ to allow), followed by chain-of-thought reasoning only if the first filter flags the transcript.” ↩

  453. Claude Code Docs. “How Claude Code uses prompt caching.” Fetched November 11, 2026. The list under “Actions that invalidate the cache” includes “Accumulating many images”, and that section says: “Removing images changes the messages that held them, so the next request reprocesses the conversation from the earliest of those messages onward.” ↩

  454. Claude Code Docs, “Configure server-managed settings”, and the Claude Code CHANGELOG, section 2.1.316. Fetched November 11, 2026. Docs page, “Security approval dialogs”: “Certain settings that could pose security risks require explicit user approval before Claude Code applies them in an interactive session” and “When these settings are present, users see a security dialog explaining what is being configured.”; the list under it names shell command settings, sandbox settings, custom environment variables and hook configurations. CHANGELOG: “Changed server-managed settings for Team and Enterprise logins: settings fetched from Anthropic’s API now apply without an approval prompt, and a stored copy that doesn’t verify is refused” ↩↩

  455. Claude Platform Docs. “Claude Code Analytics API.” Fetched November 11, 2026. “You can access them using an Admin API key, an OAuth token with the org:admin scope, or a personal or service account key that isn’t scoped to a workspace; workspace API keys don’t work.” ↩

  456. Claude Code Docs. “Interactive mode.” Fetched November 11, 2026. The Ctrl+X Ctrl+K row: “Stop all running background subagents in this session, and turn off artifact auto-replies for the rest of it. Press twice within 3 seconds to confirm.” ↩

  457. GitHub Advisory Database, fetched November 11, 2026. GHSA-4fgq-fpq9-mr3g (CVE-2025-59536; affected versions below 1.0.111, patched in 1.0.111): “Claude Code could be tricked to execute code contained in a project before the user accepted the startup trust dialog.” GHSA-jh7p-qr78-84p7 (CVE-2026-21852; affected versions below 2.0.65, patched in 2.0.65): “A vulnerability in Claude Code’s project-load flow allowed malicious repositories to exfiltrate data including Anthropic API keys before users confirmed trust.” ↩↩↩

  458. Claude Code Docs, “Choose a sandbox environment”, and Claude Code Docs, “Configure the sandboxed Bash tool.” Fetched November 11, 2026. Sandbox runtime: “The runtime is a beta research preview, and its configuration format may change as the package evolves.” Sandboxing page: “Some shell commands also run outside the sandbox, depending on your settings”; “a command you enter at the ! shell-mode prompt runs unsandboxed in most sessions”; “commands that match excludedCommands run unsandboxed”; and Claude can retry a command with the sandbox off, “usually after it fails in the sandbox”. ↩↩

  459. Claude Code Docs, “Tools reference”, and the README of ykdojo/claude-code-tips. Fetched November 11, 2026. Tools reference, “WebFetch tool behavior”: “It fetches the page and converts the response to Markdown when the server returns HTML. For most fetches, it then runs the prompt against the content in a separate model call, and Claude receives the result of that call rather than the raw page.” and “use curl via Bash for the unprocessed page”. README: “Maybe it’s a private page (not sensitive data, just not publicly accessible), or something like a Reddit post that Claude Code has trouble fetching. In those cases, you can just select all the content you see (Cmd+A on Mac, Ctrl+A on other platforms), copy it, and paste it directly into Claude Code.” and “if Claude Code has trouble loading certain URLs, you can try using Playwright MCP or Claude’s native browser integration”. ↩

  460. Boris Cherny on X, December 27, 2025. Fetched November 11, 2026 (X’s embed service confirms the post and its date; the full text was read through the FxTwitter mirror of the same post). “In the last thirty days, I landed 259 PRs – 497 commits, 40k lines added, 38k lines removed. Every single line was written by Claude Code + Opus 4.5.” ↩

  461. X profile descriptions, About, Boris Cherny’s Blog, Advent of Claude: 31 Days of Claude Code by Ado Kukic, and davila7/claude-code-templates. Fetched November 11, 2026. Boris Cherny’s about page: “I am a Software Engineer at Anthropic, where I created Claude Code”. Profile of @adocomplete: “Community, Claude, Code at @AnthropicAI”; his post: “Throughout December, I shared one Claude Code tip per day on X/Twitter and LinkedIn.” Profile of @_catwu: “core products @openai, prev: claude code @anthropic”. Profile of @trq212: “formerly Claude Code @anthropicai”. Profile of @mattpocockuk: “Author of Total TypeScript and AI Hero.” The profile of @dani_avila7 links aitmpl.com, the homepage of the claude-code-templates repository, whose description reads “Open-source registry and CLI for Claude Code components: agents, commands, skills, hooks, MCPs, settings and mods”. ↩↩↩↩↩

  462. Claude Code Docs, “Model configuration”; Claude Code Docs, “Commands”; and Claude Code Docs, “Choose a permission mode.” Fetched November 11, 2026. Model configuration, opusplan: “Special mode that uses opus during plan mode, then switches to sonnet for execution” Commands, /plan: “Enter plan mode directly from the prompt.” /init: “Initialize project with a CLAUDE.md guide.” and /compact [instructions]: “Optionally pass focus instructions for the summary.” Permission modes: “Approving a plan exits plan mode and switches the session to the permission mode each approve option describes, so Claude starts editing.” Create custom subagents, on the Explore agent: “A fast, read-only agent optimized for searching and analyzing codebases.” ↩

  463. GitHub Docs, fetched November 11, 2026. GitHub Copilot CLI: “GitHub Copilot CLI gives you quick access to a powerful AI agent, without having to leave your terminal.”; “Copilot will build a structured implementation plan for a task you want to complete”; “GitHub Copilot CLI includes specialized custom agents that it automatically delegates common tasks to.” Hooks for GitHub Copilot: “Hooks are a way of executing custom shell commands at strategic points in an agent’s workflow” Model Context Protocol (MCP): “GitHub Copilot CLI supports both local and remote MCP servers.” Using GitHub Copilot CLI lists the custom instruction sources it reads, among them “Repository-wide instructions in the .github/copilot-instructions.md file.” and “Agent files such as AGENTS.md.” GitHub Copilot in IDEs: “Get suggestions directly in the editor as you work.” ↩

  464. Cursor Docs, fetched November 11, 2026. Cursor Agent: “Agent is Cursor’s assistant that can complete complex coding tasks independently, run terminal commands, and edit code. Access in sidepane with Cmd+I.” Subagents: “Each subagent operates in its own context window” Hooks: “Hooks let you observe, control, and extend the agent loop using custom scripts. Define hooks in hooks.json files at the project or user level” Terminal: “The sandbox runs terminal commands in a restricted environment that blocks unauthorized file access and network activity.” MCP: the transport table lists OAuth as the authentication for SSE and Streamable HTTP servers. Cloud Agents: “run in isolated VMs in the cloud” Cursor CLI: “Cursor CLI lets you interact with AI agents directly from your terminal” Rules: “Project rules live in .cursor/rules as .mdc files” and “AGENTS.md is a simple markdown file for defining agent instructions.” Search: “Instant Grep builds and queries its index on your machine.” Tab: “Tab is Cursor’s AI-powered autocomplete.” ↩

  465. Introducing Claude Opus 4.7, Anthropic, April 16, 2026, fetched November 11, 2026. The benchmark table on that page is an image; its Opus 4.7 column reads 64.3% on SWE-bench Pro, 87.6% on SWE-bench Verified and 69.4% on Terminal-Bench 2.0, and its GPT-5.4 column reads 57.7%, a dash, and 75.1% marked as a self-reported harness. OpenAI’s own figures come from archive captures of its launch posts: Introducing GPT-5.4 (captured March 5, 2026; SWE-Bench Pro (Public) 57.7%, Terminal-Bench 2.0 75.1%, no SWE-bench Verified row); Introducing GPT-5.3-Codex (captured February 5, 2026; SWE-Bench Pro 56.8% against 56.4% for GPT-5.2-Codex, Terminal-Bench 2.0 77.3% against 64.0%); and Introducing GPT-5 for developers (captured August 7, 2025): “scoring 74.9% on SWE-bench Verified and 88% on Aider polyglot” and “We omit 23/500 problems that could not run on our infrastructure.” ↩↩

  466. OpenAI Codex documentation, fetched November 11, 2026. Subagents: “At most intelligence levels, ask for subagents or parallel agent work directly. Ultra enables proactive delegation, so ChatGPT can delegate suitable independent work without a separate request.” Developer commands: “When your CLI build and session support voice, use /voice or F8 to start or stop a voice conversation.” ↩↩

  467. Vendor documentation for the two web apps and for Claude Code, fetched November 11, 2026. Claude Help Center, Create and edit files with Claude: “Claude can execute code to create and work with files directly in your conversations.”; “Claude will generate the file, which you can then download directly from the conversation.”; “When Claude executes code or creates files, it operates within an isolated, sandboxed container. This means the work happens in a controlled environment separate from your systems.”; “perform advanced analyses on uploaded data”. OpenAI’s ChatGPT docs: Sandbox, “ChatGPT Work runs code and shell commands in a managed, isolated environment.”; Work with files, “Review the generated file in the chat, download it when needed, and give targeted feedback for the next version.”; Projects and chats, “A ChatGPT project doesn’t provide direct access to a folder on your computer, so upload or connect the sources you want ChatGPT to use.” Claude Code: Overview, “Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.”; Tools reference, Bash “Executes shell commands in your environment”, Edit “Makes targeted edits to specific files”, Write “Creates or overwrites files”. ↩

  468. 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. ↩

  469. 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.” ↩

  470. 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.” ↩

  471. 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.” ↩↩↩

  472. 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”. ↩

  473. 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.” ↩↩↩

  474. 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”. ↩↩↩↩

  475. 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”. ↩

  476. 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.” ↩

  477. 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”. ↩↩

  478. 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. ↩↩↩

  479. 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”. ↩

  480. 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”. ↩↩

  481. 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.” ↩↩↩

  482. Claude Fable 5.2 model overview and Models overview, Anthropic platform docs, fetched November 11, 2026. The Model IDs table on the Fable 5.2 page has the row “Amazon Bedrock (bedrock-runtime)” with the ID global.anthropic.claude-fable-5-2; the Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 pages list anthropic.claude-opus-5-5, anthropic.claude-sonnet-5-5, anthropic.claude-haiku-5-5, and anthropic.claude-fable-5-1 for Amazon Bedrock. The Models overview explains the difference: “a model that Bedrock serves only on its bedrock-runtime endpoint shows its inference profile ID instead.” ↩↩

  483. How Claude marks AI-generated content, Claude Help Center, and How Claude’s text watermarking works, Anthropic, both fetched November 11, 2026. Help Center: “Claude models launched in the EU on or after August 2, 2026 will support machine-readable marking at launch.”; “The law includes a transition period for AI systems launched before August 2, 2026, and we’re working to add marking support for earlier Claude models.”; “Consistent with our commitments under the Code, Anthropic is adding watermarks to outputs from models released before August 2, 2026.”; the table “Which Claude models support watermarking”, with its notes “Rollout on Amazon Bedrock will complete by November 10.” and “For Sonnet 4.6, outputs may not reliably carry the text watermark when temperature, top_p, or top_k is set to a non-default value.”; “Watermarking will be applied at the model level, which means it will be present no matter which Claude product or surface the text comes from.”; “Content Credentials (C2PA) are added when Claude creates a file, so it applies only where a platform offers Claude’s file generation features: in the Claude apps and the Claude Platform (API), including Claude Platform on AWS and Claude in Microsoft Foundry.”; “Watermark detection is in private preview.”; “To check whether a file contains a Claude-issued Content Credential, use the free Claude Content Checker.” The announcement, updated September 1, 2026: “We are releasing a detection API in private preview.” ↩↩↩↩

  484. Pricing, Anthropic platform docs, fetched November 11, 2026. Long context pricing: “Claude 4.6 and later models (except Claude Haiku 5.5) and Claude Mythos Preview include the full 1M token context window at standard pricing. (A 900k-token request is billed at the same per-token rate as a 9k-token request.)” and “Claude Haiku 5.5 is priced by prompt length: a request whose prompt is over 100,000 tokens pays higher prices.” Data residency pricing: “For Claude 4.6 and later models, specifying US-only inference through the inference_geo parameter incurs a 1.1x multiplier on all token pricing categories, including input tokens, output tokens, cache writes, and cache reads.” ↩↩↩

  485. Model configuration, Claude Code documentation, fetched November 11, 2026. “If your gateway rejects requests above 200K tokens, set CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 in the environment that starts Claude Code, so sessions on every model compact at that boundary.” On /autocompact with a value: “Claude Code saves it to your user settings under the current model”. ↩

  486. CLI reference, Claude Code documentation, fetched November 11, 2026. The --effort row: “On the main conversation’s model, overrides the modelSettings and effortLevel settings for this session and doesn’t persist”. ↩

  487. Tools reference, Claude Code documentation, fetched November 11, 2026. The EndConversation row: “Ends the session, in rare cases of sustained abusive input or when you ask Claude to end the session and then confirm.” Its section: “Claude uses it only in two situations:”; “When you keep sending abusive messages after Claude gives a clear warning and fails to redirect the conversation”; “When you explicitly ask Claude to end the session, then confirm when Claude asks whether you still want to proceed”; “General frustration, profanity, or a task going badly don’t qualify, and neither do requests for harmful content, which Claude declines instead of ending the session.”; “After Claude ends an interactive session, the session locks.” The message a locked session returns: “Claude ended this conversation. Start a new session (or /clear) to continue.” ↩

  488. Choose a permission mode, Claude Code documentation, fetched November 11, 2026. “In addition to file edits, acceptEdits mode auto-approves common filesystem Bash commands: mkdir, touch, rm, rmdir, mv, cp, and sed.” and “Like file edits, auto-approval applies only to paths inside your working directory or additionalDirectories.” On auto mode: “A separate classifier model reviews actions before they run”. ↩↩↩↩

  489. Auto mode is now the default in Claude Code for Pro, Max, Ultra, and Team plans, Anthropic, August 7, 2026, and Choose a permission mode, Claude Code documentation, both fetched November 11, 2026. The announcement: “Starting on August 14, new sessions on Pro, Max, and Team plans will run in auto mode. If you’ve already set a different default yourself, you may get a one-time prompt asking whether you want to switch to auto mode.”; “If your Team admin has set a default in managed settings, nothing changes for you.”; “we’re no longer charging Claude Code users on Pro, Max, Ultra, and Team plans for that classifier overhead, effective today”; “it routes each tool call through a classifier targeted at blocking actions that are irreversible, destructive, or aimed outside your environment”. The docs: “If your ~/.claude/settings.json sets a defaultMode other than auto and no other settings file sets one, your sessions keep starting in that mode.” and, of the one-time question, “if you decline, your setting stays as it is”. ↩↩

  490. All settings and Configure the sandboxed Bash tool, Claude Code documentation, fetched November 11, 2026. The sandbox.credentials entry: “Claude Code protects only the entries you list; there is no built-in credential deny list.” and, for its default, “unset, so no credentials are protected”. The sandboxing page: “There is no built-in credential deny list, so only the files and variables you list are restricted.” ↩↩

  491. All settings, Claude Code documentation, fetched November 11, 2026. The enforceAvailableModels entry gives its scope as “Any file” and says: “When your organization deploys any managed settings, Claude Code reads this key from the managed source alone and ignores it in your other files.” ↩

  492. All settings, Claude Code documentation, fetched November 11, 2026. sandbox.network.strictAllowlist: “Deny sandboxed commands access to hosts outside the allowlist instead of prompting for approval.” and “Claude Code enforces this for sandboxed commands only; in-process tools such as WebFetch still follow their permission rules.” sandbox.network.deniedDomains: “Block domains for outbound traffic from sandboxed commands”. sandbox.allowUnsandboxedCommands: “Let Claude retry a command outside the sandbox with the dangerouslyDisableSandbox parameter after the sandbox blocks it. When it’s false, Claude Code ignores that parameter.” ↩↩↩

  493. Orchestrate teams of Claude Code sessions, Claude Code documentation, fetched November 11, 2026. “Agent teams are experimental and disabled by default. Enable them by setting CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your settings.json or environment.” The page’s settings.json example sets the variable in the env block. ↩↩↩

  494. Model configuration, Claude Code documentation, fetched November 11, 2026. Model aliases table: fable “Uses the Fable model for your provider for your hardest and longest-running tasks”; opus “Uses the latest Opus model for complex reasoning tasks”. ↩

  495. Create custom subagents, Claude Code documentation, fetched November 11, 2026. Permission modes: “If you leave it unset, the subagent inherits the main conversation’s permission mode.”; “The main conversation’s permission mode decides whether Claude Code uses the value you set”; “When the main conversation is in bypassPermissions, acceptEdits, or auto mode, your subagent runs in that same mode and Claude Code ignores the permissionMode you set.”; “When the main conversation is in plan mode, the subagent stays in plan mode whichever permissionMode you set, unless it runs as an agent team teammate under the agent teams rules.”; “When the main conversation is in default or dontAsk mode, the subagent runs in the permission mode you set. It keeps the main conversation’s permission mode instead in cases such as these”; “You set bypassPermissions. The bypassPermissions exception requires Claude Code v2.1.267 or later.”; “You set auto and auto mode isn’t available to the subagent”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Tools: “To restrict tools, use the tools field as an allowlist or the disallowedTools field as a denylist.”; “Inherits every tool available to subagents if omitted.”; Explore and Plan each list “read-only tools; Write and Edit are denied”. Context and model: “Each subagent starts with a fresh, isolated context window.”; “A fork is a subagent that inherits the entire conversation so far instead of starting fresh.”; the model order is “The per-invocation model parameter”, “The subagent definition’s model frontmatter, where inherit selects the main conversation’s model”, “The CLAUDE_CODE_SUBAGENT_MODEL environment variable, when you set it to a model alias or model ID”, “The main conversation’s model”.

    omitClaudeMd: “managed policy files still load, except for managed subagents”; “Ignored when the agent runs as the main session agent via --agent or the agent setting.” experimental: “ignores 1h while your Claude subscription is using usage credits”. memory: “if you turn auto memory off, with the autoMemoryEnabled setting or CLAUDE_CODE_DISABLE_AUTO_MEMORY, the memory field has no effect”. skills: “You can’t preload skills that set disable-model-invocation: true”. mcpServers: “Claude Code loads an inline MCP server from an agent file in your project’s .claude/agents/ directory, or in an --add-dir directory’s .claude/agents/, only after you trust the folder the agent file came from. Before v2.1.238, Claude Code loaded these servers without checking trust.” Frontmatter hooks: “To let a project-level subagent’s frontmatter hooks run, accept the workspace trust dialog for the folder that contains the agent file. Hooks from user-level subagents in ~/.claude/agents/ and from definitions you pass with --agents run without this step.” Choose a permission mode, same fetch: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  496. Agent SDK reference - Python and Agent SDK reference - TypeScript, Claude Code documentation, fetched November 11, 2026. Python, include_hook_events on ClaudeAgentOptions (default False): “Include hook lifecycle events in the message stream as HookEventMessage objects”. TypeScript, includeHookEvents (default false): “Include hook lifecycle events in the message stream as SDKHookStartedMessage, SDKHookProgressMessage, and SDKHookResponseMessage.” ↩

  497. Connect Claude Code to tools via MCP, Claude Code documentation, fetched November 11, 2026. SSE: “The SSE (Server-Sent Events) transport is deprecated. Use HTTP servers instead, where available.”; the page’s two examples are claude mcp add --transport sse asana https://mcp.asana.com/sse and, with a header, claude mcp add --transport sse private-api https://api.company.com/sse followed by --header "X-API-Key: your-key-here". Automatic backgrounding: “An MCP tool call in the main conversation that is still running after two minutes moves to a background task instead of blocking the session.”; “Some calls never move to the background”; “Calls from subagents, except an MCP task in the cloud”; “Calls to IDE servers”; “Calls in non-interactive mode, unless CLAUDE_AUTO_BACKGROUND_TASKS is set to 1, since a one-shot run can end before the result arrives”. On November 25, 2026 the Asana endpoint in that example returned HTTP 410 (“Asana MCP v1 has been permanently shut down”), so this guide’s SSE example uses a placeholder URL; the list of calls that never move to the background is quoted from today’s page in 553. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  498. Environment variables and Model configuration, Claude Code documentation, fetched November 11, 2026. Environment variables, MAX_THINKING_TOKENS: “On third-party providers, 0 omits the thinking parameter instead.” Model configuration: “on providers such as Amazon Bedrock and Microsoft Foundry, models with adaptive reasoning may still think with thinking off”; on ultrathink: “Claude Code recognizes the keyword and adds an in-context instruction.”; “The terminal prompt, where the word shows in rainbow colors when it can raise the turn. Requires Claude Code v2.1.311 or later.”; “Retype it outside anything such as quotes, brackets, a path, or a command, in a prompt that doesn’t start with /”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩

  499. Continue local sessions from any device with Remote Control, Claude Code documentation, fetched November 11, 2026. --continue: “Bring back the session that the last server in this directory started with, instead of creating a new one.”; “Requires Claude Code v2.1.200 or later.”; “These commands work for about four hours after the server stopped.” claude remote-control --help on Claude Code 2.1.322, run the same day: “Reattach to the session claude remote-control last recorded for this directory (or one of its git worktrees) instead of creating a new one.” Re-read November 25, 2026, where the wording had changed: remote-control, “Bring back the session that the last server in this directory started with, instead of creating a new one.”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩

  500. Commands, Claude Code documentation, fetched November 11, 2026. /resume [session]: “Resume a conversation by ID or name, or open the session picker.”; “Alias: /continue”. ↩

  501. Speed up responses with fast mode, Claude Code documentation, fetched November 11, 2026: “Fast mode is a high-speed configuration for supported models, making the model up to 2.5x faster at a higher cost per token.” Pricing, Claude Platform documentation, same fetch: “provides up to 2.5x higher output tokens per second at premium pricing”. ↩

  502. Claude Code documentation, fetched November 11, 2026. Claude Code settings: “Settings files are strict JSON: a // comment or a trailing comma is a syntax error, and Claude Code reports the file as a Settings Error at the next start.” Hooks reference, under “Matcher patterns”: a matcher of *, an empty string, or no matcher at all is evaluated as “Match all”; “Bash matches the Bash tool”; “mcp__memory__.* matches every tool from the memory server”; “If you add a matcher field to an event without matcher support, it is silently ignored.”; the row that lists UserPromptSubmit reads “no matcher support” and “always fires on every occurrence”. Orchestrate teams of Claude Code sessions: “Enable them by setting the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS environment variable to 1, either in your shell environment or through settings.json”. ↩↩

  503. Extend Claude with skills, Claude Code documentation, fetched November 11, 2026. On ${CLAUDE_SKILL_DIR}: “The directory containing the skill’s SKILL.md file”; “Use this in bash injection commands to reference scripts or files bundled with the skill, regardless of the current working directory”; “The script path uses ${CLAUDE_SKILL_DIR} so it resolves correctly whether the skill is installed at the personal, project, or plugin level”, in an example that runs python3 ${CLAUDE_SKILL_DIR}/scripts/visualize.py .. On commands: “Claude Code runs each command in the session shell’s current working directory”. On supporting files: “Reference supporting files from SKILL.md so Claude knows what each file contains and when to load it”, with links written as [reference.md](reference.md). On context: fork: “Claude Code also waits for the result, even when the skill doesn’t set background: false, in cases like these”, the first of which is “In non-interactive mode, with the -p flag or the Agent SDK”. ↩↩↩

  504. Configure permissions, Claude Code documentation, fetched November 11, 2026: “A bare tool name like Bash removes the tool from Claude’s context entirely, so Claude never sees it”; “A scoped rule like Bash(rm *) leaves the tool available and blocks matching calls when Claude attempts them”; of a bare WebFetch deny rule, “Claude Code removes the WebFetch tool, so Claude can’t fetch at all”; “refuses commands that begin with git push. A push written another way, such as git -C . push, isn’t matched”; “It doesn’t match the same program invoked in a different form, so a deny or ask rule covers the invocation Claude usually produces and isn’t a security boundary around the program.” Configure auto mode, same date: “A push Claude writes another way, such as git -C <dir> push or git -c <key>=<value> push, doesn’t match the rule”. Extend Claude with skills, same date: “To block tools across all skills and prompts, add deny rules in your permission settings.” ↩↩

  505. Plugin manifest reference, Claude Code documentation, fetched November 11, 2026: “The manifest is optional. Without it, Claude Code loads the components it finds in the standard layout.”; “name is the only required key.” ↩

  506. Mods overview, Claude Code documentation, fetched November 11, 2026: “You can’t update or uninstall a built-in mod.” The page’s table has a “How to turn it off” column. That column reads “Disable it in /plugin” for cc-plugin-agents-md, cc-plugin-diff, cc-plugin-plugin-authoring, cc-plugin-telemetry, and cc-plugin-you-should-know, and “You can’t” for cc-plugin-sec-default, which “Guards what your organization manages from the mods a user installs”. “The settings and flags that stop installed mods, such as disableAllHooks, --bare, and --safe-mode, don’t stop built-in mods.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  507. Use Claude Code in VS Code, Claude Code documentation, fetched November 11, 2026, on Focus view: “Toggle it there, with Ctrl+Option+F (Mac) / Ctrl+Alt+F (Windows/Linux), or from the Command Palette with Claude Code: Toggle Focus view.” ↩

  508. Claude Code documentation, fetched November 11, 2026. Use Claude Code in VS Code: “run /ide inside Claude Code to connect to VS Code”; the install section offers “Install for Cursor”; “the extension also installs in forks like Devin Desktop or Kiro”. JetBrains IDEs: “Install the Claude Code plugin from the JetBrains Marketplace and restart your IDE”; “Use the /ide command in any external terminal to connect Claude Code to your JetBrains IDE”. Claude Code CHANGELOG, section 2.1.162, same date: “Renamed Windsurf to Devin Desktop in the /ide menu, /terminal-setup, and /scroll-speed, following the editor’s rebrand”. ↩↩

  509. Run parallel sessions with worktrees, Claude Code documentation, fetched November 11, 2026: “Create a worktree on a new branch”; “Create a worktree from an existing branch, replacing fix-issue-456 with a branch that already exists in your repository”. ↩

  510. Claude Code documentation, fetched November 11, 2026. Best practices for Claude Code: “--output-format json gives you a single result object to parse”. Run Claude Code programmatically: “with the text result in the result field”; “With --output-format json, the response payload includes total_cost_usd”. Agent SDK reference - TypeScript, SDKResultMessage, the “Final result message”: type: "result" with session_id: string, duration_ms: number, result: string, and total_cost_usd: number. ↩

  511. Use Claude Code in the cloud, Claude Code documentation, fetched November 11, 2026: “run claude --teleport for an interactive session picker, or claude --teleport <session-id> to resume a specific session directly”; “type /teleport and Claude Code replies with the exact claude --teleport <session-id> command for that session, ready to run from a checkout of the repository”. claude --help on 2.1.322 lists --teleport [session]: “Resume a teleport session, optionally specify session ID”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩

  512. Configure cloud environments, Claude Code documentation, fetched November 11, 2026: “Cloud sessions start from a fresh clone of your repository. Anything you commit to the repo is available. Anything you’ve installed or configured only on your own machine isn’t available in the session.” Its table answers “No” for “Plugins enabled only in your user settings” and for “MCP servers you added with claude mcp add at the default local scope or the user scope”, and “Yes, in a session with one repository” for “Your repo’s .mcp.json MCP servers”. ↩↩↩

  513. Continue local sessions from any device with Remote Control, Claude Code documentation, fetched November 11, 2026: “Forking requires Claude Code v2.1.277 or later on your machine.” ↩

  514. Claude Code documentation, fetched November 11, 2026. Manage multiple agents with agent view: “Pass --bg or its long form --background to start a session that goes straight to the background”; “The ID is printed when you start a session with claude --bg”; “background sessions run on your machine”; “Each session is its own Claude Code process under the supervisor”; “Before editing files, Claude moves the session into an isolated git worktree under .claude/worktrees/, so parallel sessions can read the same checkout but each writes to its own”; “Claude skips the worktree when”, among other cases, “The working directory isn’t a git repository and no WorktreeCreate hook is configured”; “Agent view, opened with claude agents, is one screen for all your background sessions”. Tools reference: “The Bash tool runs each command in a separate process.” Interactive mode: “Press Ctrl+B to move a regular Bash tool invocation to the background.” Use Claude Code in the cloud: “each --cloud command creates its own cloud session that runs independently”. claude --help on 2.1.322, --bg, --background: “Start the session in the background and return immediately.” Re-read November 25, 2026, where the wording had changed: cli-reference, “Start the session as a background agent and return immediately. Prints the session ID and management commands.”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩↩↩

  515. Claude Code CHANGELOG, section 2.1.198, fetched November 11, 2026: “Claude in Chrome is now generally available”. The npm registry lists @anthropic-ai/claude-code 2.0.72 as published December 17, 2025 and 2.1.198 as published July 1, 2026. ↩

  516. Automate work with scheduled tasks, Claude Code documentation, fetched November 11, 2026: “GitHub webhook events are subject to per-task and per-account hourly caps. Events beyond the limit are dropped until the window resets.” ↩

  517. Use Claude Code in the cloud, Claude Code documentation, fetched November 11, 2026: “A cloud session is a Claude Code session that runs on cloud infrastructure. By default it runs on infrastructure Anthropic manages, or on your organization’s self-hosted environment when routed there.”; “By default, a cloud session runs its shell commands and file edits in an isolated, Anthropic-managed VM. Sessions your organization routes to a self-hosted environment run on your own infrastructure instead, where isolation is your deployment’s responsibility”; “In a self-hosted environment, you restrict session egress at your own network boundary.”; “in Anthropic-hosted environments, git credentials and signing keys stay outside the sandbox, and a proxy authenticates on the session’s behalf with scoped credentials. In a self-hosted environment, your deployment supplies git credentials”. Same page: “The session keeps running after you close your laptop”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩

  518. Settings files and precedence, Run parallel sessions with worktrees, and How Claude remembers your project, Claude Code documentation, fetched November 11, 2026. Settings: “Claude Code reads the shared .claude/settings.json from the session’s primary working directory”; of .claude/settings.local.json, “In a worktree, it uses the file at the main checkout’s root.” Worktrees, “What worktrees share with the main checkout”: “choosing “Yes, and don’t ask again” for a Bash command in a worktree session saves the rule to the main checkout’s .claude/settings.local.json. The rule applies in the main checkout and in every other worktree of the repository, and it survives the worktree’s removal.”; “On Windows and in the other cases where Claude Code doesn’t use the repository root, the rule stays with that worktree.”; “commands such as git commit work in a session at the worktree’s root, which is where --worktree starts one”. Memory: “all worktrees and subdirectories within the same repo share one auto memory directory”. The Claude Code CHANGELOG, section 2.1.63, same fetch: “Project configs & auto memory now shared across git worktrees of the same repository”. ↩↩

  519. Claude Code CHANGELOG, section 2.1.312, fetched November 11, 2026: “Changed usage limit messages to call the 5-hour window the “5-hour limit” instead of the “session limit”“. The error reference, Claude Code documentation, same fetch, still prints the earlier wording: “You’ve hit your session limit · resets 3:45pm”. ↩↩

  520. Data usage, Claude Code documentation, fetched November 11, 2026. Error reports: “error messages and stack traces from Claude Code’s own internals, sent to a third-party error tracking service over TLS. Claude Code redacts known patterns of secrets, file paths, email addresses, and other personal information before anything leaves your machine. Set DISABLE_ERROR_REPORTING=1 to opt out.”; “Error reporting is on only when all of these apply”, followed by “you sign in with a Claude Pro, Max, or Ultra subscription”, “you’re running Claude Code v2.1.198 or later”, “you’re connecting directly to the Claude API”, and “your organization doesn’t have a zero data retention or HIPAA agreement”. Providers: “By default, error reporting, telemetry, and bug reporting are disabled when using Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or Claude Platform on AWS.”; “When a host platform sets CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST, metrics default to on for Google Cloud’s Agent Platform, Amazon Bedrock, Microsoft Foundry, and Claude Platform on AWS, and follow the standard DISABLE_TELEMETRY opt-out.” ↩↩

  521. Choose a permission mode and Development containers, Claude Code documentation, fetched November 11, 2026. Permission modes, on bypassPermissions: “Only use this mode in isolated environments like containers, VMs, or dev containers without internet access, where Claude Code cannot damage your host system.” Development containers: “When executed with --dangerously-skip-permissions, dev containers do not prevent a malicious project from exfiltrating anything accessible inside the container, including the Claude Code credentials stored in ~/.claude.”; “Avoid mounting host secrets such as ~/.ssh or cloud credential files into the container; prefer repository-scoped or short-lived tokens.” The output of claude --help on Claude Code 2.1.322, read the same day, describes the flag as “Bypass all permission checks. Recommended only for sandboxes with no internet access.” Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩↩↩

  522. Claude Code CHANGELOG, fetched November 11, 2026. Section 2.1.76, under “Fixed auto-compaction retrying indefinitely after consecutive failures”: “a circuit breaker now stops after 3 attempts”. Section 2.1.89, under “Fixed autocompact thrash loop”: “now detects when context refills to the limit immediately after compacting three times in a row and stops with an actionable error instead of burning API calls”. ↩↩

  523. Deploy managed settings and All settings, Claude Code documentation, fetched November 11, 2026. Remote settings: “Claude Code can fetch this source when the session meets one of these conditions”: “It has an eligible credential”; “It signs in to a gateway with /login”; “It runs in Claude Desktop’s Code tab behind a gateway that serves that session settings”. The HKCU registry: “Claude Code reads it only when no admin document is present above it and no host-supplied parent settings supply a restrictive key”; a document is present when “It sets any policy key to a value other than null, even a value Claude Code can’t read” or “It is an HKLM value, managed settings file, or managed-settings.d directory that exists but can’t be read”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Merging: “set managedSourcesBehavior to "merge" in the highest-ranked source you deploy”; “The user-writable HKCU registry never merges with another source.”; lists: “Combines the entries from every source”; locks: “Applies the strictest value any source sets; a looser value applies only from the highest-ranked source”; restriction allowlists: “Takes the list whole from the highest-ranked source that sets it, without adding entries from lower sources”; values taken whole: “Takes the value whole from the highest-ranked source that sets it, without combining entries or fields from lower sources”; every other key: “Takes the value from the highest-ranked source that sets it”. A policy key is “any settings key other than the two control keys, wslInheritsWindowsSettings and managedSourcesBehavior”. Delivery: “The file in the steps above is one of four ways to get managed settings onto a machine.”; “As a macOS configuration profile or a Windows HKLM registry value, through Jamf, Intune, Group Policy, or a similar tool”; “/etc/claude-code/managed-settings.json” under “Linux and WSL”. Settings reference: “Taking sandbox.credentials.awsPairs and sandbox.ripgrep whole requires Claude Code v2.1.257 or later.” ↩↩↩↩↩

  524. Orchestrate teams of Claude Code sessions, Claude Code documentation, fetched November 11, 2026: “Agent teams are experimental and disabled by default. Enable them by setting CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your settings.json or environment.” ↩

  525. Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry, Claude Code on Amazon Bedrock, and Claude Code on Google Cloud’s Agent Platform, Claude Code documentation, fetched November 11, 2026. Gateway: “The Claude apps gateway is designed for organizations that must, or prefer to, route inference through their own cloud provider, for example to meet data residency requirements.” Bedrock: “Claude Code resolves the region in this order”, then AWS_REGION, AWS_DEFAULT_REGION, “the region set on your active AWS profile”, and us-east-1. Agent Platform: “Set CLOUD_ML_REGION to global, a multi-region location such as eu or us, or a specific region such as us-east5.” ↩

  526. How Claude Code uses prompt caching, Claude Code documentation, fetched November 11, 2026: “On a normal turn, the prefix is the entire previous request and only the latest exchange is new.”; the conversation layer of each request holds “Your messages, Claude’s responses, tool results”. ↩

  527. 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”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  528. Claude Code documentation, fetched November 25, 2026: Model configuration (sitemap lastmod 2026-11-25), Claude Code on Microsoft Foundry and Claude Code on Google Cloud’s Agent Platform (both lastmod 2026-11-24). Model configuration, alias table: “Anthropic API | Opus 5.5 | Sonnet 5.5 | Haiku 5.5”; “Claude Platform on AWS | Opus 5.5 | Sonnet 4.6 | Haiku 4.5”; “Claude Models on Google Cloud (Anthropic managed) | Opus 5.5 | Sonnet 5.5 | Haiku 4.5”; “Amazon Bedrock, Google Cloud’s Agent Platform | Opus 5.5 | Sonnet 4.5 | Haiku 4.5”; “Microsoft Foundry | Opus 4.6 | Sonnet 4.5 | Haiku 4.5”. Default model: “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”. Foundry page: “Pin specific model versions for every deployment”; “Without ANTHROPIC_DEFAULT_OPUS_MODEL, the opus alias on Microsoft Foundry resolves to Opus 4.6”. Agent Platform page: “without ANTHROPIC_DEFAULT_SONNET_MODEL, the sonnet alias resolves to Sonnet 4.5”. These pages had not caught up with the v2.1.332 release notes on that date. ↩↩↩↩↩↩↩↩↩↩

  529. Hooks reference, Claude Code documentation, fetched November 25, 2026 (34 rows in the event table). PreSkillShellCommand: “Runs before an injected command, a shell command that runs while a skill or a command such as /security-review loads. PreToolUse hooks don’t fire for injected commands.”; “Requires Claude Code v2.1.332 or later, including in the desktop app and VS Code extension.”; “an earlier version such as v2.1.331 opens each interactive terminal session with a warning dialog: Unknown hook event "PreSkillShellCommand" was ignored”; “If you configure a prompt or agent hook on this event, Claude Code can’t run it and blocks each command the hook matches.”; “Your script runs after the permission check on injected commands, so it gets the commands that passed. It also runs in bypassPermissions mode.”; “You can block a command from this hook, but you can’t approve or change one.” On failures: “set "onFailure": "block" on a command, http, or mcp_tool hook. Requires Claude Code v2.1.295 or later. On mcp_tool hooks, onFailure requires v2.1.328 or later.” Reusing the script: “You can reuse the blocking script from How a hook resolves.”; “To use one script on both events, leave hookEventName as PreToolUse.”; the script printed under “How a hook resolves” is saved as .claude/hooks/block-rm.sh, and the page adds “install jq and make sure it is on your PATH”. ↩↩↩↩↩↩↩↩↩↩

  530. 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. ↩↩↩↩↩↩↩↩

  531. Run prompts on a schedule, Claude Code documentation, fetched November 25, 2026: “Recurring tasks automatically expire 30 days after creation. The task fires one final time, then deletes itself. This bounds how long a forgotten loop can run. Before v2.1.330, the limit was 7 days, and recurring tasks created with CronCreate on those versions keep it.”; “cancel and recreate it before it expires, or use cloud scheduled tasks or Desktop scheduled tasks for durable scheduling”. ↩↩↩↩↩

  532. 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.” ↩↩↩↩↩↩↩↩

  533. Connect Claude Code to tools via MCP and Environment variables, Claude Code documentation, fetched November 25, 2026. MCP skills: “MCP skills are in public beta and require Claude Code v2.1.331 or later.”; “A skill’s name is <server>:<skill>.”; “When Claude loads an MCP skill in auto mode, the default, you don’t see a prompt. The classifier decides whether the skill loads, without reading it.”; “When you sign in with /login on a Pro, Max, or Ultra plan, MCP skills are on. With /login on a Team or Enterprise plan, they’re off until your organization turns them on.”; “Anthropic doesn’t scan skills from other connectors or servers, including Directory servers added with claude mcp add.”; “Skills can direct Claude to run code. Servers can change skills at any time. Add only servers you trust.” On add-json: “To pipe the JSON in, pass - in its place: cat server.json | claude mcp add-json <name> -. Run the command outside a Claude Code session. Requires Claude Code v2.1.327 or later.” Environment variables, MCP_SDK_GENERATION: “Pin which MCP client runtime this process connects to MCP servers with: v1, built on MCP TypeScript SDK 1.x, or v2”. ↩↩↩↩↩↩↩

  534. Anthropic platform documentation, fetched November 25, 2026. Claude Platform release notes, November 23, 2026: “We announced the deprecation of the Claude Opus 4.5 model (claude-opus-4-5-20251101 and claude-opus-4-5), with retirement on the Claude API scheduled for January 22, 2027. We recommend migrating to Claude Opus 5.5.”; November 16, 2026: “Text generated by Claude Opus 4.6, Claude Opus 4.5, Claude Sonnet 4.5, and Claude Haiku 4.5 carries Anthropic’s text watermark on supported platforms.” Model deprecations: “claude-opus-4-5-20251101 | Deprecated | November 23, 2026 | January 22, 2027”; “claude-sonnet-4-5-20250929 | Deprecated | September 30, 2026 | November 30, 2026”; “claude-opus-4-6 | Active | N/A | Not sooner than February 5, 2027”; “claude-opus-5 | Active | N/A | Not sooner than July 24, 2027”; “claude-sonnet-5 | Active | N/A | Not sooner than June 30, 2027”; “claude-sonnet-4-6 | Active | N/A | Not sooner than February 17, 2027”; “claude-opus-4-1-20250805 | Retired | June 5, 2026 | August 5, 2026”; “claude-opus-4-20250514 | Retired | April 14, 2026 | June 15, 2026”; and the retirement table gives claude-opus-4-8 as the recommended replacement for both retired Opus models. How Claude marks AI-generated content, Claude Help Center, fetched November 25, 2026: the table marks text watermarks for Opus 4.6, Opus 4.5, Sonnet 4.6, Sonnet 4.5, and Haiku 4.5 on first-party surfaces and in cloud partner output, and “For Opus 4.6, Opus 4.5, Opus 3, Sonnet 4.6, Sonnet 4.5, and Haiku 4.5, outputs may not reliably carry the text watermark when temperature, top_p, or top_k is set to a non-default value.” ↩↩↩↩↩↩↩↩↩↩↩↩↩

  535. 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. ↩↩↩↩

  536. 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. ↩↩↩↩↩

  537. Voice dictation, Claude Code documentation, fetched November 25, 2026: “recording also stops when you send or edit the prompt. It stops by itself after 60 seconds with no recognized words or after 10 minutes total.”; “Before v2.1.332, recordings stopped after 15 seconds with no recognized words or after two minutes, and Claude Code then sent a transcript of three or more words.” ↩↩↩

  538. 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. ↩↩↩↩↩↩↩↩↩

  539. Advanced setup, Claude Code documentation, fetched November 25, 2026. Install commands: “curl -fsSL https://claude.ai/install.sh | bash”, “irm https://claude.ai/install.ps1 | iex”, “brew install –cask claude-code”, “winget install Anthropic.ClaudeCode”. “The npm package installs the same native binary as the standalone installer.”; “Native installations automatically update in the background.”; “Homebrew, WinGet, apt, dnf, and apk installations do not auto-update by default”; “To upgrade an npm installation, run npm install -g @anthropic-ai/claude-code@latest. Avoid npm update -g, which respects the semver range from the original install and may not move you to the newest release.” System requirements: “Windows 10 1809+ or Windows Server 2019+”. Windows: “You can run Claude Code natively on Windows or inside WSL.”; “Run the install command from PowerShell or CMD. You do not need to run as Administrator. Installing Git for Windows is optional.”; “Without Git for Windows, Claude Code runs shell commands via the PowerShell tool.”; “With Git for Windows, Claude Code uses Git Bash for the Bash tool.”; the options table lists sandboxing as “Not supported” for native Windows and WSL 1 and “Supported” for WSL 2. ↩↩↩

  540. Claude Code documentation, fetched November 25, 2026. Quickstart, “Before you begin”: “A Claude subscription (Pro, Max, Ultra, Team, or Enterprise), Claude Console account, or access through a supported cloud provider”. Overview: “Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools. Available in your terminal, IDE, desktop app, and browser.”; “Claude Code prompts you to log in on first use. If you’ve set the ANTHROPIC_API_KEY environment variable and you approve the key when Claude Code asks whether to use it, Claude Code skips the login prompt.”; on the desktop app, “The app includes Claude Code, so you don’t need to install the CLI separately.” Authentication: “Claude Pro, Max, or Ultra subscription: log in with your claude.ai account.”; “For organizations that prefer API-based billing, you can set up access through the Claude Console.”; “Cloud providers: if you use Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry, set the required environment variables before running claude.” ↩↩↩↩↩

  541. Connect Claude Code to tools via MCP, Claude Code documentation, fetched November 25, 2026. Commands: “claude mcp add –transport http ” and “claude mcp add [options] – [args…]”. Scopes table: “Local | Current project only | No | ~/.claude.json”; “Project | Current project only | Yes, via version control | .mcp.json in project root”; “User | All your projects | No | ~/.claude.json”. “Local scope is the default.”; “To check that Claude Code connected, run claude mcp get <name>”. The page does not give .claude/settings.json as a place to define servers. ↩

  542. Choose a permission mode, Claude Code documentation, fetched November 25, 2026. The modes table lists default, acceptEdits, plan, auto, dontAsk, and bypassPermissions, the last with “Everything” under what runs without asking and “Isolated containers and VMs only” under best for. “In Manual mode, Claude Code stops and asks you before most actions that edit files, run shell commands, or reach the network. In auto mode, a second model, the classifier, reviews actions instead of you”; “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions.”; “Switch permission modes with Shift+Tab in the CLI”. ↩

  543. Create custom subagents, Claude Code documentation, fetched November 25, 2026: “the subagent does that work in its own context and returns only the summary”; “Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. It also sends its own requests, which count toward the same usage limits as your main conversation.”; “Claude Code includes built-in subagents that Claude automatically uses when appropriate.” (Explore and General-purpose among them); “Because the file lives in ~/.claude/agents/, the subagent is available in every project on your machine. To scope it to one project instead, move it to that project’s .claude/agents/ directory.” ↩

  544. Fetched November 25, 2026. Pricing, Claude Platform documentation, model pricing table, base input and output per million tokens: Claude Opus 5.5 “$4 / MTok” and “$20 / MTok”; Claude Sonnet 5.5 “$2 / MTok” and “$10 / MTok”; “Claude Haiku 5.5 (for prompts up to 100,000 tokens)” “$0.10 / MTok” and “$0.50 / MTok”. Manage costs effectively, Claude Code documentation: “Claude Code charges by API token consumption. For subscription plan pricing (Pro, Max, Ultra, Team, Enterprise), see claude.com/pricing.”; “Claude Pro, Max, and Ultra subscribers have usage included in their subscription”. The model alias descriptions and the default model by plan are quoted from the Model configuration page in 528. ↩↩↩

  545. Cursor documentation, fetched November 25, 2026. Cursor Agent: “Agent is Cursor’s assistant that can complete complex coding tasks independently, run terminal commands, and edit code. Access in sidepane”. Subagents: “Each subagent operates in its own context window”. Hooks: “Hooks let you observe, control, and extend the agent loop using custom scripts.” Cursor CLI: “Cursor CLI lets you interact with AI agents directly from your terminal to write, review, and modify code.” Tab: “Tab is Cursor’s AI-powered autocomplete.” ↩

  546. Claude Code overview, Claude Code documentation, quoted in 540, and Claude Help Center, Create and edit files with Claude, fetched November 25, 2026: “Claude can execute code to create and work with files directly in your conversations.”; “Claude will generate the file, which you can then download directly from the conversation.”; “When Claude executes code or creates files, it operates within an isolated, sandboxed container.” ↩↩

  547. 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)”. ↩↩↩↩↩↩↩

  548. Extend Claude with skills, Claude Code documentation, fetched November 25, 2026, frontmatter reference, model: “Accepts /model values, or inherit for the active model. When Claude runs the skill, the session keeps its model.”; “With context: fork, the value is the forked subagent’s per-invocation model.” ↩↩

  549. Intercept and control agent behavior with hooks, Claude Agent SDK documentation, fetched November 25, 2026, “Block the action when a callback fails”: “On most events, if a callback throws or returns output that fails validation, the action goes ahead and your app receives an SDKInformationalMessage warning whose tag is hook_callback_failed.”; “To block the action instead, set onFailure: "block" in TypeScript or on_failure="block" in Python on the matcher. Requires TypeScript Agent SDK v0.3.317 or later, or Python Agent SDK v0.2.177 or later.”; “Stop, SubagentStop, TaskCompleted, and TeammateIdle: these events ignore the option, so the action goes ahead.”; “With "block" set, a path with no return blocks the action.” TypeScript Agent SDK CHANGELOG, 0.3.317: “Added onFailure to hook matchers: with "block", a hook that throws or returns invalid output blocks the action”; 0.3.325: “Added a system/informational warning, tagged hook_no_verdict, when a PreToolUse hook can’t run or answer, or times out, without refusing its tool call”. Python Agent SDK CHANGELOG, 0.2.177: “Set on_failure="block" to block the action when a callback raises, returns None, or returns a value the CLI rejects.” ↩↩

  550. 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.” ↩↩↩↩↩↩

  551. Claude Code documentation, fetched November 25, 2026. Connect Claude Code to tools via MCP, “Failed first connections”: “When an HTTP or SSE server’s first connection fails with a transient error, such as a 5xx response, a connection refused, or a timeout, Claude Code retries up to three times. If the connection still fails, Claude Code marks the server as failed.”; “Those retries don’t apply in these cases”: “A stdio server’s first connection”, “A WebSocket server’s first connection”, and “An authentication or not-found error, because it requires a configuration change to resolve.” Configure auto mode: “On a Pro, Max, Ultra, or Team plan, you need v2.1.228 or later, or v2.1.233 or later on native Windows. On an Enterprise plan or with a Claude Console API key, you need v2.1.283 or later.”; “Telemetry off, third-party provider, or Claude apps gateway: before v2.1.304, the command isn’t available in sessions where feature-flag fetching is off.” ↩↩↩↩↩

  552. Claude Tag documentation on claude.com, fetched November 25, 2026. Work with Claude Tag: “Claude Tag is available on Team and Enterprise plans, on Anthropic’s first-party service. It isn’t available on individual plans (Free, Pro, Max, or Ultra), or for third-party deployments.”; “It posts a checklist in the thread as it goes, and the whole exchange stays visible to the channel.” Setup overview: “Claude Tag is in public beta. Features and behavior described here may change before general availability.”; “Running setup requires the Owner role in a Claude organization on a Team or Enterprise plan.”; “Channel work draws from your organization’s usage balance; on a Team plan nothing runs until credits are loaded.”; “Running @Claude connect requires a Slack workspace admin”. Migrate from the earlier Claude in Slack: “Your existing Slack app and @Claude handle stay, and no data migrates. What changes is who Claude acts as and who sets it up.”; “The New version starts with no access of its own. GitHub repositories and other connections do not carry over from individual users’ linked accounts”. Overview, also: “Anyone in a Slack channel can tag Claude into a problem and hand it work”. ↩↩↩↩↩↩

  553. Claude Code documentation, re-read November 25, 2026 for the passages that changed after the November 10 and 11 fetches. Connect Claude Code to tools via MCP: “Terminal CLI sessions, Agent SDK sessions, and GitHub Actions runs have them on v2.1.304 or later”; “If feature-flag fetching is off, for example on Amazon Bedrock or with telemetry turned off, you need an interactive terminal session on Claude Code v2.1.317 or later”; “A non-fork subagent that the main conversation started, in an interactive terminal session that fetches feature flags, on v2.1.331 or later. The server can’t be one defined in the subagent’s own file”; “MCP tasks can work in the VS Code extension and in local desktop app sessions. In both, you need Claude Code v2.1.331 or later and a session that fetches feature flags.”; “Calls from subagents, except an MCP task in the cloud”. Configure your terminal for Claude Code: “Ghostty, Kitty, iTerm2, WezTerm, Warp, Windows Terminal 1.25 or later | Works without setup”; “gnome-terminal, Windows Terminal before 1.25, JetBrains IDEs such as PyCharm and Android Studio | Not available; use Ctrl+J or \ then Enter”; “/terminal-setup and the first-run terminal setup prompt enable this setting only on macOS 26 and earlier. Both also turn off your profile’s audible bell.” Commands: “/voice [hold\|tap\|off] | Toggle voice dictation, or enable it in a specific mode. Requires a Claude.ai account”; the /code-review row, “Pass --fix to have Claude apply the findings, --comment to post them on the GitHub PR or GitLab merge request, or ultra to run a deep cloud review.”; the page has no /buddy row. Hooks reference: “Setup supports only command hooks. SessionStart supports only command and mcp_tool hooks”. 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.” Create custom subagents: “web-fetch | Haiku, or the model of the conversation that starts it when it can’t use Haiku”; “Claude Code detects the change within a few seconds and the next delegation uses the updated definition, with no restart needed.”; “Claude Code doesn’t watch .claude/agents/ inside directories added with --add-dir or /add-dir”; “Sessions started with --disable-slash-commands don’t watch these directories at all.” Orchestrate teams of Claude Code sessions: “Split panes require tmux or iTerm2: the default in-process mode works in any terminal.”; “No per-teammate permission modes at spawn”. Configure the sandboxed Bash tool: “The sandbox runs on macOS, Linux, and WSL2. On native Windows, Claude Code runs commands unsandboxed.” Commands, /batch <instruction>: “Orchestrate large-scale changes across a codebase in parallel. Researches the codebase, decomposes the work into 5 to 30 independent units, and presents a plan. Once approved, spawns one background subagent per unit in an isolated worktree. Each subagent implements its unit, runs tests, and opens a PR or reports what happened. Requires a git repository or a WorktreeCreate hook that creates the worktrees. Outside a git repository, /batch requires Claude Code v2.1.281 or later.” Orchestrate teams of Claude Code sessions, Permissions: “A new teammate starts with the lead’s mode”; “If the lead is in dontAsk mode, the teammate starts in Manual mode instead.” Environment variables: CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS, “can be running in one session before the Agent tool refuses to spawn another (default: 20)”; CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH, “allowed below the main conversation (default: 3)”; CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION, “Removed in v2.1.224 and now a no-op.” Get started with Claude Code on the web: “Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.” ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  554. Use Claude Code in the cloud and Let Claude coordinate ongoing work with Projects, Claude Code documentation, fetched November 25, 2026. Web: “Run /web-setup in your terminal to send your local gh CLI token to your Claude account”; “Organizations with Zero Data Retention enabled, or with the HIPAA configuration applied, can’t use /web-setup or other cloud session features.”; “Quick setup is an organization setting that removes steps from members’ GitHub and environment setup. On Team and Enterprise plans it’s off by default.”; “members can connect GitHub with /web-setup. While the setting is off, the command is hidden”. Projects: “A new project runs every thread on Opus at medium effort”. ↩↩

  555. Choose a permission mode, Claude Code documentation, fetched November 25, 2026. “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.”; “The built-in auto default requires Claude Code v2.1.228 or later on macOS, Linux, and WSL, and v2.1.233 or later on native Windows.”; “In Claude Code v2.1.302 or later, claude -p and Agent SDK runs with no permission mode set start in Manual 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 the Anthropic API, Claude Platform on AWS, and Claude Models on Google Cloud (Anthropic managed): “Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a Fable model”; on Bedrock, Agent Platform, Foundry, and the Claude apps gateway: “Only Claude Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5, and the Fable models are supported on these providers.”; on disableAutoMode: “This removes auto from the Shift+Tab cycle, and a session started with --permission-mode auto starts in Manual instead.” ↩↩↩↩↩↩↩↩↩