modified Escalate hard decisions with the advisor tool View current →
--- a/advisor.md +++ b/advisor.md @@ -75,7 +75,7 @@ Haiku 4.5| Fable, Opus, Sonnet| Haiku can call the advisor but cannot act as one Sonnet 4.6| Fable, Opus, Sonnet| Sonnet 5| Fable, Opus, Sonnet 5| A Sonnet 4.6 advisor is rejected -Opus 4.6 or later| Fable, Opus at or above the main model’s version| An Opus 4.7 main with an Opus 4.6 advisor is rejected +Opus 4.6 or later| Fable, Opus at or above the main model’s version| An Opus 4.7 main with an Opus 4.6 advisor is rejected. An Opus 4.6 main also accepts a Sonnet 5 advisor Fable 5 (v2.1.170+)| Fable| An Opus or Sonnet advisor is rejected Fable 5 requires Claude Code v2.1.170 or later and Fable 5 access, whether it acts as the main model or the advisor. Set the advisor as `opus`, `sonnet`, or `fable`. These aliases resolve to the latest version of each model. You can also pass a full model ID such as `claude-opus-4-8`. Subagents inherit the configured advisor and apply the same pairing check against their own model. Claude Code validates the pairing before sending a request:
modified How the agent loop works View current →
--- a/agent-loop.md +++ b/agent-loop.md @@ -173,7 +173,7 @@ `"low"`| Minimal reasoning, fast responses| File lookups, listing directories `"medium"`| Balanced reasoning| Routine edits, standard tasks `"high"`| Thorough analysis| Refactors, debugging -`"xhigh"`| Extended reasoning depth| Coding and agentic tasks; recommended on Fable 5 and Opus 4.7+ +`"xhigh"`| Extended reasoning depth| Coding and agentic tasks; recommended on Fable 5, Opus 4.7+, and Sonnet 5 `"max"`| Maximum reasoning depth| Multi-step problems requiring deep analysis If you don’t set `effort`, both SDKs leave the parameter unset and defer to the model’s default behavior.
modified Share session output as artifacts View current →
--- a/artifacts.md +++ b/artifacts.md @@ -1,4 +1,4 @@ -Artifacts are in beta. They require a Team or Enterprise plan and a session signed in with [`/login`](</docs/en/setup#authenticate>). See Availability for the full set of requirements. +Artifacts require a Team or Enterprise plan and a session signed in with [`/login`](</docs/en/setup#authenticate>). See Availability for the full set of requirements. An artifact is a live, interactive web page that Claude Code publishes from your session to a private URL on claude.ai. You open it in a browser, and it updates in place as the session continues. Share it from the page header when you want a teammate to see it too. For example, use an artifact to walk a reviewer through a pull request with annotated diffs, build a dashboard from session data, or keep an investigation timeline that fills in as Claude works.
modified Claude Code changelog View current →
--- a/changelog.md +++ b/changelog.md @@ -1,4 +1,43 @@ This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Run `claude --version` to check your installed version. + +​ + +2.1.198 + +July 1, 2026 + + * Claude in Chrome is now generally available + * Added background agent notifications in `claude agents` — sessions that need input or finish now fire the `Notification` hook (`agent_needs_input` / `agent_completed`) + * Added `/dataviz` skill for chart and dashboard design guidance with a runnable color-palette validator + * Gateway: added Claude Platform on AWS (anthropicAws) as an upstream provider; model-not-found responses now advance the failover chain + * Background agents launched from `claude agents` now commit, push, and open a draft PR when they finish code work in a worktree, instead of stopping to ask + * The built-in Explore agent now inherits the main session’s model (capped at opus) instead of running on haiku + * Subagents and context compaction now inherit the session’s extended thinking configuration, improving output quality on delegated tasks + * Fixed brief network drops mid-response aborting the turn — transient errors like ECONNRESET now retry with backoff instead of failing + * Fixed excessive background classifier requests when sandboxed processes repeatedly accessed the same network host + * Fixed background tasks in web, desktop, and VS Code task panels getting stuck on “Running” after they finish or after resuming a session + * Fixed agent teams: a teammate that dies on an API error now reports “failed” to the lead, and messaging a stuck teammate wakes it to retry immediately + * Fixed the `/diff` panel not refreshing when you switch branches or commit outside the session + * Fixed markdown tables overflowing and wrapping their right border when rendered in fullscreen mode + * Fixed Claude Platform on AWS and Mantle sessions dead-ending with “Please run /login” when the STS token expires — `awsAuthRefresh` now runs automatically + * Fixed “no route to host” for local-network hosts in macOS background agent sessions by declaring Local Network entitlements + * Fixed `/desktop` failing with “Cannot determine working directory” after entering and exiting a worktree + * Fixed background agents repeatedly showing “Reconnecting…” every ~52 seconds on macOS while the agents view was open + * Fixed pressing `←` inside `claude attach <id>` exiting to the shell instead of opening the agent view + * Fixed `claude --bg` silently creating an unattachable session when combined with `--print`/`-p`; the conflicting flags are now rejected up front + * Fixed the workflow progress view dropping the earliest agents from the list while the phase counter stayed correct in SDK and desktop-app sessions + * Fixed `.claude/rules/` conditional rules not loading when the target file is reached via a symlinked path + * Fixed Cmd+click not opening URLs in fullscreen mode in Warp on macOS + * Fixed double-click word selection in fullscreen mode to select the entire URL including the scheme + * Fixed plan mode not auto-allowing read-only tool calls when a session starts in plan mode + * Fixed `/branch` deriving its default fork name from the compaction summary instead of the first real prompt + * Improved focus mode: subagents launched in a turn now appear in its activity summary, and completed background notifications fold into a single count + * Improved syntax highlighting accuracy in code blocks, diffs, and file previews by upgrading to highlight.js 11 + * Keyboard shortcut hints now show opt/cmd instead of alt/super when connected from a Mac over SSH + * Improved API retry UX: the error reason is now shown after the second attempt, and a status page link replaces the spinner tip when the API is overloaded + * `/login` now opens the sign-in dialog from the `claude agents` view instead of saying it isn’t available + * Subagents now treat messages from the agent that launched them as normal task direction; an agent’s message is still never treated as the user’s approval + * Removed the `/agents` wizard; ask Claude to create or manage subagents, or edit `.claude/agents/` directly ​
modified Environment variables View current →
--- a/env-vars.md +++ b/env-vars.md @@ -214,7 +214,7 @@ `CLAUDE_CODE_GLOB_TIMEOUT_SECONDS`| Timeout in seconds for Glob tool file discovery. Defaults to 20 seconds on most platforms and 60 seconds on WSL `CLAUDE_CODE_HIDE_CWD`| Set to `1` to hide the working directory in the startup logo. Useful for screenshares or recordings where the path exposes your OS username `CLAUDE_CODE_IDE_HOST_OVERRIDE`| Override the host address used to connect to the IDE extension. By default Claude Code auto-detects the correct address, including WSL-to-Windows routing -`CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`| Skip auto-installation of IDE extensions. Equivalent to setting [`autoInstallIdeExtension`](</docs/en/settings#global-config-settings>) to `false` +`CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`| Set to `1` to skip auto-installation of IDE extensions. Equivalent to setting [`autoInstallIdeExtension`](</docs/en/settings#global-config-settings>) to `false` `CLAUDE_CODE_IDE_SKIP_VALID_CHECK`| Set to `1` to skip validation of IDE lockfile entries during connection. Use when auto-connect fails to find your IDE despite it running `CLAUDE_CODE_MAX_CONTEXT_TOKENS`| Override the context window size Claude Code assumes for the active model. As of v2.1.193, applied directly for model names Claude Code does not recognize as a Claude model; for recognized Claude models it only takes effect when `DISABLE_COMPACT` is also set. Use this when routing to a model through `ANTHROPIC_BASE_URL` whose context window does not match the built-in size for its name `CLAUDE_CODE_MAX_OUTPUT_TOKENS`| Set the maximum number of output tokens for most requests. Defaults and caps vary by model; see [max output tokens](<https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison>). Increasing this value reduces the effective context window available before [auto-compaction](</docs/en/costs#reduce-token-usage>) triggers @@ -366,6 +366,7 @@ `VERTEX_REGION_CLAUDE_4_6_SONNET`| Override region for Claude Sonnet 4.6 when using Vertex AI `VERTEX_REGION_CLAUDE_4_7_OPUS`| Override region for Claude Opus 4.7 when using Vertex AI. Added in v2.1.111 `VERTEX_REGION_CLAUDE_4_8_OPUS`| Override region for Claude Opus 4.8 when using Vertex AI. Added in v2.1.154 +`VERTEX_REGION_CLAUDE_5_SONNET`| Override region for Claude Sonnet 5 when using Vertex AI. Added in v2.1.197 `VERTEX_REGION_CLAUDE_FABLE_5`| Override region for Claude Fable 5 when using Vertex AI. Added in v2.1.170 `VERTEX_REGION_CLAUDE_HAIKU_4_5`| Override region for Claude Haiku 4.5 when using Vertex AI
modified Error reference View current →
--- a/errors.md +++ b/errors.md @@ -683,7 +683,7 @@ Model is restricted by your organization’s settings -Your organization admin has disabled this model in the Claude Console, or it is excluded by an [`availableModels`](</docs/en/model-config#restrict-model-selection>) allowlist in managed settings. When the restricted model was set with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, Claude Code substitutes an allowed model and continues. Typing `/model <name>` for a restricted model is rejected with `Run /model to choose a different model.` and the session keeps its current model. +Your organization admin has disabled this model in the claude.ai admin console, or it is excluded by an [`availableModels`](</docs/en/model-config#restrict-model-selection>) allowlist in managed settings. When the restricted model was set with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, Claude Code substitutes an allowed model and continues. Typing `/model <name>` for a restricted model is rejected with `Run /model to choose a different model.` and the session keeps its current model. Model "claude-opus-4-8" is restricted by your organization's settings. Using claude-sonnet-4-6 instead.
modified Gateway protocol reference View current →
--- a/llm-gateway-protocol.md +++ b/llm-gateway-protocol.md @@ -185,7 +185,7 @@ Picker entries and caching -The picker is the interactive model list that opens when a developer runs `/model` in Claude Code. Each discovered entry is labeled “From gateway” and uses `display_name` when provided. The [`availableModels` managed setting](</docs/en/settings#available-settings>) bounds what discovery can add. A discovered ID is skipped only when it exactly matches a row already in the picker, or when both the discovered and existing IDs resolve to [Fable](</docs/en/model-config#work-with-fable-5>). Built-in rows are keyed on aliases such as `sonnet`, so a discovered ID such as `claude-sonnet-4-6` adds its own “From gateway” row alongside the built-in entry rather than replacing it. Results are cached to `~/.claude/cache/gateway-models.json`, or `%USERPROFILE%\.claude\cache\gateway-models.json` on Windows, and refreshed on each startup. If the request fails or the gateway doesn’t implement `/v1/models`, the picker falls back to the cached list from the previous startup or to the built-in model list. If your gateway serves Claude models under aliases that don’t match the discovery filter, developers can add those aliases manually with the [model configuration](</docs/en/model-config>) variables. +The picker is the interactive model list that opens when a developer runs `/model` in Claude Code. Each discovered entry is labeled “From gateway” and uses `display_name` when provided. The [`availableModels` managed setting](</docs/en/settings#available-settings>) bounds what discovery can add. A discovered ID is skipped when it exactly matches a row already in the picker, or when both the discovered and existing IDs resolve to [Fable](</docs/en/model-config#work-with-fable-5>). As of Claude Code v2.1.197, a discovered explicit ID is also folded into a built-in entry when both resolve to the same model. Built-in rows are keyed on aliases such as `sonnet`, so a discovered explicit ID of the model the alias currently resolves to, such as `claude-sonnet-5`, collapses into the `sonnet` row, while an ID the alias doesn’t resolve to, such as `claude-sonnet-4-6`, still adds its own “From gateway” row alongside the built-in entry. Results are cached to `~/.claude/cache/gateway-models.json`, or `%USERPROFILE%\.claude\cache\gateway-models.json` on Windows, and refreshed on each startup. If the request fails or the gateway doesn’t implement `/v1/models`, the picker falls back to the cached list from the previous startup or to the built-in model list. If your gateway serves Claude models under aliases that don’t match the discovery filter, developers can add those aliases manually with the [model configuration](</docs/en/model-config>) variables. ##
modified Model configuration View current →
--- a/model-config.md +++ b/model-config.md @@ -202,7 +202,7 @@ Organization model restrictions -Organization admins restrict which models members can run by disabling individual models in the Claude Console. Use this Console toggle instead of `availableModels` when your members authenticate through the Anthropic API and you want one org-wide switch without deploying settings files. This restriction is delivered with the account’s entitlements when Claude Code authenticates, separate from any `availableModels` list in settings, and the server enforces the same restriction independently when a session is created. Requires Claude Code v2.1.187 or later. A restricted model is hidden from the `/model` picker. Selecting it by name with `--model`, the `ANTHROPIC_MODEL` environment variable, or the `model` setting shows the notice `Model "<name>" is restricted by your organization's settings. Using <model> instead.` and the session starts on an allowed model. Typing `/model <name>` for a restricted model is rejected with `Model '<name>' is restricted by your organization's settings. Run /model to choose a different model.` and the session keeps its current model. Both restrictions apply together: a model is selectable only when it is permitted by `availableModels` and not restricted by the organization. Organization restrictions are delivered to sessions on the Anthropic API and [LLM gateway](</docs/en/llm-gateway>) deployments. Sessions on Bedrock, Vertex AI, Foundry, and Claude Platform on AWS do not receive them, so use `availableModels` on those providers instead. +Organization admins on Claude Enterprise plans restrict which models members can run by disabling individual models in the claude.ai admin console. This restriction is delivered with the account’s entitlements when Claude Code authenticates, separate from any `availableModels` list in settings, and the server enforces the same restriction independently when a session is created. Requires Claude Code v2.1.187 or later. The restriction applies when a member signs in or uses their own API key. Organization-scoped credentials, such as organization service keys, are not tied to a user, so the restriction does not apply to them. The Claude Console has no model restriction control. Organizations without a Claude Enterprise plan, including those whose members authenticate through the Anthropic API, restrict models with `availableModels` in [managed settings](</docs/en/settings#settings-files>) instead, adding `enforceAvailableModels` to cover the Default option. These settings are enforced by Claude Code itself, not by the server. A restricted model is hidden from the `/model` picker. Selecting it by name with `--model`, the `ANTHROPIC_MODEL` environment variable, or the `model` setting shows the notice `Model "<name>" is restricted by your organization's settings. Using <model> instead.` and the session starts on an allowed model. Typing `/model <name>` for a restricted model is rejected with `Model '<name>' is restricted by your organization's settings. Run /model to choose a different model.` and the session keeps its current model. Both restrictions apply together: a model is selectable only when it is permitted by `availableModels` and not restricted by the organization. Organization restrictions are delivered to sessions on the Anthropic API and [LLM gateway](</docs/en/llm-gateway>) deployments. Sessions on Bedrock, Vertex AI, Foundry, and Claude Platform on AWS do not receive them, so use `availableModels` on those providers instead. ##
modified Monitoring View current →
--- a/monitoring-usage.md +++ b/monitoring-usage.md @@ -606,7 +606,7 @@ * `event.sequence`: monotonically increasing counter for ordering events within a session * `response_length`: Length of the response text in characters * `response`: Response text, truncated at 60 KB. Redacted to `<REDACTED>` by default. Set `OTEL_LOG_ASSISTANT_RESPONSES=1` to include it. When `OTEL_LOG_ASSISTANT_RESPONSES` is unset, `OTEL_LOG_USER_PROMPTS` controls it instead, so set `OTEL_LOG_ASSISTANT_RESPONSES=0` to keep responses redacted while prompt logging is on - * `model`: Model identifier (for example, “claude-sonnet-4-6”) + * `model`: Model identifier (for example, “claude-sonnet-5”) * `request_id`: Anthropic API request ID from the response’s `request-id` header. Present only when the API returns one * `query_source`: Subsystem that issued the request, such as `"repl_main_thread"`, `"compact"`, or a subagent name
modified Claude Code settings View current →
--- a/settings.md +++ b/settings.md @@ -327,7 +327,7 @@ Key| Description| Example ---|---|--- `autoConnectIde`| **Default** : `false`. Automatically connect to a running IDE when Claude Code starts from an external terminal. Appears in `/config` as **Auto-connect to IDE (external terminal)** when running outside a VS Code or JetBrains terminal. The [`CLAUDE_CODE_AUTO_CONNECT_IDE`](</docs/en/env-vars>) environment variable overrides this when set| `true` -`autoInstallIdeExtension`| **Default** : `true`. Automatically install the Claude Code IDE extension when running from a VS Code terminal. Appears in `/config` as **Auto-install IDE extension** when running inside a VS Code or JetBrains terminal. You can also set the [`CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`](</docs/en/env-vars>) environment variable| `false` +`autoInstallIdeExtension`| **Default** : `true`. Automatically install the Claude Code IDE extension when running from a VS Code terminal. Appears in `/config` as **Auto-install IDE extension** when running inside a VS Code or JetBrains terminal. You can also set the [`CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`](</docs/en/env-vars>) environment variable to `1`| `false` `externalEditorContext`| **Default** : `false`. Prepend Claude’s previous response as `#`-commented context when you open the external editor with `Ctrl+G`. Appears in `/config` as **Show last response in external editor**| `true` `teammateDefaultModel`| Default model for [agent team](</docs/en/agent-teams>) teammates when the spawn prompt doesn’t specify one. Set to a model alias such as `"sonnet"`, or `null` to inherit the lead’s current `/model` selection. Appears in `/config` as **Default teammate model**| `"sonnet"`
modified Tools reference View current →
--- a/tools-reference.md +++ b/tools-reference.md @@ -318,7 +318,7 @@ WebSearch runs a query against Anthropic’s [web search](<https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool>) backend and returns result titles and URLs. It does not fetch the result pages. To read a page Claude finds in search results, it follows up with WebFetch. The tool may issue up to eight backend searches per call, refining the search internally before returning results. Claude can scope results with `allowed_domains` to include only certain hosts, or `blocked_domains` to exclude them. The two lists can’t be combined in a single call. The search backend is not configurable. To search with a different provider, add an [MCP server](</docs/en/mcp>) that exposes a search tool. WebSearch permission rules take no specifier. A bare `WebSearch` entry in `allow` or `deny` is the only form. -WebSearch is available on the Claude API and Microsoft Foundry. On Google Cloud Vertex AI it works with Claude 4 models, including Opus, Sonnet, and Haiku. Amazon Bedrock does not expose the server-side web search tool. +WebSearch is available on the Claude API and Microsoft Foundry. On Google Cloud Vertex AI it works with Claude 4 and later models, including Opus, Sonnet, and Haiku. Amazon Bedrock does not expose the server-side web search tool. ##
modified Agent SDK reference - TypeScript View current →
--- a/typescript.md +++ b/typescript.md @@ -3133,13 +3133,27 @@ type ModelInfo = { value: string; + resolvedModel?: string; displayName: string; description: string; supportsEffort?: boolean; supportedEffortLevels?: ("low" | "medium" | "high" | "xhigh" | "max")[]; supportsAdaptiveThinking?: boolean; supportsFastMode?: boolean; - }; + supportsAutoMode?: boolean; + }; + +Field| Type| Description +---|---|--- +`value`| `string`| Model identifier to pass in API calls +`resolvedModel`| `string | undefined`| Canonical wire model ID that this entry’s `value` resolves to. An alias entry such as `sonnet` resolves to an explicit model ID such as `claude-sonnet-5`, so a host can match a stored explicit model ID against the alias entry that covers it. Requires Claude Code v2.1.197 or later. +`displayName`| `string`| Human-readable display name +`description`| `string`| Description of the model’s capabilities +`supportsEffort`| `boolean | undefined`| Whether this model supports effort levels +`supportedEffortLevels`| `("low" | "medium" | "high" | "xhigh" | "max")[] | undefined`| Effort levels this model accepts +`supportsAdaptiveThinking`| `boolean | undefined`| Whether this model supports adaptive thinking, where Claude decides when and how much to think +`supportsFastMode`| `boolean | undefined`| Whether this model supports fast mode +`supportsAutoMode`| `boolean | undefined`| Whether this model supports auto mode ###
modified Use Claude Code in VS Code View current →
--- a/vs-code.md +++ b/vs-code.md @@ -574,7 +574,7 @@ 2. Search for “Claude Code” 3. Click **Uninstall** -To also remove extension data and reset all settings, delete the extension’s storage directory for your platform. On macOS: +Running `claude` in a VS Code integrated terminal reinstalls the extension automatically. To keep it uninstalled, turn off **Auto-install IDE extension** in `/config`, or set [`autoInstallIdeExtension`](</docs/en/settings#global-config-settings>) to `false`. You can also set the [`CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`](</docs/en/env-vars>) environment variable to `1`. To also remove extension data and reset all settings, delete the extension’s storage directory for your platform. On macOS: rm -rf ~/Library/"Application Support"/Code/User/globalStorage/anthropic.claude-code