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

Claude Code: What Are Subagents?

# Subagents are specialized Claude instances that handle complex tasks independently.

author: words: 18886 read_time: 94m updated: 2026-12-01 00:00

Part 3 of New to Claude Code

Subagents are specialized Claude instances that handle complex tasks independently.

Last updated: 2026-12-01 · 94 min read · 18K+ words

$ less claude-code.md

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

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

How Subagents Work

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

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

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

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

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

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

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

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

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

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

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

Built-In Subagent Types

Explore (fast, read-only):

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

General-purpose:

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

Plan:

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

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

Triggering Subagents

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

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

> Have a subagent analyze the database schema thoroughly

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

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

Creating Custom Subagents

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

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

You are a senior security engineer reviewing code for vulnerabilities.

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

Focus on actionable security findings, not style issues.

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

Configuration fields:

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

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

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

CLI-Defined Subagents (v2.1.32+)

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

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

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

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

Managing Subagents

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

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

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

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

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

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

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

Running Agents in Background

For long-running tasks:

> Run a thorough security review in the background

> /tasks   # Check status of running agents

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

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

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

Cross-Session Messaging (v2.1.224)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Advanced Patterns

Chained subagents:

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

Parallel exploration:

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

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

> Resume agent abc123 and continue the analysis

Async Subagents (December 2025)

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

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

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

Permission Denial Resilience (v2.1.0+)

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

Agent Teams (experimental)

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

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

Enable in settings.json:502

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

Or via environment: export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

Architecture:

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

Display modes:

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

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

Key controls (in-process mode):329

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

When to use agent teams vs subagents:

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

Best use cases:

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

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

Spawn an architect teammate to refactor the authentication module.

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

Example prompts:

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

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

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

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

Limitations (experimental):

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

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

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

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

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

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

Agent Skills (December 2025)

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

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

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

References


  1. Claude Code Subagents. Subagents Documentation. December 2025. ↩

  2. Anthropic Engineering. Agent Skills: reusable task-specific modules. December 2025. ↩

  3. Building agents with the Claude Agent SDK, Claude, fetched November 11, 2026: “we’re renaming the Claude Code SDK to the Claude Agent SDK”. ↩

  4. Claude Code CHANGELOG, section 2.1.0, fetched November 11, 2026: “Added support for running skills and slash commands in a forked sub-agent context using context: fork in skill frontmatter”; “Improved subagents (Task tool) to continue working after permission denial, allowing them to try alternative approaches”. VentureBeat covered the release: Claude Code 2.1.0 arrives with smoother workflows and smarter agents, Carl Franzen, January 8, 2026, read in the Internet Archive capture of January 10, 2026: “allowing subagents to try alternative approaches rather than stopping entirely”. ↩

  5. Anthropic. “Introducing Claude Opus 4.6.” February 5, 2026. 1M token context (beta), 128K max output, adaptive thinking, effort controls, agent teams, Terminal-Bench 2.0 highest score, GDPval-AA +144 Elo over GPT-5.2, 500+ zero-day vulnerabilities found. $5/$25 per MTok. See also TechCrunch, CNBC, Anthropic Pricing. ↩

  6. Orchestrate teams of Claude Code sessions, Claude Code documentation, fetched November 11, 2026. The architecture table lists the task list (“Shared list of work items that teammates claim and complete”) and the mailbox (“Messaging system for communication between agents”); the team config is at ~/.claude/teams/{team-name}/config.json and the task list at ~/.claude/tasks/{team-name}/; on dependencies, “it unblocks the dependent tasks without any action from you”. Agent teams were announced with Opus 4.6 on February 5, 2026 (TechCrunch). ↩↩

  7. Claude Code Docs. Hooks reference: prompt-based hooks, agent-based hooks, hook environment variables ($CLAUDE_PROJECT_DIR, $CLAUDE_ENV_FILE), hookSpecificOutput format for PreToolUse. February 2026. Claude Code Docs. Create custom subagents: --agents CLI flag, disallowedTools, maxTurns, mcpServers, delegate permission mode. February 2026. The sub-agents page as captured on February 12, 2026 listed the permissionMode values default, acceptEdits, delegate, dontAsk, bypassPermissions, or plan. The page fetched November 10, 2026 has no delegate value: “default, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual as an alias for default”. ↩

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

  9. Claude Code Docs. “In version 2.1.63, the Task tool was renamed to Agent. Existing Task(...) references in settings and agent definitions still work as aliases.” February 28, 2026. ↩

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

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

  12. Claude Code v2.1.137 through v2.1.139 release notes. v2.1.137 (May 9, 2026): “[VSCode] Fixed extension failing to activate on Windows.” v2.1.138 (May 9, 2026): “Internal fixes.” v2.1.139 (May 11, 2026): Agent View (claude agents), /goal, command-hook args: string[], continueOnBlock for PostToolUse, CLAUDE_PROJECT_DIR for MCP stdio servers, ${CLAUDE_PROJECT_DIR} interpolation in plugin commands, OpenTelemetry active-time fix in --print, and related reliability fixes. See also: Agent View docs and Goal docs. ↩

  13. Claude Code v2.1.172 release notes, Claude Code v2.1.173 release notes, and the Claude Code Changelog (canonical). June 10 to 11, 2026. v2.1.172 (June 10): sub-agents can spawn their own sub-agents, up to 5 levels deep (recursive delegation); when AWS_REGION is unset, the AWS Bedrock region is read from ~/.aws and /status shows the resolved source; /plugin gains a marketplace search bar; the claude_code.lines_of_code.count OTEL metric adds a model attribute. Fixes: stuck sessions on 1M context without credits, image-processing errors, a background sub-agent stuck state, model picker/restrictions, and team-memory recall. v2.1.173 (June 11, UTC): Fable 5 model names carrying a [1m] suffix are automatically normalized/stripped (Fable 5 already includes 1M context by default, so the suffix, meaningful only on Opus/Sonnet, is redundant); plus a Windows fix for a spurious “sandbox dependencies missing” startup warning. ↩

  14. Claude Code v2.1.178 release notes and v2.1.179 release notes, plus the Claude Code Changelog (canonical). June 15 to 16, 2026. v2.1.178: Tool(param:value) permission-rule syntax matching tool input parameters with a * wildcard (e.g. Agent(model:opus)); skills in nested .claude/skills load when working on files there, with <dir>:<name> disambiguation on name clash; nested .claude/ agents, workflows, and output-styles resolve closest-to-cwd on collision (project-scope workflow saves target the closest existing .claude/workflows/); auto mode evaluates subagent spawns with the classifier before launch; compaction now honors the --fallback-model chain on overload/availability errors; MCP server-level specs (mcp__server, mcp__server__*, mcp__*) in subagent disallowedTools no longer silently ignored; /doctor flat-tree layout; /bug requires a description; the workflow prompt keyword triggers only on explicit phrases; plus numerous subagent-transcript, Remote Control, auth/credential, and claude agents fixes. v2.1.179: preserves partial responses on mid-stream connection drops; fixes WSL2 mouse-wheel scrolling (v2.1.172 regression), a sandbox denyRead/allowRead glob over a large tree making the Bash tool description enormous on Linux, the feedback-survey single-digit capture, welcome-screen promo stacking, Ctrl+O subagent transcript viewing, and remote background-task and plugin-loading reliability. v2.1.177: CHANGELOG.md/feed.xml chore only. Fetched June 17, 2026. ↩

  15. Claude Code v2.1.185 release notes and v2.1.186 release notes, plus the Claude Code Changelog (canonical). June 20 to 22, 2026. v2.1.186: claude mcp login <name> and claude mcp logout <name> authenticate/sign out of MCP servers from the CLI without opening /mcp, with --no-browser stdin redirect to complete over SSH; ! bash commands now trigger Claude to respond to the output automatically ("respondToBashCommands": false keeps the prior context-only behavior); Agent(type) deny rules and Agent(x,y) allowed-types restrictions are now enforced for named subagent spawns; background subagents surface permission prompts in the main session (showing which agent asks; Esc denies just that tool) instead of auto-denying, and Esc/Ctrl+C stay responsive while background agents run after the main turn; /review <pr> uses the same review engine as /code-review medium; /workflows agent detail adds status filtering (press f); /plugin Installed adds a Skills section; teammateMode: "iterm2" (with a warning when auto mode can’t find the it2 CLI); /login adds “Claude Platform on AWS - refresh credentials” when awsAuthRefresh is configured; skill frontmatter display-name/default-enabled/fallback/metadata.* accept kebab-case, snake_case, and camelCase, and malformed SKILL.md YAML loads the body with empty metadata instead of failing silently; claude mcp get/claude mcp remove suggest the closest configured server name on a typo; the agent is reminded to compact its MEMORY.md index near the size limit; CLAUDE_CODE_MAX_RETRIES caps at 15 (use CLAUDE_CODE_RETRY_WATCHDOG for unattended sessions).

    Fixes: streaming “Content block not found”/JSON parse errors after sleep-wake; subagent transcript scroll bleeding into the main transcript on exit; background task previews flashing raw tool names; Chrome tab-group isolation with the permissions gate off; duplicated background recaps; Agent(type) deny / Agent(x,y) allowed-types not enforced for named spawns; ~~strikethrough~~ rendering literal tildes; Workflow agent({schema}) subagents looping forever on repeated schema-validation failures (now aborts after 5). v2.1.185: the stream-stall hint now reads “Waiting for API response · will retry in …” (was “No response from API · Retrying in …”) and triggers after 20s of silence instead of 10s. v2.1.184 was not released. Fetched June 23, 2026. ↩

  16. Anthropic, “Introducing Claude Tag,” anthropic.com, June 23, 2026: Introducing Claude Tag. Claude Tag is a Slack-native agent for Claude Enterprise and Team customers: members tag @Claude in a channel to delegate a task, which the agent decomposes into stages and completes asynchronously, posting results back to the channel; a shared single Claude identity lets teammates hand off in-progress work; administrators scope tool, data-source, and memory access per channel with token-spend limits and activity logs; it runs on Opus 4.8. Anthropic reports its product team routes roughly 65% of its code changes through an internal version. Corroborated by contemporaneous coverage: Fortune and TechCrunch, June 23, 2026. Fetched June 24, 2026. ↩↩

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

  18. Claude Code Changelog (canonical) and GitHub releases, July 3 to 6, 2026. v2.1.200 (July 3): the default permission mode is relabeled “Manual” across the CLI, --help, VS Code, and JetBrains, with --permission-mode manual and "defaultMode": "manual" accepted alongside the unchanged default config value; AskUserQuestion dialogs no longer auto-continue by default (opt into an idle timeout via /config); plus fixes for a startup crash on non-array disabledMcpServers/enabledMcpServers, background sessions stopping after sleep/wake, stale daemon.lock handling, subagents cut off by a rate limit before any output now returning cleanly, and tmux 3.4+ synchronized-output flicker. v2.1.201 (July 3): Claude Sonnet 5 sessions no longer use the mid-conversation system role for harness reminders. v2.1.202 (July 6): a “Dynamic workflow size” /config setting (advisory small/medium/large agent counts, not an enforced cap); workflow.run_id and workflow.name OpenTelemetry attributes on workflow-spawned agents; /review <pr> reverts to a fast single-pass review (use /code-review <level> <pr#> for the multi-agent pass at a chosen effort); re-invoking an already-loaded skill no longer appends a duplicate copy of its instructions to context; a clearer MCP error suggesting "type": "http" when a server config has url but no type; plus Remote Control, resume-by-name performance in many-worktree repos, and installer/updater mid-download retry fixes. GitHub release timestamps: v2.1.200 and v2.1.201 published 2026-07-03, v2.1.202 published 2026-07-06. Fetched July 7, 2026. ↩

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

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

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

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

  22. Claude Code v2.1.221 release notes and Claude Code v2.1.222 release notes, August 4, 2026. v2.1.221: VSCode Focus view (Ctrl+Alt+F); mode: "mask" for sandbox credential files on Linux/WSL with sentinel copies and egress substitution, macOS falling back to deny; background sessions commit/push, draft-PR-only-when-warranted, CLAUDE.md git instructions, and end-of-run location reporting; /fork sessions get their own worktree; /plugin install catalog refresh and retry; immediate plugin activation when safe; "." as plugin skills path; zsh [[ ]] regex-conditional permission bypass fix; PowerShell quoted-path permission fix; prompt-audit subcommand; Stats cache-token breakdown; auto-mode prompt-cache reuse. v2.1.222: Remote Control auto-start restricted to user scope; worktree-isolation git fix extended to file edits and Bash in every session type; PreToolUse auto-allow bypass fix for background tasks; SendMessage permission classification; ultraplan removed. Fetched August 5, 2026. ↩

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

  24. Claude Code v2.1.225 release notes and Claude Code v2.1.226 release notes, August 7, 2026 (PST; published 2026-08-08T01:09:26Z and 2026-08-08T02:48:05Z UTC). v2.1.225: cross-machine SendMessage to Remote Control sessions by name with name [ref] listing; gateway spend-limit detail in the usage warning; claude agents workspace trust prompt; OAuth-token, keychain, auto-mode consecutive-block, cross-session parking, self-hosted-runner startup, and Focus view fixes. v2.1.226: bug fixes and reliability improvements only. Fetched August 7, 2026. ↩

  25. Claude Code release notes v2.1.239 (Aug 21), v2.1.240 and v2.1.241 (Aug 22 and 23, both verbatim “Bug fixes and reliability improvements”), and the canonical CHANGELOG.md on August 24, 2026 (latest heading: 2.1.241; npm latest 2.1.241). v2.1.239 verbatim: “Cost estimates (/cost, status line, --max-budget-usd) now include the 1.1× US-only-inference premium for data-residency workspaces”; “Added /claude-api upgrade to migrate Python projects from anthropic 0.x to 1.x”; “Windows: cross-session messaging is now available”; plugins “now show as name@synced … and never override a same-named plugin you installed”; “ListAgents now tells a session its own name”; readline word keys “Alt+F and Ctrl/Option+→ stop at the end of the word, Alt+D deletes to it (Ctrl+Y pastes it back)”. /design and Remote Control status from the Week 34 digest: “The /design skill brings Claude Design’s artboard workflow into the CLI and Claude Code Desktop, built on artifacts … Available on Pro, Max, Team, and Enterprise. Requires v2.1.233 or later”; “Remote Control is also out of research preview.” Both fetched directly August 24, 2026. ↩

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  39. Claude Code release notes v2.1.235 (Aug 18), v2.1.236 (Aug 19), v2.1.237 and v2.1.238 (Aug 20), and the canonical CHANGELOG.md on August 20, 2026 (latest heading: 2.1.238). Quoted behavior verbatim from the notes: spellcheck “using your installed aspell, hunspell, or ispell”; ANTHROPIC_DEFAULT_MODEL “sets the model new sessions start on, while a /model pick still overrides it and persists across restarts (unlike ANTHROPIC_MODEL)”; Concise “leads with results and skips preamble and narration, while doing the work just as thoroughly”; keybindingFlavor "readline" “Ctrl+W in the prompt delete back to the previous whitespace, as in Bash”; headersHelper “runs a command that mints HTTP headers (e.g. a short-lived token)” with install/update-only execution for catalog entries and credential-env stripping for project/plugin/agent scopes; auto mode “Monitor allow rules are now set aside while auto mode is active”; macOS sandbox “wildcard read-deny rules (e.g. **/.env) now take precedence inside allowed read regions… and can’t be bypassed by renaming the denied file.” ↩

  40. Claude Code CHANGELOG, sections 2.1.246 and 2.1.245, fetched August 26, 2026; npm published 2.1.245 on August 25, 2026 at 04:45 UTC and 2.1.246 at 19:17 UTC, with a matching GitHub release for each. Verbatim 2.1.246: “Added a startup warning for Bash allow rules with a wildcard before the subcommand (e.g. Bash(git * main)), since they also match options inserted before the subcommand”; “Added an Auto mode tab to /permissions for viewing and editing auto mode classifier rules”; “Improved /cd: the new directory’s project settings, hooks, .mcp.json servers (behind the usual approval prompt), skills, and agents now take effect right after the move instead of on --resume”; “Improved subagent results: a subagent that stops at its maxTurns limit now returns its output marked as partial, with a hint to continue it via SendMessage, instead of appearing finished”; “/goal: Changed idle sessions to start at most three check-ins on long-running background work per goal; your next message allows three more”; “Fixed Bash permission checks to always require approval for malformed commands with a dangling && or || operator”; “Fixed telemetry and metrics requests to Anthropic carrying the API key configured for a third-party gateway (ANTHROPIC_BASE_URL); a credential is now only sent to its own host”; “Added the turn’s completion time to the end-of-turn duration line”. Verbatim 2.1.245: “Fixed a crash on startup on Linux distributions that ship glibc 2.44 (for example Arch Linux, CachyOS and Fedora Rawhide)”. ↩↩

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

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

  42. Claude Code v2.1.231 and v2.1.232 release notes, August 13, 2026. v2.1.231: MCP OAuth redirect-URI fix for pre-registered clients. v2.1.232: subagent forking on by default with prompt-cache inheritance; @-mention of live sessions with bare-name exact-match SendMessage delivery; unique per-machine session names; /config rows for dialog expiry and cross-session inbound; GitLab token-family redaction, glab credential protection, and GitLab plugin marketplaces; additionalMarketplaces/allowedMarketplaces aliases; gateway desktop-overlay schema validation and policy-entry boot validation; Fable 5 in /advisor; PowerShell, Cygwin-symlink, and nested-git-trust security fixes. Fetched August 14, 2026. ↩

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

  44. Message your other Claude Code sessions, Anthropic Claude Code documentation. Accessed August 8, 2026. Source for the delivery outcomes (delivered/held/refused), crossSessionInbound semantics and the permission-mode-class default, dialogExpiry five-minute default and 100-held cap, the four receiving-side restrictions, transport table and filesystem-visibility rule, -p/bare-mode socket behavior, own-child verification per platform, CLAUDE_CODE_MESSAGING_SOCKET export timing, isolatePeerMachines any-scope-true semantics, loop throttling and the 50 unread-message cap, availability (macOS/Linux/WSL 2; not native Windows; not Bedrock/Claude Platform on AWS/Google Agent Platform/Microsoft Foundry), and the feature-flag dependency on CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, DISABLE_TELEMETRY, DO_NOT_TRACK, and DISABLE_GROWTHBOOK. ↩

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

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

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

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

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

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

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

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

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

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

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

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

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

    Key quotes, 2.1.304: “Added /auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions”; “Added decider: "person" to a mod’s tool.check answer: only the permission dialog or a host’s callback can approve the ask, and it is refused with the mod’s reason where nobody can be asked”; “Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit”; “Changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it”; “Changed mods’ settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization’s setting a ceiling”; “Changed skill hooks: the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session”.

    2.1.305: “Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox’s file protections”; “Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset”; “Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools (a 2.1.304 regression): Claude Code now retries without it”; “Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor”; “Changed allowedMcpServers to stop filtering managed-mcp.json stdio servers that use ${VAR} only in env: one your allowlist left out now loads on upgrade; use deniedMcpServers to keep it off”.

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

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

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

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

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

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

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

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

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

  55. Tools reference, Claude Code documentation, fetched November 10, 2026. Task tools: “The task-tracking tools, TaskCreate, TaskGet, TaskUpdate, TaskList, and TodoWrite, are available by default only on Opus 4.7, Sonnet 4.6, Haiku 4.5, and earlier models”, with CLAUDE_CODE_ENABLE_TODO_TOOLS=1 or claude --allowedTools TaskCreate to opt in, and “In background sessions and in cloud sessions, Claude Code provides the same tools on every model”. WebSearch: “An interactive terminal session has a limit of 200 WebSearch calls”; “on Claude Code v2.1.290 or later, an interactive terminal session’s limit refills at about 100 calls per hour”; “The cap can be raised but not turned off”; “In non-interactive mode with -p and in the Agent SDK, the limit applies per turn, not per session.” ↩

  56. Environment variables, Claude Code documentation, fetched November 10, 2026: CLAUDE_CODE_SESSION_ID: “Set automatically to the current session ID in Bash and PowerShell tool subprocesses, hook command subprocesses, and stdio MCP server subprocesses”; CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION: “Removed in v2.1.224 and now a no-op”; CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: “Set to 1 to disable adaptive reasoning on Opus 4.6 and Sonnet 4.6 and fall back to the fixed thinking budget controlled by MAX_THINKING_TOKENS”; MAX_THINKING_TOKENS: “Claude Code caps it at one token below the request’s max output tokens and never below 1,024 … When unset and thinking is enabled, models with adaptive reasoning choose their own thinking depth, and other models use the cap … For a positive value, Claude Code ignores the number itself on adaptive reasoning models”. ↩

  57. Create custom subagents, Claude Code documentation, fetched November 10, 2026. Limits: “There’s no limit on the total number of subagents Claude can spawn over a session”; “when 20 subagents are running in a session, spawning another with the Agent tool fails with Concurrent subagent limit reached”; “Sessions with ultracode active are exempt”. Frontmatter: model takes “sonnet, opus, haiku, fable, a full model ID such as claude-opus-5-5, or inherit”; permissionMode takes “default, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual as an alias for default. Ignored for plugin subagents”; rows for effort, color and initialPrompt; the model order (per-invocation parameter, frontmatter, CLAUDE_CODE_SUBAGENT_MODEL, main conversation’s model). “The Agent(agent_type) allowlist syntax applies only to an agent running as the main thread with claude --agent.” Explore: “With a Claude subscription, an Anthropic Console account, or an LLM gateway reached through ANTHROPIC_BASE_URL, Explore runs on the Opus model that the opus alias resolves to”; the helper agents claude, statusline-setup and claude-code-guide. Results and resuming: “A background subagent’s results reach Claude as a completion notification in a later turn”; “Claude uses the SendMessage tool with the agent’s ID or name as the to field to resume it.” Fork mode: “on by default from Claude Code v2.1.302, and in an interactive terminal session from v2.1.232.” Workflow limits, from Orchestrate subagents at scale with dynamic workflows, same fetch: “Up to 16 concurrent agents by default” (CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS) and “1,000 agents total per run”. ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  58. All settings, Claude Code documentation, fetched November 10, 2026. workflowSizeGuideline: “"small" asks for fewer than 5 agents, "medium" fewer than 10, and "large" fewer than 50”, with the default “"medium", or "small" when you’re signed in on a Pro plan with Claude Code v2.1.271 or later”. Claude Code CHANGELOG, v2.1.271: “Changed the default dynamic workflow size to small on Pro plans and lowered the medium size guideline from 15 to 10 agents”. ↩

  59. CLI reference, Claude Code documentation, fetched November 10, 2026: claude agents: “Open agent view to monitor and dispatch parallel background sessions … or --json to print active sessions as a JSON array for scripting”; claude remote-control: “Start a Remote Control server to control Claude Code from claude.ai or the Claude app. Alias: claude rc. Runs in server mode (no local interactive session).” claude agents --help on Claude Code 2.1.322, run the same day, describes the command as “Manage background agents”. Re-read November 25, 2026, where the wording had changed: cli-reference, “Open agent view to monitor and dispatch parallel background sessions.”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩↩

  60. Message your other Claude Code sessions, Claude Code documentation, fetched November 10, 2026: “Cross-session messaging requires Claude Code v2.1.224 or later on macOS, Linux, and WSL 2, and v2.1.234 or later on native Windows.” The CHANGELOG, same fetch, lists “Windows: cross-session messaging is now available” under 2.1.239, and its 2.1.234 section has no Windows messaging entry. ↩

  61. Orchestrate teams of Claude Code sessions, Claude Code documentation, fetched November 10, 2026: “Agent teams are experimental and disabled by default”; “use the up and down arrow keys in the agent panel to select a teammate, then press Enter to view its session and type to send it a message. Press x on a selected teammate to stop it. Press Ctrl+T to toggle the task list”; “To cycle a running teammate’s permission mode, press Shift+Tab”; “Switch the lead into plan mode first, then ask for the teammate”; “If you haven’t changed that teammate’s permission mode since it was spawned, Claude Code approves the plan as soon as the request arrives, without the lead reviewing it”; teammateMode: “Teammates run in-process until you change the teammateMode setting.”; “The --teammate-mode flag is experimental and doesn’t appear in claude --help.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩

  62. Extend Claude with skills, Claude Code documentation, fetched November 10, 2026: “Custom commands have been merged into skills. Your existing .claude/commands/ files keep working.” and, in the Glossary, “A file at .claude/commands/deploy.md and one at .claude/skills/deploy/SKILL.md both create /deploy and work the same way; existing command files continue to work.”; “Every skill needs a SKILL.md file”; “the combined description and when_to_use text is truncated at 1,536 characters in the skill listing”; “The allowed-tools field grants permission for the listed tools during the turn that invokes the skill … It does not restrict which tools are available”; “To remove tools from Claude’s available pool while a skill is active, list them in disallowed-tools”; $N is “Shorthand for $ARGUMENTS[N], such as $0 for the first argument or $1 for the second”; a file in a subdirectory of .claude/commands/ is named by the “Subdirectory path relative to commands/ with each / replaced by :”, as in /frontend:component; “In a local terminal session, your skill replaces the built-in command, but not its aliases”; disable-model-invocation: “Set to true to prevent Claude from automatically loading this skill.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩

  63. Claude Code CHANGELOG, fetched November 11, 2026. 2.0.72: “Changed thinking toggle from Tab to Alt+T to avoid accidental triggers”. 2.1.0: “Added hooks support to agent frontmatter, allowing agents to define PreToolUse, PostToolUse, and Stop hooks scoped to the agent’s lifecycle”; “Added hooks support for skill and slash command frontmatter”; “Improved subagents (Task tool) to continue working after permission denial, allowing them to try alternative approaches”. 2.1.7: “Enabled MCP tool search auto mode by default for all users. When MCP tool descriptions exceed 10% of the context window, they are automatically deferred and discovered via the MCPSearch tool instead of being loaded upfront.” ↩

  64. Create custom subagents, Claude Code documentation, fetched November 11, 2026. Explore: “On Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, Claude Platform on AWS, or a Claude apps gateway, Explore stays on Fable.” name: “Unique identifier of at most 256 characters, such as code-reviewer or reviewer-v2”; “Names can’t contain :”. Delegation: “To encourage proactive delegation, include phrases like “use proactively” in your subagent’s description field.” hooks: “Lifecycle hooks scoped to this subagent. Ignored for plugin subagents”; “plugin subagents don’t support the hooks, mcpServers, or permissionMode frontmatter fields”. --agents JSON: “Each top-level key in the JSON is an agent’s name, and its value is that agent’s definition.”; “the agent’s system prompt, equivalent to the markdown body in file-based subagents”; “description, tools, disallowedTools, model, permissionMode, mcpServers, hooks, maxTurns, autoCompactWindow, skills, initialPrompt, memory, effort, background, omitClaudeMd, and isolation”; “color and experimental aren’t accepted here and are ignored rather than rejected.” Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording. ↩↩↩↩↩↩↩

  65. Message your other Claude Code sessions, Claude Code documentation, fetched November 11, 2026. Messages: “A message is a piece of text one Claude writes to another, never the sender’s conversation history or files.”; “The receiving Claude reads the message between tool calls during an active turn. When the receiving session is idle, Claude Code starts a new turn with the message.”; “Permission boundaries stay per-session.” Receiving rules: “a message from another session never counts as your consent”; “Claude Code never executes it”. Inbound default: “When no value applies, Claude Code decides per message from the two sessions’ permission modes.”; “The deadline defaults to five minutes.”; “Claude Code holds at most 100 messages, and past that drops the oldest.”; “A session in the VS Code extension or the Desktop app can’t show the dialog.”; “A -p session can’t show the approval dialog.”; “Claude Code drops the message and reports it as expired to a sender it can reach.”; “Set dialogExpiry to "never" to keep default-held messages until the session ends. A message held by an explicit hold setting doesn’t expire”; in bare mode “Claude Code doesn’t bind the socket”. The listing has rows for “Teammates” and “Your other local sessions”. Names: “When you don’t set one, Claude Code names the session itself.”; Manage sessions, same fetch: “The default combines the working directory’s name with a two-character suffix, for example my-app-3f”. ↩↩↩↩↩

  66. Message your other Claude Code sessions, Claude Code documentation, section “The session’s inbox socket”, fetched November 11, 2026: “/status shows it in the Peer address row. The path is prefixed with uds:.”; “Claude Code exports the variable before any hook runs, including SessionStart.”; “A script posting to its own session’s socket can send {"type":"auth","token":"<token>"} as the first line of its connection, where <token> is the value of CLAUDE_CODE_MESSAGING_TOKEN.”; “Claude Code closes any connection whose first line isn’t a valid auth line and delivers nothing from that connection.”; “On Linux, including inside WSL 2, Claude Code can verify by process evidence even for a child that has already exited. On macOS it can verify that way only while the posting process is still running, and in a container where Claude Code runs as process ID 1 it has no process evidence at all. On native Windows it also has none.”; “On native Windows, that token is the only way Claude Code verifies an own-child message.”; “When Claude Code can verify neither way, it treats the message like any other that asserts no permission class, so a session that bypasses permission prompts holds it for your approval.”; sandboxed commands are governed by “sandbox.network.allowAllUnixSockets and sandbox.network.allowUnixSockets”. ↩↩

  67. Message your other Claude Code sessions, Claude Code documentation, fetched November 11, 2026. Transport: “Over a per-session socket on macOS and Linux, or a per-session named pipe on native Windows, never through Anthropic servers”; “Through Anthropic servers, straight to the cloud session”; “A session inside a container and a session on the host can’t reach each other.”; “A session inside WSL 2 and a native Windows session on the same computer can’t reach each other either.” Cloud sessions: a cloud session “can’t use SendMessage to answer a message from another machine”; “The message still arrives. Read the cloud session’s response in its transcript at claude.ai/code.” isolatePeerMachines: “A true from any settings scope applies, so a checked-in project file can turn the requirement on but not off.” Limits: Claude Code “queues at most 50 accepted messages for Claude to read”. Availability: “Claude can’t find those sessions with an API key or on Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, and Microsoft Foundry.”; “/list-agents isn’t recognized”; “Denying SendMessage also removes messaging to subagents and agent-team teammates, since the same tool serves both.”; “A refusing session shows no visible change”. ↩↩↩↩↩

  68. Create custom subagents, Claude Code documentation, fetched November 11, 2026. Permission modes: “If you leave it unset, the subagent inherits the main conversation’s permission mode.”; “The main conversation’s permission mode decides whether Claude Code uses the value you set”; “When the main conversation is in bypassPermissions, acceptEdits, or auto mode, your subagent runs in that same mode and Claude Code ignores the permissionMode you set.”; “When the main conversation is in plan mode, the subagent stays in plan mode whichever permissionMode you set, unless it runs as an agent team teammate under the agent teams rules.”; “When the main conversation is in default or dontAsk mode, the subagent runs in the permission mode you set. It keeps the main conversation’s permission mode instead in cases such as these”; “You set bypassPermissions. The bypassPermissions exception requires Claude Code v2.1.267 or later.”; “You set auto and auto mode isn’t available to the subagent”. Re-read November 25, 2026; the quotations that had drifted are given in that day’s wording.

    Tools: “To restrict tools, use the tools field as an allowlist or the disallowedTools field as a denylist.”; “Inherits every tool available to subagents if omitted.”; Explore and Plan each list “read-only tools; Write and Edit are denied”. Context and model: “Each subagent starts with a fresh, isolated context window.”; “A fork is a subagent that inherits the entire conversation so far instead of starting fresh.”; the model order is “The per-invocation model parameter”, “The subagent definition’s model frontmatter, where inherit selects the main conversation’s model”, “The CLAUDE_CODE_SUBAGENT_MODEL environment variable, when you set it to a model alias or model ID”, “The main conversation’s model”.

    omitClaudeMd: “managed policy files still load, except for managed subagents”; “Ignored when the agent runs as the main session agent via --agent or the agent setting.” experimental: “ignores 1h while your Claude subscription is using usage credits”. memory: “if you turn auto memory off, with the autoMemoryEnabled setting or CLAUDE_CODE_DISABLE_AUTO_MEMORY, the memory field has no effect”. skills: “You can’t preload skills that set disable-model-invocation: true”. mcpServers: “Claude Code loads an inline MCP server from an agent file in your project’s .claude/agents/ directory, or in an --add-dir directory’s .claude/agents/, only after you trust the folder the agent file came from. Before v2.1.238, Claude Code loaded these servers without checking trust.” Frontmatter hooks: “To let a project-level subagent’s frontmatter hooks run, accept the workspace trust dialog for the folder that contains the agent file. Hooks from user-level subagents in ~/.claude/agents/ and from definitions you pass with --agents run without this step.” Choose a permission mode, same fetch: “With Claude Code v2.1.283 or later, auto mode is the built-in starting permission mode for interactive terminal and VS Code sessions.” ↩↩↩↩↩↩↩↩↩↩↩↩

  69. Continue local sessions from any device with Remote Control, Claude Code documentation, fetched November 11, 2026. --continue: “Bring back the session that the last server in this directory started with, instead of creating a new one.”; “Requires Claude Code v2.1.200 or later.”; “These commands work for about four hours after the server stopped.” claude remote-control --help on Claude Code 2.1.322, run the same day: “Reattach to the session claude remote-control last recorded for this directory (or one of its git worktrees) instead of creating a new one.” Re-read November 25, 2026, where the wording had changed: remote-control, “Bring back the session that the last server in this directory started with, instead of creating a new one.”. Claude Code 2.1.332 prints the same --help text (run November 25, 2026). ↩

  70. Claude Code documentation, fetched November 11, 2026. Claude Code settings: “Settings files are strict JSON: a // comment or a trailing comma is a syntax error, and Claude Code reports the file as a Settings Error at the next start.” Hooks reference, under “Matcher patterns”: a matcher of *, an empty string, or no matcher at all is evaluated as “Match all”; “Bash matches the Bash tool”; “mcp__memory__.* matches every tool from the memory server”; “If you add a matcher field to an event without matcher support, it is silently ignored.”; the row that lists UserPromptSubmit reads “no matcher support” and “always fires on every occurrence”. Orchestrate teams of Claude Code sessions: “Enable them by setting the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS environment variable to 1, either in your shell environment or through settings.json”. ↩

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

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

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

  74. Claude Tag documentation on claude.com, fetched November 25, 2026. Work with Claude Tag: “Claude Tag is available on Team and Enterprise plans, on Anthropic’s first-party service. It isn’t available on individual plans (Free, Pro, Max, or Ultra), or for third-party deployments.”; “It posts a checklist in the thread as it goes, and the whole exchange stays visible to the channel.” Setup overview: “Claude Tag is in public beta. Features and behavior described here may change before general availability.”; “Running setup requires the Owner role in a Claude organization on a Team or Enterprise plan.”; “Channel work draws from your organization’s usage balance; on a Team plan nothing runs until credits are loaded.”; “Running @Claude connect requires a Slack workspace admin”. Migrate from the earlier Claude in Slack: “Your existing Slack app and @Claude handle stay, and no data migrates. What changes is who Claude acts as and who sets it up.”; “The New version starts with no access of its own. GitHub repositories and other connections do not carry over from individual users’ linked accounts”. Overview, also: “Anyone in a Slack channel can tag Claude into a problem and hand it work”. ↩

  75. Claude Code documentation, re-read November 25, 2026 for the passages that changed after the November 10 and 11 fetches. Connect Claude Code to tools via MCP: “Terminal CLI sessions, Agent SDK sessions, and GitHub Actions runs have them on v2.1.304 or later”; “If feature-flag fetching is off, for example on Amazon Bedrock or with telemetry turned off, you need an interactive terminal session on Claude Code v2.1.317 or later”; “A non-fork subagent that the main conversation started, in an interactive terminal session that fetches feature flags, on v2.1.331 or later. The server can’t be one defined in the subagent’s own file”; “MCP tasks can work in the VS Code extension and in local desktop app sessions. In both, you need Claude Code v2.1.331 or later and a session that fetches feature flags.”; “Calls from subagents, except an MCP task in the cloud”. Configure your terminal for Claude Code: “Ghostty, Kitty, iTerm2, WezTerm, Warp, Windows Terminal 1.25 or later | Works without setup”; “gnome-terminal, Windows Terminal before 1.25, JetBrains IDEs such as PyCharm and Android Studio | Not available; use Ctrl+J or \ then Enter”; “/terminal-setup and the first-run terminal setup prompt enable this setting only on macOS 26 and earlier. Both also turn off your profile’s audible bell.” Commands: “/voice [hold\|tap\|off] | Toggle voice dictation, or enable it in a specific mode. Requires a Claude.ai account”; the /code-review row, “Pass --fix to have Claude apply the findings, --comment to post them on the GitHub PR or GitLab merge request, or ultra to run a deep cloud review.”; the page has no /buddy row. Hooks reference: “Setup supports only command hooks. SessionStart supports only command and mcp_tool hooks”. Escalate hard decisions with the advisor tool: “The advisor tool is experimental and requires the Anthropic API, Claude Platform on AWS, or Claude Models on Google Cloud (Anthropic managed). On Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), it requires Claude Code v2.1.300 or later. It isn’t available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.” Create custom subagents: “web-fetch | Haiku, or the model of the conversation that starts it when it can’t use Haiku”; “Claude Code detects the change within a few seconds and the next delegation uses the updated definition, with no restart needed.”; “Claude Code doesn’t watch .claude/agents/ inside directories added with --add-dir or /add-dir”; “Sessions started with --disable-slash-commands don’t watch these directories at all.” Orchestrate teams of Claude Code sessions: “Split panes require tmux or iTerm2: the default in-process mode works in any terminal.”; “No per-teammate permission modes at spawn”. Configure the sandboxed Bash tool: “The sandbox runs on macOS, Linux, and WSL2. On native Windows, Claude Code runs commands unsandboxed.” Commands, /batch <instruction>: “Orchestrate large-scale changes across a codebase in parallel. Researches the codebase, decomposes the work into 5 to 30 independent units, and presents a plan. Once approved, spawns one background subagent per unit in an isolated worktree. Each subagent implements its unit, runs tests, and opens a PR or reports what happened. Requires a git repository or a WorktreeCreate hook that creates the worktrees. Outside a git repository, /batch requires Claude Code v2.1.281 or later.” Orchestrate teams of Claude Code sessions, Permissions: “A new teammate starts with the lead’s mode”; “If the lead is in dontAsk mode, the teammate starts in Manual mode instead.” Environment variables: CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS, “can be running in one session before the Agent tool refuses to spawn another (default: 20)”; CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH, “allowed below the main conversation (default: 3)”; CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION, “Removed in v2.1.224 and now a no-op.” Get started with Claude Code on the web: “Cloud sessions are available on Pro, Max, Ultra, and Team plans, and for Enterprise users with premium seats or Chat + Claude Code seats.” ↩↩↩

  76. Claude Code CHANGELOG, v2.1.333, fetched December 1, 2026 (268 top-level bullets; npm publish 2026-11-30T19:04:51Z, GitHub release 2026-11-30T22:30:49Z). “Changed --allowedTools and --tools to stop the launch on some lists given as several values; put the list in one value, such as --allowedTools "Read,Edit,Write"”; “Added a Built-in tab to /plugin that lists built-in plugins by group with plain names, and shows the ones your organization’s settings lock on or off”; “Changed the terminal progress bar, now following the tab’s busy status, /radio, spinner tips and the tab title’s busy mark into built-in plugins you can turn off in /plugin”; “Changed /stickers, /radio, shipped spinner tips and words, example prompts and the tab title’s mark to need their built-in plugins running; spinnerTipsOverride tips and spinnerVerbs still show”; “Added REVIEW.md support to /code-review: local reviews now follow the root REVIEW.md on your repository’s default branch”; “Changed SDK sessions to end background commands, monitors and wakeups once the host is gone and no subagent runs; CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 opts out; stream-json adds keep_alive lines”; “Changed compaction so that uploaded files, downloads and saved tool results are no longer re-attached afterwards; Claude can read them again when it needs them”; “Changed Code Mode to be available in sessions that have OpenTelemetry tracing on; each tool call that its code makes now gets its own spans”. ↩