{"name":"CLAUDE_CODE_SUBPROCESS_ENV_SCRUB","slug":"claude-code-subprocess-env-scrub","family":"env","title":"Environment variables","noun":"environment variable","description":"A hidden --inherit-permission-mode flag lets a spawned session take its permission mode from whatever launched it.","description_source":"entry","described_by":{"version":"2.1.257","anchor":"hidden-inherit-permission-mode-cli-flag"},"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.79","released_at":"2026-03-18 21:34:08","spans":2}},"aliases":[],"entries":[{"version":"2.1.307","anchor":"await-claim-error-now-names-subprocess-sandbox-conflict-u","heading":"--await-claim still refuses to run with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB","line":"The refusal of `--await-claim` alongside `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB` is unchanged, with the same error text as before","released_at":"2026-10-21 20:47:18","reason":"named in this entry, found in this entry's text"},{"version":"2.1.304","anchor":"await-claim-now-rejected-with-sdk-url","heading":"--await-claim can no longer be combined with --sdk-url","line":"Claude Code now refuses to start when `--await-claim` and `--sdk-url` are used together","released_at":"2026-10-19 19:47:15","reason":"found in this entry's text"},{"version":"2.1.290","anchor":"proactivity-level-can-override-the-starting-permission-mode","heading":"A proactivity level can set the permission mode a session starts in","line":"When a proactivity level other than default is set, Claude Code can choose the starting permission mode from it","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"new-sdk-pre-warmed-spare-process-await-claim-plus-claim-s","heading":"New SDK pre-warmed spare process: --await-claim plus claim_session control request","line":"A hidden `--await-claim` option lets an SDK host start a spare Claude Code process early and bind it to a session later","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.257","anchor":"hidden-inherit-permission-mode-cli-flag","heading":"Hidden --inherit-permission-mode CLI flag","line":"A hidden --inherit-permission-mode flag lets a spawned session take its permission mode from whatever launched it.","released_at":"2026-09-01 17:15:33","reason":"found in this entry's text, named in this entry"},{"version":"2.1.98","anchor":"subprocess-environment-scrubbing-enhancements","heading":"Subprocess Environment Scrubbing Enhancements","line":null,"released_at":"2026-04-09 18:08:49","reason":"found in this entry's text"},{"version":"2.1.98","anchor":"claude-code-script-caps-environment-variable","heading":"CLAUDE_CODE_SCRIPT_CAPS Environment Variable","line":null,"released_at":"2026-04-09 18:08:49","reason":"found in this entry's text"},{"version":"2.1.79","anchor":"subprocess-environment-scrubbing","heading":"Subprocess Environment Scrubbing","line":null,"released_at":"2026-03-18 21:34:08","reason":"found in this entry's text"}],"entries_total":8,"docs":[{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":false},{"source":"claude-code","path":"sandboxing","title":"Configure the sandboxed Bash tool","documented":false},{"source":"claude-code","path":"settings-reference","title":"All settings","documented":false}],"docs_total":3,"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":"Marks a run as coming from the Claude Code GitHub Action. A truthy value (`1`, `true`, `yes` or `on`) makes Claude Code set `CLAUDE_CODE_ENTRYPOINT` to `claude-code-github-action`, but only when `CLAUDE_CODE_ENTRYPOINT` is not already set and the command is not `claude mcp serve`. It is also reported as `isClaudeCodeAction` in the environment details attached to telemetry."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-subprocess-env-scrub","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}