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 ·

Read-only command check treats 00<file redirects like 0<file

Claude Code now treats input redirects written with several zeros, such as 00<file, the same as 0<file when checking for read-only commands

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
0Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
ImprovementsKind: in v2.1.311,
ImprovementsSection of the release
What

Before running a shell command without asking, Claude Code checks whether the command only reads things. Part of that check looks at input redirects. In 0<file, a file is fed into the command's standard input, which is the input stream numbered 0. The check used to accept only the number 0 there. It now also accepts any run of zeros, such as 00<file or 000<file, and treats them the same way. This only applies when a further condition in the check also holds.

Why

Commands written with these redirects can now count as read-only, which can mean fewer permission prompts for them.

See this entry in the whole of v2.1.311 →

Feedback