{"name":"CLAUDE_CODE_REMOTE_SESSION_ORIGIN","slug":"claude-code-remote-session-origin","family":"env","title":"Environment variables","noun":"environment variable","description":"Remote sessions started from review can skip writing some state to disk.","description_source":"entry","described_by":{"version":"2.1.221","anchor":"review-origin-remote-sessions-skip-some-disk-persistence"},"presence":{"first_seen":"2.1.217","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":81,"mined_builds":150,"first_cited":{"version":"2.1.309","released_at":"2026-10-22 20:34:13","spans":2}},"aliases":[],"entries":[{"version":"2.1.309","anchor":"runner-review-sessions-guard-tokens-at-startup","heading":"Remote review sessions now run a token check at start-up","line":"When `CLAUDE_CODE_REMOTE_SESSION_ORIGIN` is `review`, Claude Code now runs a token safeguard before handling its other start-up arguments","released_at":"2026-10-22 20:34:13","reason":"named in this entry, found in this entry's text"},{"version":"2.1.309","anchor":"self-hosted-review-sessions-run-a-special-startup-hook","heading":"Self-hosted code review sessions run an extra startup step","line":"Claude Code runs an extra step at startup when three environment variables mark the session as a self-hosted code review","released_at":"2026-10-22 20:34:13","reason":"found in this entry's text"},{"version":"2.1.309","anchor":"remote-session-origin-now-read-from-the-sessions-environmen","heading":"Remote session origin is now read on every platform, not only Windows","line":"Claude Code now reads `CLAUDE_CODE_REMOTE_SESSION_ORIGIN` from a session's environment variables on all platforms instead of only on Windows","released_at":"2026-10-22 20:34:13","reason":"named in this entry, found in this entry's text"},{"version":"2.1.309","anchor":"self-hosted-runner-treats-code-review-sessions-specially-to","heading":"Self-hosted runners handle code review sessions more strictly","line":"Self-hosted runners now refuse code reviews in some setups, run them without local settings, and pass their tokens outside the environment","released_at":"2026-10-22 20:34:13","reason":"named in this entry, found in this entry's text"},{"version":"2.1.221","anchor":"review-origin-remote-sessions-skip-some-disk-persistence","heading":"Review-origin remote sessions skip some disk persistence","line":"Remote sessions started from review can skip writing some state to disk.","released_at":"2026-08-03 22:16:25","reason":"named in this entry, found in this entry's text"},{"version":"2.1.217","anchor":"remote-workflow-launch-via-server-events-ccr","heading":"Remote Workflow Launch via Server Events (CCR)","line":null,"released_at":"2026-07-21 19:55:38","reason":"found in this entry's text"}],"entries_total":6,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_REMOTE_SESSION_ID","slug":"claude-code-remote-session-id","description":"Commands blocked in cloud sessions now tell you the exact local command to run instead."},{"name":"CLAUDE_CODE_REMOTE_SESSION_UUID","slug":"claude-code-remote-session-uuid","description":"Runner hooks now get CLAUDE_RUNNER_SESSION_UUID and CLAUDE_CODE_REMOTE_SESSION_UUID so your scripts can key on the session."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-remote-session-origin","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}