Nothing to try yetTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
PowerShellArea: what it touches
In DevelopmentKind: in v2.1.333,
In DevelopmentSection of the release
Unclear Whether the remote switch is on by default, and so whether the stricter check applies to anyone, is not known.
What
Claude Code has a new check for PowerShell delete commands. It passes only when the command is a single simple command, every path in it is written out literally (not built from variables or expressions), and no path uses .. to step up into a parent folder.
The check sits behind a switch that Anthropic controls remotely. When that switch is off, the check always passes and deletes are handled as before.
Why
When the switch is on, PowerShell deletes are validated more tightly, which makes it harder for a delete to reach files outside the paths it appears to name.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether the remote switch is on by default, and so whether the stricter check applies to anyone, is not known.