{"version":"2.1.315","anchor":"new-env-var-claude-code-session-began-as-copy-passed-through","canonical_anchor":"new-env-var-claude-code-session-began-as-copy-passed-through","heading":"New environment variable passed on to programs Claude Code starts","tier":"use","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315\/e\/new-env-var-claude-code-session-began-as-copy-passed-through","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.315","markdown":"### New environment variable passed on to programs Claude Code starts\n\nClaude Code now passes a new variable, `CLAUDE_CODE_SESSION_BEGAN_AS_COPY`, on to the programs it starts\n\n**Unclear.** What this variable does, who sets it, and whether a user should ever set it is not stated.\n\n**What**\n\nClaude Code now knows a new environment variable (a named value handed from one program to the programs it starts), `CLAUDE_CODE_SESSION_BEGAN_AS_COPY`. It is passed on to the programs Claude Code starts, in the same lists as `CLAUDE_CODE_SESSION_ORIGIN`, which describes where a session came from.\n\n**Why**\n\nPrograms started from Claude Code can now see this variable alongside the others that describe a session's origin.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_SESSION_BEGAN_AS_COPY`, `CLAUDE_CODE_SESSION_ORIGIN`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}