Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.84 Home All releases olderv2.1.83 v2.1.85newer
Claude Code v2.1.84

PowerShell Tool (Windows)

What

A dedicated PowerShell command execution tool for Windows users, providing native PowerShell syntax support with comprehensive security analysis.

Details
  • Enabled via the CLAUDE_CODE_USE_POWERSHELL_TOOL environment variable on Windows
  • Uses pwsh (PowerShell 7+) for command parsing and execution
  • Full AST-based security analysis of PowerShell commands before execution
  • Validates PowerShell-specific patterns: cmdlet names, parameter types, pipeline chains, .NET type usage, script blocks
  • Recognizes dangerous patterns: Invoke-Expression, encoded commands, COM object creation, module loading, splatting, UNC paths
  • Read-only cmdlets (e.g. Get-ChildItem, Get-Content, Select-String, Get-Process) are auto-allowed
  • Handles PowerShell-specific security concerns: -FilePath execution, -Command re-invocation, Start-Process nesting
  • Provides PowerShell syntax guidance in tool description (variable syntax, pipe objects, here-strings, cmdlet naming)
  • Falls back gracefully if PowerShell is not installed
  • Enterprise policy enforcement: sandboxing policy blocks shell execution on native Windows when sandbox is unavailable
Evidence

PowerShell tool implementation (search for "PowerShell command", "CLAUDE_CODE_USE_POWERSHELL_TOOL", "Run PowerShell command")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.84 →