claude-code - 💡(How to fix) Fix PowerShell tool disabled under MINGW64/Git Bash on Windows

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Describe the bug

When Claude Code runs inside Git Bash (MSYS2/MINGW64) on Windows, the PowerShell tool reports "PowerShell is not available on this system" and is disabled — even though:

  • platform is correctly detected as win32
  • powershell.exe is in PATH at C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  • PowerShell runs perfectly fine when invoked from Bash: powershell.exe -Command "Write-Host 'works'"

Steps to reproduce

  1. Launch Claude Code from a Git Bash (MINGW64) terminal on Windows
  2. Try to use the PowerShell tool
  3. Observe it says "PowerShell is not available on this system"

Expected behavior

The PowerShell tool should be available on any win32 platform regardless of which shell Claude Code itself is running in. Git Bash is a common setup for Windows developers.

Suggested fix

Instead of disabling the PowerShell tool based on the current shell type, check:

  1. Is platform === 'win32'?
  2. Is powershell.exe or pwsh.exe in PATH?

If both are true, enable the PowerShell tool. That way it works under Git Bash, MSYS2, MINGW, and any other shell that happens to be the entry point on a Windows system.

Environment

  • OS: Windows 11 Home China 10.0.26200
  • Shell: MINGW64 Bash (GNU bash 5.2.37)
  • Claude Code: current

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The PowerShell tool should be available on any win32 platform regardless of which shell Claude Code itself is running in. Git Bash is a common setup for Windows developers.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix PowerShell tool disabled under MINGW64/Git Bash on Windows