{"name":"CLAUDE_CODE_SESSION_ID","slug":"claude-code-session-id","family":"env","title":"Environment variables","noun":"environment variable","description":"Skills from your claude.ai account can load as a source, but only if you set the sync env var.","description_source":"entry","described_by":{"version":"2.1.228","anchor":"skills-synced-from-claude-ai"},"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":null},"aliases":[],"entries":[{"version":"2.1.228","anchor":"skills-synced-from-claude-ai","heading":"Skills synced from claude.ai","line":"Skills from your claude.ai account can load as a source, but only if you set the sync env var.","released_at":"2026-08-11 17:45:45","reason":"named in this entry, found in this entry's text"},{"version":"2.1.210","anchor":"claude-code-sync-session-refs-environment-variable","heading":"CLAUDE_CODE_SYNC_SESSION_REFS Environment Variable","line":null,"released_at":"2026-07-14 19:39:21","reason":"found in this entry's text"},{"version":"2.1.178","anchor":"new-environment-variables","heading":"","line":null,"released_at":"2026-06-15 19:03:37","reason":"found in this entry's text"},{"version":"2.0.34","anchor":"session-id-handling","heading":"Session ID Handling","line":null,"released_at":"2025-11-05 20:44:58","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"api","path":"api\/claude-code\/routines-fire","title":"routines-fire","documented":false},{"source":"claude-code","path":"routines","title":"Automate work with scheduled tasks","documented":false},{"source":"claude-code","path":"whats-new\/2026-w19","title":"Week 19 \u00b7 May 4\u20138, 2026","documented":false}],"docs_total":3,"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_KIND","slug":"claude-code-session-kind","description":"You get a one-time warning line if a query names a model Claude Code does not recognise."},{"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-id","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}