Changes on
21 changes detected
--- a/2026-w27.md
+++ b/2026-w27.md
@@ -0,0 +1,69 @@
+Releases [v2.1.195 → v2.1.201](</docs/en/changelog#2-1-195>)5 features · June 29 – July 3
+
+Claude Sonnet 5new model
+
+Sonnet 5 is the new default model for Pro, Team Standard, and Enterprise subscription seats: top-tier coding and tool use at Sonnet pricing, with a native 1M-token context window and adaptive thinking on by default. API pricing is promotional at $2/$10 per MTok through August 31. Requires v2.1.197 or later.
+
+Switch to Sonnet 5 by name, or pick it from the model picker:
+
+Claude Code
+
+ > /model claude-sonnet-5
+
+[Model configuration](</docs/en/model-config#available-models>)
+
+Claude in Chrome is generally availablev2.1.198
+
+The Chrome integration is out of preview for everyone on a direct Anthropic plan. Claude Code drives your browser through the Claude in Chrome extension: it opens tabs, clicks through pages, fills forms, reads console logs, and shares your login state, so it can test the app it builds without you switching contexts.
+
+[Use Claude Code with Chrome](</docs/en/chrome>)
+
+Subagents run in the background by defaultv2.1.198
+
+Claude now keeps working while subagents run and picks up their results when they finish, instead of pausing the conversation to wait. Claude still runs a subagent in the foreground when it needs the result before continuing, and background subagents surface every permission prompt in your main session. Pin a subagent’s behavior with the `background` frontmatter field.
+
+[Run subagents in foreground or background](</docs/en/sub-agents#run-subagents-in-foreground-or-background>)
+
+Claude Desktop on LinuxDesktop
+
+The Claude desktop app is now available on Ubuntu 22.04+ and Debian 12+ in beta, on x86_64 and arm64. You get the same Chat, Cowork, and Claude Code experience as macOS and Windows: parallel sessions, visual diff review, an integrated terminal and editor, and live app preview. Installs from Anthropic’s apt repository, so updates arrive through regular package updates.
+
+[Claude Desktop on Linux](</docs/en/desktop-linux>)
+
+/radioCLI
+
+Claude FM is on the air. `/radio` opens the lo-fi radio stream in your browser for something to code to, and prints the stream URL when no browser is available. Not available on Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry.
+
+Tune in from any session:
+
+Claude Code
+
+ > /radio
+
+[All commands](</docs/en/commands#all-commands>)
+
+Other wins
+
+[Artifacts](</docs/en/artifacts>) are now generally available and included on Pro and Max plans, joining Team and Enterprise
+
+Admins can set an [organization default model](</docs/en/model-config#organization-default-model>) in the org console; it shows as “Org default” in `/model` when you haven’t picked a model yourself
+
+Stacked skill invocations like `/skill-a /skill-b do XYZ` now load all leading skills (up to 5), not only the first
+
+`AskUserQuestion` dialogs no longer auto-continue by default; opt into an idle timeout via `/config`
+
+The “default” permission mode is now named “Manual” across the CLI, `--help`, VS Code, and JetBrains; `--permission-mode manual` is accepted alongside `default`
+
+New `/dataviz` skill gives chart and dashboard design guidance, with a runnable color-palette validator
+
+The built-in Explore agent now inherits the main session’s model (capped at Opus) instead of running on Haiku
+
+Background agents launched from `claude agents` now commit, push, and open a draft PR when they finish code work in a worktree, instead of stopping to ask
+
+Hook matchers with hyphenated identifiers like `code-reviewer` now exact-match instead of substring-matching; use `mcp__brave-search__.*` to match all tools from a hyphenated MCP server
+
+Transient server rate-limit errors unrelated to your usage limit are now retried automatically with backoff for subscribers instead of failing the turn
+
+The streaming idle watchdog is now on by default for all providers: it aborts and retries when a response stream produces no events for 5 minutes (`CLAUDE_ENABLE_STREAM_WATCHDOG=0` to disable)
+
+[Full changelog for v2.1.195–v2.1.201 →](</docs/en/changelog#2-1-195>)
--- a/2026-w28.md
+++ b/2026-w28.md
@@ -0,0 +1,43 @@
+Releases [v2.1.202 → v2.1.206](</docs/en/changelog#2-1-202>)2 features · July 6–10
+
+In-app browser on DesktopDesktop
+
+Claude Code on desktop now has a built-in browser. Claude can pull up docs, designs, or any other site, and read, click through, and interact with pages the same way it does with your local dev server previews. The browser is sandboxed and configurable: you choose whether browsing sessions persist, and safety classifiers review actions on external sites.
+
+[Browse external sites](</docs/en/desktop#browse-external-sites>)
+
+/doctor is a full setup checkupv2.1.205
+
+`/doctor` now diagnoses issues and can fix them, instead of printing a read-only report. It checks installation health, finds unused skills, MCP servers, and plugins versus their context cost, deduplicates local `CLAUDE.md` files against checked-in ones, proposes trimming `CLAUDE.md` content Claude could derive from the codebase, and flags slow hooks. It reports findings first and asks for confirmation before changing anything. `/checkup` is its alias.
+
+Run a checkup from any session:
+
+Claude Code
+
+ > /doctor
+
+[All commands](</docs/en/commands#all-commands>)
+
+Other wins
+
+Auto mode now blocks tampering with session transcript files, and asks before running `rm -rf` on a variable it can’t resolve from context
+
+`/cd` now suggests directory paths as you type, matching `/add-dir`
+
+`/commit-push-pr` auto-allows `git push` to the repo’s configured push remote in addition to `origin`
+
+Gateway: `/login` now supports Anthropic-operated public gateway endpoints
+
+`EnterWorktree` asks for confirmation before entering a git worktree outside the project’s `.claude/worktrees/` directory
+
+Background agents upgrade to a new version in the background right after a Claude Code update, instead of paying a slow stale-session upgrade when you attach
+
+Agent view rows now show a colored state word and a classifier-written headline instead of raw tool call text, and sessions that edit, merge, comment on, or push to an existing PR link it in `claude agents`
+
+Auto-update binary downloads now stream to disk instead of buffering in memory, cutting the updater’s peak memory usage by roughly 400 MB
+
+Background task notifications now explicitly state that no human input has occurred, preventing fabricated in-transcript approvals from being acted on
+
+Improved `/code-review` findings quality on Opus 4.8 across all effort levels
+
+[Full changelog for v2.1.202–v2.1.206 →](</docs/en/changelog#2-1-202>)
--- a/amazon-bedrock.md
+++ b/amazon-bedrock.md
@@ -171,7 +171,7 @@
Pin specific model versions when deploying to multiple users. Without pinning, model aliases such as `sonnet` and `opus` resolve to Claude Code’s built-in default for Amazon Bedrock, which can lag the newest release and may not yet be available in your account. Claude Code falls back to the previous version at startup when the default is unavailable, but pinning lets you control when your users move to a new model.
-Set these environment variables to specific Amazon Bedrock model IDs. Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias on Amazon Bedrock resolves to Opus 4.6. Set it to the Opus 4.8 ID to use the latest model:
+Set these environment variables to specific Amazon Bedrock model IDs. Without these variables, the `opus` alias on Amazon Bedrock resolves to Opus 4.8 and the `sonnet` alias resolves to Sonnet 4.5. Set each variable to pin its alias to a specific version:
export ANTHROPIC_DEFAULT_OPUS_MODEL='us.anthropic.claude-opus-4-8'
export ANTHROPIC_DEFAULT_SONNET_MODEL='us.anthropic.claude-sonnet-4-6'
@@ -181,7 +181,7 @@
Model type| Default value
---|---
-Primary model| `us.anthropic.claude-sonnet-4-5-20250929-v1:0`
+Primary model| `us.anthropic.claude-opus-4-8`
Small/fast model| Same as primary model
Background tasks such as session title generation use the small/fast model, normally a Haiku-class model. On Amazon Bedrock, Claude Code defaults this to the primary model because Haiku may not be enabled in every account or region. To use Haiku for background tasks, set `ANTHROPIC_DEFAULT_HAIKU_MODEL` to a model ID that is available in your account. To customize models further, use one of these methods:
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,35 @@
This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Run `claude --version` to check your installed version.
+
+
+
+2.1.207
+
+July 11, 2026
+
+ * Auto mode is now available without `CLAUDE_CODE_ENABLE_AUTO_MODE` opt-in on Bedrock, Vertex AI, and Foundry; disable via `disableAutoMode` in settings
+ * Fixed the terminal freezing and keystrokes lagging while streaming responses containing very long lists, tables, paragraphs, or code blocks
+ * Fixed remote managed settings from a non-interactive run (`claude -p`, the SDK) being permanently recorded as consented without ever showing the security consent dialog
+ * Fixed spurious prompt-injection warnings triggered by benign system-generated conversation updates
+ * Fixed the auto-updater overwriting a custom launcher script or symlink at `~/.local/bin/claude` on every release; `/doctor` now reports an externally managed launcher
+ * Fixed compound commands with `cd` prompting for permission when the only output redirect was to `/dev/null`
+ * Fixed the transcript jumping above the start of the answer when a response finishes streaming
+ * Fixed `extensions.worktreeConfig` being left in the repo’s `.git/config` (breaking go-git tools like `tea`) after the last `worktree.sparsePaths` worktree was removed
+ * Fixed malformed bracket patterns in rules globs, skill paths, `.ignore`, and `.worktreeinclude` breaking file reads, file suggestions, and worktree creation
+ * Fixed a crash loop in agent teams where a malformed teammate mailbox message caused repeated errors every second until the mailbox file was manually deleted
+ * Fixed background sessions auto-named by accepting a plan not showing that name on their agent-view row
+ * Fixed background sessions that entered a git worktree resuming blank after a cold reopen from the agent list
+ * Fixed Remote Control task status updates being lost when the connection recovered from a network interruption or credential refresh
+ * Fixed Remote Control sessions hosted by the desktop app not showing background agent and workflow progress on mobile and web
+ * Fixed Deep research runs labeling every Fetch-phase agent “unknown” — chips now show the source hostname
+ * Fixed Bedrock repeatedly requesting fresh AWS SSO credentials from IAM Identity Center on every API request
+ * Improved agent view: pasting the same text again now expands the collapsed `[Pasted text #N]` placeholder instead of adding a second one
+ * Improved agent view: blocked session peeks now lead with the question and show a worded staleness clock (`waiting 3m`) instead of the same timestamp twice
+ * Changed Bedrock, Vertex, and Claude Platform on AWS to default to Claude Opus 4.8
+ * Changed auto mode to no longer read `autoMode` from `.claude/settings.local.json` (repo-resident); use `~/.claude/settings.json` instead
+ * Fixed an indefinite hang on Windows when AWS credential resolution stalls (e.g. a stuck `credential_process`): the 60-second stall guard now fires instead of waiting forever.
+ * Plugin hooks/monitors/MCP headersHelper: `${user_config.*}` in shell-form commands is now rejected (shell-injection fix). Hooks: use exec form (`args` array) or `$CLAUDE_PLUGIN_OPTION_<KEY>`; monitors and headersHelper: read the value inside the script (config file or the server’s `env` block).
+ * Plugin option values (`pluginConfigs`) are no longer read from project-level `.claude/settings.json`; only user, `--settings`, and managed settings are honored
+ * Fixed `/usage-credits` amount inputs silently stripping malformed values (e.g. a pasted timestamp) to digits; malformed amounts are now rejected with an error, and amounts over $1,000 require a typed confirmation
--- a/claude-platform-on-aws.md
+++ b/claude-platform-on-aws.md
@@ -66,10 +66,10 @@
3\. Pin model versions
-Claude Platform on AWS uses the same model IDs as the direct Claude API. The default aliases `fable`, `opus`, `sonnet`, and `haiku` resolve to Claude Code’s built-in defaults for Claude Platform on AWS, which can lag the newest release. Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias resolves to Opus 4.7. If you deploy Claude Code to a team, pin the model IDs explicitly so a new release doesn’t move everyone at once:
+Claude Platform on AWS uses the same model IDs as the direct Claude API. The default aliases `fable`, `opus`, `sonnet`, and `haiku` resolve to Claude Code’s built-in defaults for Claude Platform on AWS, which can lag the newest release. Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias resolves to Opus 4.8. If you deploy Claude Code to a team, pin the model IDs explicitly so a new release doesn’t move everyone at once:
export ANTHROPIC_DEFAULT_FABLE_MODEL=claude-fable-5
- export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-4-7
+ export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-4-8
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5
--- a/communications-kit.md
+++ b/communications-kit.md
@@ -304,7 +304,7 @@
it to ship. You shouldn't have to pick one forever.
*Shift+Tab* cycles through how much Claude can do without asking: *Manual* (the
- `default` setting value) asks before each action, *acceptEdits* lets file
+ `default` setting value) asks before file edits and most shell commands, *acceptEdits* lets file
edits and common filesystem commands
flow through while still checking before other shell commands, and *plan*
proposes changes for your approval before anything is touched. Plan mode is
@@ -516,7 +516,7 @@
”Does it work in VS Code?”| Yes. There is a VS Code extension and a JetBrains plugin with the same features, embedded in your editor. [VS Code →](</docs/en/vs-code>)
“Do I have to configure anything first?”| No. Install, then run `claude` in any repo. Run `/init` once and you’re set. [Quickstart →](</docs/en/quickstart>)
“Where does my code go?”| The CLI runs in your terminal and sends context to Anthropic’s API for inference, with no third-party servers. Under your Enterprise plan, your code and prompts are not used to train models. [Data usage →](</docs/en/data-usage>)
-“Can it see my whole repo?”| It reads what you give it access to. File reads inside your working directory don’t prompt; permission prompts gate edits, shell commands, and anything outside that directory. [Permissions →](</docs/en/permissions>)
+“Can it see my whole repo?”| It reads what you give it access to. File reads inside your working directory don’t prompt; permission prompts gate edits, non-read-only shell commands, and file-tool reads outside that directory. A built-in set of read-only shell commands such as `ls` and `cat` runs without prompting; restrict it with [sandbox `denyRead` rules](</docs/en/sandboxing#filesystem-isolation>). [Permissions →](</docs/en/permissions>)
“How is this different from Copilot?”| Copilot autocompletes lines. Claude Code is an agent that reads files, runs commands, and makes multi-file edits. [Overview →](</docs/en/overview>)
“What should I try first?”| A bug you’ve been putting off because it’s tedious. “The test in [file] is flaky, figure out why.” [Quickstart →](</docs/en/quickstart>)
--- a/desktop.md
+++ b/desktop.md
@@ -82,7 +82,7 @@
**Auto**| `auto`| Claude executes all actions with background safety checks that verify alignment with your request. Reduces permission prompts while maintaining oversight. Enable in your Settings → Claude Code. See availability requirements below.
**Bypass permissions**| `bypassPermissions`| Claude runs without permission prompts, except those forced by explicit [ask rules](</docs/en/permissions#manage-permissions>) or by safety classifiers when Claude acts on external sites; equivalent to `--dangerously-skip-permissions` in the CLI. Enable in your Settings → Claude Code under “Allow bypass permissions mode”. Only use this in sandboxed containers or VMs. Enterprise admins can disable this option.
-Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is a research preview available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
+Earlier versions of the Code tab labeled these modes Ask permissions, Auto accept edits, and Plan mode. The `dontAsk` permission mode is available only in the [CLI](</docs/en/permission-modes#allow-only-pre-approved-tools-with-dontask-mode>). Auto mode is available to all users on the Anthropic API and requires Claude Opus 4.6 or later, or Sonnet 4.6 or later. In Enterprise deployments that route Desktop to Google Cloud’s Agent Platform, auto mode is off until you [set `CLAUDE_CODE_ENABLE_AUTO_MODE`](</docs/en/permission-modes#enable-auto-mode-on-bedrock-agent-platform-or-foundry>), and only Claude Sonnet 5, Opus 4.7, and Opus 4.8 are supported there.
Start complex tasks in Plan so Claude maps out an approach before making changes. Once you approve the plan, switch to Accept edits or Manual to execute it. See [explore first, then plan, then code](</docs/en/best-practices#explore-first-then-plan-then-code>) for more on this workflow.
--- a/desktop-linux.md
+++ b/desktop-linux.md
@@ -19,7 +19,7 @@
Install
-Install from Anthropic’s apt repository so that updates arrive through your system’s regular package updates.
+Install from Anthropic’s apt repository so that updates arrive through your system’s regular package updates. Open a terminal and run the commands in each step.
1
@@ -97,6 +97,26 @@
+Troubleshoot
+
+###
+
+
+
+Unable to locate package claude-desktop
+
+If `sudo apt install claude-desktop` fails with `E: Unable to locate package claude-desktop`, apt didn’t find the repository you added. Check the following:
+
+ * Confirm the repository entry was written. `cat /etc/apt/sources.list.d/claude-desktop.list` should show the `deb` line from the Add Anthropic’s apt repository step. If the file is empty or missing, run that step again.
+ * Confirm your architecture is supported. `dpkg --print-architecture` should print `amd64` or `arm64`. The repository doesn’t publish packages for other architectures.
+ * Run `sudo apt update` again and check its output for errors related to `downloads.claude.ai`. A network or key error there means the repository was added but couldn’t be reached or verified.
+
+If the repository is in place and reachable and the package is still not found, install from a downloaded file instead.
+
+##
+
+
+
What’s not in the Linux beta yet
* **Computer Use** : [app and screen control](</docs/en/desktop#let-claude-use-your-computer>) isn’t available on Linux.
--- a/glossary.md
+++ b/glossary.md
@@ -60,7 +60,7 @@
Auto mode
-A permission mode where a separate classifier model reviews actions in the background, so most run without approval prompts; explicit ask rules still prompt. The classifier blocks scope escalation, untrusted infrastructure, and prompt injection. It never sees tool results, so injected instructions cannot influence its decisions. Auto mode is a research preview. Learn more: [Eliminate prompts with auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>)
+A permission mode where a separate classifier model reviews actions in the background, so most run without approval prompts; explicit ask rules still prompt. The classifier blocks scope escalation, untrusted infrastructure, and prompt injection. It never sees tool results, so injected instructions cannot influence its decisions. Learn more: [Eliminate prompts with auto mode](</docs/en/permission-modes#eliminate-prompts-with-auto-mode>)
##
--- a/google-vertex-ai.md
+++ b/google-vertex-ai.md
@@ -152,7 +152,7 @@
Pin specific model versions when deploying to multiple users. Without pinning, model aliases such as `sonnet` and `opus` resolve to Claude Code’s built-in default for Google Cloud’s Agent Platform, which can lag the newest release and may not yet be enabled in your project. Claude Code falls back to the previous version at startup when the default is unavailable, but pinning lets you control when your users move to a new model.
-Set these environment variables to specific Google Cloud’s Agent Platform model IDs. Without `ANTHROPIC_DEFAULT_OPUS_MODEL`, the `opus` alias on Google Cloud’s Agent Platform resolves to Opus 4.6. Set it to the Opus 4.8 ID to use the latest model:
+Set these environment variables to specific Google Cloud’s Agent Platform model IDs. Without these variables, the `opus` alias on Google Cloud’s Agent Platform resolves to Opus 4.8 and the `sonnet` alias resolves to Sonnet 4.5. Set each variable to pin its alias to a specific version:
export ANTHROPIC_DEFAULT_OPUS_MODEL='claude-opus-4-8'
export ANTHROPIC_DEFAULT_SONNET_MODEL='claude-sonnet-5'
@@ -162,7 +162,7 @@
Model type| Default value
---|---
-Primary model| `claude-sonnet-4-5@20250929`
+Primary model| `claude-opus-4-8`
Small/fast model| Same as primary model
Background tasks such as session title generation use the small/fast model, normally a Haiku-class model. On Google Cloud’s Agent Platform, Claude Code defaults this to the primary model because Haiku may not be enabled in every project or region. To use Haiku for background tasks, set `ANTHROPIC_DEFAULT_HAIKU_MODEL` to a model ID that is available in your project. To customize models further:
--- a/how-claude-code-works.md
+++ b/how-claude-code-works.md
@@ -165,7 +165,7 @@
* **Manual** : Claude asks before file edits and shell commands
* **Accept edits** : Claude edits files and runs common filesystem commands like `mkdir` and `mv` without asking, still asks for other commands
* **Plan** : Claude explores and proposes a plan without editing your source files; permission prompts still apply as in Manual mode
- * **Auto** : Claude evaluates all actions with background safety checks. Currently a research preview
+ * **Auto** : Claude evaluates all actions with background safety checks
You can also allow specific commands in `.claude/settings.json` so Claude doesn’t ask each time. This is useful for trusted commands like `npm test` or `git status`. Settings can be scoped from organization-wide policies down to personal preferences. See [Permissions](</docs/en/permissions>) for details.
--- a/index.md
+++ b/index.md
@@ -1,4 +1,24 @@
The weekly dev digest highlights the features most likely to change how you work. Each entry includes runnable code, a short demo, and a link to the full docs. For every bug fix and minor improvement, see the [changelog](</docs/en/changelog>).
+
+
+
+Week 28
+
+v2.1.202–v2.1.206
+
+July 6–10, 2026
+
+**In-app browser on Desktop** : Claude Code on desktop gets a built-in browser, so Claude can pull up docs, designs, or any other site and interact with pages the same way it does with your local dev server previews.Also this week: **`/doctor`** is a full setup checkup that diagnoses issues and can fix them, with `/checkup` as its alias; **auto mode** blocks transcript tampering and asks before `rm -rf` on unresolved variables; and **agent view rows** show a colored state word and a classifier-written headline.[Read the Week 28 digest →](</docs/en/whats-new/2026-w28>)
+
+
+
+Week 27
+
+v2.1.195–v2.1.201
+
+June 29 – July 3, 2026
+
+**Claude Sonnet 5** : the new default model for Pro, Team Standard, and Enterprise subscription seats, with top-tier coding and tool use at Sonnet pricing, a native 1M-token context window, and adaptive thinking on by default.Also this week: **Claude in Chrome** is generally available on all direct Anthropic plans; **subagents run in the background by default** so Claude keeps working while they run; **Claude Desktop on Linux** lands in beta on Ubuntu and Debian; and **`/radio`** tunes into Claude FM lo-fi radio.[Read the Week 27 digest →](</docs/en/whats-new/2026-w27>)
--- a/model-config.md
+++ b/model-config.md
@@ -35,7 +35,14 @@
**`opus[1m]`**| Uses Opus with a [1 million token context window](<https://platform.claude.com/docs/en/build-with-claude/context-windows#1m-token-context-window>) for long sessions
**`opusplan`**| Special mode that uses `opus` during plan mode, then switches to `sonnet` for execution
-On the Anthropic API, `opus` resolves to Opus 4.8 and `sonnet` resolves to Sonnet 5. On [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), `opus` resolves to Opus 4.7 and `sonnet` resolves to Sonnet 4.6. On Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, `opus` resolves to Opus 4.6 and `sonnet` resolves to Sonnet 4.5; newer models are available on those providers by selecting the full model name explicitly or setting `ANTHROPIC_DEFAULT_OPUS_MODEL` or `ANTHROPIC_DEFAULT_SONNET_MODEL`. 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-4-8`, or set the corresponding environment variable like `ANTHROPIC_DEFAULT_OPUS_MODEL`.
+What each alias resolves to depends on the provider:
+
+ * **Anthropic API** : `opus` resolves to Opus 4.8 and `sonnet` resolves to Sonnet 5.
+ * **[Claude Platform on AWS](</docs/en/claude-platform-on-aws>)** : `opus` resolves to Opus 4.8 and `sonnet` resolves to Sonnet 4.6.
+ * **Amazon Bedrock and Google Cloud’s Agent Platform** : `opus` resolves to Opus 4.8 and `sonnet` resolves to Sonnet 4.5.
+ * **Microsoft Foundry** : `opus` resolves to Opus 4.6 and `sonnet` resolves to Sonnet 4.5.
+
+Where an alias 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`. 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-4-8`, or set the corresponding environment variable like `ANTHROPIC_DEFAULT_OPUS_MODEL`.
Sonnet 5 requires Claude Code v2.1.197 or later. Opus 4.8 requires v2.1.154 or later. Run `claude update` to upgrade.
@@ -79,7 +86,7 @@
* any name that starts with `claude-`
* a value you configured yourself as a custom model option or in `modelOverrides`
-Claude Code rejects an unrecognized string with `Model "<name>" is not a recognized model id.` and the session keeps its current model, instead of saving the string and failing on the next request. See [the error reference](</docs/en/errors#model-is-not-a-recognized-model-id>) for recovery steps. The check runs only on the Anthropic API. On Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), and behind an [LLM gateway](</docs/en/llm-gateway>) or a custom `ANTHROPIC_BASE_URL`, your provider or gateway defines the model names, so Claude Code passes any string through without checking it. The check also doesn’t cover the `--model` flag, the `ANTHROPIC_MODEL` environment variable, or the `model` setting; a mistyped value there produces [There’s an issue with the selected model](</docs/en/errors#there%E2%80%99s-an-issue-with-the-selected-model>) on the first request instead. When the requested model has a scheduled retirement date or is automatically remapped to a newer version, Claude Code shows a warning that names the requested model. Interactive sessions show it as a startup notice. From v2.1.182, the same warning is written to stderr in [non-interactive mode](</docs/en/headless>) when using the default text output format. The check also covers a `model` set in [subagent frontmatter](</docs/en/sub-agents>). The stderr warning is suppressed for `--output-format json` and `stream-json`; read the actual model from the `modelUsage` field of the [result message](</docs/en/headless#get-structured-output>) instead. Example usage:
+Claude Code rejects an unrecognized string with `Model "<name>" is not a recognized model id.` and the session keeps its current model, instead of saving the string and failing on the next request. See [the error reference](</docs/en/errors#model-is-not-a-recognized-model-id>) for recovery steps. The check runs only on the Anthropic API. On Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, [Claude Platform on AWS](</docs/en/claude-platform-on-aws>), and behind an [LLM gateway](</docs/en/llm-gateway>) or a custom `ANTHROPIC_BASE_URL`, your provider or gateway defines the model names, so Claude Code passes any string through without checking it. The check also doesn’t cover the `--model` flag, the `ANTHROPIC_MODEL` environment variable, or the `model` setting; a mistyped value there produces [There’s an issue with the selected model](</docs/en/errors#theres-an-issue-with-the-selected-model>) on the first request instead. When the requested model has a scheduled retirement date or is automatically remapped to a newer version, Claude Code shows a warning that names the requested model. Interactive sessions show it as a startup notice. From v2.1.182, the same warning is written to stderr in [non-interactive mode](</docs/en/headless>) when using the default text output format. The check also covers a `model` set in [subagent frontmatter](</docs/en/sub-agents>). The stderr warning is suppressed for `--output-format json` and `stream-json`; read the actual model from the `modelUsage` field of the [result message](</docs/en/headless#get-structured-output>) instead. Example usage:
# Start with Opus
claude --model opus
@@ -274,9 +281,10 @@
The behavior of `default` depends on your account type:
* **Max, Team Premium, Enterprise pay-as-you-go, and Anthropic API** : defaults to Opus 4.8
- * **Claude Platform on AWS** : defaults to Opus 4.7
+ * **Claude Platform on AWS** : defaults to Opus 4.8
* **Pro, Team Standard, and Enterprise subscription seats** : defaults to Sonnet 5
- * **Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry** : defaults to Sonnet 4.5
+ * **Amazon Bedrock and Google Cloud’s Agent Platform** : defaults to Opus 4.8
+ * **Microsoft Foundry** : defaults to Sonnet 4.5
Enterprise pay-as-you-go means an Enterprise organization billed by usage rather than by subscription seat. 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. When 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 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 5 is not the default model on any account type. Sessions use Fable 5 only after you choose it, with `/model fable`, a `model` setting, or the `best` alias where Fable 5 is available. Choosing it with `/model` saves it as the selected model in your user settings, so later sessions start on Fable 5 until you change models.
@@ -320,7 +328,7 @@
Automatic model fallback
-This section covers content-based fallback from Fable 5. For availability-based fallback when a model is overloaded or unavailable, see Fallback model chains. Fable 5 runs with safety classifiers for cybersecurity and biology content. When a classifier flags a request, Claude Code re-runs that request on the default Opus model and shows a notice in the transcript: Opus 4.8 on the Anthropic API and [LLM gateway](</docs/en/llm-gateway>) deployments, or Opus 4.7 on [Claude Platform on AWS](</docs/en/claude-platform-on-aws>). The session then continues on that Opus model. To return to Fable 5, run `/model fable`. The fallback target is checked against `availableModels`. When it is blocked, no fallback occurs. The refusal is shown as a normal error and the session’s model is unchanged.
+This section covers content-based fallback from Fable 5. For availability-based fallback when a model is overloaded or unavailable, see Fallback model chains. Fable 5 runs with safety classifiers for cybersecurity and biology content. When a classifier flags a request, Claude Code re-runs that request on Opus 4.8 and shows a notice in the transcript. The session then continues on that Opus model. To return to Fable 5, run `/model fable`. The fallback target is checked against `availableModels`. When it is blocked, no fallback occurs. The refusal is shown as a normal error and the session’s model is unchanged.
####
--- a/overview.md
+++ b/overview.md
@@ -6,7 +6,7 @@
Get started
-Choose your environment to get started. Most surfaces require a [Claude subscription](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=overview_pricing>) or [Anthropic Console](<https://console.anthropic.com/>) account. The Terminal CLI and VS Code also support [third-party providers](</docs/en/third-party-integrations>).
+Claude Code runs on several surfaces: the terminal, IDE extensions, a desktop app, and the web. Choose one from the tabs below to get started. Most surfaces require a [Claude subscription](<https://claude.com/pricing?utm_source=claude_code&utm_medium=docs&utm_content=overview_pricing>) or [Anthropic Console](<https://console.anthropic.com/>) account. The Terminal CLI and VS Code also support [third-party providers](</docs/en/third-party-integrations>).
* Terminal
@@ -143,7 +143,7 @@
Work from anywhere
-Sessions aren’t tied to a single surface. Move work between environments as your context changes:
+Sessions aren’t tied to a single surface. Move work between them as your context changes:
* Step away from your desk and keep working from your phone or any browser with [Remote Control](</docs/en/remote-control>)
* Message [Dispatch](</docs/en/desktop#sessions-from-dispatch>) a task from your phone and open the Desktop session it creates
@@ -157,7 +157,7 @@
Use Claude Code everywhere
-Each surface connects to the same underlying Claude Code engine, so your CLAUDE.md files, settings, and MCP servers work across all of them. Beyond the [Terminal](</docs/en/quickstart>), [VS Code](</docs/en/vs-code>), [JetBrains](</docs/en/jetbrains>), [Desktop](</docs/en/desktop>), and [Web](</docs/en/claude-code-on-the-web>) environments above, Claude Code integrates with CI/CD, chat, and browser workflows:
+Each [surface](</docs/en/glossary#surface>) connects to the same underlying Claude Code engine, so your CLAUDE.md files, settings, and MCP servers work across all of them. Beyond the [Terminal](</docs/en/quickstart>), [VS Code](</docs/en/vs-code>), [JetBrains](</docs/en/jetbrains>), [Desktop](</docs/en/desktop>), and [Web](</docs/en/claude-code-on-the-web>) surfaces above, Claude Code integrates with CI/CD, chat, and browser workflows:
I want to…| Best option
---|---
--- a/permission-modes.md
+++ b/permission-modes.md
@@ -144,7 +144,7 @@
Auto mode lets Claude execute without routine permission prompts. A separate classifier model reviews actions before they run, blocking anything that escalates beyond your request, targets unrecognized infrastructure, or appears driven by hostile content Claude read. Explicit [ask rules](</docs/en/permissions#manage-permissions>) still force a prompt. Auto mode also nudges Claude to keep working without stopping for clarifying questions, though Claude still asks when your prompt or a skill explicitly relies on it. For stronger autonomous behavior while keeping permission prompts, set the [Proactive output style](</docs/en/output-styles>) instead.
-Auto mode is a research preview. It reduces permission prompts but does not guarantee safety. Use it for tasks where you trust the general direction, not as a replacement for review on sensitive operations.
+Auto mode reduces permission prompts but does not guarantee safety. Use it for tasks where you trust the general direction, not as a replacement for review on sensitive operations.
Auto mode is available only when your account meets all of these requirements:
--- a/permissions.md
+++ b/permissions.md
@@ -10,8 +10,8 @@
Tool type| Example| Approval required| ”Yes, don’t ask again” behavior
---|---|---|---
-Read-only| File reads, Grep| No| N/A
-Bash commands| Shell execution| Yes| Permanently per project directory and command
+Read-only| File reads, Grep| No, within the working directory and additional directories| N/A
+Bash commands| Shell execution| Yes, except a built-in set of read-only commands| Permanently per project directory and command
File modification| Edit/write files| Yes| Until session end
##
@@ -43,7 +43,7 @@
`default`| Standard behavior: prompts for permission on first use of each tool. Labeled Manual in the CLI and the VS Code and JetBrains extensions, and Claude Code accepts `manual` as an alias. The label and alias require Claude Code v2.1.200 or later
`acceptEdits`| Automatically accepts file edits and common filesystem commands such as `mkdir`, `touch`, `mv`, and `cp` for paths in the working directory or `additionalDirectories`
`plan`| Claude reads files and runs read-only shell commands to explore but doesn’t edit your source files. Labeled Plan in the CLI and the VS Code extension
-`auto`| Auto-approves tool calls with background safety checks that verify actions align with your request. Currently a research preview
+`auto`| Auto-approves tool calls with background safety checks that verify actions align with your request
`dontAsk`| Auto-denies tools unless pre-approved via `/permissions` or `permissions.allow` rules
`bypassPermissions`| Skips permission prompts, except those forced by explicit `ask` rules. Root and home directory removals such as `rm -rf /` also still prompt as a circuit breaker
--- a/python.md
+++ b/python.md
@@ -866,7 +866,7 @@
class ClaudeAgentOptions:
tools: list[str] | ToolsPreset | None = None
allowed_tools: list[str] = field(default_factory=list)
- system_prompt: str | SystemPromptPreset | None = None
+ system_prompt: str | SystemPromptPreset | SystemPromptFile | None = None
mcp_servers: dict[str, McpServerConfig] | str | Path = field(default_factory=dict)
strict_mcp_config: bool = False
permission_mode: PermissionMode | None = None
@@ -911,7 +911,7 @@
---|---|---|---
`tools`| `list[str] | ToolsPreset | None`| `None`| Tools configuration. Use `{"type": "preset", "preset": "claude_code"}` for Claude Code’s default tools
`allowed_tools`| `list[str]`| `[]`| Tools to auto-approve without prompting. This does not restrict Claude to only these tools; unlisted tools fall through to `permission_mode` and `can_use_tool`. Use `disallowed_tools` to block tools. See [Permissions](</docs/en/agent-sdk/permissions#allow-and-deny-rules>)
-`system_prompt`| `str | SystemPromptPreset | None`| `None`| System prompt configuration. Pass a string for custom prompt, or use `{"type": "preset", "preset": "claude_code"}` for Claude Code’s system prompt. Add `"append"` to extend the preset
+`system_prompt`| `str | SystemPromptPreset | SystemPromptFile | None`| `None`| System prompt configuration. Pass a string for a custom prompt, `{"type": "preset", "preset": "claude_code"}` for Claude Code’s system prompt with optional `"append"`, or `{"type": "file", "path": "..."}` to load a large prompt from disk. See `SystemPromptPreset` and `SystemPromptFile`
`mcp_servers`| `dict[str, McpServerConfig] | str | Path`| `{}`| MCP server configurations or path to config file
`strict_mcp_config`| `bool`| `False`| When `True`, use only the servers passed in `mcp_servers` and ignore project `.mcp.json`, user settings, plugin-provided MCP servers, and [claude.ai connectors](</docs/en/mcp#use-mcp-servers-from-claude-ai>). Maps to the CLI `--strict-mcp-config` flag
`permission_mode`| `PermissionMode | None`| `None`| Permission mode for tool usage
@@ -1017,6 +1017,23 @@
+`SystemPromptFile`
+
+Configuration for loading a custom system prompt from a file instead of passing it as a string. The SDK maps this to the CLI [`--system-prompt-file`](</docs/en/cli-reference#system-prompt-flags>) flag. Use the file form when the prompt is large: the SDK passes a string `system_prompt` on the CLI subprocess argv, which is subject to OS command-line length limits before the SDK sends any API request. On Linux a single argument longer than roughly 128 KB fails at process spawn with `Argument list too long`. On Windows the whole command line is capped at roughly 32 KB, so the string form fails at a lower threshold.
+
+ class SystemPromptFile(TypedDict):
+ type: Literal["file"]
+ path: str
+
+Field| Required| Description
+---|---|---
+`type`| Yes| Must be `"file"` to load the prompt from disk
+`path`| Yes| Path to a file containing the system prompt
+
+###
+
+
+
`SettingSource`
Controls which filesystem-based configuration sources the SDK loads settings from.
--- a/security.md
+++ b/security.md
@@ -18,7 +18,7 @@
Permission-based architecture
-Claude Code uses strict read-only permissions by default. When additional actions are needed (editing files, running tests, executing commands), Claude Code requests explicit permission. Users control whether to approve actions once or allow them automatically. Claude Code requires approval before running Bash commands that can modify your system. A built-in set of read-only commands such as `ls`, `cat`, and `git status` runs without a prompt. This approach lets users and organizations configure permissions directly. For detailed permission configuration, see [Permissions](</docs/en/permissions>).
+Claude Code uses strict read-only permissions by default. When additional actions are needed (editing files, running tests, executing commands), Claude Code requests explicit permission. Users control whether to approve actions once or allow them automatically. Claude Code requires approval before running Bash commands that can modify your system. A built-in set of [read-only commands](</docs/en/permissions#read-only-commands>) such as `ls`, `cat`, and `git status` runs without a prompt. This approach lets users and organizations configure permissions directly. For detailed permission configuration, see [Permissions](</docs/en/permissions>).
###
@@ -29,7 +29,7 @@
To mitigate risks in agentic systems:
* **Sandboxed bash tool** : [Sandbox](</docs/en/sandboxing>) bash commands with filesystem and network isolation, reducing permission prompts while maintaining security. Enable with `/sandbox` to define boundaries where Claude Code can work autonomously
- * **Write access restriction** : Claude Code can only write to the folder where it was started and its subfolders—it cannot modify files in parent directories without explicit permission. While Claude Code can read files outside the working directory (useful for accessing system libraries and dependencies), write operations are strictly confined to the project scope, creating a clear security boundary
+ * **Working directory boundary** : Claude Code can only write to the folder where it was started and its subfolders, and cannot modify files in parent directories without explicit permission. Reading paths outside this boundary with the Read, Grep, and Glob tools is possible after an approval prompt. Extend the boundary with [additional directories](</docs/en/permissions#working-directories>) to skip the prompt, or restrict the broader read access available to read-only Bash commands with [sandbox `denyRead` rules](</docs/en/sandboxing#filesystem-isolation>), which apply only when sandboxing is enabled
* **Prompt fatigue mitigation** : Support for allowlisting frequently used safe commands per-user, per-codebase, or per-organization
* **Accept Edits mode** : Auto-approves file edits and a fixed set of filesystem Bash commands like `mkdir`, `touch`, `rm`, `mv`, `cp`, and `sed` for paths in the working directory. Other Bash commands and out-of-scope paths still prompt
--- a/tools-reference.md
+++ b/tools-reference.md
@@ -1,4 +1,4 @@
-Claude Code has access to a set of built-in tools that help it understand and modify your codebase. The tool names are the exact strings you use in [permission rules](</docs/en/permissions#tool-specific-permission-rules>), [subagent tool lists](</docs/en/sub-agents>), and [hook matchers](</docs/en/hooks>). To disable a tool entirely, add its name to the `deny` array in your [permission settings](</docs/en/permissions#tool-specific-permission-rules>). To add custom tools, connect an [MCP server](</docs/en/mcp>). To extend Claude with reusable prompt-based workflows, write a [skill](</docs/en/skills>), which runs through the existing `Skill` tool rather than adding a new tool entry.
+Claude Code has access to a set of built-in tools that help it understand and modify your codebase. The tool names are the exact strings you use in [permission rules](</docs/en/permissions#tool-specific-permission-rules>), [subagent tool lists](</docs/en/sub-agents>), and [hook matchers](</docs/en/hooks>). To disable a tool entirely, add its name to the `deny` array in your [permission settings](</docs/en/permissions#tool-specific-permission-rules>). To add custom tools, connect an [MCP server](</docs/en/mcp>). To extend Claude with reusable prompt-based workflows, write a [skill](</docs/en/skills>), which runs through the existing `Skill` tool rather than adding a new tool entry. The Permission required column shows whether the tool prompts in the default permission mode for paths inside the working directory. File-access tools marked No, including `Read`, `Grep`, and `Glob`, still prompt for paths outside the [working directory and additional directories](</docs/en/permissions#working-directories>). `Bash` is marked Yes but runs a built-in set of [read-only commands](</docs/en/permissions#read-only-commands>) without prompting.
Tool| Description| Permission required
---|---|---
--- a/troubleshooting.md
+++ b/troubleshooting.md
@@ -7,7 +7,7 @@
Login loops, OAuth errors, `403 Forbidden`, “organization disabled”, Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry credentials| [Troubleshoot installation and login](</docs/en/troubleshoot-install#login-and-authentication>)
Settings not applying, hooks not firing, MCP servers not loading| [Debug your configuration](</docs/en/debug-your-config>)
`API Error: 5xx`, `529 Overloaded`, `429`, request validation errors| [Error reference](</docs/en/errors>)
-`model not found` or `you may not have access to it`| [Error reference](</docs/en/errors#there%E2%80%99s-an-issue-with-the-selected-model>)
+`model not found` or `you may not have access to it`| [Error reference](</docs/en/errors#theres-an-issue-with-the-selected-model>)
VS Code extension not connecting or detecting Claude| [VS Code integration](</docs/en/vs-code#fix-common-issues>)
JetBrains plugin or IDE not detected| [JetBrains integration](</docs/en/jetbrains#troubleshooting>)
High CPU or memory, slow responses, hangs, search not finding files| Performance and stability below
--- a/vs-code.md
+++ b/vs-code.md
@@ -83,7 +83,7 @@
The prompt box supports several features:
* **Permission modes** : click the mode indicator at the bottom of the prompt box to switch modes, or set the default in VS Code settings under `claudeCode.initialPermissionMode`. See [permission modes](</docs/en/permission-modes#switch-permission-modes>) for every mode the indicator offers.
- * **Manual** : Claude asks permission before each action.
+ * **Manual** : Claude asks permission before file edits and most shell commands.
* **Plan** : Claude describes what it will do and waits for approval before making changes. VS Code automatically opens the plan as a full Markdown document where you can add inline comments to give feedback before Claude begins.
* **Edit automatically** : Claude makes edits without asking.
* **Command menu** : click `/` or type `/` to open the command menu. Options include attaching files, switching models, toggling extended thinking, viewing plan usage (`/usage`), and starting a [Remote Control](</docs/en/remote-control>) session (`/remote-control`). The Customize section provides access to MCP servers, hooks, memory, permissions, and plugins. Items with a terminal icon open in the integrated terminal.