What
Claude Code has new checks for rm (the command that deletes files) when Claude asks to run it:
- Symbolic links: a symbolic link is a shortcut that points at another file or folder. When the last part of the path is one, Claude Code's decision says that
rmremoves the link, not what it points to. - Unknown shell values: a shell expansion is a placeholder such as
$SOMEDIRthat the shell fills in when the command runs. When a target holds one whose value Claude Code can't work out, it now gives a dangerous-removal warning, because the path could turn out to be/, the top of your whole disk.
The order of the safety checks for cp (the copy command) also changed.
Why
These checks decide when an rm command makes Claude Code stop and ask you first, and when it is blocked outright. You may now see a prompt or a block for a deletion that went through before.