Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.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.

Group of 2 Use it now Notable New Features
JSON All of v2.1.257
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
PermissionsArea: what it touches
New FeaturesKind: in v2.1.257,
What probably matters to youSection of the release

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
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