ReleaseJun 19, 2026
Claude Code tightens the leash on destructive git commands
Build 2.1.183 stops auto mode from quietly running hard resets, checkout discards, clean -fd or stash drops unless you actually asked to throw work away. There is also a new mouse-wheel scroll setting and a pile of billing and performance fixes.
Source: Claude Code ChangelogRead the original
Anthropic shipped Claude Code 2.1.183 with a clear theme: stop the agent from deleting your work by accident. A handful of commands that wipe local changes are now blocked in auto mode unless you explicitly told it to discard things.
- git reset --hard is held back when you never asked to drop changes
- git checkout -- . and git clean -fd get the same treatment
- git stash drop is no longer something auto mode does on its own
- git commit --amend is blocked in a few risky situations
The same release adds a wheelScrollAccelerationEnabled setting for fullscreen mode, fixes the model picker so it shows families and version labels properly, and clears out a long list of billing, Bedrock GovCloud, and macOS/Linux performance bugs.
Our take
Guardrails on irreversible commands are the unglamorous feature that saves your weekend. If you run agents on auto, update before you forget.