{"version":"2.1.334","anchor":"ccr-code-surface-entrypoint-detection","canonical_anchor":"ccr-code-surface-entrypoint-detection","heading":"Remote sessions are detected through a new code-surface check","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/ccr-code-surface-entrypoint-detection","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Remote sessions are detected through a new code-surface check\n\nClaude Code now identifies remote (CCR) code sessions through a code-surface helper as well as `CLAUDE_CODE_REMOTE` and `CLAUDE_CODE_ENTRYPOINT`\n\n**What**\n\nA remote session is one running in the cloud rather than on your own machine, called CCR inside Claude Code. Claude Code has changed how it recognises these sessions:\n\n- The session's entrypoint, meaning where it was started from, now comes from a CCR code-surface helper when one applies. It falls back to `CLAUDE_CODE_ENTRYPOINT` only when `CLAUDE_CODE_REMOTE` is set. It used to require `CLAUDE_CODE_REMOTE` plus an `CLAUDE_CODE_ENTRYPOINT` value from a fixed set.\n\n- A new `ccrCodeSurface` value is added to the details Claude Code collects about the session.\n\n- A new check combines the code-surface value with other conditions to decide whether this is a cloud code session.\n\n- The check that looks for `CLAUDE_CODE_SESSION_KIND` set to `bg`, meaning a background or hosted session, now answers yes straight away when `CLAUDE_CODE_REMOTE` is set, before it looks at `CLAUDE_CODE_ENTRYPOINT`.\n\n**Why**\n\nClaude Code now has a second way to recognise a cloud code session besides environment variables. Anything that depends on that check may now behave the same way in every remote session, whatever its entrypoint.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_ENTRYPOINT`, `CLAUDE_CODE_REMOTE`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}