Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.299 ·

Inline shell commands now prompt only when they involve rm or rmdir

Permission prompts for inline shell commands such as bash -c now depend on whether the command contains rm or rmdir

You'll notice Improvements
JSON All of v2.1.299
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.299,
ImprovementsSection of the release

Unclear Whether setting CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT brings back a prompt for every inline shell command or removes the prompt is not settled.

What

An inline shell command is a command passed as text to a shell, such as bash -c "..." or a string written with $'...' escapes. Before, Claude Code always asked for your permission when it found one. Now, it asks only after checking that the command contains rm or rmdir, which delete files and folders.

The check sees through common ways of hiding those commands:

  • quotes
  • variables that expand into a command
  • $'...' escapes

Setting CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT turns this rm check off. Otherwise the check is controlled by a remote setting, and when the server sends nothing, Claude Code falls back to running it.

Why

Some permission prompts for inline shell commands that you saw before may stop appearing, because prompts are now narrowed to commands that actually delete files or folders.

Read from
Feature flag
tengu_pale_kestrel 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.299: 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.299. It isn't a statement about your account. What a flag value here can and cannot tell you

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether setting CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT brings back a prompt for every inline shell command or removes the prompt is not…
Anthropic's release notes agreeFixed rm prompts on shell -c scripts that don't run rm. An rm built at run time in a script Claude Code can't read no longer prompts unless…
The name it cites is new in this buildNew in this build: tengu_pale_kestrel

See this entry in the whole of v2.1.299 →

Feedback