{"name":"CLAUDE_CODE_ENVIRONMENT_KIND","slug":"claude-code-environment-kind","family":"env","title":"Environment variables","noun":"environment variable","description":"Long sessions can pick up fresh credentials pushed over the live connection instead of dropping out.","description_source":"entry","described_by":{"version":"2.1.221","anchor":"ccr-client-can-adopt-refreshed-auth-pushed-over-the-event-st"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.234","released_at":"2026-08-17 18:19:13","spans":4}},"aliases":[],"entries":[{"version":"2.1.307","anchor":"new-hidden-runner-declares-flag-lets-a-self-hosted-runner","heading":"Hidden option lets a self-hosted runner declare what it can handle","line":"A hidden --runner-declares option lets a self-hosted runner tell Claude Code it handles changes found in nested repositories","released_at":"2026-10-21 20:47:18","reason":"found in this entry's text"},{"version":"2.1.305","anchor":"mcp-tasks-cloud-container-hold-capped-by-tengu-curious-rive","heading":"Long-running MCP tasks in cloud sessions stop holding the container up after a time limit","line":"In Anthropic cloud sessions, a running MCP task stops keeping its cloud container up after a set number of hours, 168 by default","released_at":"2026-10-20 19:29:36","reason":"found in this entry's text"},{"version":"2.1.305","anchor":"cloud-only-mcp-host-allowdeny-list-via-tengu-gleaming-creek","heading":"Cloud sessions can allow or block MCP servers by host","line":"In Anthropic cloud sessions, Claude Code can check each MCP server's host against an allow or deny list sent by the server","released_at":"2026-10-20 19:29:36","reason":"found in this entry's text"},{"version":"2.1.301","anchor":"claude-code-remote-environment-type-added-to-a-forwarded-o","heading":"CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE joins a list of remote environment variables","line":"`CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE` now sits on the same list as other remote environment variables","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text, named in this entry"},{"version":"2.1.301","anchor":"self-hosted-byoc-remote-environment-detector","heading":"Claude Code now recognises self-hosted remote environments of kind byoc","line":"Claude Code can now tell when it runs in a self-hosted `byoc` remote environment, using three environment variables","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text"},{"version":"2.1.300","anchor":"standalone-agent-proxy-mode-for-self-hosted-runner-sessions","heading":"Self-hosted runner sessions can send all traffic through your own proxy","line":"On self-hosted runners, Claude Code can route all session traffic through a proxy you run, and refuses to start if it cannot","released_at":"2026-10-14 14:27:26","reason":"found in this entry's text"},{"version":"2.1.300","anchor":"writeedit-refuse-paths-that-look-like-the-users-own-comput","heading":"Linux sessions refuse to write files to paths on your own Mac or Windows computer","line":"On Linux, Claude Code now refuses to write a file whose path looks like a Mac or Windows user path, and nothing is written","released_at":"2026-10-14 14:27:26","reason":"found in this entry's text"},{"version":"2.1.295","anchor":"claude-mcp-serve-gains-an-http-transport-port-and-ses","heading":"claude mcp serve gains an HTTP mode, limited to remote cloud sessions","line":"In remote cloud sessions only, `claude mcp serve` can now listen over HTTP with `--transport`, `--port` and `--session-tunnel`","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text"},{"version":"2.1.292","anchor":"remote-session-helper-checks-claude-code-environment-kind-is","heading":"Remote session check now requires CLAUDE_CODE_ENVIRONMENT_KIND to be unset","line":"A check for remote sessions now passes only when `CLAUDE_CODE_ENVIRONMENT_KIND` is unset and the session is not a child session","released_at":"2026-10-06 17:10:31","reason":"found in this entry's text, named in this entry"},{"version":"2.1.273","anchor":"bridge-child-sessions-now-default-to-computing-tool-use-diff","heading":"Bridge child sessions now default to computing tool-use diffs","line":"Bridge-hosted child sessions now default to computing a git diff for Write and Edit tool calls","released_at":"2026-09-15 18:06:34","reason":"found in this entry's text, named in this entry"}],"entries_total":32,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION","slug":"claude-code-environment-runner-version","description":"When non-empty, its value is sent as the `x-environment-runner-version` header on the session transport connection, both in the initial headers and on every header refresh."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-environment-kind","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}