Use it now Notable
No documentation found
Claude Code now recognizes a CLAUDE_CODE_HOST_SESSION_ID environment variable
What
Claude Code now forwards and recognizes a new environment variable, CLAUDE_CODE_HOST_SESSION_ID, alongside existing ones like CLAUDE_CODE_ENTRYPOINT and CLAUDE_CODE_IS_COWORK.
Why
This lets the host environment that launches Claude Code pass through an identifier for the session it is running inside, which other internal logic (such as entry-point-specific gating) can rely on.
Names in the bundleCLAUDE_CODE_HOST_SESSION_ID
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
The finding does not say what consumes this value or what behavior depends on it.
The name it cites is new in this build
New in this build: CLAUDE_CODE_HOST_SESSION_ID