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.
tengu_agentview_inherit_mode_demote Not enough to sayNothing 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
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.
| `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
A small documentation edit on Environment variables touched a line naming CLAUDE_CODE_SUBPROCESS_ENV_SCRUB after this was published.
New in this build: tengu_agentview_inherit_mode_demote