Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.326 ·

PowerShell commands that redefine a risky command alias are refused

Claude Code now refuses a PowerShell command that defines a function named after an alias for a dangerous command such as Remove-Item or Set-Content

You'll notice Improvements
JSON All of v2.1.326
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

In PowerShell, an alias is a short name for a command. Some aliases point to commands that can delete or overwrite files, such as Remove-Item or Set-Content. Claude Code now refuses to run a PowerShell command that defines a function with the same name as one of those aliases. It replies that the command was not run and tells Claude to rename the function.

This check is part of the permission check Claude Code runs on PowerShell commands before running them.

Why

A function with the same name as an alias can hide what a command will really do. This could let a destructive command get past the permission checks under a harmless-looking name.

See this entry in the whole of v2.1.326 →

Feedback