{"version":"2.1.309","anchor":"self-hosted-review-sessions-run-a-special-startup-hook","canonical_anchor":"self-hosted-review-sessions-run-a-special-startup-hook","heading":"Self-hosted code review sessions run an extra startup step","tier":"internal","area":"Code Review","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.309\/e\/self-hosted-review-sessions-run-a-special-startup-hook","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.309","markdown":"### Self-hosted code review sessions run an extra startup step\n\nClaude Code runs an extra step at startup when three environment variables mark the session as a self-hosted code review\n\n**What**\n\nClaude Code now runs an extra step at startup when three environment variables, settings a program reads when it starts, all have these values:\n\n- `CLAUDE_CODE_REMOTE_SESSION_ORIGIN` is `review`\n\n- `CLAUDE_CODE_ENVIRONMENT_KIND` is `byoc`\n\n- `CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE` is `self_hosted`\n\n**Why**\n\nCode review sessions running on self-hosted infrastructure now get handling of their own.\n\n- Area: Code Review\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}