Code in Claude Desktop on 3P changedthird-party/claude-desktop/code
Nearest release: v2.1.336, published 3 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 3 Dec 2026 22:01 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+15added
Lines−8removed
From line
18
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits60to this page, all time
The whole hunk
from line 18, old and new numbered
/
from line 18
1818| - | - |
1919| `inferenceProvider` and all provider credential keys (`inferenceGateway*`, `inferenceAnthropicApiKey`, `inferenceVertex*`, `inferenceBedrock*`, `inferenceFoundry*`, `inferenceCredentialHelper*`) | Selects the inference backend and supplies credentials. Code sessions use the same provider and endpoint as Cowork sessions, and the same credentials unless [your organization's launcher](#start-code-sessions-through-a-corporate-launcher) starts them or an SSH session uses [the host's own AWS profile](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#amazon-bedrock-with-a-named-profile). |
2020| `inferenceModels` | Populates the model picker. The first entry is the default for new Code sessions. |
21| `autoModeEnabled` | Controls **Auto mode**, which needs a [model that supports it](https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode). When the key isn't set, Code sessions offer **Auto mode** and new sessions start in it unless the user has already chosen another mode or a Claude Code `permissions.defaultMode` applies. On Claude Opus 4.6 and Claude Sonnet 4.6, users can pick **Auto mode**, but it isn't the default. While **Auto mode** is available, its safety classifier also decides shell commands in **Plan** mode. Set it to `false` to remove **Auto mode** from Code and Cowork. Set it to `true` to also offer the mode in Cowork, where it appears as **Automatically approve**. In Code sessions, a separately deployed Claude Code [managed-settings file](#interaction-with-claude-code%E2%80%99s-own-managed-settings) that sets `disableAutoMode` to `"disable"` also keeps **Auto mode** hidden, whatever this key is set to. To change what **Auto mode** allows and blocks, see [Tune the Auto mode classifier](#tune-the-auto-mode-classifier). For who reviews actions on a gateway deployment, see [Auto mode checks](https://claude.com/docs/third-party/claude-desktop/gateway.md#auto-mode-checks). |
21| `autoModeEnabled` | Controls **Auto mode**, which needs a [model that supports it](https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode). When the key isn't set, Code sessions offer **Auto mode** and new sessions start in it unless the user has already chosen another mode or a Claude Code `permissions.defaultMode` applies. On Claude Opus 4.6 and Claude Sonnet 4.6, users can pick **Auto mode**, but it isn't the default. While **Auto mode** is available, its safety classifier also decides shell commands in **Plan** mode. Set it to `false` to remove **Auto mode** from Code and Cowork. Set it to `true` to also offer the mode in Cowork. In Code sessions, a separately deployed Claude Code [managed-settings file](#interaction-with-claude-code%E2%80%99s-own-managed-settings) that sets `disableAutoMode` to `"disable"` also keeps **Auto mode** hidden, whatever this key is set to. To change what **Auto mode** allows and blocks, see [Tune the Auto mode classifier](#tune-the-auto-mode-classifier). For who reviews actions on a gateway deployment, see [Auto mode checks](https://claude.com/docs/third-party/claude-desktop/gateway.md#auto-mode-checks). |
2222| `autoModeClassifierModel` | Sets the model for Claude Code's built-in safety check in **Auto mode**. Claude Code managed settings that set `CLAUDE_CODE_AUTO_MODE_MODEL` can take priority. See [Choose the Auto mode classifier model](#choose-the-auto-mode-classifier-model). |
2323| `scheduledTasksEnabled` | When `false`, no routine starts, and Code hides the routines list, except that routines saved on the device stay listed until the user deletes them. Code sessions start without Claude Code's in-session scheduling tools, so the `/loop` command cannot schedule recurring work. Cowork's scheduled tasks are turned off by the same key. |
2424| `disabledBuiltinTools` | Removes the listed tools from Code sessions. A `Read(…)` rule applies to Claude's file tools, and [only in part to shell commands](#file-path-rules-and-shell-commands). Tools your provider doesn't support, such as WebSearch on Amazon Bedrock, are removed automatically in addition to your list. To stop Claude from starting nested sessions (separate sessions for a task), add `mcp__ccd_session__start_session` and `mcp__ccd_session__hand_off_to_session`. Claude then can't start a nested session, even at a user's request or from inside one. In the [in-app configuration window](https://claude.com/docs/third-party/claude-desktop/in-app-configuration.md#set-up-a-device-without-mdm) or the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md#start-from-an-existing-configuration-file), where the tool picker doesn't list these names, import your full configuration as JSON with the names added. Otherwise, add them to your MDM profile or bootstrap server's response. |
from line 179
179179A session doesn't start if Claude Desktop can't use the launcher you named. For example:
180180
181181* **The launcher file or value**: the file is missing or isn't executable, or the value doesn't follow Claude Code's [launcher value format](https://code.claude.com/docs/en/corporate-launcher#format-of-the-launcher-value).
182* **The version that the launcher runs**: Claude Desktop passes the launcher the path of the Claude Code engine. Have the launcher run the engine at that path, as the [launcher contract](https://code.claude.com/docs/en/corporate-launcher#the-launcher-contract) says, and not another copy of Claude Code. If the launcher runs a different version, Claude Desktop shows a card, such as one of these:
182* **The version that the launcher runs**: Claude Desktop passes the launcher the path of the Claude Code engine. Have the launcher run the engine at that path, as the [launcher contract](https://code.claude.com/docs/en/corporate-launcher#the-launcher-contract) says, and not another copy of Claude Code. If the launcher runs a version that Claude Desktop doesn't accept, Claude Desktop shows a card, such as one of these:
183183
184 * **A version that starts**: Claude Desktop stops that process and shows the card `Your organization's launcher started a different Claude Code version`. The card's details name the version that Claude Desktop requires.
184 * **A version that starts**: Claude Desktop stops that process and shows the card `Your organization's launcher started a different Claude Code version`. The card's details name the version or versions that Claude Desktop accepts.
185185 * **A much older version**: that version can exit at once because it doesn't know an option that Claude Desktop passes. Claude Desktop then shows the card `Your organization's launcher didn't start Claude Code`.
186186
187187 Sending another message brings the same card. Over SSH, the card's title also names the host.
188* **A launcher on an SSH host that runs its own copy**: where a launcher on an SSH host has to run its own copy of Claude Code, such as one built into a container image, Claude Desktop accepts the version that it passed and up to 30 patch releases after it. For 2.1.332, those are 2.1.332 to 2.1.362. Claude Desktop doesn't accept an earlier version, a pre-release build, or a release that needs a newer Claude Desktop. Each Claude Desktop update can raise the version that it passes, so update the launcher's copy before devices update. Under each release, the [Claude Desktop release notes](https://claude.com/docs/cowork/changelog.md) give the `Bundled Claude Code version`. Before Claude Desktop sends the first message to a later release, it checks that Claude Code received the `--settings` and `--managed-settings` options and that Claude Code's usage analytics are off, so have the launcher pass on every option and every environment variable that it receives. If a check fails, Claude Desktop stops the process and shows the card `Your organization's launcher started a different Claude Code version`, and the card's details say which check failed. Claude Desktop still accepts only the version that it passed in these cases:
189
190 * A launcher on the device itself
191 * A device where [`sshHostProgramsPreinstalled`](https://claude.com/docs/third-party/claude-desktop/configuration#sshhostprogramspreinstalled) is `true`
192 * A device that gets its configuration from the [Enterprise Admin Console](https://claude.com/docs/third-party/claude-desktop/admin-console.md)
193
194 Before Claude Desktop 18.35363.0, Claude Desktop accepts only the version that it passed, on an SSH host too.
188195* **The `--version` run on an SSH host**: Claude Desktop's [remote server](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#how-a-remote-session-works) on the host runs the launcher with the Claude Code engine's path and `--version`. It does so, with a time limit, when Claude Desktop places the engine on the host or checks the one that is there. Have the launcher run that path with `--version` and exit with Claude Code's status. Claude Desktop passes this run none of the variables that it sets for a session, such as `ANTHROPIC_BASE_URL`, so the launcher must not fail this run because they are missing. If the run doesn't end with status 0 within the limit, the session doesn't start. If the run failed before the limit, Claude Desktop shows the card `Your organization's launcher on <host> didn't start Claude Code during setup`.
189196
190197#### Devices that skip the corporate launcher
from line 202
195202
196203## Tune the Auto mode classifier
197204
198In [**Auto mode**](https://claude.com/docs/third-party/claude-desktop/configuration.md#automodeenabled), which Cowork shows as **Automatically approve**, a safety classifier reviews Claude's actions and blocks the ones it judges risky. To tell it what your organization trusts, or to add block and allow rules, set [`autoModeRules`](https://claude.com/docs/third-party/claude-desktop/configuration#automoderules) where your devices [get their configuration](https://claude.com/docs/third-party/claude-desktop/configuration-format.md#which-configuration-source-applies-on-a-device). The key takes the value of Claude Code's [`autoMode` settings](https://code.claude.com/docs/en/auto-mode-config), and applies to Cowork sessions and to Code sessions, including those on an SSH host.
205In [**Auto mode**](https://claude.com/docs/third-party/claude-desktop/configuration.md#automodeenabled), a safety classifier reviews Claude's actions and blocks the ones it judges risky. To tell it what your organization trusts, or to add block and allow rules, set [`autoModeRules`](https://claude.com/docs/third-party/claude-desktop/configuration#automoderules) where your devices [get their configuration](https://claude.com/docs/third-party/claude-desktop/configuration-format.md#which-configuration-source-applies-on-a-device). The key takes the value of Claude Code's [`autoMode` settings](https://code.claude.com/docs/en/auto-mode-config), and applies to Cowork sessions and to Code sessions, including those on an SSH host.
199206
200207For example, describe an internal service, add one allow rule, and add one block rule:
201208
from line 267
260267
261268### Choose the Auto mode classifier model
262269
263In [**Auto mode**](https://claude.com/docs/third-party/claude-desktop/configuration.md#automodeenabled), which Cowork shows as **Automatically approve**, a safety classifier reviews Claude's actions. Sessions [ask your model provider for a review first](https://code.claude.com/docs/en/permission-modes#server-side-classifier-review), except on a gateway where [server-side Auto mode checks](https://claude.com/docs/third-party/claude-desktop/gateway.md#auto-mode-checks) are off. When the provider doesn't review the session, Claude Code's built-in safety check does. The built-in safety check is temporary: after Claude Code removes it, actions that need a review don't run without your provider's review, whichever model you choose.
270In [**Auto mode**](https://claude.com/docs/third-party/claude-desktop/configuration.md#automodeenabled), a safety classifier reviews Claude's actions. Sessions [ask your model provider for a review first](https://code.claude.com/docs/en/permission-modes#server-side-classifier-review), except on a gateway where [server-side Auto mode checks](https://claude.com/docs/third-party/claude-desktop/gateway.md#auto-mode-checks) are off. When the provider doesn't review the session, Claude Code's built-in safety check does. The built-in safety check is temporary: after Claude Code removes it, actions that need a review don't run without your provider's review, whichever model you choose.
264271
265272The built-in safety check uses Claude Sonnet 5 by default, and [some sessions use a different model](https://code.claude.com/docs/en/permission-modes#default-classifier-model). The check sends Claude Code's ID for Sonnet 5, such as `claude-sonnet-5` on a gateway or `us.anthropic.claude-sonnet-5` with your region's prefix on Amazon Bedrock. If you set [`inferenceModels`](https://claude.com/docs/third-party/claude-desktop/configuration#inferencemodels) without that exact ID, or if the check's first request in a session fails, the check can use the session's own model. To keep the check on one model, choose a model that your provider serves, such as Claude Sonnet 5. The model you choose doesn't affect your provider's reviews.
266273
from line 309
302309
303310### Run vetted connector tools without classifier review
304311
305In Cowork's [**Automatically approve**](https://claude.com/docs/third-party/claude-desktop/configuration.md#automodeenabled) mode, the safety classifier reviews Claude's calls to a connector tool whose [`toolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#tool-permissions-for-managed-mcp-servers) in `managedMcpServers` is `"allow"`, and can block them. To run a tool without that review, add a `permissions.allow` rule for it to your Claude Code managed settings, beside any `autoMode` block:
312In Cowork's [**Auto**](https://claude.com/docs/third-party/claude-desktop/configuration.md#automodeenabled) mode, the safety classifier reviews Claude's calls to a connector tool whose [`toolPolicy`](https://claude.com/docs/third-party/claude-desktop/configuration#tool-permissions-for-managed-mcp-servers) in `managedMcpServers` is `"allow"`, and can block them. To run a tool without that review, add a `permissions.allow` rule for it to your Claude Code managed settings, beside any `autoMode` block:
306313
307314```json managed-settings.json theme={null}
308315{
from line 345
338345
339346Your policy also applies to mods in [plugins from your marketplaces](https://claude.com/docs/third-party/claude-desktop/extensions.md#plugin-marketplaces-admin). For a tool that a mod must never call, even with the user's approval, block the tool.
340347
341In **Auto mode** and in Cowork's **Automatically approve** mode, the safety classifier doesn't review a mod's calls, so your [Auto mode rules](#tune-the-auto-mode-classifier) don't apply to them.
348In **Auto mode**, in Code and in Cowork, the safety classifier doesn't review a mod's calls, so your [Auto mode rules](#tune-the-auto-mode-classifier) don't apply to them.
342349
343350Your tool policies don't cover what a mod or a hook does without calling a tool. To control that, limit which mods and hooks run: see [Stop user-installed mods from loading](#stop-user-installed-mods-from-loading) and [Turn off user hooks](https://claude.com/docs/third-party/claude-desktop/extensions.md#turn-off-user-hooks). To limit which plugins users can add, see [Controlling user extensions](https://claude.com/docs/third-party/claude-desktop/extensions.md#controlling-user-extensions).
344351
No line in this hunk matches that.