Follow Discord
Sweep 27 Oct 2026 · 19:04Z Build v2.1.312 531 read Stable v2.1.308 Latest v2.1.312 Next v2.1.312 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.311 ·

Shell command safety check looks harder at loop keywords

When checking a shell command, Claude Code now re-reads any word containing do plus whitespace, up to a set limit

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

Unclear What a reader will notice from this, such as more permission prompts, is not stated.

What

Before running a shell command, Claude Code checks it to decide whether it is safe to run without asking you. That check now takes a second look at any word that contains do followed by whitespace, as found in shell loops. It parses that word again and stops after a set amount of work. The check's result also gains a new field.

Why

It makes the shell safety check stricter.

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 doubtWhat a reader will notice from this, such as more permission prompts, is not stated.

See this entry in the whole of v2.1.311 →

Feedback