{"version":"2.1.337","anchor":"powershell-read-outside-working-directory-check-added-behind","canonical_anchor":"powershell-read-outside-working-directory-check-added-behind","heading":"PowerShell commands that may read outside your working folders now need approval","tier":"notice","area":"PowerShell","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/powershell-read-outside-working-directory-check-added-behind","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### PowerShell commands that may read outside your working folders now need approval\n\nClaude Code adds a check that asks for approval, or refuses, when a PowerShell command may read files outside the allowed working folders\n\n**What**\n\nClaude Code now checks PowerShell commands for ways to read files outside the folders it is allowed to work in, or under a Read rule. It looks at commands and patterns such as:\n\n- `git grep`, `git diff` and `git blame`\n\n- `findstr`, `tree`, `where`, `ls` and `cat`\n\n- `Get-ChildItem` with `-filter`\n\n- wildcards\n\nWhen a command may read such a path, Claude Code asks for your approval. If `blockReadsOutsideWorkingDirectories` is set to true, it refuses instead. The check runs only when a switch controlled by Anthropic's servers is on.\n\n**Why**\n\nIt closes off tricks for reading files outside your project through PowerShell without being asked first.\n\n- Area: PowerShell\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: yes"}