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 ·

Extra permission check for shell commands that write output to files

Before a shell command runs, Claude Code now checks more of its redirects to files and can refuse it or ask you first

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 Which redirect targets the new pass covers is not known.

What

A redirect is the part of a shell command, such as >, that sends the command's output into a file. Before running a shell command, Claude Code checks it against your permission rules. It now runs an extra pass over the command's redirects whose targets meet a certain test:

  • if any redirect is denied, the command is refused at once
  • if a safety check says you should be asked, that is recorded along with its details

Previously this pass over redirects only ran when Claude Code already had a list of redirects to check against deny rules.

Why

This could change which shell commands that write to files are refused outright or stop to ask you first.

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 doubtWhich redirect targets the new pass covers is not known.

See this entry in the whole of v2.1.311 →

Feedback