Claude Code 2.1.309 hardens sandbox and permission checks and stops previewing sed -i as a file edit
Claude Code 2.1.309 closes a set of sandbox and permission-check gaps, runs sed -i as an ordinary Bash command that /rewind no longer restores, and moves the /claude-api skill's Managed Agents teams to multiagent_20261001.
What does this mean for me?
Engineering leadership
Cost, risk, timeline, team impact Worth knowingA fix-heavy Claude Code release that closes several sandbox and permission-check gaps; updating is worthwhile for teams relying on the sandbox. No cost or roadmap change.
Engineer
What to change, what breaks, what to test Worth knowingAfter updating to 2.1.309, expect a Bash prompt for sed -i and note /rewind no longer undoes it; some cd/git and PowerShell Set-Location forms that were auto-approved now prompt. In bypass mode in Desktop and VS Code, dangerous rm/rmdir is denied with a rewrite hint.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is a Claude Code release and does not change the Claude apps.
Claude Code 2.1.309 is mostly fixes, many of them to the sandbox and permission checks: sandboxed Bash on macOS and Linux no longer runs the shell’s startup files outside the sandbox, sandboxed commands can no longer modify the file passed with --mcp-config, Edit(path) deny rules now block more Bash redirects, and several compound cd/git and PowerShell Set-Location forms that were auto-approved now prompt.
Behaviour changes a user may notice:
sed -inow gets the standard Bash permission prompt and runs as written instead of a simulated file-edit preview. Like other Bash edits, it is no longer restored by/rewind.- In bypass permissions mode in the Desktop app and VS Code, a dangerous
rmorrmdiris denied at once with a rewrite hint instead of prompting, so unattended sessions keep going. - Commands excluded from the sandbox now ask before writing to its write-list paths when the sandbox is enabled but cannot run.
- The
/claude-apiskill builds Managed Agents subagent teams onmultiagent_20261001with dynamic workflows on by default, instead ofcoordinator. - In VS Code, the wait for new problems after each Edit or Write drops to 0.75 seconds in most cases.
The claude ultrareview workspace-trust requirement in the same release is a separate entry. The changelog does not date versions; 2.1.309 appeared after the October 22 update and is dated to the day it was observed.
Topics: Agents and tool use, Coding tools