← Catalog

@bacnh85/pi-windows-tools

Pi extension for Windows-native tool manipulation — shell profiles, path conversion, command execution, WSL bridge, safety policy, and developer tool discovery.

Extension

Install

Install with PiG

pig install npm:@bacnh85/pi-windows-tools

Install with Pi

pi install npm:@bacnh85/pi-windows-tools
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./extensions/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.5.10 (README.md). PiG does not review it.

@bacnh85/pi-windows-tools

Pi extension for Windows-native shell execution, paths, WSL, safety checks, and developer-tool discovery.

Install

pi install npm:@bacnh85/pi-windows-tools

Environment overrides

PI_WINDOWS_TOOLS_ENABLED=false
PI_WINDOWS_SHELL=pwsh|powershell|cmd|git-bash|wsl
PI_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
PI_WSL_DISTRO=Ubuntu-24.04

Tools

ToolDescription
windows_shell_detectDetect available Windows shells.
windows_shell_execExecute a command through a Windows shell.
windows_audit_logShow command history and exit codes (clear: true empties the log).
windows_path_to_windowsConvert POSIX/WSL path to C:\....
windows_path_to_wslConvert Windows path to /mnt/c/....
windows_path_to_gitbashConvert Windows path to /c/....
windows_path_quoteQuote a path for the target shell's quoting rules.
windows_safety_classifyCheck whether a command is dangerous (safe / confirm).
windows_doctorDetect installed developer tools (PATH, WSL, long paths, dev mode).
windows_tool_discoverCheck if a tool is in PATH.
windows_wsl_list_distrosList installed WSL distros.

Commands

  • /windows-doctor — detect installed developer tools and system state.
  • /windows-shell [shell] — show or set the default shell.

Shell priority

  1. pwsh (PowerShell 7+)
  2. powershell (Windows PowerShell 5.1)
  3. Git Bash
  4. cmd
  5. WSL

Changelog

See CHANGELOG.md for release history.

License

MIT