You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PowerShellArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
What
Before Claude runs a PowerShell command, Claude Code reads the command to check it against your permission rules. When that reading fails with a certain kind of error, Claude Code now decides like this:
The command is refused if a deny rule is set, or if its text looks like it removes something or hides what it runs. The message says it was not run and suggests rewording it without those words.
Otherwise, Claude Code asks you, with the note "Allow it only if you trust it."
Deny rules are also matched more thoroughly now. Claude Code also checks the command's arguments with some of them left out. Before, these failures all led to a general prompt saying the command contained malformed syntax.
Why
If you use PowerShell, you may see new refusals and prompts for commands Claude Code cannot fully read. This stops such commands from getting past a deny rule.