Claude Code adds destructive-command guards
Blocks destructive git resets/cleans and unowned amend commits, gates terraform/pulumi/cdk destroy to explicit stacks, and warns on deprecated models—reducing accidental data loss in auto mode.
v2.1.183 — What's changed Improved auto mode safety: destructive git commands (git reset --hard, git checkout -- ., git clean -fd, git stash drop) are now blocked when you didn't ask to discard local work, git commit --amend is blocked when the commit wasn't made by the agent this session, and terraform destroy/pulumi destroy/cdk destroy are blocked unless you asked for the specific stack Added a warning when the requested model is deprecated or automatically updated to a newer model, shown o...






