{"version":"2.1.335","anchor":"powershell-parser-guard-path-added-around-the-parse-call","canonical_anchor":"powershell-parser-guard-path-added-around-the-parse-call","heading":"PowerShell command checks gain a guarded mode when the parser fails","tier":"internal","area":"PowerShell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/powershell-parser-guard-path-added-around-the-parse-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### PowerShell command checks gain a guarded mode when the parser fails\n\nClaude Code's PowerShell command check has a new guarded mode that handles parser failures differently\n\n**Unclear.** It is not clear when guarded mode is active or what result a guarded parser failure leads to.\n\n**What**\n\nBefore Claude Code runs a PowerShell command, it parses the command. Parsing means breaking the command into its parts so Claude Code can decide whether it needs your permission. In a new guarded mode, a parser failure no longer ends with the plain \"PowerShell parser could not be started\" failure. Claude Code records the failure and returns a different result instead.\n\nIn guarded mode, the first parse attempt also does not use the parser that Claude Code starts ahead of time. Claude Code decides whether to use guarded mode from the shell path and the command.\n\n**Why**\n\nThis changes how PowerShell commands are checked for permissions when guarded mode is active, and those checks are part of what keeps commands from running without your approval.\n\n- Area: PowerShell\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}