{"name":"code","slug":"code","family":"setting","title":"Settings keys","noun":"settings key","description":"MCP auth and HTTP failures are classified more accurately, and cancelled tool calls no longer trigger slow-call warnings.","description_source":"entry","described_by":{"version":"2.1.221","anchor":"mcp-error-classification-recognises-typed-http-and-oauth-err"},"presence":{"first_seen":"2.1.301","removed_in":"2.1.302","in_current_build":false,"newest_mined":"2.1.308","builds":1,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.296","anchor":"gateway-warns-that-claude-desktop-code-tab-needs-a-code-blo","heading":"Gateway warns when settings will not reach Claude Desktop's Code tab","line":"The Claude apps gateway now warns that only settings inside a `code:` block reach Claude Desktop's Code tab, even with `serve_to_desktop: true`","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text"},{"version":"2.1.296","anchor":"gateway-policy-files-new-code-block-and-clisettings-conf","heading":"Gateway policy files gain a code block for Claude Desktop's Code tab","line":"Gateway policy entries can now use a code block for Claude Desktop's Code tab, but it cannot be mixed with cli or settings blocks","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text"},{"version":"2.1.296","anchor":"managed-policies-accept-a-code-key-as-alternative-to-cli","heading":"Managed policy entries can carry a code section as well as cli","line":"Entries in `managed.policies` now accept a `code` key in addition to `cli`, and validation messages point to whichever one the entry uses","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text"},{"version":"2.1.296","anchor":"gateway-no-policy-message-now-names-the-exact-fix","heading":"Desktop gateway warning now tells admins exactly what to change","line":"The Desktop gateway warning now says to set `serve_to_desktop: true` on the user's policy, or change `cli` to `code` in every policy","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"docs-allowlist-widened-to-more-anthropic-hosts","heading":"More Anthropic sites count as trusted documentation hosts","line":"Claude Code's list of trusted documentation hosts now includes `claude.dev` and Anthropic's experimental and raw GitHub locations","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"claude-code-guide-skill-restricts-webfetch-to-two-docs-domai","heading":"Claude Code help skill can only fetch pages from Claude's docs sites without asking","line":"The built-in skill that answers questions about Claude Code now has web fetching approved only for code.claude.com and platform.claude.com","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"model-error-messages-get-codes-and-wording-for-hosts-withou","heading":"\/model error messages get codes and wording for hosts without the command","line":"Failed model switches now return an error code and no longer tell you to run `\/model` where it isn't available","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"model-picked-at-launch-skips-the-server-check","heading":"Model picked at launch skips the server check","line":"A model chosen at launch is no longer checked with the server, and rejected model switches now carry a code such as blocked_by_hook","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"model-switch-rejections-now-return-a-machine-readable-code","heading":"Model switch rejections now return a machine-readable code","line":"A blocked model switch now returns a `code` field naming the reason, such as `restricted_by_org` or `catalog_unknown`","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"setting-auto-permission-mode-now-returns-a-machine-readable","heading":"Setting auto permission mode now returns a machine-readable code","line":"When switching to auto permission mode fails, the result now includes a machine-readable `code` giving the reason","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"}],"entries_total":32,"docs":[{"source":"api","path":"about-claude\/additional-resources","title":"additional-resources","documented":false},{"source":"api","path":"about-claude\/api-credits-for-subscribers","title":"api-credits-for-subscribers","documented":false},{"source":"api","path":"about-claude\/glossary","title":"glossary","documented":false},{"source":"api","path":"about-claude\/model-deprecations","title":"model-deprecations","documented":false},{"source":"api","path":"about-claude\/models\/choosing-a-model","title":"choosing-a-model","documented":false},{"source":"api","path":"about-claude\/models\/migration-guide","title":"Or, for the model with the same capabilities and no access approval requirement:","documented":false},{"source":"api","path":"about-claude\/models\/optimizing-for-cost-and-intelligence","title":"optimizing-for-cost-and-intelligence","documented":false},{"source":"api","path":"about-claude\/pricing","title":"pricing","documented":false},{"source":"api","path":"about-claude\/use-case-guides\/commerce-agents","title":"commerce-agents","documented":false},{"source":"api","path":"about-claude\/use-case-guides\/content-moderation","title":"content-moderation","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/code","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}