{"version":"2.1.333","anchor":"sdk-init-gets-code-mode-field-for-desktop-code-tab","canonical_anchor":"sdk-init-gets-code-mode-field-for-desktop-code-tab","heading":"Session start data can now mark a turn as running in Code Mode","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sdk-init-gets-code-mode-field-for-desktop-code-tab","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Session start data can now mark a turn as running in Code Mode\n\nThe data Claude Code sends to programs driving it has a new internal field marking a turn as running in Code Mode, for Claude Desktop's Code tab\n\n**What**\n\nThe SDK is the toolkit other programs use to run Claude Code. The information it sends when a session starts has a new optional field, `code_mode`, which can only be true. It marks a turn as running in Code Mode, for the Code tab in Claude Desktop. The field is marked internal.\n\n**Why**\n\nThis is part of how Claude Desktop's Code tab works with Claude Code. Because it is internal, it is not meant for other programs to rely on.\n\n- Area: SDK\n- Names: `code_mode`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}