{"name":"CLAUDE_CODE_LAUNCHED_BY_SESSION_IDS","slug":"claude-code-launched-by-session-ids","family":"env","title":"Environment variables","noun":"environment variable","description":"Local MCP servers now start with CLAUDE_CODE_LAUNCHED_BY_SESSION_IDS set to the current session's id","description_source":"entry","described_by":{"version":"2.1.326","anchor":"mcp-children-get-claude-code-launched-by-session-ids"},"presence":{"first_seen":"2.1.326","removed_in":null,"in_current_build":true,"newest_mined":"2.1.330","builds":5,"mined_builds":169,"first_cited":{"version":"2.1.326","released_at":"2026-11-16 18:43:39","spans":1}},"aliases":[],"entries":[{"version":"2.1.327","anchor":"artifact-approval-needs-a-person","heading":"Creating an artifact now needs a person to approve it","line":"Background and unattended runs can no longer create artifacts, because each one needs a person's approval","released_at":"2026-11-17 20:33:19","reason":"found in this entry's text"},{"version":"2.1.326","anchor":"mcp-children-get-claude-code-launched-by-session-ids","heading":"MCP servers are told which session started them","line":"Local MCP servers now start with CLAUDE_CODE_LAUNCHED_BY_SESSION_IDS set to the current session's id","released_at":"2026-11-16 18:43:39","reason":"found in this entry's text, named in this entry"},{"version":"2.1.326","anchor":"new-claude-code-child-notes-dir-env-var-is-created-by-one-pr","heading":"Claude Code can pass a private notes folder to sessions it launches","line":"A session can now create a private folder and hand its path to the sessions it launches through the `CLAUDE_CODE_CHILD_NOTES_DIR` environment variable","released_at":"2026-11-16 18:43:39","reason":"found in this entry's text, named in this entry"},{"version":"2.1.326","anchor":"new-env-vars-for-child-sessions-are-scrubbed-and-cleared","heading":"More session variables are cleared before starting other processes","line":"Three more environment variables are now removed or unset when Claude Code sets up child sessions and background services","released_at":"2026-11-16 18:43:39","reason":"found in this entry's text"}],"entries_total":4,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_3P_PROBE_WROTE_HAIKU_DEFAULT","slug":"claude-code-3p-probe-wrote-haiku-default","description":"If your cloud account cannot use a model, Claude Code can step down to the next one; `CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK` turns this off"},{"name":"CLAUDE_CODE_3P_PROBE_WROTE_OPUS_DEFAULT","slug":"claude-code-3p-probe-wrote-opus-default","description":"Internal marker on third-party providers. When Claude Code itself writes `ANTHROPIC_DEFAULT_OPUS_MODEL` into its environment (the model availability probe on Bedrock, Vertex or Mantle, or a move down the model fallback ladder), it sets this variable to the same model ID. An `ANTHROPIC_DEFAULT_OPUS_MODEL` equal to it is treated as Claude Code's own choice rather than a user pin: it does not count as pinned, the probe does not skip it, and the fallback ladder may move it."},{"name":"CLAUDE_CODE_3P_PROBE_WROTE_SONNET_DEFAULT","slug":"claude-code-3p-probe-wrote-sonnet-default","description":"On third-party providers, Haiku model names are no longer skipped by the check that sets up the Sonnet default model"},{"name":"CLAUDE_CODE_3P_SEEDED_OPUS_DEFAULT","slug":"claude-code-3p-seeded-opus-default","description":"If your cloud account cannot use a model, Claude Code can step down to the next one; `CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK` turns this off"},{"name":"CLAUDE_CODE_3P_SEEDED_SONNET_DEFAULT","slug":"claude-code-3p-seeded-sonnet-default","description":"If your cloud account cannot use a model, Claude Code can step down to the next one; `CLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK` turns this off"},{"name":"CLAUDE_CODE_ACCESSIBILITY","slug":"claude-code-accessibility","description":"Set to `1` to keep the native terminal cursor visible and disable the inverted-text cursor indicator. Allows screen magnifiers like macOS Zoom to track cursor position"},{"name":"CLAUDE_CODE_ACCOUNT_TAGGED_ID","slug":"claude-code-account-tagged-id","description":"Overrides the `user.account_id` attribute Claude Code attaches to its OpenTelemetry data. It applies only when an account UUID is known and `OTEL_METRICS_INCLUDE_ACCOUNT_UUID` is not turned off (default on); when unset or empty, `user.account_id` is derived from the account UUID as a tagged ID of the form `user_01...`."},{"name":"CLAUDE_CODE_ACCOUNT_UUID","slug":"claude-code-account-uuid","description":"The device bridge is skipped entirely when the host's account UUID doesn't match the stored one."},{"name":"CLAUDE_CODE_ACT_DONT_REDERIVE","slug":"claude-code-act-dont-rederive","description":"Three existing feature gates moved position; their defaults are unchanged."},{"name":"CLAUDE_CODE_ACTION","slug":"claude-code-action","description":"Background and unattended runs can no longer create artifacts, because each one needs a person's approval"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-launched-by-session-ids","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}