powershell-fix
Run the following command in DeepSeek Harness:
dsh plugin install GuTianshuo/powershell-fix
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install GuTianshuo/powershell-fix in your terminal to install the plugin (source: https://github.com/GuTianshuo/powershell-fix ); after restarting the Harness it is available in every session automatically.
About this plugin
The most common pitfall when AI agents run on Windows is pasting bash-flavored commands straight into a PowerShell terminal—export NAME=value, /dev/null, backslash continuations, ls -la. Any single incompatibility wastes an entire tool-call round-trip. powershell-fix is a host-layer plugin for DeepSeek Harness that detects, repairs, and safely executes such commands before they reach the shell, absorbing the syntax friction silently in the background.
Its core capabilities span three layers. First, line-level hygiene: CRLF remnants are normalized, pasted shell prompts are stripped, invisible whitespace around continuation characters is removed, and bash backslash continuations are converted to PowerShell backticks. Second, semantic translation: common bash idioms—export, unset, > /dev/null, &&, ls -la, rm -rf, mkdir -p, grep, head/tail, which—are mapped to their precise PowerShell equivalents, with automatic detection of whether the target is PowerShell 7 or Windows PowerShell 5.1 to choose the correct operator. Third, a safety gate: destructive commands such as rm -rf /, Format-Volume, Set-ExecutionPolicy, and registry writes are refused for auto-execution even after their syntax is corrected; the plugin outputs the fixed command for human review instead.
It is designed for developers running AI-agent workflows on Windows: install the plugin into a profile and every session on that profile picks up the powershell_fix tool automatically, with no agent-preset changes required. The engine has zero runtime dependencies (pure JavaScript), correct commands pass through unchanged (no-op guarantee), and the fixer is fully idempotent—fix(fix(x)) always equals fix(x).
Use Cases
- An AI agent pastes bash-flavored commands into a Windows terminal and the plugin auto-detects and repairs syntax before execution
- CRLF remnants, pasted shell prompts, and invisible whitespace around continuations are stripped automatically
- Common bash idioms such as export, grep, rm -rf, and ls -la are translated into precise PowerShell equivalents
Best For
- Developers running AI-agent workflows on Windows
- DevOps teams needing cross-platform shell command portability
- Engineers building agent pipelines with DeepSeek Harness
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.