AI Agent Hub
Back to plugins
🖥️

dsh-nushell-only

Client Updated 2026.09.13

Run the following command in DeepSeek Harness:

dsh plugin install YMRwithNoworry/dsh-nushell-only

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install YMRwithNoworry/dsh-nushell-only in your DeepSeek Harness terminal; the source is at https://github.com/YMRwithNoworry/dsh-nushell-only . Restart the profile after installation to activate.

About this plugin

When driving DeepSeek Harness with Nushell, the biggest friction is not using a different shell but the model still writing commands with bash and PowerShell habits - 2>&1, $x = 1, foreach, Get-Content, ls -a - all of which land on the nu parser and produce an unfamiliar error that needs to be decoded word by word. A non-zero exit from an external command even silently interrupts the entire pipeline, leaving behind a baffling [exit code: 1].

dsh-nushell-only swaps dsh sole shell seam to Nushell and systematically eliminates the above friction across four layers: the execution layer replaces bash-sandbox and pwsh-sandbox with a nu executor, unifying all ctx.shell consumers (model tools, background tasks, hook bridges) under Nushell; the interception layer rejects bash and PowerShell habit syntax before spawn and provides the Nu equivalent directly in the error message; the teaching layer injects a Nushell grammar manual, a bash/PowerShell cross-reference table, and a real-failure case directory into the model system prompt; the correction layer appends error-code-specific fix hints after a failed execution. Rules are not invented in a vacuum - every one is derived from statistical analysis of 1503 Nushell failures across 8168 shell invocations in 109 real sessions, and the refusal test cases are taken directly from those actual failing commands.

Ideal for developers already using dsh who want Nushell as their sole shell and want the model to stop repeatedly stumbling on syntax. You do not need to manually rewrite every bash hook or manually translate every error message - the plugin governs every link in the chain from the model wanting to write bash to nu refusing to execute.

Use Cases

  • Run DeepSeek conversations with Nushell as the sole shell in dsh
  • Block bash and PowerShell syntax from the model and auto-suggest Nu equivalents
  • Append error-code-specific fix hints and silent-exit diagnostics after failed Nushell runs

Best For

  • Developers already using dsh who want Nushell as their sole shell
  • AI toolchain users frustrated by the model repeatedly writing bash syntax
  • Engineers needing to standardize shell dialect and reduce Nushell onboarding cost