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.
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