modified Escalate hard decisions with the advisor tool View current →
--- a/advisor.md +++ b/advisor.md @@ -90,10 +90,11 @@ Opus 4.7 or Opus 4.8| Fable, Opus 4.7 or later, Sonnet 5.5 Sonnet 5.5| Fable, Opus 5 or later, Sonnet 5.5 Opus 5 or Opus 5.5| Fable, Opus 5 or later -Fable 5| Fable 5.1 or Fable 5 -Fable 5.1| Fable 5.1 - -Fable 5.1 requires Claude Code v2.1.257 or later. Fable models require [Fable access](</docs/en/model-config#work-with-fable>). Sonnet 5.5 as the advisor for an Opus 4.7 or Opus 4.8 main model requires Claude Code v2.1.287 or later. Haiku 5.5 as the main model or as the advisor requires Claude Code v2.1.293 or later. Set the advisor as `fable`, `opus`, or `sonnet`. These aliases resolve to Claude Code’s [built-in default version](</docs/en/model-config#model-aliases>) for each model family, which advances with new Claude Code releases. You can also pass a full model ID such as `claude-opus-5-5` or `claude-haiku-5-5`. Haiku 4.5 can call the advisor but can’t act as one. Subagents inherit the configured advisor and apply the same pairing check against their own model. Claude Code validates the pairing before sending a request, and the API validates it again: +Fable 5| Fable 5.2, Fable 5.1, or Fable 5 +Fable 5.1| Fable 5.2 or Fable 5.1 +Fable 5.2| Fable 5.2 + +Fable 5.2 requires Claude Code v2.1.321 or later, and Fable 5.1 requires v2.1.257 or later. Fable models require [Fable access](</docs/en/model-config#work-with-fable>). Sonnet 5.5 as the advisor for an Opus 4.7 or Opus 4.8 main model requires Claude Code v2.1.287 or later. Haiku 5.5 as the main model or as the advisor requires Claude Code v2.1.293 or later. Set the advisor as `fable`, `opus`, or `sonnet`. These aliases resolve to Claude Code’s [built-in default version](</docs/en/model-config#model-aliases>) for each model family, which advances with new Claude Code releases. You can also pass a full model ID such as `claude-opus-5-5` or `claude-haiku-5-5`. Haiku 4.5 can call the advisor but can’t act as one. Subagents inherit the configured advisor and apply the same pairing check against their own model. Claude Code validates the pairing before sending a request, and the API validates it again: * For an advisor that ranks below the main model, Claude Code doesn’t attach it to the main model’s requests. The `/advisor` command output and a notification show this; see [Advisor is less capable than the current main model](</docs/en/errors#advisor-is-less-capable-than-the-current-main-model>). Subagents whose own model satisfies the pairing may still use the advisor. * If the API refuses the pairing of an advisor that Claude Code attached, Claude Code resends that request without the advisor. The conversation continues without one, so you see no error and get no advisor calls. If you then pick a different advisor with `/advisor`, it takes effect after `/clear` or `/compact` and in new sessions.
modified Best practices for Claude Code View current →
--- a/best-practices.md +++ b/best-practices.md @@ -419,14 +419,14 @@ Change the model and effort -[Effort](</docs/en/model-config#adjust-effort-level>) is the main control for how long Claude thinks, and it replaces most of what people used to do with prompt wording. Claude Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium`, which is plenty for everyday feature work with a clear scope. The times you’d move it, with `/effort` in the session: +[Effort](</docs/en/model-config#adjust-effort-level>) is the main control for how long Claude thinks, and it replaces most of what people used to do with prompt wording. Claude Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium`, which is plenty for everyday feature work with a clear scope. The times you’d move it, with `/effort` in the session: * Raise it with `/effort high` or `/effort xhigh` when getting it right depends on cases that are quick to overlook. Think of a bug in code you didn’t write, a flaky test, or a schema change where Claude has to find every reader of the old shape. Claude then checks more edge cases and verifies more of its work before answering, which is where the extra time and tokens go. * Lower it with `/effort low` when you’re going back and forth quickly and reviewing each result anyway: brainstorming, a first sketch, a rename across a few files. Claude gets you a starting point sooner, and since you’re steering every step, the extra deliberation wouldn’t have changed much besides the wait. * Save `max` for a hard problem you want Claude to work through without you, like hunting for a security vulnerability. On ordinary tasks it tends to overthink, so you pay more for an answer that may be no better than `high` would have given you. * When only the next message needs it, like one tricky question in the middle of otherwise routine work, put [`ultrathink`](</docs/en/model-config#use-ultrathink-for-one-off-deep-reasoning>) in that prompt instead of changing the setting. -For the model itself, the default Opus 5.5 handles most coding well and Sonnet costs less on routine work. [Claude Fable 5.1](</docs/en/model-config#work-with-fable>) is there when you select it explicitly with `/model fable`, and Haiku is a good fit for subagents doing simple jobs. [Model configuration](</docs/en/model-config>) has the full list per plan and provider. +For the model itself, the default Opus 5.5 handles most coding well and Sonnet costs less on routine work. To use [Claude Fable 5.2](</docs/en/model-config#work-with-fable>), run `/model fable`. Haiku is a good fit for subagents doing simple jobs. [Model configuration](</docs/en/model-config>) has the full list per plan and provider. ###
modified Give Claude custom tools View current →
--- a/custom-tools.md +++ b/custom-tools.md @@ -54,7 +54,7 @@ Weather tool example -This example defines a `get_temperature` tool and wraps it in an MCP server, without passing the server to `query`. To run the tool, see Call a custom tool below. +This example defines a `get_temperature` tool and wraps it in an MCP server, without passing the server to `query`. To run the tool, see Call a custom tool. Python @@ -148,7 +148,7 @@ * **TypeScript** : add `.optional()` to the Zod field. * **Python** : the dict schema requires every key. Use the JSON Schema form, leave the parameter out of `required`, and read it with `args.get()`. For a typed schema with optional keys, see [TypedDict class](</docs/en/agent-sdk/python#input-schema-options>). -The `get_precipitation_chance` tool below shows both patterns. +The `get_precipitation_chance` tool shows both patterns. ### @@ -156,7 +156,12 @@ Call a custom tool -Pass the MCP server you created to `query` via the `mcpServers` option, and list each tool’s [fully qualified name](</docs/en/agent-sdk/mcp#tool-naming-convention>) in `allowedTools` so the tool runs without a permission prompt. That name is `mcp__{server_name}__{tool_name}`, where `{server_name}` is the key you give the server in `mcpServers`. If the key contains characters such as `.` or spaces, replace them with `_` when you write `{server_name}`. These snippets reuse the `weatherServer` from the weather tool example to ask Claude what the weather is in a specific location. +To call a custom tool, follow these steps: + + 1. Pass the MCP server you created to `query` using the `mcpServers` option. + 2. List the tool’s [fully qualified name](</docs/en/agent-sdk/mcp#tool-naming-convention>) in `allowedTools` to [pre-approve](</docs/en/agent-sdk/permissions#allow-and-deny-rules>) its calls. That name follows the convention `mcp__{server_name}__{tool_name}`, where `{server_name}` is the key you give the server in `mcpServers`. If the key contains characters such as `.` or spaces, replace them with `_` when you write `{server_name}`. + +These snippets reuse the `weatherServer` from the weather tool example to ask Claude what the weather is in a specific location. Python @@ -328,8 +333,8 @@ ---|---|--- `readOnlyHint`| `false`| Tool does not modify its environment. Controls whether the tool can be called in parallel with other read-only tools. `destructiveHint`| `true`| Tool may perform destructive updates. Set it to `true` explicitly on any tool you mark `always_ask`. -`idempotentHint`| `false`| Repeated calls with the same arguments have no additional effect. Informational only. -`openWorldHint`| `true`| Tool reaches systems outside your process. Informational only. +`idempotentHint`| `false`| Repeated calls with the same arguments have no additional effect. +`openWorldHint`| `true`| Tool reaches systems outside your process. Annotations are metadata, not enforcement. A tool marked `readOnlyHint: true` can still write to disk if that’s what the handler does. Keep the annotation accurate to the handler. This example adds `readOnlyHint` to the `get_temperature` tool from the weather tool example. @@ -377,16 +382,19 @@ Configure allowed tools -The `tools` option and the allowed/disallowed lists affect two layers: availability, which controls whether a tool appears in Claude’s context, and permission, which controls whether a call is approved once Claude attempts it. `tools` and bare-name `disallowedTools` entries change availability. `allowedTools` and scoped `disallowedTools` rules change permission. If you name one of the [task-tracking tools](</docs/en/agent-sdk/todo-tracking#model-availability>) in `allowedTools`, Claude Code also opts the session in. +You control two layers with the `tools`, `allowedTools`, and `disallowedTools` options: + + * **Availability** : whether a tool appears in Claude’s context. To change it, use the `tools` option or list a bare built-in name such as `"Bash"` in `disallowedTools`. + * **Permission** : whether Claude Code approves a call when Claude makes it. To change it, use `allowedTools` or a scoped `disallowedTools` rule such as `"Bash(rm *)"`. Option| Layer| Effect ---|---|--- `tools: ["Read", "Grep"]`| Availability| Only the listed built-ins are in Claude’s context. Unlisted built-ins are removed. MCP tools are unaffected. `tools: []`| Availability| All built-ins are removed. Claude can only use your MCP tools. -allowed tools| Permission| Listed tools run without a permission prompt. Other unlisted tools remain available; calls go through the [permission flow](</docs/en/agent-sdk/permissions>). -disallowed tools| Both| A bare tool name such as `"Bash"` removes the tool from Claude’s context, the same as omitting it from `tools`. A scoped rule such as `"Bash(rm *)"` leaves the tool in context and denies only calls that match [as written](</docs/en/permissions#bash-rule-limits>). - -To remove a built-in entirely, omit it from `tools` or list its bare name in `disallowedTools` (Python: `disallowed_tools`); both keep the tool out of context so Claude never attempts it. A scoped `disallowedTools` rule blocks matching calls but leaves the tool visible, so Claude may waste a turn trying it. See [Configure permissions](</docs/en/agent-sdk/permissions>) for the full evaluation order. +allowed tools| Permission| Listed tools are pre-approved, apart from the [calls that no allow rule approves](</docs/en/agent-sdk/permissions#calls-an-allow-rule-never-approves>). Calls to tools you leave out of the list go through the [permission flow](</docs/en/agent-sdk/permissions>). +disallowed tools| Both| A bare built-in name such as `"Bash"` removes the tool from Claude’s context. A scoped rule such as `"Bash(rm *)"` leaves the tool in context and denies the calls that match it [as written](</docs/en/permissions#bash-rule-limits>). + +To remove a built-in from Claude’s context, omit it from `tools` or list its bare name in `disallowedTools` (TypeScript) or `disallowed_tools` (Python). For the full evaluation order, see [Configure permissions](</docs/en/agent-sdk/permissions#how-permissions-are-evaluated>). ### @@ -655,7 +663,7 @@ Return structured data -`structuredContent` is an optional JSON object on the result, separate from the `content` array. Use it to return raw values that Claude can read as exact fields instead of parsing them out of a text string or image. When `structuredContent` is set, Claude receives the JSON plus any image or resource blocks from `content`. Text blocks in `content` are not forwarded, since they are assumed to duplicate the structured data. The example below renders a chart as an image block and returns the data points behind it in `structuredContent` from the same handler. In the snippet, `chartPngBuffer` is a `Buffer` holding the rendered PNG bytes. +`structuredContent` is an optional JSON object on the result, separate from the `content` array. Use it to return raw values that Claude can read as exact fields instead of parsing them out of a text string or image. For Python handlers, see Structured content in Python. When a TypeScript `tool()` handler sets `structuredContent`, Claude receives the JSON plus the image and resource blocks in `content`, and the text blocks in `content` don’t reach Claude. The example below renders a chart as an image block and returns the data points behind it in `structuredContent` from the same handler. In the snippet, `chartPngBuffer` is a `Buffer` holding the rendered PNG bytes. TypeScript
modified Desktop application View current →
--- a/desktop.md +++ b/desktop.md @@ -122,7 +122,7 @@ Preview your app -Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane. +Claude can start a dev server and open it in the Browser pane to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. In a local session, click an HTML, PDF, or video path in the chat to open it in the Browser pane. In an SSH or WSL session, you can preview an HTML file. In an SSH session, Claude doesn’t have the Browser pane’s tools, so it can’t open your app in the pane or auto-verify its changes. The pane’s **Dev servers** menu and your configured preview servers aren’t available either. To look at the app yourself, start its server on the remote machine, then forward its port to your computer. @@ -135,6 +135,35 @@ In an SSH session, you lose the pane’s cookies when you quit Desktop. You can’t change that with **Keep cookies**. Claude creates the initial server configuration based on your project. If your app uses a custom dev command, edit `.claude/launch.json` to match your setup. See Configure preview servers for the full reference. To clear the Browser’s saved data, select **Clear browsing data** in the Browser pane’s **⋮** menu. To turn the Browser off entirely, turn off **Browser tools** in **Settings > Code** or **Settings > Claude Code**. +#### + +​ + +Preview HTML files in SSH and WSL sessions + +In an SSH or [WSL](</docs/en/desktop-wsl>) session, click an HTML file’s path in the chat to preview the file in the Browser pane. If charts or tables in the preview stay empty, the notice above it tells you why: + + * **`This preview doesn't load anything from the web`** : scripts written in the file run, but a chart that loads its library from the web stays empty. If the notice has an **Export** button, select it and open the saved file in your browser, where content from the web loads. + * **`This preview doesn't run scripts or load anything from the web`** : before Claude Desktop v4.23118.0, these previews didn’t run scripts, so update Desktop and open the file again. If Desktop is up to date and the notice stays, restart Desktop. If it still stays, scripts may be off for your organization, so ask your administrator. + +If you closed the notice, open the file again to bring it back. + +#### + +​ + +Turn off scripts in SSH and WSL previews for your organization + +To keep HTML previews in SSH and WSL sessions from running scripts, set the `disableBrowserExternalNavigation` managed setting to `true`. With this setting, users also can’t browse external sites in the Browser pane. Set it in your [server-managed settings](</docs/en/server-managed-settings>), or in a [Claude Code MDM policy or managed settings file](</docs/en/managed-settings#where-each-mechanism-stores-the-policy>) on the computer that runs Desktop. Desktop doesn’t read it from the remote machine or the WSL distribution. With a [third-party provider](</docs/en/third-party-integrations>), use the MDM policy or the file. + +If the computer that runs Desktop receives no Claude Code managed settings yet, also set [`parentSettingsBehavior`](</docs/en/settings-reference#parentsettingsbehavior>) to `"merge"` in the managed settings that you create. Desktop passes its own policy to Claude Code, and without `"merge"`, Claude Code [ignores that policy](</docs/en/managed-settings#let-an-embedding-host-add-policy>) once the computer has managed settings. On Windows, if you create a managed settings file, users also lose WSL sessions until you [allow them](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>).If the computer already receives Claude Code managed settings, add the setting to those, and leave `parentSettingsBehavior` as it is there. On a computer with more than one MDM policy or managed settings file, use the [highest-ranked one](</docs/en/managed-settings#how-claude-code-combines-managed-sources>). + +Then have users restart Desktop to make sure that the setting applies, and tell them what to expect: + + * **Files they open** : the preview doesn’t run scripts, so charts and tables that scripts draw stay empty + * **Previews that are running scripts** : if Desktop picks up the setting before the restart, they close. Users see `This preview closed because scripts are turned off for previews. Open the file again to view it without scripts.` + * **Files they export** : if a user exports a file and opens it in a browser, its scripts run there, with or without this setting + ### ​ @@ -168,7 +197,7 @@ Restrict external browsing for your organization -The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist; localhost dev servers and file previews keep working. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude. +The Browser follows the same [site allowlist and blocklist controls](<https://support.claude.com/en/articles/13065128-claude-in-chrome-admin-controls>) as the Claude in Chrome extension. If your organization already configured those lists for the extension, the Browser respects them automatically. Administrators can also turn off Claude’s tools on external pages with the `browserExternalPageTools` managed setting. With tools disabled, users can still visit external sites; Claude’s tools can’t read or act on them. To turn off external browsing entirely, set the `disableBrowserExternalNavigation` managed setting to `true`. This blocks all external navigation in the Browser, including sites on your organization’s allowlist. Localhost dev servers and file previews keep working, but HTML previews in SSH and WSL sessions don’t run scripts. Use `browserExternalPageTools` to let users keep browsing external sites without Claude’s tools, and `disableBrowserExternalNavigation` to block external sites for both users and Claude. ### @@ -2147,7 +2176,7 @@ `autoMode`| customize what the auto mode classifier trusts and blocks across your organization. See [Configure auto mode](</docs/en/auto-mode-config>). `browserExternalPageTools`| set to `"disabled"` to prevent Claude from using tools to read or act on external pages in the Browser pane. Users can still navigate to external sites themselves, and local dev server previews are unaffected. `disableMobileSimulatorTools`| set to `true` to block Claude’s tools for controlling and capturing devices in the [iOS Simulator pane](</docs/en/desktop-ios-simulator#turn-off-simulator-access>). The pane stays usable for the user’s own taps; only Claude’s access is removed. The value must be the JSON boolean `true`; the string `"true"` is ignored. -`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean `true`; the string `"true"` is ignored. +`disableBrowserExternalNavigation`| set to `true` to turn off external browsing in the Browser pane entirely. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. HTML previews in SSH and WSL sessions don’t run scripts. The value must be the JSON boolean `true`; the string `"true"` is ignored. `sshConfigs`| pre-configure SSH connections that appear in the environment selector. Users can’t delete managed connections or edit anything but their own **Worktree folder**. `sshHostCommands`| give users SSH connections whose host comes from a command, alongside their own. Desktop reads it from the managed settings file or MDM policy on the computer, and ignores it in [server-managed settings](</docs/en/server-managed-settings>). Requires Claude Desktop v3.6556.0 or later on macOS or Linux, or v4.16336.0 or later on Windows, signed in with a Claude account. On Windows, Desktop also has to connect through the OpenSSH client. `sshHostAllowlist`| restrict SSH sessions to hosts whose resolved hostname matches one of these patterns. Read from managed settings only.
modified Environment variables View current →
--- a/env-vars.md +++ b/env-vars.md @@ -511,6 +511,7 @@ `VERTEX_REGION_CLAUDE_5_SONNET`| Override region for Claude Sonnet 5 when using Google Cloud’s Agent Platform. Added in v2.1.197 `VERTEX_REGION_CLAUDE_FABLE_5`| Override region for Claude Fable 5 when using Google Cloud’s Agent Platform. Added in v2.1.170 `VERTEX_REGION_CLAUDE_FABLE_5_1`| Override region for Claude Fable 5.1 when using Google Cloud’s Agent Platform. Added in v2.1.257 +`VERTEX_REGION_CLAUDE_FABLE_5_2`| Override region for Claude Fable 5.2 when using Google Cloud’s Agent Platform. Added in v2.1.321 `VERTEX_REGION_CLAUDE_HAIKU_4_5`| Override region for Claude Haiku 4.5 when using Google Cloud’s Agent Platform `VERTEX_REGION_CLAUDE_HAIKU_5_5`| Override region for Claude Haiku 5.5 when using Google Cloud’s Agent Platform. Added in v2.1.293
modified Error reference View current →
--- a/errors.md +++ b/errors.md @@ -883,7 +883,7 @@ Fable limit reached · continuing on Fable 5.1 uses usage credits, and the prompt to confirm went unanswered — nothing was sent · answer it where this session is running, or /model to change Fable 5.1 now uses usage credits · the prompt to confirm went unanswered — nothing was sent · answer it where this session is running, or /model to change -The messages name the session’s Fable model, so on Fable 5 they read `continuing on Fable 5` and `Fable 5 now uses usage credits`. Before v2.1.257, the first message began `Fable 5 limit reached`. This happens in [Remote Control](</docs/en/remote-control>) sessions, [background sessions](</docs/en/agent-view>), [agent team](</docs/en/agent-teams>) teammate sessions, and sessions that another application hosts through the Agent SDK. For when Claude Code closes the prompt, see [Fable and usage credits](</docs/en/model-config#fable-and-usage-credits>). **What to do:** +The messages name the session’s Fable model, so on Fable 5.2 they read `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. Before v2.1.257, the first message began `Fable 5 limit reached`. This happens in [Remote Control](</docs/en/remote-control>) sessions, [background sessions](</docs/en/agent-view>), [agent team](</docs/en/agent-teams>) teammate sessions, and sessions that another application hosts through the Agent SDK. For when Claude Code closes the prompt, see [Fable and usage credits](</docs/en/model-config#fable-and-usage-credits>). **What to do:** * Where the session runs, at the terminal or in the application hosting it, send another prompt and answer the consent prompt when it reappears. For a background session, attach to it from the [agents view](</docs/en/agent-view>) first. Resending from a Remote Control client shows this message again, because the client can’t display the prompt. * Run `/model` to switch to a model that doesn’t bill usage credits @@ -6255,7 +6255,7 @@ * A configured [`--fallback-model`](</docs/en/cli-reference#cli-flags>) takes over after an availability error, for that turn only, with a notice in the transcript * An Amazon Bedrock or Google Cloud’s Agent Platform startup check finds your default model unavailable, or your account [loses access to it mid-session](</docs/en/amazon-bedrock#when-a-model-is-disabled-mid-session>) - * [Automatic model fallback](</docs/en/model-config#automatic-model-fallback>) on Fable 5.1, Fable 5, Opus 5.5, Sonnet 5.5, and Opus 5 moves the session to the flagged category’s fallback model, when that category has one, and shows a notice in the transcript + * [Automatic model fallback](</docs/en/model-config#automatic-model-fallback>) on Fable models, Opus 5.5, Sonnet 5.5, and Opus 5 moves the session to the flagged category’s fallback model, when that category has one. A notice appears in the transcript The Model selection check below catches the second and third cases; the first appears as a transcript notice rather than a `/model` change. [Model configuration](</docs/en/model-config>) explains when each fallback applies. Check these first:
modified Speed up responses with fast mode View current →
Show diff (112 lines)
--- a/fast-mode.md +++ b/fast-mode.md @@ -1,6 +1,6 @@ -Fast mode for Claude Opus 5.5 is available, and fast mode for Claude Opus 5 and Claude Opus 4.8 is in research preview. - -Fast mode is a high-speed configuration for Claude Opus, making the model up to 2.5x faster at a higher cost per token. Toggle it on with `/fast` when you need speed for interactive work like rapid iteration or live debugging, and toggle it off when cost matters more than latency. Fast mode is not a different model. It uses Claude Opus with a different API configuration that prioritizes speed over cost efficiency. You get identical quality and capabilities with faster responses. Fast mode is supported on Opus 5.5, Opus 5, and Opus 4.8. It is not available on Sonnet, Haiku, or other models. +Fast mode for Claude Fable 5.2 and Claude Opus 5.5 is available. Fast mode for Claude Opus 5 and Claude Opus 4.8 is in research preview. + +Fast mode is a high-speed configuration for supported models, making the model up to 2.5x faster at a higher cost per token. Toggle it on with `/fast` when you need speed for interactive work such as rapid iteration or live debugging, and toggle it off when cost matters more than latency. Fast mode uses the same model with a different API configuration that prioritizes speed over cost efficiency, so quality and capabilities stay the same. Fast mode is supported on Fable 5.2, Opus 5.5, Opus 5, and Opus 4.8. It is not available on Sonnet, Haiku, or other models. 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. By that date, switch to Opus 5.5 or turn fast mode off in your session: @@ -10,7 +10,7 @@ Opus 4.7 doesn’t support fast mode, so switching to it turns fast mode off. Fast mode for Opus 4.7 was deprecated on June 25, 2026, and removed on July 24, 2026. What to know: * Use `/fast` to toggle on fast mode in the Claude Code CLI. The [VS Code extension](</docs/en/vs-code>) offers a **Toggle fast mode** command when the selected model supports fast mode. Claude Code saves that toggle to your `fastMode` setting. - * Fast mode pricing per MTok input/output is $8/$40 on Opus 5.5 and $10/$50 on Opus 5 and Opus 4.8. + * Fast mode pricing per MTok input/output is $16/$80 on Fable 5.2, $8/$40 on Opus 5.5, and $10/$50 on Opus 5 and Opus 4.8. * Available to Claude Code users on subscription plans (Pro/Max/Ultra/Team/Enterprise) and on Claude Console. Team and Enterprise organizations need an Owner to enable it first, and Console organizations need access provisioned first to use it with Opus 5 or Opus 4.8. Requirements describes both. * For Claude Code users on subscription plans (Pro/Max/Ultra/Team/Enterprise), fast mode is available via usage credits only and not included in the subscription rate limits. @@ -23,16 +23,17 @@ In the CLI, toggle fast mode in either of these ways: * Run `/fast`, press Space to toggle on or off, then press Enter to confirm - * On a model that supports fast mode, set `"fastMode": true` in your [user settings file](</docs/en/settings>). If you set it on any other model, you stay on that model with fast mode off. - -By default, fast mode you turn on in an interactive session persists across sessions on a supported model. You can configure fast mode to reset each session. See require per-session opt-in for details. Outside a cloud session, in [non-interactive mode](</docs/en/headless>) with the `-p` flag, `/fast` works only in a session launched with fast mode in its [`--settings`](</docs/en/cli-reference#cli-flags>) value, for example `claude -p --settings '{"fastMode": true}'`; the toggle then applies to that session only and isn’t saved as your default. The `-p` form requires Claude Code v2.1.205 or later. Elsewhere in non-interactive mode, the command reports that fast mode isn’t available. You can run `/fast` while Claude is working, and Claude Code toggles fast mode without waiting for the turn to end. Claude Code finishes the running turn at its original speed, so the speed change takes effect from your next turn. If your current model doesn’t support fast mode, turning it on also switches your model, and Claude Code uses the new model from its next request in that turn. For the best cost efficiency, enable fast mode at the start of a session rather than switching mid-conversation. See understand the cost tradeoff for details. When you enable fast mode with `/fast`: + * On a model that supports fast mode, set `"fastMode": true` in your [user settings file](</docs/en/settings>). If you set it on any other model, you stay on that model with fast mode off. On Fable 5.2, that setting alone has no effect until you run `/fast` while using Fable 5.2. + +By default, fast mode you turn on in an interactive session persists across sessions on a supported model. On Fable 5.2, it persists only if you turned it on while using Fable 5.2. You can configure fast mode to reset each session. See require per-session opt-in for details. Outside a cloud session, in [non-interactive mode](</docs/en/headless>) with the `-p` flag, `/fast` works only in a session launched with fast mode in its [`--settings`](</docs/en/cli-reference#cli-flags>) value, for example `claude -p --settings '{"fastMode": true}'`; the toggle then applies to that session only and isn’t saved as your default. The `-p` form requires Claude Code v2.1.205 or later. Elsewhere in non-interactive mode, the command reports that fast mode isn’t available. You can run `/fast` while Claude is working, and Claude Code toggles fast mode without waiting for the turn to end. Claude Code finishes the running turn at its original speed, so the speed change takes effect from your next turn. If your current model doesn’t support fast mode, turning it on also switches your model, and Claude Code uses the new model from its next request in that turn. For the best cost efficiency, enable fast mode at the start of a session rather than switching mid-conversation. See understand the cost tradeoff for details. When you enable fast mode with `/fast`: * If your current model doesn’t support fast mode, Claude Code switches to Opus + * Fast mode on Fable 5.2 requires Claude Code v2.1.321 or later * You’ll see a confirmation message: “Fast mode ON” * A small `↯` icon appears next to the prompt while fast mode is active * Run `/fast` again at any time to check whether fast mode is on or off -Opus 5.5 is the fast mode default in Claude Code v2.1.280 and later. Before v2.1.280, fast mode defaulted to Opus 5 from v2.1.219. When you disable fast mode with `/fast` again, you remain on Opus. To switch to a different model, use `/model`. +Opus 5.5 is the fast mode default in Claude Code v2.1.280 and later. Before v2.1.280, fast mode defaulted to Opus 5 from v2.1.219. When you disable fast mode with `/fast` again, you remain on your current model. To switch to a different model, use `/model`. ### @@ -40,10 +41,11 @@ Switch models while fast mode is on -Fast mode follows your model switches in both directions: +Fast mode follows your model switches: * **Switch away** : when you switch to a model that doesn’t support fast mode, Claude Code turns fast mode off. This includes Opus 4.7; before v2.1.221, fast mode stayed on after a switch to Opus 4.7 and the API rejected the requests. - * **Switch back** : switching back to a supported Opus model turns fast mode on again when your saved fast mode preference is on, the same preference a new session starts from by default. A model switch never turns fast mode on for a session whose saved preference is off, and with per-session opt-in configured, switching back doesn’t turn it on either; run `/fast` to re-enable it. + * **Switch back** : fast mode comes back on a supported Opus model when your saved preference is on. With per-session opt-in, run `/fast` instead. + * **Switch to Fable 5.2** : fast mode turns off unless you turned it on while using Fable 5.2. To turn it on, run `/fast` on Fable 5.2. Unless you’ve set per-session opt-in, that lasts across sessions until you turn it off or turn it on with another model. Whenever a model switch turns fast mode on or off, Claude Code shows a `Fast mode ON` or `Fast mode OFF` confirmation, and the `↯` icon appears while fast mode is on. This holds whether you switch with `/model`, with [`/config model=<model>`](</docs/en/settings>), or from a device connected through [Remote Control](</docs/en/remote-control>). Claude Code resends the session’s fast mode status to devices connected through Remote Control after a model switch, a reconnection, or a failed availability check. @@ -61,15 +63,16 @@ Understand the cost tradeoff -Fast mode has higher per-token pricing than standard Opus: +Fast mode has higher per-token pricing than standard speed: Model| Input (MTok)| Output (MTok) ---|---|--- +Fable 5.2| $16| $80 Opus 5.5| $8| $40 Opus 5| $10| $50 Opus 4.8| $10| $50 -Fast mode pricing is flat across the full 1M token context window. For the standard Opus rate to compare against, see the [Claude pricing reference](<https://platform.claude.com/docs/en/about-claude/pricing>). The first time you enable fast mode in a conversation, you pay the full fast mode uncached input token price for the entire conversation context. The deeper into a conversation you are, the more this costs, so the charge is smallest when you enable fast mode at the start. Fast mode and standard speed keep [separate caches](</docs/en/prompt-caching#turning-on-fast-mode>), so each later switch reads part or all of the conversation uncached again. +Fast mode pricing is flat across the full 1M token context window. For the standard rate to compare against, see the [Claude pricing reference](<https://platform.claude.com/docs/en/about-claude/pricing>). The first time you enable fast mode in a conversation, you pay the full fast mode uncached input token price for the entire conversation context. The deeper into a conversation you are, the more this costs, so the charge is smallest when you enable fast mode at the start. Fast mode and standard speed keep [separate caches](</docs/en/prompt-caching#turning-on-fast-mode>), so each later switch reads part or all of the conversation uncached again. ### @@ -131,7 +134,7 @@ Fast mode usage draws directly from usage credits, even if you have remaining usage on your plan. - * **Paid Console organization** : Claude Console accounts don’t use usage credits, and your organization pays for fast mode per token with the rest of its API usage. On the Console’s free Evaluation plan, `/fast` shows “Fast mode unavailable during evaluation. Please purchase credits.” To clear it, purchase credits in your [Console billing settings](<https://platform.claude.com/settings/billing>). Fast mode with Opus 5.5 also depends on your organization’s [usage tier](<https://platform.claude.com/docs/en/api/rate-limits>). + * **Paid Console organization** : Claude Console accounts don’t use usage credits, and your organization pays for fast mode per token with the rest of its API usage. On the Console’s free Evaluation plan, `/fast` shows “Fast mode unavailable during evaluation. Please purchase credits.” To clear it, purchase credits in your [Console billing settings](<https://platform.claude.com/settings/billing>). Fast mode with Fable 5.2 or Opus 5.5 also depends on your organization’s [usage tier](<https://platform.claude.com/docs/en/api/rate-limits>). * **Owner enablement for Team and Enterprise** : fast mode is disabled by default for Team and Enterprise organizations. An Owner must explicitly enable fast mode before users can access it. Four organization settings can block turning fast mode on with `/fast`: @@ -139,7 +142,7 @@ * **Fast mode not enabled** : if fast mode hasn’t been enabled for your organization, turning fast mode on with `/fast` shows “Fast mode has been disabled by your organization.” * **Fast mode turned off by managed settings** : if your organization deploys [managed settings](</docs/en/managed-settings>) that set [`fastMode: false`](</docs/en/settings-reference#fastmode>), turning fast mode on with `/fast` shows the same “Fast mode has been disabled by your organization” message. * **Per-session opt-in required** : managed settings that set `fastModePerSessionOptIn: true` refuse `/fast on` with the same message everywhere except an interactive terminal session. - * **Fast-mode model not allowed** : if your organization’s [`availableModels`](</docs/en/model-config#restrict-model-selection>) allowlist excludes the fast-mode Opus model, turning it on is refused with “is not in your organization’s allowed models”. In a session already running on an allowed Opus model that supports fast mode, `/fast` instead enables fast mode on your current model without switching models. + * **Fast-mode model not allowed** : if your organization’s [`availableModels`](</docs/en/model-config#restrict-model-selection>) allowlist excludes the fast-mode Opus model, turning it on is refused with “is not in your organization’s allowed models”. In a session already running on an allowed model that supports fast mode, `/fast` instead enables fast mode on your current model without switching models. ### @@ -204,7 +207,7 @@ Require per-session opt-in -By default, fast mode a user turns on in an interactive session persists across sessions on a supported model. To change this, set `fastModePerSessionOptIn` to `true` in any [settings file](</docs/en/settings#where-settings-live>), which causes each session to start with fast mode off and requires users to explicitly enable it with `/fast`. Owners on [Team](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=fast_mode_teams#team-&-enterprise>) or [Enterprise](<https://anthropic.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=fast_mode_enterprise>) plans can deploy it organization-wide through [server-managed settings](</docs/en/server-managed-settings>). +By default, fast mode a user turns on in an interactive session persists across sessions on a supported model. On Fable 5.2, it persists only if the user turned it on while using Fable 5.2. To make every session start with fast mode off, set `fastModePerSessionOptIn` to `true` in any [settings file](</docs/en/settings#where-settings-live>). Users then enable it with `/fast` in each session. Owners on [Team](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=fast_mode_teams#team-&-enterprise>) or [Enterprise](<https://anthropic.com/contact-sales?utm_source=claude_code&utm_medium=docs&utm_content=fast_mode_enterprise>) plans can deploy it organization-wide through [server-managed settings](</docs/en/server-managed-settings>). { "fastModePerSessionOptIn": true @@ -218,7 +221,7 @@ Handle rate limits -Fast mode has separate rate limits from standard Opus; for Console organizations, the Claude Platform’s [rate limits](<https://platform.claude.com/docs/en/api/rate-limits>) page describes them. When you hit the fast mode rate limit: +Fast mode has separate rate limits from standard speed; for Console organizations, the Claude Platform’s [rate limits](<https://platform.claude.com/docs/en/api/rate-limits>) page describes them. When you hit the fast mode rate limit: 1. Fast mode automatically falls back to standard speed 2. The `↯` icon turns gray to indicate cooldown
modified Claude Code gateway compatibility guide View current →
--- a/llm-gateway-protocol.md +++ b/llm-gateway-protocol.md @@ -243,7 +243,7 @@ Beta [tool fields](<https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview>)| Tool-related beta headers pair with tool schema fields such as `strict` and `defer_loading`| `400` naming the unrecognized tool schema field when the body passes through without its header. For `defer_loading`, see Retry without tool search| Forward both, or `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` [Effort](<https://platform.claude.com/docs/en/build-with-claude/effort>) and [structured outputs](<https://platform.claude.com/docs/en/build-with-claude/structured-outputs>)| The `output_config` body field carries effort, structured-output format, and task budget settings; each pairs with its own beta header| `400` naming `output_config`, often `Extra inputs are not permitted`, on Amazon Bedrock and Google Cloud’s Agent Platform upstreams| Forward the field and its headers together, or have developers set `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1`, which removes the format and task budget settings but not effort. To remove only the format, they can set [`CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS=1`](</docs/en/env-vars>) instead, which requires v2.1.288 or later Mid-conversation system messages| No beta header. Claude Code sends some reminder and attachment text as `role: "system"` entries in `messages` for Claude Opus 4.8, models released after it, and unrecognized model IDs| `400` such as `Unexpected role "system"`| Claude Code retries without system messages. To stop system messages on an alias of a model released before Claude Opus 4.8, add a `modelOverrides` entry to the settings you distribute -[Effort set per turn](</docs/en/prompt-caching#changing-effort-level>)| On Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1, a beta header pairs with `output_config.effort` on `role: "system"` entries, either a system message or an entry with empty content| `400` with `messages.N: system content must contain at least one block` when your gateway strips the field from an empty entry| Forward both, or have developers set `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` to stop the field and the empty entries +[Effort set per turn](</docs/en/prompt-caching#changing-effort-level>)| On Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, and Fable 5.1, a beta header pairs with `output_config.effort` on `role: "system"` entries. An entry is a system message or one with empty content| `400` with `messages.N: system content must contain at least one block` when your gateway strips the field from an empty entry| Forward both, or have developers set `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` to stop the field and the empty entries [Prompt caching](</docs/en/prompt-caching>)| No beta pairing. Claude Code attaches `cache_control` markers to `system` blocks and to `messages` entries, including `role: "system"` entries appended mid-conversation| No error: the conversation bills as uncached input on every turn, visible as high `input_tokens` with little or no cache activity in `usage`| Forward `cache_control` unchanged wherever it appears, and don’t convert block-form `system` or message content to plain strings [Token counting](<https://platform.claude.com/docs/en/build-with-claude/token-counting>)| No beta pairing; uses the `count_tokens` endpoint| No error: Claude Code falls back to a character-based estimate, so `/context` shows approximate counts| Expose the endpoint for exact token counts
modified Connect to external tools with MCP View current →
--- a/mcp.md +++ b/mcp.md @@ -223,7 +223,7 @@ Auto-approve with allowedTools -Use `allowedTools` to auto-approve specific MCP tools so Claude can use them without a permission prompt: +Use `allowedTools` to auto-approve specific MCP tools: TypeScript
modified Model configuration View current →
Show diff (170 lines)
--- a/model-config.md +++ b/model-config.md @@ -28,7 +28,7 @@ Model alias| Behavior ---|--- **`default`**| Special value that clears any model override and reverts to the runtime default for your account. Not itself a model alias -**`best`**| Uses the model the `fable` alias resolves to where Fable is available to you, otherwise the same model as `opus` +**`best`**| Uses the same model as `opus` **`fable`**| Uses the Fable model for your provider for your hardest and longest-running tasks **`sonnet`**| Uses the latest Sonnet model for daily coding tasks **`opus`**| Uses the latest Opus model for complex reasoning tasks @@ -46,7 +46,7 @@ Amazon Bedrock, Google Cloud’s Agent Platform| Opus 5.5| Sonnet 4.5| Haiku 4.5 Microsoft Foundry| Opus 4.6| Sonnet 4.5| Haiku 4.5 -Unless you set `ANTHROPIC_DEFAULT_FABLE_MODEL`, the `fable` alias resolves to Fable 5.1, except in [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions, where `fable` and `best` resolve to Fable 5. A gateway that isn’t configured to serve `claude-fable-5-1` rejects requests for that model. To use Fable 5.1 through a gateway that serves it, select it with `/model claude-fable-5-1`. Where `opus` or `sonnet` resolves to an older model, newer models are available by selecting the full model name explicitly or setting `ANTHROPIC_DEFAULT_OPUS_MODEL` or `ANTHROPIC_DEFAULT_SONNET_MODEL`. Earlier versions resolve these aliases to older models. For the version at which each alias changed, see Version history. Aliases point to the recommended version for your provider and update over time. To pin to a specific version, use the full model name, for example `claude-opus-5-5`, or set the corresponding environment variable like `ANTHROPIC_DEFAULT_OPUS_MODEL`. +Unless you set `ANTHROPIC_DEFAULT_FABLE_MODEL`, the `fable` alias resolves to Fable 5 in [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions and to Fable 5.2 everywhere else. A gateway that isn’t configured to serve `claude-fable-5-2` rejects requests for that model. To use Fable 5.2 through a gateway that serves it, select it with `/model claude-fable-5-2`. Where `opus` or `sonnet` resolves to an older model, newer models are available by selecting the full model name explicitly or setting `ANTHROPIC_DEFAULT_OPUS_MODEL` or `ANTHROPIC_DEFAULT_SONNET_MODEL`. Earlier versions resolve these aliases to older models. For the version at which each alias changed, see Version history. Aliases point to the recommended version for your provider and update over time. To pin to a specific version, use the full model name, for example `claude-opus-5-5`, or set the corresponding environment variable like `ANTHROPIC_DEFAULT_OPUS_MODEL`. Sonnet 5.5 requires Claude Code v2.1.284 or later, and Opus 5.5 requires v2.1.280 or later. If a request for one of them from an older version fails, see [Claude Code does not support this model](</docs/en/errors#claude-code-does-not-support-this-model>). Use v2.1.293 or later with Haiku 5.5. Run `claude update` to upgrade. @@ -56,19 +56,24 @@ Work with Fable -[Claude Fable 5.1](<https://platform.claude.com/docs/en/about-claude/models/overview>) and Claude Fable 5 are the most capable models in Claude Code, suited to tasks larger than a single sitting. They sustain long autonomous sessions, investigate before acting, and verify their work more often than smaller models. Fable 5.1 is the newer release. Neither Fable model is the account-type default on any plan or provider. Select one explicitly: - - * **Fable 5.1** : run `/model fable`, or launch with `claude --model fable`. In [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions, where the alias resolves to Fable 5, run `/model claude-fable-5-1` instead. - * **Fable 5** : select it by model ID. On the Anthropic API, run `/model claude-fable-5` or launch with `claude --model claude-fable-5`. On other providers, use your provider’s Fable 5 model ID or pin it with `ANTHROPIC_DEFAULT_FABLE_MODEL`. - -If you connect to the Anthropic API directly and your user settings hold `claude-fable-5` or `claude-fable-5[1m]` as the model, for example because you selected Fable in the `/model` picker before v2.1.257, Claude Code changes that saved value to the `fable` or `fable[1m]` alias the first time you run v2.1.257 or later. The startup model line shows `(auto-updated)` once. A `claude-fable-5` value in project, local, or managed settings stays as it is. Requests that a Fable model’s safety classifiers flag, most often in cybersecurity and biology domains, trigger automatic model fallback. To get the most from Fable: +[Claude Fable models](<https://platform.claude.com/docs/en/about-claude/models/overview>) are the most capable models in Claude Code, suited to tasks larger than a single sitting. They sustain long autonomous sessions, investigate before acting, and verify their work more often than smaller models. No Fable model is the account-type default on any plan or provider. Select one explicitly: + + * **Fable 5.2** : run `/model fable`, or launch with `claude --model fable`. In [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions, run `/model claude-fable-5-2` instead. + * **Fable 5.1 or Fable 5** : select it by model ID. On the Anthropic API, run `/model claude-fable-5-1` or `/model claude-fable-5`, or launch with `claude --model claude-fable-5-1`. On other providers, use your provider’s model ID or pin it with `ANTHROPIC_DEFAULT_FABLE_MODEL`. + +On Pro, Max, Team, and Enterprise plans, a `claude-fable-5-1` model saved in your user settings moves to the `fable` alias: + + * **Pro or Max plan** : the move happens the first time you run v2.1.321 or later. In the terminal, the startup model line can show `(auto-updated)` once. + * **Team or Enterprise plan** : the move waits for your organization’s settings, so it can come at a later startup, or not at all. It applies from the next session, with no `(auto-updated)` line. To check your model, run `/model`. + +After the move, sessions start at Fable 5.2’s default effort unless you’ve set a level for it. Console accounts, third-party providers, and project, local, or managed settings keep `claude-fable-5-1`. Requests that a Fable model’s safety classifiers flag, most often in cybersecurity and biology domains, trigger automatic model fallback. To get the most from Fable: * **Describe the outcome, not the steps** : hand it the result you want and let it plan the path. To keep it working toward that outcome, [set a goal](</docs/en/goal>). * **Hand it ambiguous problems** : root-cause investigations, outage debugging, and architecture decisions are where the extra investigation and verification pay off. * **Skip the verification reminders** : it verifies its own work with less prompting, so reminders to test or check are usually unnecessary. * **Size up larger tasks** : give it work you would normally break into pieces. It holds long sessions without losing the thread. -Fable 5.1 requires Claude Code v2.1.257 or later. If a request for it from an older version fails, see [Claude Code does not support this model](</docs/en/errors#claude-code-does-not-support-this-model>). Run `claude update` to upgrade. For availability under zero data retention, see [Model availability under ZDR](</docs/en/zero-data-retention#model-availability-under-zdr>). +Fable 5.2 requires Claude Code v2.1.321 or later, and Fable 5.1 requires v2.1.257 or later. If a request for one of them from an older version fails, see [Claude Code does not support this model](</docs/en/errors#claude-code-does-not-support-this-model>). Run `claude update` to upgrade. For availability under zero data retention, see [Model availability under ZDR](</docs/en/zero-data-retention#model-availability-under-zdr>). On the Anthropic API, a Fable model appears in the `/model` picker unless `availableModels` or organization model restrictions exclude it. When your organization can’t use Fable at all, for example under [zero data retention](</docs/en/zero-data-retention#model-availability-under-zdr>), the row stays in the picker grayed out, with a note on why. @@ -179,7 +184,13 @@ Restrict model selection -Administrators can use `availableModels` in [managed or policy settings](</docs/en/managed-settings>) to restrict which models users can select. Entries match a model family such as `sonnet`, a version prefix such as `claude-sonnet-4-5`, or a full model ID such as `claude-sonnet-4-5-20250929`. A version prefix also matches later model IDs that extend it with another segment, so `claude-fable-5` permits both Fable 5 and Fable 5.1, while `claude-fable-5-1` permits Fable 5.1 only. To block a model the list permits, or to make each model ID entry permit only the version it names, see Block specific models or versions. On platforms that embed Claude Code and set [`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`](</docs/en/env-vars>), the host’s model configuration takes precedence over managed model settings, while a managed `availableModels` allowlist stays in force unless the host supplies its own; [Exceptions to managed settings precedence](</docs/en/settings#exceptions-to-managed-settings-precedence>) says which keys and variables the host overrides. When `availableModels` is set, the allowlist applies everywhere a user can specify a model: +Administrators can use `availableModels` in [managed or policy settings](</docs/en/managed-settings>) to restrict which models users can select. Each entry matches one of these: + + * A model family such as `sonnet` + * A version prefix such as `claude-sonnet-4-5`. It also matches later model IDs that extend it with another segment. For example, `claude-fable-5` permits Fable 5, Fable 5.1, and Fable 5.2, while `claude-fable-5-1` permits Fable 5.1 only + * A full model ID such as `claude-sonnet-4-5-20250929` + +To block a model the list permits, or to make each model ID entry permit only the version it names, see Block specific models or versions. On platforms that embed Claude Code and set [`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`](</docs/en/env-vars>), the host’s model configuration takes precedence over managed model settings, while a managed `availableModels` allowlist stays in force unless the host supplies its own; [Exceptions to managed settings precedence](</docs/en/settings#exceptions-to-managed-settings-precedence>) says which keys and variables the host overrides. When `availableModels` is set, the allowlist applies everywhere a user can specify a model: * **Main session model** : `/model`, the `--model` flag, the `ANTHROPIC_MODEL` environment variable, the `model` setting, `ANTHROPIC_DEFAULT_MODEL`, and the model restored when resuming a session * **Alias resolution** : the `ANTHROPIC_DEFAULT_OPUS_MODEL`, `ANTHROPIC_DEFAULT_SONNET_MODEL`, `ANTHROPIC_DEFAULT_HAIKU_MODEL`, and `ANTHROPIC_DEFAULT_FABLE_MODEL` environment variables cannot redirect an allowed alias to a model outside the list @@ -399,7 +410,9 @@ * **Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform** : defaults to Opus 5.5 * **Microsoft Foundry** : defaults to Sonnet 4.5 -Before v2.1.280, `default` resolved to Sonnet 5 on Pro and Team Standard, and to Opus 5 on Max, Ultra, Team Premium, Enterprise, the Anthropic API, Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform from v2.1.219. Before v2.1.219, `default` resolved to Opus 4.8 on the Anthropic API, Max, Ultra, Team Premium, and Enterprise pay-as-you-go from v2.1.154, and on Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform from v2.1.207. Before v2.1.207, `default` resolved to Opus 4.7 on Claude Platform on AWS and to Sonnet 4.5 on Amazon Bedrock and Google Cloud’s Agent Platform. When an admin has set an organization default model, `default` resolves to that model instead of the account-type default above. Requires Claude Code v2.1.196 or later. `default` can also resolve to the model you set with `ANTHROPIC_DEFAULT_MODEL`, under the conditions listed in its section, or to the model recorded on your account. When nothing is recorded on your account, managed settings enforce the allowlist for the Default model, and the account-type default is not in `availableModels`, `default` resolves to the enforced Default instead of the account-type default above. When an organization default and enforcement both apply, the organization default replaces the account-type default first and enforcement then applies to it: an allowlisted organization default is kept, while one outside the list resolves to the enforced Default. Fable models are not the account-type default on any plan or provider. Choosing one with `/model` saves it as the selected model in your user settings, so later sessions start on it. For the one-time change Claude Code makes to a saved Fable 5 selection in v2.1.257, see Work with Fable. +Before v2.1.280, `default` resolved to Sonnet 5 on Pro and Team Standard, and to Opus 5 on Max, Ultra, Team Premium, Enterprise, the Anthropic API, Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform from v2.1.219. Before v2.1.219, `default` resolved to Opus 4.8 on the Anthropic API, Max, Ultra, Team Premium, and Enterprise pay-as-you-go from v2.1.154, and on Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform from v2.1.207. Before v2.1.207, `default` resolved to Opus 4.7 on Claude Platform on AWS and to Sonnet 4.5 on Amazon Bedrock and Google Cloud’s Agent Platform. When an admin has set an organization default model, `default` resolves to that model instead of the account-type default above. Requires Claude Code v2.1.196 or later. `default` can also resolve to the model you set with `ANTHROPIC_DEFAULT_MODEL`, under the conditions listed in its section, or to the model recorded on your account. When nothing is recorded on your account, managed settings enforce the allowlist for the Default model, and the account-type default is not in `availableModels`, `default` resolves to the enforced Default instead of the account-type default above. When an organization default and enforcement both apply, the organization default replaces the account-type default first and enforcement then applies to it: an allowlisted organization default is kept, while one outside the list resolves to the enforced Default. + +Fable models are not the account-type default on any plan or provider. Choosing one with `/model` saves it as the selected model in your user settings, so later sessions start on it, apart from the one-time change to a saved Fable 5.1 pick. ### @@ -445,7 +458,7 @@ This section covers content-based fallback from Fable models, Opus 5.5, Sonnet 5.5, and Opus 5. For availability-based fallback when a model is overloaded or unavailable, see Fallback model chains. Fable models, Opus 5.5, Sonnet 5.5, and Opus 5 run with safety classifiers, which most often flag cybersecurity and biology content. For those two categories, the fallback model depends on which model refused: - * **Fable 5.1, Fable 5, and Opus 5.5** : biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8. + * **Fable models and Opus 5.5** : biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8. * **Sonnet 5.5** : cybersecurity-flagged requests re-run on Sonnet 5. Biology-flagged requests end with a refusal instead, because Sonnet 5.5 has no biology fallback model. * **Opus 5** : cybersecurity-flagged requests re-run on Opus 4.8. Biology-flagged requests end with a refusal instead, because Opus 5 runs its own biology classifiers with no fallback model. @@ -508,7 +521,7 @@ On [Amazon Bedrock](</docs/en/amazon-bedrock>), [Google Cloud’s Agent Platform](</docs/en/google-vertex-ai>), and [Microsoft Foundry](</docs/en/microsoft-foundry>), model IDs are provider-specific, so automatic fallback only operates when Claude Code can identify each model involved: - * Claude Code must recognize the current model as a fallback source. Fable 5.1 and Fable 5 are recognized when the model ID contains `claude-fable-5`, matches the value of `ANTHROPIC_DEFAULT_FABLE_MODEL`, or is mapped with `modelOverrides`. Opus 5.5, Sonnet 5.5, and Opus 5 are recognized by their provider model ID or a `modelOverrides` mapping. + * Claude Code must recognize the current model as a fallback source. Fable models are recognized when the model ID contains `claude-fable-5`, matches the value of `ANTHROPIC_DEFAULT_FABLE_MODEL`, or is mapped with `modelOverrides`. Opus 5.5, Sonnet 5.5, and Opus 5 are recognized by their provider model ID or a `modelOverrides` mapping. * An Opus target must resolve in your deployment, whichever model refused: set `ANTHROPIC_DEFAULT_OPUS_MODEL`, or keep an Opus 4.8 entry in the provider’s model list. Without one, fallback stays off for every source model, including Sonnet 5.5, and flagged requests end with a refusal. * The flagged category’s fallback model must resolve in your deployment. From a Fable model, Opus 5.5, or Opus 5, if you set `ANTHROPIC_DEFAULT_OPUS_MODEL`, flagged requests re-run on that model for every category that has a fallback; a biology flag on Opus 5 still ends with a refusal. If you don’t set it, cybersecurity-flagged requests re-run on the Opus 4.8 entry, and biology-flagged requests from a Fable model or Opus 5.5 on an Opus 5 entry. From Sonnet 5.5, cybersecurity-flagged requests re-run on the model you set in `ANTHROPIC_DEFAULT_SONNET_MODEL`, or on a Sonnet 5 entry in the provider’s model list if you don’t set it. @@ -526,7 +539,7 @@ Security research and biology workloads -Workloads in offensive security or biology, including penetration testing, Capture the Flag (CTF) exercises, and biology-adjacent codebases, trigger fallback frequently, often on the first request. For substantive biology work on Fable 5.1, Fable 5, or Opus 5.5, the first flagged request that switches models moves the session to Opus 5, and later biology-flagged requests end in refusals there, because Opus 5 has no biology fallback. On Opus 5 and Sonnet 5.5, you get those refusals from the first flagged request. This is expected routing for these domains, not an account flag. If your organization needs Fable-class capability for this work, ask your Anthropic account team about trusted access programs. +Workloads in offensive security or biology, including penetration testing, Capture the Flag (CTF) exercises, and biology-adjacent codebases, trigger fallback frequently, often on the first request. This is expected routing for these domains, not an account flag. If your organization needs Fable-class capability for this work, ask your Anthropic account team about trusted access programs. For substantive biology work on a Fable model or Opus 5.5, the first flagged request that switches models moves the session to Opus 5. Later biology-flagged requests end in refusals there, because Opus 5 has no biology fallback. On Opus 5 and Sonnet 5.5, those refusals start with the first flagged request. ### @@ -538,7 +551,7 @@ Model| Levels ---|--- -Fable 5.1 and Fable 5| `low`, `medium`, `high`, `xhigh`, `max` +Fable models| `low`, `medium`, `high`, `xhigh`, `max` Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, and Opus 4.7| `low`, `medium`, `high`, `xhigh`, `max` Opus 4.6 and Sonnet 4.6| `low`, `medium`, `high`, `max` @@ -548,7 +561,7 @@ 2. A level you pick in the session, such as with `/effort`, the `/model` picker, or [`applyFlagSettings()`](</docs/en/agent-sdk/typescript#applyflagsettings>) 3. Launching with `--effort` 4. Your settings: the level you saved for the model or an [`effortLevel`](</docs/en/settings-reference#effortlevel>) key, with the precedence between them and across settings files stated at [`modelSettings`](</docs/en/settings-reference#modelsettings>) - 5. The model’s default effort: `high` on every model that supports effort, except that Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium` and Opus 4.7 defaults to `xhigh`. If your organization sets a default effort level for its organization default model, that level is the default when you run that model. + 5. The model’s default effort: Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium`, and Opus 4.7 defaults to `xhigh`. Other models in the effort levels table default to `high`. If your organization sets a default effort level for its organization default model, that level is the default when you run that model. After an automatic model fallback, see Effort level after a fallback for the level that applies. For subagents and teammates, see Effort level of subagents and teammates. Opus 5.5 starts at `medium` unless one of the sources above sets a level for it, and a top-level `effortLevel` in your user settings file doesn’t count for Opus 5.5. That key is the older form `/effort` wrote before Claude Code saved levels per model: it keeps applying where it applied before, on Opus 5, Fable 5.1, and earlier models, while Opus 5.5 and models released after it start at their own default until you choose a level for them with `/effort` or the `/model` picker. A top-level `effortLevel` in project, local, or managed settings, or one passed with `--settings`, applies to every model. When you set `low`, `medium`, `high`, or `xhigh` in an interactive session on your machine, you choose how long it lasts by how you confirm it: @@ -583,8 +596,8 @@ Level| When to use it ---|--- `low`| Quick exchanges where you review each result, such as brainstorming, a first sketch, or a small change like a rename -`medium`| The default on Opus 5.5, Sonnet 5.5, and Haiku 5.5. On Opus 5.5 and Sonnet 5.5, it fits day-to-day engineering work with a clear scope, such as implementing a new feature. On models with a higher default, reduces token usage for cost-sensitive work that can trade off some intelligence -`high`| Work where verification matters or edge cases are likely, such as fixing a bug in an existing codebase. The default on every model except Opus 5.5, Sonnet 5.5, Haiku 5.5, and Opus 4.7 +`medium`| The default on the Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 models. On Opus 5.5 and Sonnet 5.5, it fits day-to-day engineering work with a clear scope, such as implementing a new feature. On models with a higher default, reduces token usage for cost-sensitive work that can trade off some intelligence +`high`| Work where verification matters or edge cases are likely, such as fixing a bug in an existing codebase. The default on the other models in the effort table `xhigh`| Deeper reasoning at higher token spend. The default on Opus 4.7 `max`| Hard problems you want Claude to work through without you, such as finding security vulnerabilities. `max` may show diminishing returns and is prone to overthinking, so test before adopting it broadly `ultracode`| A Claude Code setting rather than a level: plans a [dynamic workflow](</docs/en/workflows>) for each substantive task at any effort level @@ -601,7 +614,7 @@ * Retype it outside anything such as quotes, brackets, a path, or a command, in a prompt that doesn’t start with `/` * Unset `CLAUDE_CODE_EFFORT_LEVEL` if it’s set below `xhigh`, raise your own [`maxEffortLevel`](</docs/en/settings-reference#maxeffortlevel>) to `xhigh` or above, or ask an organization admin to raise your organization’s limit - * Run `/model` in your session to switch to an Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.1 model. Where the word can’t raise a turn, such as on Amazon Bedrock, set the effort level instead + * Run `/model` in your session to switch to an Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2, or Fable 5.1 model. Where the word can’t raise a turn, such as on Amazon Bedrock, set the effort level instead #### @@ -697,7 +710,7 @@ Extended context -Fable 5.1, Fable 5, Sonnet 5 and later, Haiku 5.5, Opus 4.6 and later, and Sonnet 4.6 support a [1 million token context window](<https://platform.claude.com/docs/en/build-with-claude/context-windows#context-window-sizes-by-model>) for long sessions with large codebases. Fable 5.1, Fable 5, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later run with the 1M window by default, with no `[1m]` suffix needed. That includes sessions on Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, and [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions. To run them with a 200K window instead, see Turn off 1M context. Opus 4.6 and Sonnet 4.6 reach 1M only through their `[1m]` variant, and access to that variant depends on your plan. On Max, Ultra, Team, and Enterprise plans, including both Team Standard and Team Premium seats, Opus 4.6 with 1M context is included with your subscription. Sonnet 4.6 with 1M context requires [usage credits](<https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans>) on every subscription plan, including Max and Ultra. +Long sessions with large codebases can use a [1 million token context window](<https://platform.claude.com/docs/en/build-with-claude/context-windows#context-window-sizes-by-model>). Fable models, Sonnet 5 and later, Haiku 5.5, Opus 4.6 and later, and Sonnet 4.6 support it. Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later run with the 1M window by default, with no `[1m]` suffix needed. That includes sessions on Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, and [Claude apps gateway](</docs/en/claude-apps-gateway>) sessions. To run them with a 200K window instead, see Turn off 1M context. Opus 4.6 and Sonnet 4.6 reach 1M only through their `[1m]` variant, and access to that variant depends on your plan. On Max, Ultra, Team, and Enterprise plans, including both Team Standard and Team Premium seats, Opus 4.6 with 1M context is included with your subscription. Sonnet 4.6 with 1M context requires [usage credits](<https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans>) on every subscription plan, including Max and Ultra. Plan| Opus 4.6 with 1M context| Sonnet 4.6 with 1M context ---|---|--- @@ -728,7 +741,7 @@ Context window behind an LLM gateway -If you set `ANTHROPIC_BASE_URL` to an [LLM gateway](</docs/en/llm-gateway>) or another proxy, Claude Code gives each model it recognizes the same context window the model has on the Anthropic API. Fable 5.1, Fable 5, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later get the 1M window with no `[1m]` variant to select, and a model that reaches 1M only through its `[1m]` variant, such as Opus 4.6, runs at 200K without it. Claude Code can’t detect a lower limit that the gateway or the server behind it enforces. If your gateway rejects requests above 200K tokens, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000`](</docs/en/env-vars>) in the environment that starts Claude Code, so sessions on every model compact at that boundary. +If you set `ANTHROPIC_BASE_URL` to an [LLM gateway](</docs/en/llm-gateway>) or another proxy, Claude Code gives each model it recognizes the same context window the model has on the Anthropic API. Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later get the 1M window with no `[1m]` variant. A model that reaches 1M only through its `[1m]` variant, such as Opus 4.6, runs at 200K without it. Claude Code can’t detect a lower limit that the gateway or the server behind it enforces. If your gateway rejects requests above 200K tokens, set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000`](</docs/en/env-vars>) in the environment that starts Claude Code, so sessions on every model compact at that boundary. #### @@ -1015,6 +1028,8 @@ Version| Change ---|--- +v2.1.321| `fable` resolves to Fable 5.2, except in Claude apps gateway sessions +v2.1.321| `best` resolves to the same model as `opus`. Earlier versions use the model `fable` resolves to, where Fable is available v2.1.293| `haiku` resolves to Haiku 5.5 on the Anthropic API v2.1.284| `sonnet` resolves to Sonnet 5.5 on the Anthropic API v2.1.280| `opus` resolves to Opus 5.5 on the Anthropic API, Claude Platform on AWS, Amazon Bedrock, and Google Cloud’s Agent Platform
modified Configure permissions View current →
--- a/permissions.md +++ b/permissions.md @@ -14,7 +14,7 @@ Hooks -Run [hooks](</docs/en/agent-sdk/hooks>). A hook can deny the call outright or pass it on. A hook that returns `allow` doesn’t skip the deny and ask rules below, which are evaluated regardless of the hook result.A `PreToolUse` hook that returns `allow` also can’t approve an `rm` or `rmdir` command whose target Claude Code recognizes as a [critical path](</docs/en/permission-modes#critical-paths>), such as `rm -rf ~`. For what that `allow` does in plan mode, see [Hook approvals in plan mode](</docs/en/permissions#hook-approvals-in-plan-mode>). +Run [hooks](</docs/en/agent-sdk/hooks>). A hook can deny the call outright or pass it on. A hook that returns `allow` doesn’t skip the deny-rule and ask-rule steps, which are evaluated regardless of the hook result.A `PreToolUse` hook that returns `allow` also can’t approve an `rm` or `rmdir` command whose target Claude Code recognizes as a [critical path](</docs/en/permission-modes#critical-paths>), such as `rm -rf ~`. For what that `allow` does in plan mode, see [Hook approvals in plan mode](</docs/en/permissions#hook-approvals-in-plan-mode>). 2 @@ -50,7 +50,7 @@ canUseTool callback -If not resolved by any of the above, call your [`canUseTool` callback](</docs/en/agent-sdk/user-input>) for a decision. In `dontAsk` mode, this step is skipped and the tool is denied, though a [mod](</docs/en/plugins/mods/overview>) you installed can still approve [some such calls](</docs/en/permissions#precedence-among-rules-hooks-and-mods>).In the TypeScript SDK, if you set [`permissionPrompts: 'none'`](</docs/en/agent-sdk/typescript#options>), your callback isn’t called at this step. A [`PermissionRequest` hook](</docs/en/hooks#permissionrequest>) still gets a chance to decide, and if it doesn’t, Claude Code denies the call. The option requires Claude Code v2.1.259 or later. +If no earlier step resolves the request, call your [`canUseTool` callback](</docs/en/agent-sdk/user-input>) for a decision. In `dontAsk` mode, this step is skipped and the tool is denied, though a [mod](</docs/en/plugins/mods/overview>) you installed can still approve [some such calls](</docs/en/permissions#precedence-among-rules-hooks-and-mods>).In the TypeScript SDK, if you set [`permissionPrompts: 'none'`](</docs/en/agent-sdk/typescript#options>), your callback isn’t called at this step. A [`PermissionRequest` hook](</docs/en/hooks#permissionrequest>) still gets a chance to decide, and if it doesn’t, Claude Code denies the call. The option requires Claude Code v2.1.259 or later. If you pass a `canUseTool` callback in a configuration where the TypeScript SDK expects the evaluation order to auto-approve calls before the callback is consulted, the SDK emits a Node.js process warning once when the query is constructed. The warning’s code is `CLAUDE_SDK_CAN_USE_TOOL_SHADOWED`. Two configurations trigger it: @@ -68,14 +68,14 @@ Allow and deny rules -`allowed_tools` and `disallowed_tools` (TypeScript: `allowedTools` / `disallowedTools`) add entries to the allow and deny rule lists in the evaluation flow above. If you name one of the [task-tracking tools](</docs/en/agent-sdk/todo-tracking#model-availability>) in `allowed_tools`, Claude Code also opts the session in. Any other tool not listed in `allowed_tools` is still available to Claude, and a call to it that needs approval falls through to the permission mode. Deny rules behave differently depending on whether they name a tool or scope a pattern within one. +When you set `allowedTools` and `disallowedTools` (TypeScript) or `allowed_tools` and `disallowed_tools` (Python), Claude Code adds their entries to the allow and deny rule lists in the permission evaluation flow. Any other tool not listed in `allowed_tools` is still available to Claude, and a call to it that needs approval falls through to the permission mode. Option| Effect ---|--- `allowed_tools=["Read", "Grep"]`| `Read` and `Grep` are auto-approved, apart from [reads from network paths](</docs/en/permissions#network-paths>). Other tools not listed here still exist, and calls to them that need approval fall through to the permission mode and `canUseTool`. -`disallowed_tools=["Bash"]`| The `Bash` tool definition is removed from the request. Claude does not see the tool and cannot attempt it. +`disallowed_tools=["Bash"]`| The `Bash` tool definition is removed from the request. `disallowed_tools=["Bash(rm *)"]`| `Bash` stays available. Calls matching `rm *` [as written](</docs/en/permissions#bash-rule-limits>) are denied in every permission mode, including `bypassPermissions`. Other `Bash` calls, including `/bin/rm`, fall through to the permission mode. -`disallowed_tools=["*"]`| Every tool definition is removed from the request. Tool-name globs are supported in deny rules: `"*"` matches every tool and `"mcp__*"` matches every MCP tool across all servers. +`disallowed_tools=["*"]`| Tool-name globs are supported in deny rules: `"*"` matches every tool and `"mcp__*"` matches every MCP tool across all servers. 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: `mcp__puppeteer__*` matches every tool from the `puppeteer` server, and `mcp__github__get_*` matches its `get_` tools. An unanchored entry like `allowed_tools=["*"]` or `allowed_tools=["mcp__*"]` is ignored and doesn’t auto-approve anything.
modified How Claude Code uses prompt caching View current →
--- a/prompt-caching.md +++ b/prompt-caching.md @@ -17,7 +17,7 @@ A change to the conversation layer leaves the system prompt and project context cached. A change to the system prompt invalidates everything, because all later content now sits behind a different prefix. The third column gives common triggers rather than an exhaustive list, and the sections below cover the full set. The prefix-match rule explains most of the behaviors on this page. [Plan mode](</docs/en/permission-modes#analyze-before-you-edit-with-plan-mode>) and [skill loading](</docs/en/skills>), for example, append their instructions as conversation messages, so the cached prefix stays intact. Two settings don’t appear in the layer table but still affect what stays cached: * **Model** : each model has its own cache. Switching models recomputes the entire request even when the content is identical. See Switching models below. - * **Effort level** : on most models, each effort level has its own cache, so changing effort mid-session recomputes the entire request. On Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 with an API key or a Claude subscription, the cache stays intact by default. See Changing effort level below. + * **Effort level** : on most models, each effort level has its own cache, so changing effort mid-session recomputes the entire request. With an API key or a Claude subscription, the cache stays intact by default on Fable 5.1 and later, Opus 5.5, Sonnet 5.5, and Haiku 5.5. See Changing effort level below. Pick your model and effort level at the top of a session, then save `/compact` for natural breaks between tasks. The fewer changes you make mid-task, the higher your cache hit rate. @@ -74,7 +74,7 @@ Changing effort level -On most models, changing the [effort level](</docs/en/model-config#adjust-effort-level>) mid-session means the next request reads the entire conversation history with no cache hits. While the cache is still warm, Claude Code asks you to confirm the change first. On Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 with an API key or a Claude subscription, you keep the cache when you change effort. Claude Code [applies the new level](</docs/en/model-config#when-a-new-effort-level-starts>) without asking. On Amazon Bedrock, Google Cloud’s Agent Platform, or a [Claude apps gateway](</docs/en/claude-apps-gateway>), or when you set [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS`](</docs/en/llm-gateway-protocol#disable-pre-release-capabilities>) or your organization has a HIPAA configuration, it works as on most models. Before v2.1.260, changing effort on Fable 5.1 with an API key or a Claude subscription also invalidated the cache. +On most models, changing the [effort level](</docs/en/model-config#adjust-effort-level>) mid-session means the next request reads the entire conversation history with no cache hits. While the cache is still warm, Claude Code asks you to confirm the change first. With an API key or a Claude subscription, changing effort keeps the cache on Fable 5.1 and later, Opus 5.5, Sonnet 5.5, and Haiku 5.5. Claude Code [applies the new level](</docs/en/model-config#when-a-new-effort-level-starts>) without asking. On Amazon Bedrock, Google Cloud’s Agent Platform, or a [Claude apps gateway](</docs/en/claude-apps-gateway>), or when you set [`CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS`](</docs/en/llm-gateway-protocol#disable-pre-release-capabilities>) or your organization has a HIPAA configuration, it works as on most models. Before v2.1.260, changing effort on Fable 5.1 with an API key or a Claude subscription also invalidated the cache. ###
modified Continue local sessions from any device with Remote Control View current →
--- a/remote-control.md +++ b/remote-control.md @@ -498,6 +498,7 @@ * **Your claude.ai plan is Pro, Max, or Ultra** : Claude Code is still signed in under a Team or Enterprise organization from an earlier login, so it checks that organization’s Remote Control policy. Run `/status` to see which plan and organization your sign-in uses. Run `claude auth logout` then `claude auth login` to sign in again under your current plan. * **The message doesn’t say to contact your organization admin** : your organization has the [HIPAA configuration](</docs/en/hipaa-setup>) applied, which turns Remote Control off. To confirm, run `/status` and look for `HIPAA` on the `Organization configuration` line. An Owner sees the **Remote Control** toggle grayed out in [admin settings](<https://claude.ai/admin-settings/claude-code>) and can’t turn it on. If you have questions about the configuration, ask an Owner, who can contact your organization’s Anthropic account team. Before v2.1.267, this case showed “Remote Control isn’t available for your organization due to its compliance policy” instead. * **Remote Control works for others in your organization but not for you** : if your Enterprise organization manages your access with [custom roles](<https://support.claude.com/en/articles/13930452>), your roles can be the cause. Remote Control needs both the cloud sessions permission and the **Claude Code remote control** permission. Ask an Owner to check whether your roles include both and add what’s missing at [**Organization settings > Roles**](<https://claude.ai/admin-settings/roles>). + * **An Owner sees a[Zero Data Retention](</docs/en/zero-data-retention>) banner in [admin settings](<https://claude.ai/admin-settings/claude-code>)**: Remote Control isn’t available for your organization, and an Owner can’t turn it on. * **Otherwise, an Owner hasn’t enabled it for your organization** : Remote Control is off by default on Team and Enterprise plans. An Owner can enable it at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>) by turning on the **Remote Control** toggle. This toggle is a server-side organization setting. Before v2.1.281, this message also appeared when Claude Code hadn’t loaded your organization’s policy on this machine, for example after starting offline. Later versions report that state as `Couldn't verify your organization's policy for remote control` instead.
modified All settings View current →
--- a/settings-reference.md +++ b/settings-reference.md @@ -462,11 +462,11 @@ `fastMode` -Turn [fast mode](</docs/en/fast-mode>) on for sessions where it’s available, for interactive work such as rapid iteration or live debugging where you want speed at a higher cost per token. You don’t usually edit this key yourself. Running `/fast` writes `fastMode: true` to `~/.claude/settings.json`, and running it again to turn fast mode off removes the key. Only Opus 5.5, Opus 5, and Opus 4.8 support fast mode. Running `/fast` from another model switches you to Opus, and switching to an unsupported model turns fast mode off. See [Switch models while fast mode is on](</docs/en/fast-mode#switch-models-while-fast-mode-is-on>). - - * **Scope** : `Any file` - * **Type** : Boolean - * `true`: Claude Code turns fast mode on for sessions where it’s available +Turn [fast mode](</docs/en/fast-mode>) on for sessions where it’s available, for interactive work such as rapid iteration or live debugging where you want speed at a higher cost per token. You don’t usually edit this key yourself. Running `/fast` writes `fastMode: true` to `~/.claude/settings.json`, and running it again to turn fast mode off removes the key. Only Fable 5.2, Opus 5.5, Opus 5, and Opus 4.8 support fast mode. Running `/fast` from another model switches you to Opus, and switching to an unsupported model turns fast mode off. See [Switch models while fast mode is on](</docs/en/fast-mode#switch-models-while-fast-mode-is-on>). + + * **Scope** : `Any file` + * **Type** : Boolean + * `true`: Claude Code turns fast mode on for sessions where it’s available. On Fable 5.2, you must also [run `/fast` while using Fable 5.2](</docs/en/fast-mode#switch-models-while-fast-mode-is-on>) * `false`: fast mode stays off * **Default** : unset, so fast mode is off * **Per-session overrides** : [`CLAUDE_CODE_DISABLE_FAST_MODE`](</docs/en/env-vars>) turns fast mode off for one session, and this key can’t turn it back on @@ -483,12 +483,12 @@ `fastModePerSessionOptIn` -Normally, running `/fast` saves `fastMode` to a person’s user settings, so new sessions on a supported model start with fast mode on. Set this key to `true` to stop that: a saved `fastMode: true` no longer turns fast mode on at session start, and each person runs `/fast` in each session they want it. Claude Code leaves `fastMode` in their file, so turning this key off restores the old behavior. Owners on Team or Enterprise plans can deploy it organization-wide through [server-managed settings](</docs/en/server-managed-settings>). When managed settings set the key, `/fast on` is refused outside interactive terminal sessions and reports that your organization has disabled fast mode. That covers [non-interactive mode](</docs/en/headless>), the [VS Code extension](</docs/en/vs-code>), and [cloud sessions](</docs/en/claude-code-on-the-web>). +Normally, running `/fast` saves `fastMode` to a person’s user settings, so new sessions on a supported model start with fast mode on. On Fable 5.2, that happens only if they [turned it on while using Fable 5.2](</docs/en/fast-mode#switch-models-while-fast-mode-is-on>). To make each person run `/fast` in each session they want it, set this key to `true`. Claude Code leaves `fastMode` in their file, so turning this key off restores the old behavior. Owners on Team or Enterprise plans can deploy it organization-wide through [server-managed settings](</docs/en/server-managed-settings>). When managed settings set the key, `/fast on` is refused outside interactive terminal sessions and reports that your organization has disabled fast mode. That covers [non-interactive mode](</docs/en/headless>), the [VS Code extension](</docs/en/vs-code>), and [cloud sessions](</docs/en/claude-code-on-the-web>). * **Scope** : `Any file` * **Type** : Boolean * `true`: a saved `fastMode: true` no longer turns fast mode on at session start, so each person runs `/fast` in each session they want it; a `fastMode: true` passed with `--settings` still counts for that session unless managed settings set this key - * `false`: a saved `fastMode: true` turns fast mode on at the start of each new session on a supported model + * `false`: a saved `fastMode: true` works as `fastMode` describes * **Default** : `false` settings.json @@ -6225,7 +6225,7 @@ `disableBrowserExternalNavigation` -Turn off external browsing in the desktop app’s [Browser pane](</docs/en/desktop#browse-external-sites>) for people and Claude alike. Localhost dev server previews keep working. The desktop app reads this key; the terminal CLI ignores it. +Turn off external browsing in the desktop app’s [Browser pane](</docs/en/desktop#browse-external-sites>) for people and Claude alike. Localhost dev server previews keep working. HTML previews in SSH and WSL sessions still open, but they [don’t run scripts](</docs/en/desktop#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization>). The desktop app reads this key; the terminal CLI ignores it. * **Scope** : `Managed` * **Type** : Boolean; only the JSON Boolean `true` takes effect @@ -6239,7 +6239,7 @@ "disableBrowserExternalNavigation": true } -The desktop app ignores any other value, and a value that isn’t a Boolean, such as the string `"true"` or `1`, also logs a warning. To leave external browsing on but keep Claude’s tools off external pages, set `browserExternalPageTools` instead. See [Restrict external browsing for your organization](</docs/en/desktop#restrict-external-browsing-for-your-organization>). +The desktop app ignores any other value, and a value that isn’t a Boolean, such as the string `"true"` or `1`, also logs a warning. To leave external browsing on but keep Claude’s tools off external pages, set `browserExternalPageTools` instead. See [Restrict external browsing for your organization](</docs/en/desktop#restrict-external-browsing-for-your-organization>). If the computer that runs the desktop app receives no other Claude Code managed settings, also set `parentSettingsBehavior` to `"merge"` in the managed settings that you create. On Windows, if you create a managed settings file, users also lose WSL sessions until you [allow them](</docs/en/admin-setup#wsl-sessions-in-claude-code-desktop>). See [Turn off scripts in SSH and WSL previews for your organization](</docs/en/desktop#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization>) for the reasons. ###
modified Zero data retention View current →
--- a/zero-data-retention.md +++ b/zero-data-retention.md @@ -78,7 +78,7 @@ Model availability under ZDR -Claude Fable 5.1 and Fable 5 are [Covered Models](<https://support.claude.com/en/articles/15425695-covered-models>) that [require data retention](<https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements>) by default, and whether a ZDR organization or workspace can use them is governed by the Covered Models policies rather than by Claude Code. Where your organization can’t use them, the models are either absent from the `/model` picker or shown as disabled, and the server rejects requests for them regardless of client configuration. Other models remain available under ZDR. Fable models are not the default, and the `best` alias, which resolves to the latest Fable model where it is available, resolves to Opus for organizations where it is not. +Claude Fable 5.2, Fable 5.1, and Fable 5 are [Covered Models](<https://support.claude.com/en/articles/15425695-covered-models>) that [require data retention](<https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements>) by default, and whether a ZDR organization or workspace can use them is governed by the Covered Models policies rather than by Claude Code. Where your organization can’t use them, the models are either absent from the `/model` picker or shown as disabled, and the server rejects requests for them regardless of client configuration. Other models remain available under ZDR. Fable models aren’t the default, and the `best` alias resolves to Opus. ##