{"version":"2.1.332","anchor":"powershell-library-load-guard-with-kill-switch-env-var","canonical_anchor":"powershell-library-load-guard-with-kill-switch-env-var","heading":"PowerShell commands can no longer load library files while being read","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/powershell-library-load-guard-with-kill-switch-env-var","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### PowerShell commands can no longer load library files while being read\n\nClaude Code now stops PowerShell from loading a library file named inside a command; set `CLAUDE_CODE_DISABLE_POWERSHELL_LIBRARY_LOAD_GUARD` to turn this off\n\n**Unclear.** It is not clear whether the remote switch the guard also depends on leaves it active for every account.\n\n**What**\n\nWhen Claude Code runs a PowerShell command, it now adds a short guard in front of the command. The guard stops PowerShell from loading a library file when the command contains text in the form `[name, path]`. PowerShell reads text like that as a type plus the library file that holds it, and loads the file while it is still reading the command.\n\nIf the guard stops a command, Claude Code shows a message saying it stopped before that point, so it could not fully check the command against your permission rules. Permission rules are the settings that decide which commands Claude may run without asking you.\n\nThe guard is on unless you set the environment variable `CLAUDE_CODE_DISABLE_POWERSHELL_LIBRARY_LOAD_GUARD`. It is also tied to a remote switch.\n\n**Why**\n\nLoading a file during reading could let a command do something before Claude Code had a chance to check it against your permission rules. The guard closes that gap.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}