{"name":"CLAUDE_CODE_SESSION_KIND","slug":"claude-code-session-kind","family":"env","title":"Environment variables","noun":"environment variable","description":"You get a one-time warning line if a query names a model Claude Code does not recognise.","description_source":"entry","described_by":{"version":"2.1.233","anchor":"warning-when-an-unrecognized-model-is-sent-to-the-api"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.259","released_at":"2026-09-02 21:21:42","spans":3}},"aliases":[],"entries":[{"version":"2.1.290","anchor":"background-sessions-ignore-allow-dangerously-skip-permissi","heading":"Background sessions ignore --allow-dangerously-skip-permissions without recorded consent","line":"Background sessions now ignore `--allow-dangerously-skip-permissions` unless bypass consent is in your user or policy settings","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"worktree-guard-now-distinguishes-a-different-worktree","heading":"Clearer error when a session writes into a different worktree","line":"When an isolated session tries to write into another worktree, Claude Code now says so instead of calling it the shared checkout","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"managed-settings-consent-is-deferred-in-background-sessions","heading":"Managed-settings consent is deferred in background sessions spawned by a gateway host","line":"The managed-settings security check is now deferred in background sessions launched through a gateway host","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.259","anchor":"background-sessions-get-a-narrower-permission-snapshot","heading":"Background sessions get a narrower permission snapshot","line":"Background sessions run with session allow-rules cleared and a narrower set of working directories, and always snapshot the system prompt.","released_at":"2026-09-02 21:21:42","reason":"found in this entry's text, named in this entry"},{"version":"2.1.251","anchor":"background-sessions-can-inherit-plan-and-rate-limit-tier-fro","heading":"Background sessions can inherit plan and rate-limit tier from the environment","line":"Two env vars let background dispatchers inherit your plan and rate tier without an API call.","released_at":"2026-08-28 15:34:26","reason":"named in this entry, found in this entry's text"},{"version":"2.1.233","anchor":"warning-when-an-unrecognized-model-is-sent-to-the-api","heading":"Warning when an unrecognized model is sent to the API","line":"You get a one-time warning line if a query names a model Claude Code does not recognise.","released_at":"2026-08-14 18:50:44","reason":"found in this entry's text"}],"entries_total":6,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_SESSION_","slug":"claude-code-session","description":"Two env vars let background dispatchers inherit your plan and rate tier without an API call."},{"name":"CLAUDE_CODE_SESSION_ACCESS_TOKEN","slug":"claude-code-session-access-token","description":"Remote settings can now supply many more environment variables, including auth tokens and home directory paths."},{"name":"CLAUDE_CODE_SESSION_ATTENDED","slug":"claude-code-session-attended","description":"A new CLAUDE_CODE_SESSION_ATTENDED environment variable tells child processes whether the parent session is interactive"},{"name":"CLAUDE_CODE_SESSION_ID","slug":"claude-code-session-id","description":"Skills from your claude.ai account can load as a source, but only if you set the sync env var."},{"name":"CLAUDE_CODE_SESSION_LOG","slug":"claude-code-session-log","description":"Path recorded as `logPath` in the session's entry in Claude Code's concurrent sessions registry (the per-process pid file)."},{"name":"CLAUDE_CODE_SESSION_NAME","slug":"claude-code-session-name","description":"A blank CLAUDE_CODE_SESSION_NAME now falls back to the directory-derived name."},{"name":"CLAUDE_CODE_SESSION_ORIGIN","slug":"claude-code-session-origin","description":"A new CLAUDE_CODE_SESSION_ORIGIN environment variable is read and passed through to spawned subsessions."},{"name":"CLAUDE_CODE_SESSION_START_ANNOUNCEMENTS_BEFORE_PROMPT","slug":"claude-code-session-start-announcements-before-prompt","description":"A new env var lets session-start announcements be placed before the closing line in headless runs"},{"name":"CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS","slug":"claude-code-sessionend-hooks-timeout-ms","description":"Nonsense values in retry, MCP output and hook timeout env vars now fall back to defaults."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-session-kind","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}