Claude Code Cheat Sheet 2026: Shortcuts, Commands & Flags
# Claude Code cheat sheet for v2.1.317: CLI flags, slash commands, keyboard shortcuts, permission modes, models (Opus 5.5 default on every plan), hooks, plugins, Workflow, and env vars.
Every CLI flag, slash command, keyboard shortcut, config key, hook event, and environment variable in one place. For deep explanations, see the full Claude Code guide. For first-time setup, see the quickstart.
1. Installation
Three installation methods, in order of preference.
# Native binary (recommended)
curl -fsSL https://claude.ai/install.sh | bash
# Homebrew (macOS)
brew install --cask claude-code
# NPM (deprecated — migrate with `claude install`)
npm install -g @anthropic-ai/claude-code
Install a specific version:
curl -fsSL https://claude.ai/install.sh | bash -s 1.0.58
Verify installation:
claude doctor
claude --version
On 2.1.288 through 2.1.290, update to 2.1.291 or later: it fixes a 2.1.288 regression that could lose a session’s last messages on quit and a 2.1.290 regression where cloud sessions could drop answers to permission prompts.
Authenticate:
claude auth login # Log in or switch accounts
claude auth status # Check current auth state
claude auth logout # Clear stored credentials
2. CLI Flags
| Flag | Description | Example |
|---|---|---|
-p |
Print mode — single query, then exit | claude -p "list TODOs" |
-c |
Continue most recent session | claude -c |
-r, --resume |
Resume a named or numbered session | claude -r "auth-refactor" |
-n, --name |
Set session display name at startup | claude -n "feature-x" |
--model |
Override model for this session | claude --model opus |
--advisor <model> |
Enable the server-side advisor tool for one session (fable, opus, sonnet, or a full ID); not listed in --help; beats the advisorModel setting |
claude --advisor opus |
--max-turns |
Limit autonomous turns | claude -p "fix lint" --max-turns 10 |
--output-format |
Output as text, json, or stream-json |
claude -p "count files" --output-format json |
--allowedTools |
Restrict available tools | claude -p "fix" --allowedTools "Edit,Bash(npm:*)" |
--permission-mode |
Set permission mode | claude --permission-mode auto |
--permission-mode auto |
Start with Auto Mode enabled (replaced --enable-auto-mode, removed v2.1.111); as of v2.1.302 a claude -p or Agent SDK session starts in Manual unless you pass it |
claude --permission-mode auto |
--dangerously-skip-permissions |
YOLO mode — skip all prompts | claude --dangerously-skip-permissions |
--from-pr |
Start session linked to a PR (v2.1.27+); accepts GitHub, GHE, GitLab MR, Bitbucket PR URLs (v2.1.119+) | claude --from-pr 123 |
--fork-session |
Fork from a resumed session | claude -r base --fork-session |
-w |
Start in isolated git worktree | claude -w |
--bare |
Scripted mode — skip hooks, LSP, plugins; as of v2.1.286 it connects only the MCP servers named on the command line, sends no system reminders, and starts no background tasks | claude -p "count files" --bare |
--plugin-url <url> |
Fetch a plugin .zip archive for the current session (v2.1.129+) |
claude --plugin-url https://example.com/plugin.zip |
--plugin-dir <path> |
Load a plugin directory, .zip archive, or folder of plugins – each child folder with a manifest loads, changes picked up live (.zip v2.1.128+, folder mode v2.1.265+) |
claude --plugin-dir ./my-plugin.zip |
--channels |
Relay approval prompts to Telegram/Discord | claude --channels |
--forward-subagent-text |
Include subagent text + thinking in stream-json output (v2.1.211+); env: CLAUDE_CODE_FORWARD_SUBAGENT_TEXT=1 |
claude -p "audit" --output-format stream-json --forward-subagent-text |
--ax-screen-reader |
Enable screen reader mode (v2.1.208+); also CLAUDE_AX_SCREEN_READER=1 or "axScreenReader": true |
claude --ax-screen-reader |
--desktop |
Open the Claude desktop app on the current directory, or on a session with --continue / --resume <id> (v2.1.285+) |
claude --desktop --continue |
--cloud |
Start a cloud session for the current repository from the terminal (--remote is the deprecated alias); with -p and a session ID or claude.ai/code URL, queue one message into a running cloud session and exit |
claude --cloud "Fix the flaky login test" |
--debug |
Enable debug logging | claude --debug |
--init |
Initialize project with CLAUDE.md | claude --init |
Subcommand added in v2.1.212: claude auto-mode reset resets your auto-mode state from the terminal; pass --yes to skip the confirmation prompt.7
Session and data subcommands: claude attach <name> and claude logs <name> take part of a background session’s name in place of its id (v2.1.290+). claude purge [path] deletes a project’s local Claude Code state (--dry-run previews); it was claude project purge before v2.1.288, and the old name still works with a notice. As of v2.1.300, claude remote-control no longer accepts --sandbox or --no-sandbox (they had no effect; set sandbox.enabled in settings). 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=1.14 claude self-hosted-runner --hold-idle-file <path> --max-hold-min <n> keeps an idle session while your host keeps changing the file, releasing it after n minutes anyway (default 1440; v2.1.311+).
3. Slash Commands
| Command | What It Does |
|---|---|
/init |
Initialize project with CLAUDE.md |
/compact |
Condense conversation history. Add focus: /compact focus on tests |
/autocompact |
Set how full the context window gets before auto-compaction: /autocompact 500k, or auto for the tuned default. Saved per model as of v2.1.288, so each model keeps its own window |
/context |
View context window usage with actionable suggestions |
/diff |
Fullscreen diff panel beside the conversation showing your uncommitted changes live as Claude edits; toggle with /diff (v2.1.260) |
/usage |
Token usage, cost, plan usage; merged dialog (v2.1.118+: /cost and /stats are typing shortcuts that open /usage tabs); v2.1.149+ adds per-category limits usage for skills, subagents, plugins, and per-MCP-server cost; v2.1.299 adds warnings for max effort, workflows, always-on context, and large tool results; v2.1.305 turns each warning into a one-line fix naming its source, and f applies the fixes (also in VS Code and /doctor) |
/cost |
Typing shortcut → opens /usage cost tab (v2.1.118+) |
/model |
Change model. /model opus, /model sonnet; names drop the [1m] suffix where it has no effect, and the suffix is still accepted (v2.1.311+) |
/advisor |
Set, show, or turn off the advisor model Claude consults at decision points (experimental server tool). /advisor opus, /advisor off; text form in headless and desktop sessions since v2.1.260; on Claude Platform on AWS since v2.1.300 |
/fast |
Toggle fast output mode – Opus 5.5 (the default since v2.1.280, $8/$40 per MTok), Opus 5, or Opus 4.8 ($10/$50; Opus 4.8 fast mode deprecated October 30, 2026, removed November 30); v2.1.219 removed Opus 4.7; ~2.5× output speed; works in Remote sessions (cloud and self-hosted runners) as of v2.1.271; sent from agent view it sets what new sessions start with, and a bare /fast there opens a picker (v2.1.299+) |
/effort |
Set effort level: low, medium, high, xhigh, max (default medium on Opus 5.5 and Sonnet 5.5, high on most other models). Ultracode is its own toggle as of v2.1.284: Tab in the slider, or /effort ultracode on / /effort ultracode off; it no longer forces xhigh and stays on at any level; in agent view a bare /effort opens a picker and the level applies to new sessions (v2.1.299+). Typing ultrathink in a terminal prompt runs that turn at xhigh on Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 (v2.1.311+; CLAUDE_CODE_DISABLE_ULTRATHINK=1 turns it off) |
/status |
View session state, model, settings |
/permissions |
Manage permission settings interactively |
/auto-mode-setup |
Guided setup that drafts autoMode.environment entries (trust and sensitivity slots) from your project and recent sessions; also on Bedrock, Vertex, Foundry, gateways, and with telemetry off (v2.1.304+) |
/config |
Open full settings interface; an Idle compaction row turns idle compaction off or back on (v2.1.302+) |
/mcp |
Configure MCP servers. /mcp enable, /mcp disable; /mcp reconnect all retries every server that failed to connect or needs authentication (v2.1.284+) |
/hooks |
View hook configuration; opens on one list of your configured hooks grouped by event (v2.1.286+) |
/memory |
View and manage auto-memory files |
/copy |
Copy code blocks. /copy N for Nth-latest response; quoted text copies without its > markers (v2.1.295+) |
/resume |
Resume named session. /resume 1 or /resume name; on Pro and Max a warning appears when resuming an inactive conversation would use a noticeable share of the 5-hour limit (v2.1.304+) |
/rename |
Name current session. /rename feature-auth |
/branch |
Branch conversation for parallel exploration |
/fork |
Copy the conversation into a new background session — own row in claude agents (repurposed v2.1.212); the copy gets its own worktree as of v2.1.221 |
/subtask |
In-session fork — the old /fork behavior under its new name (v2.1.212) |
/list-agents |
List every agent Claude can message: subagents, your other local sessions, and (with Remote Control) sessions on other machines (v2.1.224) |
/peers |
Alias of /list-agents (v2.1.224) |
/clear |
Clear conversation history |
/plan |
Enter plan mode. /plan refactor the auth module |
/powerup |
Interactive feature lessons with animated demos (v2.1.90+) |
/voice |
Toggle push-to-talk voice mode |
/loop |
Recurring tasks. /loop 5m /foo runs every 5 min |
/schedule |
Create a cloud scheduled task (formerly a routine): conversational, or /schedule daily PR review at 9am; alias /routines; needs a claude.ai login with cloud sessions enabled |
/slides |
Create a Claude Slides deck as an artifact from a brief; the templates beta is on by default on Pro, Max, and Team |
/rewind |
Return to checkpoint (or press Esc twice) |
/export |
Export conversation transcript |
/add-dir |
Add working directories to expand file access |
/agents |
Removed in v2.1.198 – ask Claude to create or manage subagents, or edit .claude/agents/ directly; typing /agents explains where the wizard went |
/goal |
Set a completion condition; Claude continues until the target is met (v2.1.139+) |
/skills |
List installed skills; type-to-filter search box (v2.1.121+) |
/skill-doctor |
Show which loaded skills go unused and what they cost in context (v2.1.261+) |
/bashes |
List background bash tasks |
/tasks |
List background agents |
/theme |
Manage named themes (v2.1.118+); plugins ship a themes/ directory |
/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/headless sessions |
/color |
Set prompt-bar color. /color default to reset |
/code-review [effort] |
Find correctness bugs at optional effort level; --comment posts inline GitHub PR comments (renamed from /simplify in v2.1.147). Runs as a background subagent as of v2.1.218. As of v2.1.223, /review is an alias of this command, bare /code-review reuses the last effort level you typed, and /code-review ultra is the deep cloud review. --max-findings <n> or --max-findings all reports more or fewer findings than the usual limit and is reused until --max-findings default (v2.1.288+) |
/batch |
Batch operations |
/security-review |
Review code for vulnerabilities |
/claude-api |
Build apps with Claude API/Anthropic SDK. /claude-api managed-agents-onboard <url> turns a page’s Managed Agents pattern into ant apply files; pass a Console quickstart name such as deep-researcher instead to build that template with the ant CLI (v2.1.290+); /claude-api api-version moves API code to API version 2026-10-21 (v2.1.307+); managed-agents-secure [<agent-id>] checks a Managed Agent’s settings against the secure-deployment guide (v2.1.304+) |
/doctor |
Full setup checkup — diagnoses and fixes issues (v2.1.205; /checkup is an alias). /doctor prompt-audit (v2.1.283+) audits your CLAUDE.md files, skills, agents, and commands for prompting patterns written for older models |
/bug |
Report a bug to Anthropic |
/release-notes |
Interactive version picker with changelogs (v2.1.92+) |
/buddy |
Terminal companion pet — 18 species, 5 rarity tiers, deterministic from account ID |
/login / /logout |
Authenticate or sign out in session |
Custom commands: Create .claude/commands/my-command.md (project) or ~/.claude/commands/my-command.md (personal) and invoke with /my-command. Commands support YAML frontmatter for description, allowed tools, model override, and argument interpolation via $ARGUMENTS or positional $1, $2.
---
description: Fix a GitHub issue
allowed-tools: Read, Edit, Bash(git:*)
model: opus
argument-hint: [issue-number]
---
Fix GitHub issue #$ARGUMENTS following our coding standards.
Usage: /fix-issue 123
4. Keyboard Shortcuts
General Controls
| Shortcut | Action |
|---|---|
Ctrl+C |
Cancel current operation, or clear the prompt; Up on the empty prompt brings the draft back, pastes and images included (v2.1.288+), even after a slash command or a sent message (v2.1.292+) |
Ctrl+D |
Exit session (EOF) |
Ctrl+L |
Clear screen (keeps history) |
Ctrl+O |
Toggle verbose output |
Ctrl+R |
Search command history |
Ctrl+V |
Paste image from clipboard |
Ctrl+B |
Background current operation |
Ctrl+Enter (or Ctrl+X Ctrl+S) |
Send now: send all queued messages at once; queued text shows gray until received (v2.1.275+). Since v2.1.281, running tools move to the background instead of the turn being cancelled |
Ctrl+X Ctrl+K |
Stop all agents (changed from Ctrl+F in v2.1.83; second key gets a 3-second window with a timeout notice, v2.1.265+) |
Ctrl+S |
Stash prompt draft |
Ctrl+G |
Open external editor; editors that take a line number open on your cursor’s line (v2.1.286+) |
Esc Esc |
Rewind last change |
Tab |
Accept prompt suggestion |
! Tab |
Bash history autocomplete |
Shift+Tab |
Cycle permission modes |
Alt+P / Option+P |
Switch models while typing |
Alt+T |
Toggle thinking mode |
Ctrl+T |
Toggle syntax highlighting |
Shift+Down |
Cycle agent team teammates |
Up/Down |
Navigate command history |
v |
Vim visual mode — character selection (v2.1.118+; vim mode only) |
V |
Vim visual-line mode (v2.1.118+; vim mode only) |
% |
Vim: jump to the matching (), [], or {} bracket; d%, c%, y% operate through it (v2.1.301+; vim mode only) |
? |
Show shortcuts |
Quick Prefixes
| Prefix | Action | Example |
|---|---|---|
# |
Add to persistent memory | # Always use TypeScript |
/ |
Slash command | /review |
! |
Execute bash directly | ! git status |
@ |
Reference a file | @src/index.ts |
& |
Send task to cloud | & Build the API |
Multiline Input
| Method | Keys |
|---|---|
| Escape newline | \ then Enter |
| macOS | Option+Enter |
| iTerm2/WezTerm/Ghostty/Kitty | Shift+Enter |
| Other terminals | Shift+Enter (run /terminal-setup first) |
| Control character | Ctrl+J |
Keybindings are customizable via /keybindings (stored in ~/.claude/keybindings.json). As of v2.1.284, the effortSlider:decreaseEffort, increaseEffort, and toggleUltracode actions rebind the /effort slider’s arrow and Tab keys.
5. Configuration Files
Precedence Hierarchy (highest to lowest)
| Level | Location | Scope |
|---|---|---|
| Enterprise (locked) | /Library/Application Support/ClaudeCode/managed-settings.json (macOS) |
All users, cannot override |
| CLI flags | Command-line arguments | Current session |
| Local project | .claude/settings.local.json |
Personal, current project (gitignored) |
| Shared project | .claude/settings.json |
Team, checked into git |
| User global | ~/.claude/settings.json |
All your projects |
| Runtime state | ~/.claude.json |
OAuth tokens, MCP config |
First match wins. Enterprise settings cannot be bypassed.
6. Settings.json Reference
Key settings with types and examples. Place in any settings file from the hierarchy above.
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"model": "claude-sonnet-4-6",
"permissions": {
"allow": ["Read", "Glob", "Grep", "Bash(npm run:*)", "Bash(git:*)", "Edit(src/**)"],
"deny": ["Read(.env*)", "Bash(rm -rf:*)", "Bash(sudo:*)"],
"ask": ["WebFetch", "Bash(docker:*)"],
"defaultMode": "acceptEdits",
"additionalDirectories": ["../shared-lib"]
},
"env": {
"NODE_ENV": "development"
},
"hooks": {},
"sandbox": {
"enabled": false,
"autoAllowBashIfSandboxed": true
},
"cleanupPeriodDays": 30,
"respectGitignore": true,
"showTurnDuration": true,
"language": "en",
"autoMemoryDirectory": ".claude/memory",
"plansDirectory": ".claude/plans"
}
Permission rule syntax: Tool(pattern:*) provides prefix matching. Bash(npm run test:*) allows npm run test, npm run test:unit, etc. File patterns use glob syntax: Edit(src/**). As of v2.1.214, a single-segment dir/** allow rule matches only <cwd>/dir — no longer any dir/ anywhere in the tree; write Edit(**/src/**) for any-depth matching. deny/ask rules keep any-depth matching, and hook if: conditions get the same cwd scoping. As of v2.1.299 an MCP allow rule reaches only the server it names: mcp__a no longer covers a server named a__b or a_; write mcp__<server>__* with the whole normalized name.
New keys (v2.1.118+):
| Key | Behavior |
|---|---|
autoMode.allow $defaults |
Sentinel that adds custom rules alongside the built-in list (also for soft_deny, environment) — v2.1.118+ |
prUrlTemplate |
Footer PR badge URL template — v2.1.119+ |
wslInheritsWindowsSettings |
WSL inherits Windows-side managed settings — v2.1.118+ |
skillOverrides |
Hide or collapse skills: off, user-invocable-only, or name-only — v2.1.129+ |
allowAllClaudeAiMcps |
Enterprise managed setting to load claude.ai cloud MCP connectors alongside managed-mcp.json — v2.1.149+ |
allowClaudeInChromeWithManagedMcp |
Managed setting that lets claude --chrome run alongside an exclusive managed-mcp.json – v2.1.282+ |
sandbox.filesystem.disabled |
Skip filesystem isolation while keeping network egress control — v2.1.216+ |
emojiCompletionEnabled |
Emoji shortcode autocomplete in the prompt input (:heart: → ❤️); set false to disable — v2.1.217+ |
sandbox.network.strictAllowlist |
Deny non-allowlisted hosts for sandboxed commands without prompting — v2.1.219+ |
sandbox.allowNestedUserNamespaces |
Let sandboxed commands on Linux and WSL2 create user namespaces (Chromium, rootless podman); this also lets them around the sandbox’s file protections – user or managed settings, v2.1.305+ |
workflowSizeGuideline |
Set the advisory Dynamic workflow size guideline from any settings file; default is medium (“aim for fewer than 15 agents”), and the /config row hides while one is set — v2.1.219+ |
enableWorkflows / disableWorkflows |
enableWorkflows turns dynamic workflows on or off for yourself (the /config Dynamic workflows toggle writes it; default on except on Pro); disableWorkflows: true turns them off for everyone your settings reach, such as managed settings |
syncClaudeAiSkills / syncClaudeAiPlugins |
claude.ai account skills and plugins sync into terminal sessions signed in with that account; set false to opt out – v2.1.275+ |
attribution |
Commit and PR attribution; replaces the deprecated includeCoAuthoredBy. "attribution": false hides all of it (v2.1.281+), but older CLI versions skip a settings file that holds it, so keep the object form (commit, pr, sessionUrl) in files shared across versions |
maxProseWidth |
Cap the width of Claude’s prose in wide terminals (whole number of columns, minimum 40); tables and code blocks keep the full width – v2.1.282+ |
deniedModels |
Managed: block specific models even when availableModels allows them; a family alias such as "opus" blocks the whole family – v2.1.283+ |
availableModelsMatch |
Managed: "exact" makes each availableModels entry allow only the version it names, so new releases stay blocked until listed (default "prefix") – v2.1.283+ |
allowedProviders |
Managed: limit which API providers a machine may use (Anthropic API, a custom endpoint, Bedrock, Mantle, Vertex AI, Foundry, Claude Platform on AWS, or a Cloud gateway) – v2.1.285+ |
idleCompaction |
false stops idle compaction, which compacts a conversation of 200K+ tokens left idle about 54 minutes before its one-hour prompt cache expires (CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS moves the threshold); since v2.1.314 it also runs in VS Code and the desktop app’s Code tab, with telemetry off, and on Bedrock, Vertex, Foundry, and gateways once the one-hour prompt cache is on – shipped in v2.1.299; the docs date the key to v2.1.290+ |
advisorModel |
Saved advisor model (fable, opus, sonnet, or a full ID); /advisor writes it to user settings, --advisor overrides it per session, CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 turns the tool off |
permissions.blockWritesOutsideWorkingDirectories |
Write, Edit, and NotebookEdit refuse paths outside the working directories in every permission mode, bypassPermissions included; shell commands, MCP tools, and hooks are not limited, and the EnterWorktree and ExitWorktree tools go away while it is on. Any settings file can turn it on; none can lift it – v2.1.314+ |
disableRemoteControl |
Refuse claude remote-control, --remote-control, auto-start, and the in-session toggle; any settings file, managed settings for MDM enforcement. /remote-control names the setting when it is set (v2.1.317+) |
For the complete settings schema, see the Configuration Deep Dive in the full guide.
7. CLAUDE.md Quick Reference
CLAUDE.md is your project’s instruction file. Claude reads it at the start of every session.
Where it lives:
| Location | Scope |
|---|---|
CLAUDE.md (project root) |
All users, all sessions in this project |
.claude/CLAUDE.md |
Same, alternative location |
~/.claude/CLAUDE.md |
Personal, all projects |
AGENTS.md (v2.1.277+): in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead – change the behavior under “Project instructions” in /config (not yet on Bedrock/Vertex/Foundry).
What to include:
# Project Name
## Stack
- Backend: FastAPI, Python 3.11+
- Frontend: HTMX + Alpine.js + Bootstrap 5
## Commands
- Dev: `uvicorn app.main:app --reload --port 8000`
- Test: `python -m pytest -v`
- Lint: `ruff check .`
## Conventions
- Conventional commits: feat:, fix:, docs:, refactor:
- Never force push to main
- Always activate venv before Python commands
## Key Files
- app/main.py — FastAPI app and routes
- app/models.py — SQLAlchemy models
Keep it scannable. Dense prose wastes context tokens every session. Use bullet points, tables, and short code blocks. Avoid long paragraphs — Claude reads CLAUDE.md at the start of every session, so every word costs context.
Pro tips:
- Use
#prefix in the REPL to add things to auto-memory without editing CLAUDE.md:# Always use TypeScript strict mode - CLAUDE.md in subdirectories is loaded when Claude reads files in that directory
- Team-shared rules go in
.claude/rules/*.mdfor modular organization
8. Permission Modes
| Mode | Behavior | Use Case |
|---|---|---|
default / manual — labeled “Manual” (v2.1.200+) |
Prompts on first use of each tool | Normal development |
acceptEdits |
Auto-approves file edits, prompts for bash | Trusted projects |
auto |
Classifier (Sonnet 5 as of v2.1.210, originally Sonnet 4.6) reviews each action for safety | Autonomous with safeguards |
plan |
Read-only — no edits or execution allowed | Analysis and planning only |
bypassPermissions |
Skips all prompts | CI/CD automation |
Auto Mode (v2.1.85+) is the built-in starting mode for interactive terminal and VS Code sessions on every plan and provider: v2.1.283 extended it to third-party providers and telemetry-off sessions, and v2.1.284 to every plan and provider; before that it was the default only on Pro, Max, and Team (since August 14, 2026). From v2.1.285 to v2.1.301, claude -p and Python Agent SDK sessions on third-party providers or with telemetry off also started in auto mode when no permission mode was configured; v2.1.302 reverses that: a claude -p or Agent SDK session with no permission mode starts in Manual on third-party providers, with telemetry off, and on a fresh install, as it always did where feature flags are fetched, and --permission-mode auto keeps auto.13 permissions.defaultMode overrides the built-in default ("default" pins Manual), and disableAutoMode disables it org-wide. It is the recommended replacement for --dangerously-skip-permissions. Read-only and file edits are auto-approved; since v2.1.281, where the classifier review runs server-side, read-only and sandboxed shell commands also wait for it and are blocked when it flags them. Custom allow/deny rules resolve first. Everything else goes to the safety classifier. Auto-blocked by default: curl | bash, force-push to main, production deploys, mass cloud deletions, IAM changes, sending sensitive data externally.1
Circuit breaker: 3 consecutive blocks or 20 total in a session pauses back to manual prompting.
Auto mode’s prompt before a read outside the working directories offers Yes, but ask again next time (v2.1.284+): allow that one read and still be asked about later ones.
Dangerous rm in unattended modes (v2.1.281): in auto mode and --dangerously-skip-permissions, the dangerous rm prompt waits 2 minutes, then denies the command with a rewrite hint so the session keeps going. A recursive rm whose target is only command-substitution output, such as rm -rf "$(pwd)", now asks even with a Bash allow rule.
# Enable at startup (--enable-auto-mode was removed in v2.1.111)
claude --permission-mode auto
# Cycle during session
Shift+Tab # Manual (aka default) -> acceptEdits -> auto -> plan
Permission changes (v2.1.288-290): pyright is no longer treated as read-only and asks first, as do more forms of ps (v2.1.290). A project’s settings files can no longer turn on Claude in Chrome; use --chrome, /chrome, or your user settings (v2.1.290). The client-side auto mode classifier ignores an ANTHROPIC_DEFAULT_SONNET_MODEL pin naming Sonnet 5.5 or Opus 5.5 and uses Claude Sonnet 5 (v2.1.288).
PowerShell auto-approval (v2.1.119+): PowerShell tool commands auto-approve in permission mode the same way Bash commands do. Allow rules like PowerShell(Get-*:*) bypass prompts for read-only operations. Use v2.1.149+ on PowerShell-heavy workflows; it fixes built-in cd permission bypasses, prefix/wildcard allow-rule matching, and stale directory variable tracking.
9. Hook Events
| Event | When It Fires | Can Block? |
|---|---|---|
PreToolUse |
Before tool executes | Yes |
PostToolUse |
After tool completes | No |
PostToolUseFailure |
After tool fails | No |
UserPromptSubmit |
User sends a prompt | Yes |
Stop |
Claude finishes response | Yes |
SubagentStart |
Subagent spawns | No |
SubagentStop |
Subagent completes | Yes |
SessionStart |
Session begins | No |
SessionEnd |
Session closes | No |
Notification |
Alert triggered | No |
| InstructionsLoaded | CLAUDE.md loaded | No |
| ConfigChange | Config file changes mid-session | Yes |
| DirectoryAdded | /add-dir or SDK register_repo_root adds a working directory mid-session (v2.1.219+) | No |
| WorktreeCreate | Worktree being created | Yes |
| WorktreeRemove | Worktree being removed | No |
| PreCompact | Before context compaction | No |
| PostCompact | After context compaction | No |
| Elicitation | MCP requests structured input | Yes |
| ElicitationResult | User responds to MCP dialog | Yes |
| StopFailure | Turn ends due to API error | No |
| PermissionRequest | Permission dialog shown | Yes |
| PermissionDenied | Auto mode denies an action (v2.1.88+) | No |
| CwdChanged | Working directory changes (v2.1.83+) | No |
| FileChanged | Watched file modified externally (v2.1.83+) | No |
| TaskCreated | New task created (v2.1.84+) | No |
| TeammateIdle | Agent team member idles | Yes |
| TaskCompleted | Task marked complete | Yes |
For the full hook protocol (input/output JSON, matchers, exit codes), see Hooks Deep Dive in the full guide.
10. Hook Configuration
Hooks live in settings.json or a dedicated hooks.json. Minimal example:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "npx prettier --write \"$FILE_PATH\""
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": ".claude/hooks/validate-bash.sh"
}
]
}
]
}
}
Matcher syntax:
| Pattern | Matches |
|---|---|
* |
All tools |
Bash |
Bash only |
Edit\|Write |
Edit or Write |
mcp__github |
MCP server tools |
"" (empty) |
Events without tools (e.g., UserPromptSubmit) |
Exit codes:
| Code | Meaning |
|---|---|
0 |
Success — operation proceeds |
2 |
Block — operation stops, stderr fed to Claude |
1, 3+ |
Non-blocking warning; a hook with "onFailure": "block" (v2.1.295+) blocks instead, as exit 2 does |
Async hooks run in the background without blocking: add "async": true to the hook object.2 Prompt and agent hooks run at most 12 of one event at a time as of v2.1.302; the rest wait their turn.13
Hook output / input fields:
duration_msonPostToolUse/PostToolUseFailurehook input (v2.1.119+) — tool execution time excluding permission prompts and PreToolUse hooks.hookSpecificOutput.updatedToolOutput(v2.1.121+) — replace tool output for any tool (v2.1.118 introduced this for MCP only; v2.1.121 extends to all tools).hookSpecificOutput.sessionTitle(v2.1.96+) — set session title from aUserPromptSubmithook.args: string[]on command hooks (v2.1.139+) — pass structured argv without shell quoting.- Skill hook caps (v2.1.304+): 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; a skill’s
oncehook no longer removes another skill’s identical hook. continueOnBlockonPostToolUsehooks (v2.1.139+) — feed the block reason back to Claude and continue the turn.subagent_typeon agent hook input (v2.1.140+) — identify which agent type is running.terminalSequencein hook JSON output (v2.1.141+) — emit terminal-control sequences for notifications, window titles, and bells.onFailure: "block"on command and HTTP hooks (v2.1.295+) – a hook that cannot start, times out, exits with a code other than 0 or 2, gets an HTTP error, or prints invalid JSON blocks the action (what exit 2 does on that event; a denial onPermissionRequest). Default"continue"; ignored onStop,SubagentStop,TaskCompleted,TeammateIdle, and async hooks.
11. MCP Quick Setup
Add an MCP server in one command:
# Remote HTTP server (recommended)
claude mcp add --transport http github https://api.githubcopilot.com/mcp/
# Remote with auth header
claude mcp add --transport http api https://api.example.com/mcp \
--header "Authorization: Bearer $TOKEN"
# Local stdio server
claude mcp add --transport stdio postgres \
--env "DATABASE_URL=postgresql://user:pass@localhost/db" \
-- npx -y @anthropic-ai/mcp-server-postgres
Scope control:
claude mcp add --scope project ... # Team-shared (.mcp.json)
claude mcp add --scope user ... # Personal (~/.claude.json)
Project .mcp.json example:
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
},
"database": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-server-postgres"],
"env": {
"DATABASE_URL": "postgresql://user:pass@localhost/db"
}
}
}
}
MCP now has 100 million monthly downloads and 3,000+ indexed servers.3 For transport types, elicitation, and tool search configuration, see the MCP section in the full guide.
alwaysLoad (v2.1.121+): Opt a trusted server out of Tool Search deferral. All its tools load at session start, no ToolSearch round-trip:
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"alwaysLoad": true
}
}
}
alwaysLoad: false (v2.1.287+) does the opposite: all of that server’s tools wait behind tool search.
Auto-retry (v2.1.121+): MCP servers that error during startup are retried up to 3 times before being marked disconnected.
URL prompts (v2.1.287+): MCP servers on the 2025-11-25 protocol can open URL prompts, for example to sign in. If a server stops connecting after the update, add "bareElicitationCapability": true to its MCP config entry.
SDK mcp_authenticate redirectUri (v2.1.121+): Required for completing OAuth on custom URI schemes — desktop apps and claude.ai connector flows.
11.5. Plugin CLI Commands
| Command | Behavior |
|---|---|
claude --plugin-url <url> |
Fetch a plugin .zip archive for the current session (v2.1.129+) |
claude --plugin-dir <path> |
Load a plugin directory, .zip archive, or folder of plugins – each child folder with a manifest loads (.zip v2.1.128+, folder mode v2.1.265+) |
claude plugin prune |
Remove auto-installed plugins whose parent is no longer present (v2.1.121+) |
claude plugin uninstall <name> --prune |
Uninstall and cascade-remove orphaned auto-installed dependencies (v2.1.121+) |
claude plugin tag |
Create release git tags with version validation (v2.1.118+) |
claude plugin eval |
Run a plugin’s eval suite: scored, reproducible results, JSON + HTML report (v2.1.269+) |
claude plugin eval --disallow-tools <names> |
Keep named built-in tools, such as Agent, out of eval runs (also disallowed_tools in a case); a run that ends on an API error scores 0 and fails the suite (v2.1.299+) |
claude plugin configure <plugin> |
Show a plugin’s options and which are unset; --values-stdin saves new values read from stdin (v2.1.285+) |
claude plugin install <plugin> --config <server>.<key>=<value> |
Set a bundled .mcpb MCP server’s own settings at install time, so it starts without visiting /plugin → Configure (v2.1.285+) |
claude plugin install <plugin> --marketplace <source> |
Add the marketplace if needed, under the same policy checks as claude plugin marketplace add, then install the plugin from it (v2.1.292+) |
claude plugin validate |
Validate a plugin before publishing; v2.1.281 adds MCP checks (.mcp.json entries that would be silently dropped at load, undeclared ${user_config.*} references, insecure URLs) and a warning for an unquoted ${CLAUDE_PLUGIN_ROOT} in a shell-form hook |
/plugin install <plugin> --marketplace <source> |
In-session install from a marketplace you haven’t added – offers to add it first (v2.1.275+) |
/plugin enable cc-plugin-you-should-know@builtin |
Turn on You should know, a built-in mod whose side agent flags things you or Claude might miss (v2.1.287+; first-party sessions with telemetry on) |
Mods (v2.1.287+): a mod is a plugin whose JavaScript or TypeScript handlers run inside Claude Code: it can draw panes, add commands, and watch or change tool calls. Mods are on by default; --safe-mode stops them for one session and "disableAllHooks": true for every session, and neither stops built-in mods.8
LSP servers (v2.1.288+): an LSP server entry takes requestTimeout in milliseconds (default 60000), so a server that never answers fails the request after 60 seconds instead of hanging.
12. Subagent Types
| Type | Default Model | Mode | Use For |
|---|---|---|---|
| Explore | Inherits session model, capped at Opus (v2.1.198+; was Haiku) | Read-only | Codebase search, finding files, understanding structure |
| General-purpose | Inherits main | Full read/write | Complex research + modification tasks |
| Plan | Inherits main | Read-only | Planning implementations before execution |
| Custom | Configurable | Configurable | Domain-specific work (security review, testing, etc.) |
Claude automatically delegates to subagents. You can also request them explicitly:
> Use the explore agent to find all auth-related files
> Have a subagent analyze the database schema
Custom subagents are defined in .claude/agents/ (project) or ~/.claude/agents/ (personal) as markdown files with YAML frontmatter. Up to 20 subagents run concurrently by default; CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS changes the cap.4 As of v2.1.292, the Agent tool takes an effort parameter, so you can ask Claude to run a subagent at a given effort level, and agent names are capped at 256 characters (a longer name in a skill or plugin file is ignored). As of v2.1.302, fork subagents (subagent_type: "fork") are on by default in claude -p, the Agent SDK, the desktop app, and VS Code as well as the terminal (CLAUDE_CODE_FORK_SUBAGENT=0 turns them off; claude mcp serve never offers them), and the desktop app and VS Code always run the main conversation’s subagents in the background.13
claude agents opens Agent View in current releases: a research-preview operations screen for running, blocked, and completed Claude Code sessions. claude agents --cwd <path> scopes the view to one directory (v2.1.141+), v2.1.142 adds dispatch flags for background sessions, and v2.1.143 applies those flags consistently to the dashboard and background sessions: --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions. v2.1.144 adds /resume support for background sessions and marks them with bg; v2.1.145 adds claude agents --json, awaiting-input tab counts, and Agent View reply-pane fixes; v2.1.147 adds pinned background sessions that stay alive when idle and restart in place for updates; v2.1.287 adds an n:<text> filter that matches session names and tasks; v2.1.288 adds Ctrl+F to find a session by name and Alt+Up / Alt+Down to jump between groups, both rebindable in keybindings.json (agents:find for Ctrl+F). Use Agent View for monitoring, not as proof that the work passed quality gates.6
Custom agent frontmatter fields:
| Field | Purpose |
|---|---|
name |
Unique identifier (lowercase, hyphens) |
description |
When to invoke (include “PROACTIVELY” for auto-delegation) |
tools |
Comma-separated tool list. Supports Agent(Explore) to restrict spawnable types |
disallowedTools |
Tools to deny from inherited set |
model |
opus, sonnet, haiku, or inherit (default) |
permissionMode |
default/manual, acceptEdits, plan, bypassPermissions, etc. |
maxTurns |
Maximum agentic turns |
background |
true to always run as background task |
isolation |
worktree for isolated git worktree copy |
skills |
Skills preloaded into context at startup; the first 32 distinct names (v2.1.295+) |
autoCompactWindow |
Auto-compact this subagent earlier than the main conversation’s window, in tokens (v2.1.296+) |
Example custom agent (.claude/agents/security-reviewer.md):
---
name: security-reviewer
description: Expert security code reviewer. Use PROACTIVELY after code changes to auth or data handling.
tools: Read, Grep, Glob, Bash
model: opus
permissionMode: plan
---
You are a senior security engineer. Analyze for OWASP Top 10 vulnerabilities,
secrets, hardcoded credentials, and SQL injection. Report findings with severity
levels and remediation steps.
13. Environment Variables
Authentication and API
| Variable | Purpose |
|---|---|
ANTHROPIC_API_KEY |
Direct API authentication |
ANTHROPIC_AUTH_TOKEN |
Custom authorization header |
ANTHROPIC_CUSTOM_HEADERS |
Additional request headers |
Model Configuration
| Variable | Purpose |
|---|---|
ANTHROPIC_MODEL |
Override default model |
CLAUDE_CODE_SUBAGENT_MODEL |
Model for subagents; v2.1.147 fixes propagation to agent-team teammate processes |
CLAUDE_CODE_SUBAGENT_EFFORT |
Effort level subagents run at when nothing else names one, instead of inheriting the session’s (v2.1.316+); a subagent on another model uses that model’s saved effort or its default (v2.1.317+) |
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_DISABLE_ULTRATHINK=1 |
Turn the ultrathink keyword off; since v2.1.311 it runs a terminal turn at xhigh (v2.1.316+) |
CLAUDE_CODE_DISABLE_WORKFLOWS=1 |
Turn dynamic workflows off for one session; same as "disableWorkflows": true, and whichever turned them off, the other cannot turn them back on. Workflows are on by default except on Pro, where "enableWorkflows": true (the /config Dynamic workflows toggle) turns them on; the v2.1.147 opt-in CLAUDE_CODE_WORKFLOWS=1 is no longer in the env-vars reference |
MAX_THINKING_TOKENS |
Enable extended thinking |
CLAUDE_CODE_MAX_OUTPUT_TOKENS |
Limit output length |
Cloud Providers
| Variable | Purpose |
|---|---|
CLAUDE_CODE_USE_BEDROCK=1 |
Use AWS Bedrock |
CLAUDE_CODE_USE_VERTEX=1 |
Use Google Vertex AI |
CLAUDE_CODE_USE_FOUNDRY=1 |
Use Microsoft Foundry |
VERTEX_REGION_CLAUDE_HAIKU_5_5 |
Vertex region for Claude Haiku 5.5 (v2.1.293+) |
ANTHROPIC_BEDROCK_SERVICE_TIER=priority |
Bedrock service tier — default/flex/priority (v2.1.122+); sent as X-Amzn-Bedrock-Service-Tier |
ENABLE_TOOL_SEARCH=true |
Opt in to Tool Search on Vertex AI (v2.1.119+; off by default there). Behind a custom ANTHROPIC_BASE_URL tool search is on by default since v2.1.304, and a gateway 400 or 422 is retried without it (v2.1.305 fixed the regression that failed every request on providers that reject it); a gateway that refuses tool_reference blocks gets the request again without tool search and the session remembers (v2.1.314+) |
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1 |
Opt in gateway /v1/models discovery for the /model picker (v2.1.129+) |
CLAUDE_CODE_AUTO_MODE_SERVER=0 |
Opt out of the server-side auto-mode classifier (the local classifier then counts toward usage); =1 opts in. Server-side is the default on Bedrock/Vertex/Foundry and gateways as of v2.1.278, with classifier overhead not charged, and on a direct Anthropic API connection with telemetry off as of v2.1.282; since v2.1.281 the variable also applies on a direct Anthropic API connection (=1 was the v2.1.273-277 opt-in while local was the default) |
CLAUDE_CODE_AUTO_MODE_MODEL |
Model the client-side auto-mode classifier uses; no effect on server-side auto mode (v2.1.302+) |
CLAUDE_CODE_MODEL_CATALOG=off |
Stop Bedrock, Mantle, Vertex AI, 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, Vertex AI, 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 it also covers model names Claude Code does not recognize |
CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS=1 |
Stop sending structured outputs, for Mantle or a gateway that rejects them (session titles, memory recall, and prompt hooks failed there before, v2.1.288+) |
CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 |
Send the x-claude-code-* hint headers to an LLM gateway or third-party provider (v2.1.273+; v2.1.283 adds x-claude-code-prompt-id, which groups the requests serving one prompt). A direct Anthropic API connection sends them by default; =0 stops them everywhere |
Behavior Control
| Variable | Purpose |
|---|---|
DISABLE_AUTOUPDATER=1 |
Prevent automatic 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 upgrades in the background and prompt restart (v2.1.129+) |
CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 |
Clone GitHub plugin sources over HTTPS instead of SSH when SSH keys are unavailable (v2.1.141+) |
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE |
Removed — no-op since v2.1.160. Fast mode is now /model <model> then /fast on |
CLAUDE_CODE_STOP_HOOK_BLOCK_CAP |
Override the v2.1.143+ cap that ends a turn with a warning after repeated blocking stop hooks |
CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1 |
Opt out of the v2.1.143+ PowerShell -ExecutionPolicy Bypass behavior |
CLAUDE_CODE_USE_POWERSHELL_TOOL=0 |
Disable the PowerShell tool where v2.1.143 enables it by default for Bedrock, Vertex, and Foundry users |
DISABLE_TELEMETRY=1 |
Opt out of usage telemetry |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 |
Turn off nonessential traffic: auto-updates, telemetry, error reporting, /feedback, release notes, feature-flag fetching (which also turns off Remote Control); skips the startup connection warm-up too as of v2.1.290. 0 or false still disables; unset it to allow |
CLAUDE_CODE_ATTRIBUTION_HEADER=0 |
Omit the system-prompt attribution block; behind a Claude apps gateway, set it in the env of the code or cli policy (v2.1.299+) |
CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH |
Truncation limit for OTel content attributes (default 60 KB, v2.1.214+) |
CLAUDE_CODE_ENABLE_TELEMETRY, OTEL_* exporter and OTEL_LOG_* content vars |
Ignored in project and local settings as of v2.1.282, except values that turn telemetry off; set them in your shell, user settings, or managed settings. /status and claude doctor list the ignored names |
DISABLE_COST_WARNINGS=1 |
Hide cost warnings |
DISABLE_PROMPT_CACHING=1 |
Disable prompt caching globally |
CLAUDE_CODE_DISABLE_1M_CONTEXT=1 |
Hold every native-1M model to 200K via auto-compaction (v2.1.223 widened it beyond a fixed list). As of v2.1.285, sessions behind a custom ANTHROPIC_BASE_URL use the 1M window of models that have one (Opus 4.7+, Sonnet 5+, Fable); run /autocompact 200k if your gateway stops at 200K. As of v2.1.287, Opus 4.7+ and Fable also run with 1M by default on Bedrock, Vertex, Foundry, and the Claude apps gateway, with no [1m] suffix; this variable keeps them at 200K |
CLAUDE_CODE_AUTO_COMPACT_WINDOW |
Auto-compact window in tokens, 100000 to 1000000; k and M suffixes work since v2.1.304 (200k had silently set a 100K window), out-of-range values warn |
CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1 |
Let claude ultrareview run in an untrusted folder where it cannot ask, such as CI; set it in the launching environment, not a settings env block (v2.1.309+) |
CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS |
Context size at which idle compaction applies, default 200000; values below 100000 are raised to 100000; "idleCompaction": false turns the feature off (v2.1.299; the docs say v2.1.290+) |
CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 |
Let unrecognized model IDs exceed the assumed context window (v2.1.223) |
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS=1 |
Remove built-in commit/PR instructions |
CLAUDE_CODE_DISABLE_WEB_FETCH=1 |
Turn off the WebFetch tool (v2.1.285+) |
CLAUDE_CODE_DISABLE_ARTIFACT=1 |
Turn the Artifact tool off for one session; no settings file turns it back on while set ("enableArtifact": false does the same from settings or the /config Artifacts row) |
CLAUDE_CODE_ARTIFACT_AUTO_OPEN=0 |
Do not open the browser when a new artifact is published |
CLAUDE_CODE_MAX_TURNS |
Cap agentic turns when no --max-turns is passed; the flag wins when both are set |
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; with feature-flag fetching off it reuses a list up to 10 minutes old that another session fetched (v2.1.311+) |
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, as before v2.1.317 (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 |
1 forces OSC 8 terminal links on where detection misses them; 0, false, no, or off renders them as plain text (before v2.1.314 the three words turned links on) |
CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES |
Cap re-sends of a non-streaming fallback request that timed out (v2.1.285+) |
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS |
Starting delay of the 529 overloaded-request backoff, default 500 ms, accepts 500-32000; no effect under the retry watchdog or in fast mode (v2.1.292+) |
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS |
Ceiling of that backoff in milliseconds, default 32000 (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 |
Per-request cap 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 |
Under the watchdog, end a request at a usage limit that resets further away than this instead of waiting (v2.1.301+) |
CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS |
Minimum interval between checks that a usage limit was lifted before its reset while the watchdog waits on it (v2.1.305+) |
CLAUDE_CODE_DISABLE_ATTACHMENTS=1 |
Send @ file mentions as plain text instead of expanding them. As of v2.1.290 a repository’s .claude/settings.json or .claude/settings.local.json can no longer set it; shell, user, and managed settings still can |
CLAUDE_CODE_DISABLE_FILE_MENTIONS=1 |
Hand Claude the path of an @ mention to read with its file tools instead of the file’s contents, so PreToolUse hooks see the read; shell, user, and managed settings only (v2.1.299+) |
CLAUDE_CODE_USER_DIALOG_TIMEOUT_MS |
Milliseconds before a dialog forwarded to a remote client (Remote Control, an SDK host) is cancelled; overrides dialogExpiry, 0 disables. A value with a unit suffix such as 5m falls back to dialogExpiry as of v2.1.290 (it was read as 5 ms before) |
CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT=1 |
Keep the dangerous rm prompt waiting in auto mode and --dangerously-skip-permissions instead of denying after 2 minutes (v2.1.281+) |
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 |
Keep prompting for an rm built at run time inside a shell -c script Claude Code cannot read; by default such scripts no longer prompt (v2.1.299+) |
CLAUDE_CODE_HIDE_CWD=1 |
Hide working directory in 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 (=1 was the external-build opt-in from v2.1.117; claude mcp serve never offers them) |
CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 |
Force synchronized terminal output when auto-detection misses it (v2.1.129+) |
CLAUDE_CODE_FORWARD_SUBAGENT_TEXT=1 |
Include subagent text + thinking in stream-json output; pairs with --forward-subagent-text (v2.1.211+) |
CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION |
Per-session WebSearch cap (default 200, v2.1.212+). As of v2.1.290, interactive sessions refill their WebSearch budget over time instead of stopping after 200 calls |
CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR |
Refill rate for the interactive session’s WebSearch budget (default 100 calls per hour; 0 turns refills off, v2.1.290+) |
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION |
Per-session subagent-spawn cap (default 200; /clear resets the budget, v2.1.212+) |
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS |
Cap on concurrently-running subagents (default 20; distinct from the per-session total above, v2.1.217+) |
CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS |
Workflow fan-out stagger for prompt-cache reuse; 0 disables (v2.1.229+) |
CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL |
Run every workflow agent on one model while other subagents keep theirs (v2.1.296+) |
CLAUDE_CODE_TOOL_MEMORY_LIMIT |
Opt-in Linux memory cgroup (MB) for Bash tool commands (v2.1.233+) |
CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS |
WebFetch per-URL session cache TTL, default 15 min (v2.1.233+) |
CLAUDE_CODE_ENABLE_TODO_TOOLS |
Restore todo/task tools on Opus 4.8+/Sonnet 5+/Fable 5+, off by default since v2.1.233 |
CLAUDE_CODE_PROJECT_DIR_NAME |
Short per-project transcript-dir name for hosts with per-session config dirs (v2.1.234+) |
CLAUDE_CODE_GOAL_CHECKIN_MINUTES |
Check on background tasks stalling a /goal this long; 0 disables (v2.1.234+, default 30) |
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH |
Nested subagent spawn depth — default 3 as of v2.1.219; set 1 to disable nesting. Default history: 5 (v2.1.172–v2.1.216) → 1 (v2.1.217) → 3 (v2.1.219), so set it explicitly |
CLAUDE_AX_SCREEN_READER=1 |
Enable screen reader mode; same as --ax-screen-reader (v2.1.208+) |
CLAUDE_AX_PREPARK_MS |
Milliseconds screen reader mode waits before writing a new or changed line; default 0 as of v2.1.287 (was 50), so set 50 to restore the pause |
Tool Configuration
| Variable | Purpose |
|---|---|
BASH_DEFAULT_TIMEOUT_MS |
Bash command timeout (default 30000) |
BASH_MAX_TIMEOUT_MS |
Maximum bash timeout (default 600000) |
MCP_TIMEOUT |
MCP server startup timeout (default 5000) |
MCP_TOOL_TIMEOUT |
MCP tool execution timeout (default 30000); v2.1.142 fixes remote HTTP/SSE calls ignoring higher values |
CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH |
Override the cap on MCP tool descriptions and server instructions, 4,096 characters since v2.1.296 (2,048 in v2.1.280-295) – applies to every MCP server in the session (v2.1.280+); Anthropic’s first-party servers at api.anthropic.com are uncut since v2.1.299 |
MCP_PROTOCOL_NEGOTIATION |
legacy stops probing servers for MCP protocol 2026-07-28; auto probes HTTP, connector, and stdio servers. Local (stdio) servers negotiate 2026-07-28 by default on every install, Bedrock, Vertex, and Foundry included, as of v2.1.292; cloud session and Remote Control connectors negotiate it by default as of v2.1.299 |
CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS |
Threshold before a long MCP tool call auto-moves to the background (default 2 min, v2.1.212+) |
Background commands (v2.1.285+): background Bash and PowerShell commands stop after a time limit – their timeout with run_in_background, default 30 minutes, maximum 2 hours – and Claude is notified when one is stopped. As of v2.1.288 the limit applies only in unattended sessions (-p, Agent SDK, CI, cloud); terminal, desktop app, and VS Code sessions have no limit.
Network and Proxy
| Variable | Purpose |
|---|---|
HTTP_PROXY / HTTPS_PROXY |
Proxy configuration |
NO_PROXY |
Bypass proxy for specific domains |
CLAUDE_CODE_CLIENT_CERT |
mTLS certificate path |
ANTHROPIC_WORKSPACE_ID |
Scope workload-identity-federated tokens when a rule spans multiple workspaces (v2.1.141+) |
CLAUDE_CODE_GZIP_REQUEST_BODIES=0 |
Turn off gzip compression of large request bodies to api.anthropic.com, on even with telemetry off (v2.1.300+) |
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 |
OTel’s standard export timeout (milliseconds); an OTLP export behind a proxy that never answers gives up after 10 seconds, or this value up to 30 seconds (v2.1.317+) |
For the complete list, see Environment Variables in the full guide.
14. Cost Reference
Pricing per 1 million tokens (as of October 2026).510
| Model | Input | Output | Notes |
|---|---|---|---|
| Sonnet 5.5 | $2.00 | $10.00 | The default Sonnet model on the Anthropic API as of v2.1.284 (Sep 28, 2026) – model ID claude-sonnet-5-5, 1M context / 128K output, cache reads $0.10/MTok (0.05x input; v2.1.296 corrects Claude Code’s cost figures, which had used $0.20), knowledge cutoff Jun 2026. Cost-sensitive daily coding; effort defaults to medium in Claude Code. /model sonnet on the Anthropic API (Claude Platform on AWS resolves sonnet to Sonnet 4.6; Bedrock, Agent Platform, and Foundry to Sonnet 4.5). |
| Sonnet 5 (previous) | $2.00 | $10.00 | What sonnet selected on the Anthropic API v2.1.197 through v2.1.283, and the Pro/Team Standard default until v2.1.280 moved those plans to Opus. Native 1M context; $2/$10 is the standard list price (the scheduled Sep 1 increase to $3/$15 was cancelled; v2.1.243 updated the /model picker to match). Pin with ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5. |
| Opus 5.5 | $4.00 | $20.00 | The default Opus model as of v2.1.280 (Sep 22, 2026) – model ID claude-opus-5-5, 1M context, cache reads $0.20/MTok (0.05x input, vs the standard 0.1x). Cheaper than Opus 5 at every position, and the default model on every plan now that v2.1.280 moves Pro and Team Standard from Sonnet to Opus. /model opus. |
| Opus 5 (previous) | $5.00 | $25.00 | The Opus tier v2.1.219 (July 24, 2026) through v2.1.278 — model ID claude-opus-5, 1M context / 128K output, thinking on by default, effort defaults to high, knowledge cutoff May 2026. Was the premium-plan default – Max, Team Premium, Enterprise (seats as of v2.1.251) – and the Anthropic API’s, until v2.1.280 made Opus 5.5 the default Opus model. Pin with ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5. |
| Opus 4.8 (legacy) | $5.00 | $25.00 | Same price, now in the docs’ Legacy models table; the premium-tier default v2.1.154–v2.1.219. Fast mode on it was deprecated October 30, 2026 and is removed November 30, 2026. Pin with ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-4-8. |
| Fable 5.1 | $10.00 | $50.00 | Tier above Opus; /model fable selects it as of v2.1.257, the first installable release carrying it (Fable 5, v2.1.170+, moved to the docs’ Legacy table). Model ID claude-fable-5-1, 1M context / 128K output, adaptive always-on thinking, knowledge cutoff Jun 2026 (shared with Opus 5.5 and Sonnet 5.5), cache reads $0.25/MTok (0.025x input, vs the standard 0.1x). |
| Haiku 5.5 | $0.10 | $0.50 | What haiku selects on the Anthropic API as of v2.1.293 (Oct 7, 2026) – model ID claude-haiku-5-5, 1M context / 128K output, adaptive thinking that cannot be turned off, knowledge cutoff Jun 2026. A prompt over 100K tokens pays $0.50 / $2.50, every token of that request included; cache reads $0.01 (standard 0.1x). Fast exploration, simple tasks, subagents. Still Haiku 4.5 on Bedrock, Vertex, Foundry, and Claude Platform on AWS. /model haiku. |
| Haiku 4.5 (previous) | $1.00 | $5.00 | What haiku selected before v2.1.293, and still does on Bedrock, Vertex, Foundry, and Claude Platform on AWS. Pin with ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5-20251001. |
A typical session consumes 50K-200K input tokens and 10K-50K output tokens. Haiku 5.5 session: about $0.01-$0.05 at the rates for prompts up to 100K tokens. Opus 5.5 session: $0.40-$1.80.
Default model in Claude Code (by plan): Opus on every plan as of v2.1.280 (Sep 22, 2026) – Pro and Team Standard moved from Sonnet to Opus, matching Max, Team Premium, and Enterprise – and the default Opus model is Opus 5.5 (claude-opus-5-5), where the opus alias now lands. The v2.1.251 split (Opus 5 on the premium plans, Sonnet 5 on Pro/Team Standard) and the v2.1.197 Sonnet-5-everywhere default are history. Admins can set an org-wide default, shown as “Org default” in /model (v2.1.196+). Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform default to Opus 5.5 too; Microsoft Foundry is the only exception (default Sonnet 4.5, and the one place opus resolves to Opus 4.6) – pin a specific model via ANTHROPIC_DEFAULT_OPUS_MODEL / ANTHROPIC_DEFAULT_SONNET_MODEL.
Opus 5.5, Sonnet 5.5, Haiku 5.5, Sonnet 5, Opus 5, Opus 4.8, Fable 5, and Fable 5.1 use adaptive reasoning only (no fixed thinking budgets), with /effort xhigh for the hardest coding/agentic work. effort defaults to high on all of them except Opus 5.5 and Sonnet 5.5, which default to medium, as Haiku 5.5 does on the Claude API – and as of v2.1.280 an effort level you saved before /effort became per-model no longer carries onto newly released models like Opus 5.5, so it starts at its own default until you pick one. Thinking cannot be turned off on Opus 5.5, Sonnet 5.5, or the Fable models (MAX_THINKING_TOKENS=0 has no effect there). Opus 5 breaking changes vs Opus 4.8: thinking is on by default for requests that omit the thinking field, and thinking: {type: "disabled"} with effort xhigh or max returns a 400.
Fast mode (/fast) applies to Opus 5.5 and Opus 5, and to Opus 4.8 until November 30, 2026 (deprecated October 30; after the removal a fast-mode request on Opus 4.8 errors instead of running at standard speed), with Opus 5.5 the default from v2.1.280 – $8 / $40 per MTok on Opus 5.5, $10 / $50 on Opus 5 and 4.8 (2× base in each case) for up to 2.5× output tokens per second. Opus 4.7 was removed: claude-opus-4-7 + speed: "fast" now errors instead of falling back to standard speed. Research preview, Claude API and subscriptions only (not Bedrock/Vertex/Foundry or Claude Platform on AWS); switching speeds invalidates the prompt cache. As of v2.1.271, fast mode also works 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.
Switch models during a session:
/model opus # Switch to Opus 5.5 (v2.1.280+)
/model sonnet # Switch to Sonnet 5.5 on the Anthropic API (v2.1.284+)
/model haiku # Switch to Haiku 5.5 on the Anthropic API (v2.1.293+)
/model fable # Switch to Fable 5.1 (tier above Opus, v2.1.257+)
/effort xhigh # Recommended for the hardest coding/agentic work
Decision rule: Simple exploration goes to Haiku. Cost-sensitive daily coding goes to Sonnet. Hard reasoning, architecture, agentic loops, and security analysis go to Opus. Use opusplan for complex refactoring (Opus plans, Sonnet executes).
15. Key File Locations
| Path | Purpose |
|---|---|
~/.claude/settings.json |
User-global settings |
~/.claude/keybindings.json |
Custom keyboard shortcuts |
~/.claude/CLAUDE.md |
Personal instructions (all projects) |
~/.claude/commands/ |
Personal slash commands |
~/.claude/skills/ |
Personal skills |
~/.claude/agents/ |
Personal subagent definitions |
~/.claude.json |
Runtime state, OAuth tokens, MCP config |
.claude/settings.json |
Project settings (shared via git) |
.claude/settings.local.json |
Project settings (personal, gitignored) |
.claude/CLAUDE.md |
Project instructions |
.claude/commands/ |
Project slash commands |
.claude/agents/ |
Project subagent definitions |
.claude/skills/ |
Project skills |
.claude/plans/ |
Plan mode output files |
.claude/memory/ |
Auto-memory files |
.mcp.json |
Project MCP server config |
CLAUDE.md |
Project instructions (root alternative) |
AGENTS.md |
Read as project instructions when the project has no CLAUDE.md (v2.1.277+) |
16. Changelog
| Date | Change |
|---|---|
| 2026-11-02 | Targeted sync of v2.1.311-317 (Oct 26-Nov 2; npm latest and next 2.1.317, stable moves to 2.1.311; 2.1.313 never published, 2.1.315 on npm with no changelog entry). Fast mode on Opus 4.8 deprecated October 30, removed November 30. ultrathink runs a terminal turn at xhigh. Rows added: permissions.blockWritesOutsideWorkingDirectories, disableRemoteControl, CLAUDE_CODE_SUBAGENT_EFFORT, CLAUDE_CODE_DISABLE_ULTRATHINK, CLAUDE_CODE_MODEL_CATALOG, CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT, CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK, CLAUDE_CODE_SKIP_PROMPT_HISTORY, CLAUDE_CODE_TRANSCRIPT_LOCAL_GC, CLAUDE_CODE_SYNC_SKILLS, CLAUDE_CODE_DISABLE_NESTED_SESSION_ID, CLAUDE_CODE_DISABLE_CFC_PROMPT, FORCE_HYPERLINK, CLAUDE_CODE_DISABLE_LOOPED_CROSS_CERT_DROP, OTEL_EXPORTER_OTLP_TIMEOUT. Rows updated: /fast, /model ([1m] dropped where it has no effect), /effort, idleCompaction (VS Code, desktop, third-party providers since v2.1.314), ENABLE_TOOL_SEARCH, the cost table, and the runner subcommands.16 |
| 2026-10-26 | Docs sync, no new CLI release (npm latest 2.1.310, stable 2.1.308). Rows added: --cloud (--remote is the deprecated alias; -p "msg" --cloud <session-id> queues a message into a running cloud session), /schedule (cloud scheduled tasks, formerly routines; alias /routines), /slides (artifact templates beta), CLAUDE_CODE_DISABLE_ARTIFACT, CLAUDE_CODE_ARTIFACT_AUTO_OPEN, CLAUDE_CODE_MAX_TURNS, enableWorkflows / disableWorkflows. Row replaced: CLAUDE_CODE_WORKFLOWS=1 (the v2.1.147 opt-in, gone from the env-vars reference) by CLAUDE_CODE_DISABLE_WORKFLOWS=1; workflows are on by default except on Pro. The full guide gains Projects (public beta since September 17, 2026).15 |
| 2026-10-23 | Targeted sync of v2.1.303-310 (Oct 18-23; npm latest and next 2.1.310, stable moves to 2.1.308; 303 and 308 are one-line reliability releases). Rows added: /auto-mode-setup, sandbox.allowNestedUserNamespaces, CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS, CLAUDE_CODE_AUTO_COMPACT_WINDOW (k/M suffixes), CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK. Rows updated: /usage one-line fixes with f (v2.1.305), the Pro/Max 5-hour resume warning on /resume (v2.1.304), /claude-api api-version and managed-agents-secure, tool search on by default behind a custom base URL (v2.1.304) with the v2.1.305 regression fix, claude ultrareview workspace trust (v2.1.309), skill hook caps (v2.1.304).14 |
| 2026-10-17 | Targeted sync of v2.1.301-302 (Oct 15-16; npm latest and next 2.1.302, stable holds 2.1.292; nothing skipped). 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; --permission-mode auto keeps auto). Fork subagents on by default in -p, the SDK, desktop, and VS Code (CLAUDE_CODE_FORK_SUBAGENT=0 turns them off); desktop and VS Code always background the main conversation’s subagents; prompt and agent hooks cap at 12 of one event. Rows: CLAUDE_CODE_AUTO_MODE_MODEL, CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, vim %, the /config Idle compaction row.13 |
| 2026-10-14 | Targeted sync of v2.1.300 (Oct 14; npm latest and next 2.1.300, stable moves to 2.1.292). Advisor tool rows added (/advisor, --advisor, advisorModel, CLAUDE_CODE_DISABLE_ADVISOR_TOOL): a server-side second model Claude consults at decision points, on Claude Platform on AWS as of this release. CLAUDE_CODE_GZIP_REQUEST_BODIES row; claude remote-control loses --sandbox/--no-sandbox; hook updatedInput is now validated like Claude’s own input.12 |
| 2026-10-14 | Targeted sync of v2.1.299 (Oct 14; npm latest 2.1.299, next 2.1.300 with no notes yet, stable holds 2.1.287; 2.1.297 and 2.1.298 never published). Idle compaction: a 200K+ conversation idle about 54 minutes compacts before its one-hour prompt cache expires; new idleCompaction settings row and CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS env row. New env rows CLAUDE_CODE_DISABLE_FILE_MENTIONS, CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT, and CLAUDE_CODE_ATTRIBUTION_HEADER; CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS now documented (ceiling, default 32000). MCP rules match whole server names (mcp__a no longer covers a__b; write mcp__<server>__*), noted under permission rule syntax; first-party servers at api.anthropic.com exempt from the description cap; cloud and Remote Control connectors on protocol 2026-07-28. /usage warnings, /effort and /fast in agent view, claude plugin eval --disallow-tools. Two 2.1.296 regressions fixed (Edit and Retry in cloud sessions; an approved tool call run twice after a restart).11 |
| 2026-10-11 | Targeted sync of v2.1.293-296 (Oct 7-9; npm latest and next 2.1.296, stable moves to 2.1.287). Claude Haiku 5.5 (claude-haiku-5-5, $0.10 / $0.50 per MTok for prompts up to 100K tokens, $0.50 / $2.50 over) is what haiku selects on the Anthropic API (v2.1.293): new Cost Reference row, Haiku 4.5 re-scoped as previous, /model haiku note updated; Sonnet 5.5 cache reads corrected to $0.10. Hooks: onFailure: "block" (v2.1.295). MCP description cap 4,096 (v2.1.296). New rows: skills (32 preloaded), autoCompactWindow, CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, CLAUDE_CODE_RETRY_WATCHDOG, CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS, CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL, VERTEX_REGION_CLAUDE_HAIKU_5_5; /copy note.10 |
| 2026-10-06 | Targeted sync of v2.1.288-292 (Oct 2-6; npm latest and next 2.1.292, stable holds 2.1.285). 2.1.291 fixes regressions from 2.1.288 and 2.1.290, so update past them. WebSearch budget refills hourly in interactive sessions (v2.1.290); background command limits apply only to unattended sessions (v2.1.288); claude project purge is now claude purge. New rows: /autocompact, plugin install --marketplace, CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS, CLAUDE_CODE_WEB_SEARCH_REFILLS_PER_HOUR, MCP_PROTOCOL_NEGOTIATION, and four more env vars; permission, Agent View, /code-review, and /claude-api notes updated.9 |
| 2026-10-01 | Targeted sync of v2.1.286-287 (Sep 30-Oct 1; npm latest and next 2.1.287, stable moves to 2.1.285; nothing skipped since 2.1.285). 1M context by default for Opus 4.7+ and Fable on Bedrock, Vertex, Foundry, and the Claude apps gateway (v2.1.287): CLAUDE_CODE_DISABLE_1M_CONTEXT row updated. Mods arrive, with the built-in You should know mod (v2.1.287). --bare connects only command-line MCP servers and starts no background tasks (v2.1.286). New rows: CLAUDE_AX_PREPARK_MS (default now 0), /plugin enable cc-plugin-you-should-know@builtin; alwaysLoad: false, URL prompts and bareElicitationCapability, the n:<text> agent filter, /hooks, and Ctrl+G notes added. The auto-mode note now matches the permission-modes docs. |
| 2026-09-29 | Targeted sync of v2.1.284-285 (Sep 28-29; npm latest and next 2.1.285, stable moves to 2.1.280; nothing skipped since 2.1.283). Claude Sonnet 5.5 (claude-sonnet-5-5, $2/$10 per MTok) is the default Sonnet model on the Anthropic API (v2.1.284): new Cost Reference row, Sonnet 5 row re-scoped as previous, effort and thinking notes updated. Auto mode now starts interactive sessions on every plan and provider (v2.1.284) and claude -p / Python Agent SDK sessions on third-party providers or with telemetry off (v2.1.285). Ultracode is its own /effort toggle (v2.1.284). Background shell commands stop at their timeout, default 30 minutes (v2.1.285). New rows: --desktop, allowedProviders, claude plugin configure, plugin install --config, CLAUDE_CODE_DISABLE_WEB_FETCH, CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES; /mcp reconnect all, slider keybindings, and the custom-base-URL 1M window added to existing rows. |
| 2026-09-26 | Targeted sync of v2.1.282-283 (Sep 24-25; npm latest and next 2.1.283, stable moves to 2.1.274; nothing skipped since 2.1.281). Auto mode is now the built-in starting mode for interactive terminal and VS Code sessions on every plan and provider (v2.1.283), and uses the server-side classifier by default on a direct API connection with telemetry off (v2.1.282). OTel variables in project and local settings are ignored (v2.1.282). New rows: maxProseWidth, deniedModels, availableModelsMatch, allowClaudeInChromeWithManagedMcp, /doctor prompt-audit, and the ignored OTel variables; the hint-headers row adds x-claude-code-prompt-id and the direct-API default. |
| 2026-09-24 | Targeted sync of v2.1.281 (Sep 23; npm latest and next 2.1.281, stable moves to 2.1.273; no version skipped since 2.1.280). Send now (Ctrl+Enter) moves running tools to the background instead of cancelling the turn. CLAUDE_CODE_AUTO_MODE_SERVER now also applies on a direct Anthropic API connection. Auto mode: server-reviewed read-only and sandboxed shell commands wait for that review; the dangerous rm prompt denies after 2 minutes in unattended modes. New rows: attribution (false hides all attribution), claude plugin validate MCP checks, and two rm env vars. Correction: the /agents row now says the wizard was removed in v2.1.198. |
| 2026-09-23 | Corrections, no new CLI release (npm latest still 2.1.280). Fast mode now lists Opus 5.5 at $8/$40 per MTok, the fast-mode default since v2.1.280 (Opus 5 and 4.8 stay $10/$50), in the /fast row and the Cost Reference note. Opus session cost recomputed at Opus 5.5’s $4/$20: $0.40-$1.80. /effort row lists the full ladder and Opus 5.5’s medium default; thinking cannot be turned off on Opus 5.5. |
| 2026-09-22 | Targeted sync of v2.1.280 (Sep 22; npm latest 2.1.280, stable holds 2.1.267; 2.1.279 was never published – no npm release, no changelog section). Claude Opus 5.5 (claude-opus-5-5) is the new default Opus model – 1M context, $4/$20 per MTok, cache reads $0.20/MTok – and the default model on Pro and Team Standard moves from Sonnet to Opus, matching Max, Team Premium, and Enterprise: new Opus 5.5 Cost Reference row, Opus 5 and Sonnet 5 rows re-scoped as history, default-model note and /model comment updated. CLAUDE_CODE_MAX_MCP_DESCRIPTION_LENGTH – new env-var row: overrides the 2,048-character cap on MCP tool descriptions and server instructions. Also in v2.1.280, no cheatsheet surface affected: an effort level saved before /effort became per-model no longer applies to newly released models such as Opus 5.5 (they start at their default); writes through symlinked paths are now judged by where the write lands, so acceptEdits/allow rules/auto mode no longer approve an out-of-tree landing; auto mode denies once when a safety check declines to review, and backs off then stops the turn after ten unanswered checks. |
| 2026-09-21 | Targeted sync of v2.1.277-278 (Sep 18-19; npm latest 2.1.278, stable holds 2.1.267). AGENTS.md support (v2.1.277) – new note in the CLAUDE.md section and a Key File Locations row: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead, configurable under “Project instructions” in /config, not yet on Bedrock/Vertex/Foundry. CLAUDE_CODE_AUTO_MODE_SERVER semantics flipped (v2.1.278) – row updated: the server-side classifier is now the DEFAULT for Claude API and Enterprise users and on Bedrock/Vertex/Foundry and gateways, classifier overhead not charged, and =0 is the opt-out there (the v2.1.273 row documented =1 as the opt-in while local was the default); /status gains an “Auto mode server” row. No other cheatsheet surface affected (v2.1.277’s sandbox compound-command glob fix, headless exit-code behavior, and gateway egress env var live in the full guide). |
| 2026-09-17 | Targeted sync of v2.1.274-276 (Sep 17; npm latest 2.1.276, stable holds 2.1.267; 2.1.276 fixes a 2.1.275 regression – every request 400s when ANTHROPIC_BASE_URL points at a proxy or gateway, so never pin 2.1.275 behind one). Send-now key (v2.1.275) – new row: ctrl+enter (or ctrl+x ctrl+s) interrupts the turn and sends all queued messages. syncClaudeAiSkills / syncClaudeAiPlugins (v2.1.275) – new settings row: claude.ai account skills and plugins sync into signed-in terminal sessions, false opts out. /plugin install <plugin> --marketplace <source> (v2.1.275) – new plugin row: offers to add the marketplace first. No other cheatsheet surface affected (v2.1.274’s “cloud session” naming change touches no cheatsheet row, and the new MCP env vars live in the full guide’s env table). |
| 2026-09-16 | Targeted sync of v2.1.273 (Sep 15; npm latest, resolving the next-tag watch below; the stable dist-tag moved to 2.1.267). Two env-var rows added: CLAUDE_CODE_AUTO_MODE_SERVER (gateway auto mode now defaults to the LOCAL classifier on Bedrock/Vertex/Foundry) and CLAUDE_CODE_GATEWAY_HINT_HEADERS. Note for permission-rule users: v2.1.273 narrowly reverts the v2.1.268 unanalyzable-line deny check (eval, env -C lines prompt again instead of denying); the v2.1.260 state and symlink fixes stand. No other cheatsheet surface affected. |
| 2026-09-15 | Targeted sync of v2.1.266-272 (Sep 8-14; npm latest 2.1.272, 2.1.273 on the next tag only with no release notes yet; 266/270 are one-line regression fixes and 272 is content-free). /output-style revived (v2.1.269) – new row: lists and switches output styles, deprecated v2.1.73-v2.1.268 in favor of /config, now works over Remote Control and in cloud/headless sessions. Fast mode reaches Remote sessions (v2.1.271) – /fast row and fast-mode note updated: cloud and self-hosted runners, host setting or /fast in-session, where the org allows it. claude plugin eval (v2.1.269) – new Plugin CLI row: scored, reproducible eval suites with JSON + HTML reports. No other cheatsheet surface affected (verified: /diff, /skill-doctor, --plugin-dir, and chord rows untouched by these releases). |
| 2026-09-08 | Targeted sync of v2.1.265 (Sep 8; 2.1.262/2.1.264 never published, 2.1.263 content-free). --plugin-dir rows: folder-of-plugins mode – each child folder with a manifest loads, and children added or removed while running are picked up (v2.1.265+). Ctrl+X Ctrl+K row: two-key chords now wait 3 seconds for the second key and show a notice on timeout (was 1 second with a silent cancel, which ate chords typed under tmux). No other cheatsheet surface affected. |
| 2026-09-05 | Targeted sync of v2.1.261 (Sep 4). Added the /skill-doctor row: shows which loaded skills go unused and what each costs in context, so you can prune them. Also from v2.1.261, no cheatsheet surface affected: the keybindingFlavor setting is retired (readline word editing is now the only prompt dialect) – the cheatsheet never documented it. |
| 2026-09-03 | Targeted sync of v2.1.260 (landed hours after the same-day v2.1.257-259 sync below). Added the /diff row: fullscreen diff panel beside the conversation showing uncommitted changes live as Claude edits. Note for permission-rule users: v2.1.260 reverts the v2.1.259 extension of Read() deny rules to Bash option values and operands (it denied npm run build under a build-directory deny rule in every mode); the v2.1.257 input-redirect and reader-command coverage stands. |
| 2026-09-03 | Targeted sync of v2.1.257-259 + the Claude Fable 5.1 launch (Sep 1, 2026). The fable alias now selects Fable 5.1 (claude-fable-5-1) – same $10/$50 per MTok, knowledge cutoff Jun 2026 (newest of any current model), cache reads $0.25/MTok (0.025x, vs the standard 0.1x); Fable 5 moves to the docs’ Legacy models table. v2.1.257 is the first installable release with Fable 5.1 (2.1.253-256 were never published on npm). Cost Reference row, adaptive-reasoning note, and the /model comment updated. |
| 2026-08-30 | Default-model correction from the model-config docs + CLI v2.1.251: Opus 5 is the default on the premium plans (Max, Team Premium, Enterprise pay-as-you-go, the Anthropic API, Bedrock / Google Cloud’s Agent Platform / Claude Platform on AWS; seat-based Enterprise joins at v2.1.251) and Sonnet 5 on Pro/Team Standard (Foundry: Sonnet 4.5). Sonnet 5, Opus 5, and Opus 4.8 rows, the default-model note, and the /model comment updated; the v2.1.197 Sonnet-5-everywhere framing retired. |
| 2026-08-26 | Pricing correction: Sonnet 5’s $2/$10 per MTok is now the standard list price – Anthropic’s pricing page cancels the scheduled Sep 1 increase to $3/$15, and v2.1.243 updated the /model picker and claude-api skill to match. Cost Reference row and default-model note updated; no other content changed.5 |
| 2026-08-17 | Targeted sync of v2.1.234. Sessions auto-continue when a claude.ai usage limit resets (/config: “Continue automatically at usage limit”). Env vars: CLAUDE_CODE_PROJECT_DIR_NAME, CLAUDE_CODE_GOAL_CHECKIN_MINUTES. /permissions and /add-dir now open mid-turn. GitLab MR badge (!N) in the footer via authenticated glab. |
| 2026-08-15 | Targeted sync of v2.1.233. Env vars: CLAUDE_CODE_TOOL_MEMORY_LIMIT (Linux Bash cgroup), CLAUDE_CODE_WEBFETCH_CACHE_TTL_MS, CLAUDE_CODE_ENABLE_TODO_TOOLS (todo/task tools now OFF by default on Opus 4.8/Sonnet 5/Fable 5+). GitLab MRs work with --worktree (!N in claude agents). v2.1.232’s Cygwin-symlink and < file permission changes reverted; its Windows auto-mode approval regression fixed. |
| 2026-08-14 | Targeted sync of v2.1.231–232 + the Aug-14 default flip. Auto mode is now the default for new sessions on Pro/Max/Team (noted in the Auto Mode block). v2.1.232: @-mention live sessions (routes via SendMessage, bare-name exact match delivers), subagent forking on by default, /config rows for dialog expiry + cross-session inbound, GitLab marketplaces + token redaction, additionalMarketplaces/allowedMarketplaces settings aliases. v2.1.231: MCP OAuth redirect-URI fix. |
| 2026-08-12 | Targeted sync of v2.1.228–229. Env vars: added CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS (workflow fan-out stagger, 0 disables). Also: claude remote-control --continue resumes the latest Remote Control session; /commit-push-pr no longer auto-approves dangerous git flags; Write tool matches Edit’s overwrite rules on newer models. |
| 2026-08-10 | Carried-defect repair from the main guide’s holistic audit: the auto-mode classifier row still said Sonnet 4.6 — corrected to Sonnet 5 as of v2.1.210 (originally Sonnet 4.6). |
| 2026-08-06 | Targeted sync of v2.1.221–v2.1.223 command-surface items. /review is an alias of /code-review again (v2.1.223) with last-typed effort-level memory; /fork copies get their own worktree (v2.1.221); VSCode adds Focus view (Ctrl+Alt+F, v2.1.221); CLAUDE_CODE_DISABLE_1M_CONTEXT now holds every native-1M model to 200K via auto-compaction, with CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT as the unknown-model escape hatch (v2.1.223); strictKnownMarketplaces/blockedMarketplaces accept "owner/*" org wildcards (v2.1.223). |
| 2026-07-25 | Targeted sync of v2.1.219–v2.1.220 items. Models: Claude Opus 5 (claude-opus-5) replaces Opus 4.8 as the Opus tier and what /model opus selects — same $5/$25 per MTok, 1M context / 128K output, thinking on by default, effort defaults to high, knowledge cutoff May 2026, default model on Claude Max; Opus 4.8 kept as a legacy row. Breaking vs 4.8: requests with no thinking field now think, and thinking: {type: "disabled"} + effort xhigh/max returns a 400. Fast mode corrected: /fast covers Opus 5 and Opus 4.8 only at $10/$50 per MTok (2× base, ~2.5× output speed) — Opus 4.7 was removed and now errors on speed: "fast" instead of falling back. Env vars: CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH corrected — nested subagent spawning is on by default at depth 3 as of v2.1.219 (was off in v2.1.217); set 1 to disable. Settings keys: added sandbox.network.strictAllowlist (deny non-allowlisted hosts without prompting) and workflowSizeGuideline (advisory Dynamic workflow size, default medium / fewer than 15 agents). Hook events: added DirectoryAdded (fires after /add-dir or the SDK register_repo_root registers a working directory mid-session). v2.1.220 is bug fixes and reliability improvements only. |
| 2026-07-24 | Targeted sync of v2.1.218 items. Command surface: /code-review now runs as a background subagent, so review work no longer fills your conversation. Also in v2.1.218: skills with context: fork run in the background by default (per-skill opt-out via the new background: false frontmatter key), /deep-research starts only when invoked manually, the auto-mode classifier adjudicates the dangerous-rm/background-&/suspicious-Windows-path checks instead of opening permission dialogs, and agent frontmatter hooks require the agent file’s folder to have accepted workspace trust. |
| 2026-07-22 | Targeted sync of v2.1.217 items. Env vars: added CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS (concurrently-running subagent cap, default 20) and CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH (nested subagent spawning is off by default as of v2.1.217 — set this to re-enable; v2.1.172–v2.1.216 allowed 5 levels). Settings keys: added emojiCompletionEnabled (emoji shortcode autocomplete in the prompt input, :heart: → ❤️; false disables). Also in v2.1.217: --max-budget-usd now halts background subagents once the cap is reached. |
| 2026-07-21 | Targeted sync of v2.1.214–v2.1.216 items (v2.1.213 was never released). Permission rule syntax: single-segment dir/** allow rules now match only <cwd>/dir (v2.1.214) — **/dir/** for any-depth; deny/ask rules keep any-depth matching; hook if: conditions get the same cwd scoping. Settings keys: added sandbox.filesystem.disabled (skip filesystem isolation, keep network egress control, v2.1.216+). Env vars: added CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH (OTel content-truncation limit, default 60 KB, v2.1.214+). |
| 2026-07-17 | Synced through Claude Code v2.1.212. Command surface: /fork repurposed — copies the conversation into a new background session with its own claude agents row; the in-session fork is now /subtask; new claude auto-mode reset subcommand (--yes skips confirmation); new flags --forward-subagent-text (v2.1.211) and --ax-screen-reader (v2.1.208). Env vars added: CLAUDE_CODE_FORWARD_SUBAGENT_TEXT, CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION / CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION (200/session defaults, v2.1.212), CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS (MCP calls >2 min auto-background), CLAUDE_AX_SCREEN_READER.7 |
| 2026-07-07 | Synced through Claude Code v2.1.202. Permission mode default → “Manual” (v2.1.200; manual accepted as an alias). Model table rebuilt to the current lineup — Sonnet 5 (Claude Code’s default since v2.1.197), Opus 4.8, Fable 5, Haiku 4.5 — replacing the stale Opus 4.7-flagship / Sonnet 4.6 rows; default-routing and /effort notes updated. Explore subagent now inherits the session model (capped at Opus, v2.1.198), was Haiku. Removed stale entries: --enable-auto-mode (removed v2.1.111 → use --permission-mode auto) and CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE (no-op since v2.1.160). |
| 2026-05-24 | Synced latest-line evidence through Claude Code v2.1.150. Added /usage per-category limits usage, /diff keyboard scrolling note via changelog, GFM task-list checkbox rendering note via changelog, Enterprise allowAllClaudeAiMcps, PowerShell permission fix guidance, and Bash/git-worktree/managed-settings/OTEL/Remote Control reliability notes. v2.1.150 itself has no announced user-facing changes. Local verification: local claude --version returned 2.1.144 (Claude Code) while npm latest was 2.1.150.6 |
| 2026-05-21 | Synced latest-line evidence through Claude Code v2.1.147. Added the off-by-default Workflow tool (CLAUDE_CODE_WORKFLOWS=1), pinned Agent View background sessions, /code-review [effort] --comment replacing /simplify, hardened REPL/Workflow sandboxes, auto-updater and large-diff improvements, duplicate prompt-history suppression, enterprise-login, PowerShell, MCP pagination, Agent View, plugin, hook-condition, and pasted-text fixes. Local verification: local claude --version returned 2.1.144 (Claude Code) while npm latest was 2.1.147.6 |
| 2026-05-19 | Synced latest-line evidence through Claude Code v2.1.145. Added claude agents --json, Agent View awaiting-input tab counts, status-line GitHub repo/PR JSON fields, richer pre-install plugin discovery, Stop/SubagentStop background_tasks and session_crons hook input, OTEL agent_id/parent_agent_id, and permission, MCP, spinner, Windows, Agent View, task-list, plugin validation, skill recursion, and Read tool fixes. Local verification: local claude --version returned 2.1.144 (Claude Code) while npm latest was 2.1.145.6 |
| 2026-05-19 | Synced latest-line evidence through Claude Code v2.1.144. Added /resume support for background sessions, /model current-session/default behavior, /usage-credits, plugin last-updated display, background-subagent duration notifications, and terminal/background-session reliability fixes. Local verification: claude --version returned 2.1.144 (Claude Code) and npm latest was 2.1.144.6 |
| 2026-05-18 | Synced latest-line evidence through Claude Code v2.1.143. Added Agent View dispatch consistency, stop-hook block cap, PowerShell policy env vars, and noted plugin dependency enforcement, projected plugin context cost, worktree.bgIsolation: "none", background-session model/effort preservation, and /goal evaluator timing fixes. Local verification: claude --version returned 2.1.142 (Claude Code) while npm latest was 2.1.143.6 |
| 2026-05-15 | Synced latest-line evidence through Claude Code v2.1.142. Added terminalSequence, claude agents --cwd, v2.1.142 background-session dispatch flags, Fast-mode Opus 4.7 default override, HTTPS plugin clone env var, workload-identity workspace env var, and the MCP_TOOL_TIMEOUT remote HTTP/SSE fix note. Local verification: claude --version returned 2.1.141 (Claude Code) while npm latest was 2.1.142.6 |
| 2026-05-13 | Synced latest-line evidence through Claude Code v2.1.140. Added /goal, Agent View note, command-hook args, PostToolUse continueOnBlock, and subagent_type on agent hook input. Noted that v2.1.140 fixes ConfigChange, disableAllHooks, and allowManagedHooksOnly behavior. Local verification: claude --version returned 2.1.140 (Claude Code).6 |
| 2026-05-06 | Synced latest-line evidence through Claude Code v2.1.131. No command, config, shortcut, hook, plugin, or env-var table changes were needed because v2.1.131 is a fix release for VS Code Windows activation and Mantle endpoint authentication.6 |
| 2026-05-05 | Synced to CC guide v2.36 (CLI v2.1.126–v2.1.129). Added: --plugin-url for plugin zip loading, .zip support for --plugin-dir, skillOverrides, CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY, CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE, CLAUDE_CODE_FORCE_SYNC_OUTPUT, and v2.1.129 plugin manifest guidance for experimental themes/monitors. Coverage through v2.1.129.6 |
| 2026-04-29 | Synced to CC guide v2.35 (CLI v2.1.117–v2.1.123). Added: alwaysLoad MCP option + startup auto-retry; claude plugin prune and --prune cascade; claude plugin tag; /skills type-to-filter; /theme named themes; /usage merged dialog; vim visual modes (v/V); PowerShell auto-approval; duration_ms on hook input + updatedToolOutput for all tools; prUrlTemplate, wslInheritsWindowsSettings, autoMode.allow $defaults; env vars ANTHROPIC_BEDROCK_SERVICE_TIER, ENABLE_TOOL_SEARCH, CLAUDE_CODE_HIDE_CWD, DISABLE_UPDATES, CLAUDE_CODE_FORK_SUBAGENT; --from-pr accepts GitLab/Bitbucket/GHE PR URLs. Coverage through v2.1.123. |
| 2026-04-19 | Refresh: Sonnet 4.6 1M context now shown at standard $3/$15 (no long-context premium); switched pricing footnote to platform.claude.com/docs/en/about-claude/pricing. Coverage through v2.1.116. |
| 2026-04-04 | Re-derived from CC guide v2.26. Added /powerup, updated /release-notes, removed /vim. Updated Ctrl+X Ctrl+K shortcut. Added 4 hook events (CwdChanged, FileChanged, TaskCreated, PermissionDenied). Updated /cost with per-model breakdown. Coverage through v2.1.92. |
| 2026-03-28 | Initial release of cheat sheet, covering Claude Code CLI through v2.1.85 |
17. References
This cheat sheet is the quick-lookup companion to the full Claude Code CLI guide. For setup walkthroughs, see the Claude Code quickstart. For iOS and macOS projects specifically, see the iOS Agent Development guide, the XcodeBuildMCP integration patterns, and the Apple Ecosystem Series. Last updated October 6, 2026.
-
Claude Code subagents documentation, “Concurrent subagent limit”: 20 running subagents by default, changed with
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS. Read October 6, 2026. ↩ -
Claude Code v2.1.129 release notes, Claude Code v2.1.131 release notes, Claude Code v2.1.139 release notes, Claude Code v2.1.140 release notes, Claude Code v2.1.141 release notes, Claude Code v2.1.142 release notes, Claude Code v2.1.143 release notes, Claude Code v2.1.144 release notes, Claude Code v2.1.145 release notes, Claude Code v2.1.147 release notes, Claude Code v2.1.148 release notes, Claude Code v2.1.149 release notes, Claude Code v2.1.150 release notes, Claude Code Agent View docs, Claude Code Goal docs, and Claude Code CHANGELOG ↩↩↩↩↩↩↩↩↩↩
-
Claude Code v2.1.206 release notes, v2.1.207, v2.1.208, v2.1.210, v2.1.211, v2.1.212, and the Claude Code accessibility docs. July 2026. ↩↩
-
Claude Code v2.1.287 release notes and the Mods overview, October 2026. ↩
-
Claude Code CHANGELOG, v2.1.288 through v2.1.292, the CLI reference, and the environment variables reference, October 2026. ↩
-
Claude Code CHANGELOG, v2.1.293 through v2.1.296, the Claude Haiku 5.5 model overview, the pricing page, the hooks reference, the sub-agents reference, and the environment variables reference, October 2026. ↩↩
-
Claude Code CHANGELOG, v2.1.299, the Settings reference (
idleCompaction, “Requires Claude Code v2.1.290 or later”), and the Environment variables page (CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS,CLAUDE_CODE_DISABLE_FILE_MENTIONS,CLAUDE_CODE_ATTRIBUTION_HEADER,CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS), fetched October 14, 2026; npm dist-tags read the same day: latest 2.1.299 (published October 14, 00:23 UTC), next 2.1.300 (14:27 UTC), stable 2.1.287.CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT,--disallow-tools, and the whole-name MCP rule change are release-notes only as of that date. ↩ -
Claude Code CHANGELOG, v2.1.300, the advisor tool page, the CLI reference (
--advisor <model>), the Settings reference (advisorModel), and the Environment variables page (CLAUDE_CODE_DISABLE_ADVISOR_TOOL,CLAUDE_CODE_GZIP_REQUEST_BODIES), fetched October 14, 2026; npm dist-tags read the same evening: latest and next 2.1.300 (published 14:27 UTC), stable 2.1.292. ↩ -
Claude Code CHANGELOG, v2.1.301 and v2.1.302 and the Interactive mode page (the
%motion, “Requires Claude Code v2.1.301 or later”), fetched October 17, 2026; npm dist-tags read the same day: latest and next 2.1.302 (published October 16, 16:48 UTC; 2.1.301 on October 15, 14:34 UTC), stable 2.1.292. The permission-modes, env-vars, and sub-agents pages still describe the pre-2.1.302-pand fork-mode rules, andCLAUDE_CODE_AUTO_MODE_MODEL,CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS, and the/configrow are release-notes only as of that date. ↩↩↩↩ -
Claude Code CHANGELOG, v2.1.303 through v2.1.310, the Environment variables page (
CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS,CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK,CLAUDE_CODE_AUTO_COMPACT_WINDOW“Suffixed values such as200krequire v2.1.304 or later”), the Settings reference (sandbox.allowNestedUserNamespaces, user or managed), the auto mode configuration page (/auto-mode-setup), the costs page (“Thefshortcut requires Claude Code v2.1.305 or later”), and the ultrareview page (--trust-workspace), fetched October 23, 2026; npm dist-tags read the same day: latest and next 2.1.310 (published October 23, 21:20 UTC), stable 2.1.308. The tool-search default behind a custom base URL and the Pro/Max resume warning are release-notes only as of that date. ↩↩ -
Use Claude Code in the cloud (“The older
--remotespelling still works as a deprecated alias for--cloud”), Automate work with scheduled tasks (“Create scheduled tasks, formerly routines”; “the/routinesalias for/schedule”), Share session output as artifacts (“Templates are in beta. They’re on by default on Pro, Max, and Team plans”; the Disable artifacts table), the Environment variables page (CLAUDE_CODE_ARTIFACT_AUTO_OPEN,CLAUDE_CODE_DISABLE_WORKFLOWS,CLAUDE_CODE_MAX_TURNS;CLAUDE_CODE_WORKFLOWSis no longer listed), the Settings reference (enableWorkflows: “workflows are on unless you’re on the Pro plan, where they’re off”), and Let Claude coordinate ongoing work with Projects, all Claude Code documentation fetched October 26, 2026;claude --helpon 2.1.310 lists--cloud [description|session_id|url]. ↩ -
Claude Code CHANGELOG, v2.1.311 through v2.1.317 and the GitHub releases v2.1.311 (October 26, 2026) through v2.1.317 (November 2, 2026; npm 23:57 UTC); 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”); Model configuration (“Typed in the terminal prompt, the word can also raise that turn to
xhigheffort”; “Requires Claude Code v2.1.311 or later”); All settings (permissions.blockWritesOutsideWorkingDirectories,idleCompaction,disableRemoteControl); Environment variables (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,FORCE_HYPERLINK); Self-hosted environments reference (--hold-idle-file,--max-hold-min). All fetched November 2, 2026. ↩