{"version":"2.1.274","anchor":"new-claude-code-host-session-id-passthrough-env-var","canonical_anchor":"new-claude-code-host-session-id-passthrough-env-var","heading":"New CLAUDE_CODE_HOST_SESSION_ID passthrough env var","tier":"use","area":"Environment Variables","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274\/e\/new-claude-code-host-session-id-passthrough-env-var","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274","markdown":"### New CLAUDE_CODE_HOST_SESSION_ID passthrough env var\n\nClaude Code now recognizes a CLAUDE_CODE_HOST_SESSION_ID environment variable\n\n**Unclear.** The finding does not say what consumes this value or what behavior depends on it.\n\n**What**\n\nClaude Code now forwards and recognizes a new environment variable, `CLAUDE_CODE_HOST_SESSION_ID`, alongside existing ones like `CLAUDE_CODE_ENTRYPOINT` and `CLAUDE_CODE_IS_COWORK`.\n\n**Why**\n\nThis lets the host environment that launches Claude Code pass through an identifier for the session it is running inside, which other internal logic (such as entry-point-specific gating) can rely on.\n\n- Area: Environment Variables\n- Names: `CLAUDE_CODE_HOST_SESSION_ID`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}