Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.257 ·

Hidden --inherit-permission-mode CLI flag

A hidden --inherit-permission-mode flag lets a spawned session take its permission mode from whatever launched it.

TierUse it nowhow much it should matter to you
Useful5my rating, 1 to 5
Signal4worth watching, 1 to 5
AreaPermissionswhat it touches
KindNew Featuresin v2.1.257,
Group of 2 Use it now Notable

A hidden --inherit-permission-mode flag lets a spawned session take its permission mode from whatever launched it.

A new, hidden CLI option --inherit-permission-mode lets a spawned session inherit its permission mode from the launching process/frame instead of setting one explicitly. It is wired through argument parsing, storage (inheritPermissionModeCli), and resolution logic that propagates a permissionModeInherited flag into session state; the option is registered with .hideHelp() so it does not appear in claude --help.

When a permission mode is inherited this way, a helper decides whether to also set permissionModeInherited: true (used elsewhere to demote/soften the effective permission level) versus simply passing the inherited mode through silently.

Read from
Names in the bundleCLAUDE_CODE_SUBPROCESS_ENV_SCRUB
Feature flag
tengu_agentview_inherit_mode_demote Not enough to say

Nothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.

This account: no value returned · anonymous baseline: no value returned · compiled default in v2.1.257: on

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.257. It isn't a statement about your account. What a flag value here can and cannot tell you

Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Environment variables touched a line naming CLAUDE_CODE_SUBPROCESS_ENV_SCRUB after this was published. | `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB` | Set to `1` to strip credentials from subprocess environments (Bash tool, hooks, MCP stdio servers): Anthropic and cloud provider credentials, any other variable that Claude Code recognizes as a creden… env-vars see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesA small documentation edit on Environment variables touched a line naming CLAUDE_CODE_SUBPROCESS_ENV_SCRUB after this was published.
The name it cites is new in this buildNew in this build: tengu_agentview_inherit_mode_demote

See this entry in the whole of v2.1.257 →

Feedback