{"name":"CLAUDE_CODE_HOST_SHORT_TEMP_DIRS","slug":"claude-code-host-short-temp-dirs","family":"env","title":"Environment variables","noun":"environment variable","description":"Depending on how Claude Code was launched, it clears CLAUDE_CODE_ENTRYPOINT and may set CLAUDE_CODE_HOST_SHORT_TEMP_DIRS to 0","description_source":"entry","described_by":{"version":"2.1.317","anchor":"host-short-temp-dirs-env-var-set-from-entrypoint-handling"},"presence":{"first_seen":"2.1.317","removed_in":null,"in_current_build":true,"newest_mined":"2.1.318","builds":2,"mined_builds":158,"first_cited":{"version":"2.1.317","released_at":"2026-11-02 23:57:53","spans":2}},"aliases":[],"entries":[{"version":"2.1.317","anchor":"host-short-temp-dirs-env-var-set-from-entrypoint-handling","heading":"Some launches now set CLAUDE_CODE_HOST_SHORT_TEMP_DIRS to 0 unless you set it","line":"Depending on how Claude Code was launched, it clears CLAUDE_CODE_ENTRYPOINT and may set CLAUDE_CODE_HOST_SHORT_TEMP_DIRS to 0","released_at":"2026-11-02 23:57:53","reason":"found in this entry's text, named in this entry"},{"version":"2.1.317","anchor":"new-env-vars-forwarded-to-spawned-processes-claude-code-dis","heading":"Two Claude Code environment variables now reach the programs it starts","line":"`CLAUDE_CODE_DISABLE_MCP_TASKS` is now passed on to programs Claude Code starts, and `CLAUDE_CODE_HOST_SHORT_TEMP_DIRS` is always set for them","released_at":"2026-11-02 23:57:53","reason":"found in this entry's text"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_HOST_AUTH_ENV_VAR","slug":"claude-code-host-auth-env-var","description":"When Claude Code removes certain environment variables, it now keeps the one named by `CLAUDE_CODE_HOST_AUTH_ENV_VAR`"},{"name":"CLAUDE_CODE_HOST_AUTH_REFRESH_TIMEOUT_MS","slug":"claude-code-host-auth-refresh-timeout-ms","description":"Milliseconds Claude Code waits for the SDK host to answer a `host_auth_token_refresh` control request, used by the refresh hook registered when `CLAUDE_CODE_SDK_HAS_HOST_AUTH_REFRESH` is set. Default `30000`; an unset, empty, `0` or non-numeric value uses the default."},{"name":"CLAUDE_CODE_HOST_CREDS_FILE","slug":"claude-code-host-creds-file","description":"A trailing slash in your host credentials file path no longer changes whether the rule matches."},{"name":"CLAUDE_CODE_HOST_GATEWAY_LINEAGE","slug":"claude-code-host-gateway-lineage","description":"New CLAUDE_CODE_HOST_GATEWAY_LINEAGE variable keeps child processes of a Desktop-hosted gateway session treated as host-managed"},{"name":"CLAUDE_CODE_HOST_GUARDS_ARTIFACTS_MCP","slug":"claude-code-host-guards-artifacts-mcp","description":"A remote tool host can now be released after an idle time set remotely, and Claude Code reads status updates from it during a session"},{"name":"CLAUDE_CODE_HOST_PLATFORM","slug":"claude-code-host-platform","description":"A value of `win32`, `darwin` or `linux` replaces the real `process.platform` as the `platform` Claude Code reports alongside its version and account ids and in its environment details; any other value falls back to the real platform. The raw value is also reported as `platformRaw` (`linux` when unset) and read as the `hostPlatform` fact during environment detection."},{"name":"CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD","slug":"claude-code-host-prompt-supersedes-record","description":"`CLAUDE_CODE_HOST_PROMPT_SUPERSEDES_RECORD`, `CLAUDE_CODE_MCP_SERVE_SETTINGS` and `CLAUDE_CODE_DISABLE_WEB_FETCH` are now passed along"},{"name":"CLAUDE_CODE_HOST_SCHEDULED_RUN","slug":"claude-code-host-scheduled-run","description":"Scheduled-run tasks can now report why they fired, but only if the host explicitly opts in via CLAUDE_CODE_HOST_SCHEDULED_RUN=1"},{"name":"CLAUDE_CODE_HOST_SESSION_ID","slug":"claude-code-host-session-id","description":"Claude Code now recognizes a CLAUDE_CODE_HOST_SESSION_ID environment variable"},{"name":"CLAUDE_CODE_HOST_SKILL_CATALOG","slug":"claude-code-host-skill-catalog","description":"In remote sessions, `CLAUDE_CODE_HOST_SKILL_CATALOG` can list the skills allowed to load, and invalid values are ignored with a warning"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-host-short-temp-dirs","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}