Code in Claude Desktop on 3P changedthird-party/claude-desktop/code
Nearest release: v2.1.334, published an hour 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 1 Dec 2026 20:12 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 1 Dec 2026 20:37 UTC.
Upstream edited
Recorded here
Lines+10added
Lines−4removed
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, not a prompt, 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, 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). |
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). |
23| `scheduledTasksEnabled` | When `false`, the routines list in Code is hidden and 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. |
23| `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. |
2525| `builtinToolPolicy` | Tools set to `"ask"` require approval on each call in Code sessions. Argument-scoped rules such as `Bash(curl *)` are [applied as managed policy](#applied-as-managed-policy) instead. |
2626| `disableBypassPermissionsMode` | Removes bypass permissions mode. The app stops offering the mode and starts a session that requests it in a stricter permission mode instead, independent of Claude Code managed-settings precedence. The key requires Claude Desktop 1.46388.1 or later. A separately deployed Claude Code managed-settings file that sets `permissions.disableBypassPermissionsMode` to `"disable"` removes the mode as well. |
from line 60
6060* **Ubuntu 24.04**: to allow the sandbox, see [Add an AppArmor profile for bubblewrap](https://code.claude.com/docs/en/sandboxing#add-an-apparmor-profile-for-bubblewrap).
6161* **Ubuntu 26.04**: if you add that profile, Ubuntu's own AppArmor profile for bubblewrap can replace it after any reboot or AppArmor reload, and shell commands then fail again.
6262
63On a Linux device or SSH host that doesn't allow user namespaces, for example where `user.max_user_namespaces` is `0`, `bubblewrap` can't start. Even where user namespaces are allowed, SELinux can keep `bubblewrap` from starting for a login that is mapped to a confined SELinux user, such as `user_u` or `staff_u`. For a user for whom `bubblewrap` can't start, every sandboxed shell command fails once `bubblewrap` and `socat` are both installed on the machine. Before you install `socat` on a machine, install `bubblewrap` alone. Then sign in as a user who runs sessions. Don't sign in as root, and don't switch to that user with `su` or `sudo`. Run `bwrap --unshare-user --unshare-net --dev-bind / / /bin/true`. Where your users' logins are mapped to different SELinux users, run the command as one login of each mapping. If any run of the command exits with a status other than 0, don't install `socat` on that machine. For two causes, you can instead remove the cause and run the command again. On Ubuntu 24.04 and later, AppArmor can be the cause: see the list above this paragraph. On a machine that doesn't allow user namespaces, you can allow them. Where SELinux is the cause, don't install `socat`. Without `socat`, shell commands run unsandboxed unless a setting requires the sandbox.
64
6365> [!WARNING]
6466>
6567> Shell commands that run unsandboxed can reach hosts outside `coworkEgressAllowedHosts`, change files outside `allowedWorkspaceFolders`, and read files outside the working directories. Where the sandbox runs, a command that matches [`sandbox.excludedCommands`](https://code.claude.com/docs/en/sandboxing#run-commands-outside-the-sandbox-with-excludedcommands) in the user's own Claude Code settings also runs outside it, after Claude Code's regular permission flow. To keep Code off devices where the sandbox can't run, [turn off Code](#disabling-code) in the configuration you deploy to them. For SSH hosts, see [Refuse sessions on a host without a working sandbox](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#refuse-sessions-on-a-host-without-a-working-sandbox) and [Sandbox status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#sandbox-status-on-the-remote-host).
from line 124
122124
123125### Policy status on the device
124126
125Claude Desktop checks whether Claude Code managed settings replace your policy on the device. Each time it starts Claude Code on the device for a Code, Cowork, or Chat session, it asks Claude Code whether Claude Code applies the [managed policy](#applied-as-managed-policy) values that Claude Desktop sent. A session over SSH has [its own check](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#policy-status-on-the-remote-host), and a WSL session has none. Requires Claude Desktop 5.1231.0 or later.
127Claude Desktop checks whether Claude Code managed settings replace your policy on the device. Each time it starts Claude Code on the device for a Code, Cowork, or Chat session, it asks Claude Code whether Claude Code applies the [managed policy](#applied-as-managed-policy) values that Claude Desktop sent. Requires Claude Desktop 5.1231.0 or later. A session over SSH has [its own check](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#policy-status-on-the-remote-host). A Code session in WSL has the check described at the end of this section.
126128
127129If Claude Code answers no, the session continues. Cowork and Chat sessions show no message. A Code session shows a message that begins with these words:
128130
from line 155
153155
154156Claude Code answers yes when it applies at least one of the sent values, not necessarily all of them. Even with no message and no event, Claude Code can still leave out part of your policy.
155157
158In Claude Desktop 18.19841.0 or later, Claude Desktop asks Claude Code the same question in a Code session in WSL, once each time Claude Code starts there. Earlier versions don't ask. If Claude Code answers no, the session continues and shows the message under [Policy status on the remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#policy-status-on-the-remote-host), with `wsl:<distribution>` in place of the host. Your collector receives the `desktop_ssh_policy_check_failed` event described there, with `backend_kind` set to `wsl`.
159
160To fix a distribution, set `parentSettingsBehavior` to `"merge"` in the Claude Code managed settings that the distribution uses. Claude Desktop doesn't ask again after each turn, so have the user start a new session to check the fix.
161
156162### Start Code sessions through a corporate launcher
157163
158164If your organization starts Claude Code through a [corporate launcher](https://code.claude.com/docs/en/corporate-launcher), Code sessions in Claude Desktop can go through it too. This takes two settings:
from line 189
183189
184190#### Devices that skip the corporate launcher
185191
186To keep users from turning the launcher off, set `claudeCodeProcessWrapperEnabled` in the device's [managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#devices-with-a-managed-profile), which users can't change. The key is an [app-behavior key](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence), so add every other app-behavior key you use, such as the update keys, to the same profile. If the profile sets any other kind of key, also [keep the device on its managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#keep-a-device-on-its-managed-profile).
192To keep users from turning the launcher off, set `claudeCodeProcessWrapperEnabled` in the device's [managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#devices-with-a-managed-profile), which users can't change. Put the key in the same profile as the other app-behavior keys that you use. If the profile sets any key that isn't an [app-behavior key](https://claude.com/docs/third-party/claude-desktop/mdm.md#update-keys-and-managed-precedence), also [keep the device on its managed profile](https://claude.com/docs/third-party/claude-desktop/admin-console.md#keep-a-device-on-its-managed-profile).
187193
188194An SSH host's managed settings alone can't make Claude Desktop's sessions use the launcher. Any device where `claudeCodeProcessWrapperEnabled` is `false` or missing, managed by you or not, doesn't use a launcher that the host's settings name. If the inference credential in that device's configuration is a [kind that is refused on a remote host](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#inference-credentials-on-the-remote-host), Claude Desktop refuses the SSH session at the start. Otherwise, it starts the Claude Code engine on the host directly, with that credential or, with [Amazon Bedrock and a named profile](https://claude.com/docs/third-party/claude-desktop/ssh-remote-sessions.md#amazon-bedrock-with-a-named-profile), with the host's own profile.
189195
No line in this hunk matches that.