Follow Discord
Sweep 30 Oct 2026 · 21:36Z Build v2.1.315 533 read Stable v2.1.308 Latest v2.1.314 Next v2.1.315 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.315 ·

Safety checks tightened for sed -i, sshpass and set commands

Claude Code's automatic safety check for shell commands now catches more risky uses of sed -i on macOS and BSD, sshpass and set

You'll notice Improvements
JSON All of v2.1.315
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.315,
ImprovementsSection of the release
What

Before running a shell command without asking you, Claude Code checks that it is safe. In the list below, a computed word is part of a command whose value is only known when the shell runs it, such as a variable. The check now covers:

  • sed -i on macOS and BSD: these versions read the word after a bare -i as the suffix for a backup file, so a computed word there is now flagged
  • sshpass, a tool that supplies a password and then runs another program: it now has its own check
  • set followed by a computed word: now refused
Why

Fewer commands that could do something unexpected are approved automatically.

See this entry in the whole of v2.1.315 →

Feedback