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 get an alias-shadowing check and a hardening preamble

Claude Code can now spot PowerShell functions that reuse an alias name, and CLAUDE_CODE_DISABLE_POWERSHELL_ALIAS_SHADOW_CHECK turns that off

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
2Signal: worth watching, 1 to 5
PowerShellArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release

Unclear What Claude Code does when it finds a function shadowing an alias is not known.

What

Claude Code has a new check for PowerShell scripts. It looks for a script that defines a function with the same name as an existing alias, which is a short name that already points to another command. The check runs behind a server-controlled switch, with a safe fallback.

You can turn the check off by setting the environment variable CLAUDE_CODE_DISABLE_POWERSHELL_ALIAS_SHADOW_CHECK. An environment variable is a named setting you give a program before it starts.

A second server-controlled switch adds a short preamble in front of PowerShell commands. It points PSModulePath and PATH at PowerShell's own install folder and sets a trap for errors.

Why

Both changes affect how Claude Code reads and runs PowerShell commands. If the alias check gets in your way, the environment variable lets you opt out.

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 doubtWhat Claude Code does when it finds a function shadowing an alias is not known.
Anthropic's release notes agreeChanged worktree creation, /teleport and IDE checkouts to run git with a stricter PATH; a git filter or helper may need its full path

See this entry in the whole of v2.1.326 →

Feedback