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.327,
ImprovementsSection of the release
Unclear It is not clear which condition decides when these module commands trigger the prompt.
What
Before Claude Code runs a PowerShell command, it checks whether the command needs your approval. That check has a new rule. Commands that use module, gmo or Get-Module can now make Claude Code stop and ask you before running them. The reason given is that the command loads, installs or downloads a PowerShell module or script, which can run any code.
The rule applies only when a further condition is met. Before, only commands on a fixed list of blocked names caused a prompt.
Why
PowerShell permission prompts are stricter, so you may be asked to approve module-related commands that used to run without a prompt.