DeepSeek Harness Plugin

herenfor/dsh-wsl#mirror

Stars ★ 1 Downloads (30d) 3,279 Category WSL & Windows Interop Added 2026-12-01 npm @herenfor/dsh-wsl

Runs DeepSeek Harness projects, sessions, and Linux plugins inside WSL2 from the Windows Desktop window without writing model credentials to WSL.

Install

# from npm (prebuilt)

dsh plugin --profile web add @herenfor/dsh-wsl

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:herenfor/dsh-wsl#path:/experiments/mirror/mirror

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Coming in 0.1.15: Manually check for and install updates from a WSL plugin’s detail page, with explicit prerelease selection. Preview an npm plugin’s description before installation. Tags resolve to an exact version before the native installer runs and verifies the result; failures show diagnostics and logs. Existing sessions, settings and enabled states are preserved.

English | 中文

Lets DeepSeek Harness Desktop on Windows run tasks in WSL. For a task that runs in WSL, the agent, its commands, file access and plugins all run in a DSH inside WSL, while you keep using the Desktop window.

Beta. See tested versions for verification scope and report problems on GitHub.

The new-task page: the sidebar lists Windows and WSL tasks together, the run location is picked under the input box; the desktop pet in the corner is a plugin installed in WSL

Screenshots from a test environment, for illustration only. The third-party plugins shown are listed under "Screenshot credits" at the end.

Highlights

  • Run location per folder: switch between Windows and WSL under the input box; folders inside WSL run in WSL by themselves.
  • One window for both sides: the sidebar, scheduled tasks and the choices in Settings list Windows and WSL together.
  • Linux plugins just work: plugins installed in WSL, including ones that change the interface, work in the Desktop window, and have their own WSL tab on the Plugins page.
  • Credentials stay out of WSL: WSL tasks get model credentials from Desktop; nothing is written to the WSL disk.
  • No official code changed: built only from plugins and external components, starting and stopping with Desktop.

Requirements

  • DSH Desktop 0.2.x on Windows 10 or 11.
  • WSL 2 with a Linux distribution: Ubuntu, Debian or whichever you have. If WSL is not installed yet, there is no distribution, or the distribution still runs on WSL 1, the setup window lists the commands to run in PowerShell.
  • A DSH in WSL whose version matches Desktop in its first two parts (for example both 0.2.x). Without one, the plugin lists the install commands; it can run them for you or hand them to the Windows DSH (step 3 below).

Install

Install this package in Windows Desktop only. It deploys dsh-wsl-agent inside WSL automatically. If you installed the bridge inside WSL by mistake, remove it there; removing this package does not delete sessions or user files.

  1. Desktop → Plugins → Add plugin → Install a third-party plugin, enter @herenfor/dsh-wsl and install.

  2. Quit Desktop completely (if it keeps running in the system tray, quit it there too), wait at least 5 seconds, then open it again. Until then the plugin does not start working, and the bottom of the sidebar says to restart Desktop.

  3. On the new-task page, switch the run location under the input box to WSL. The first time, "Set up the WSL environment" opens; choose one way:

    • Reuse your dsh: offered when WSL already has dsh. Desktop shares data with the dsh you use in WSL yourself, so tasks show up on both; plugins follow your own dsh too (see "Installing plugins in WSL" below); updates update both. The plugin looks for dsh on your PATH (including a login shell's), in ~/.local/bin, /usr/local/bin, /usr/bin, and in the global folders of nvm, fnm, pnpm, bun and ~/.npm-global. If yours is somewhere else (installed into a project folder, or started by a script of your own), enter its location in the setup window: the command, the @deepseek-ai/dsh package folder or its lib/bin.js.
    • A separate copy for this plugin: installed in ~/.dsh-wsl/dsh with its data in ~/.dsh-wsl/home, leaving your own dsh alone. About 250 MB to download, about 900 MB installed.

    If Node.js or DSH is missing, the window lists the commands to run, and under "Where setup looked" which places were checked. Node.js must be as new as your DSH asks for (24.9 or newer for DSH 0.2); one installed with nvm, fnm, asdf, mise or Volta is found too, so with nvm you can also run nvm install 24 and click "Check again". Click "Install automatically", click "Let DSH install it" to have the Windows DSH run them, or run them yourself in a WSL terminal. The plugin never downloads anything in the background on its own.

    To open this window again later, click "WSL environment settings…" in the run-location menu under the input box. There you can:

    • Switch the run mode. After switching, tasks from the other way no longer show in the list; their data is not deleted.
    • Switch the distribution, when you have more than one. WSL's default distribution is used unless you pick another.

    First-run setup: reuse your own dsh or use a copy of its own

  4. Once connected, the loading note at the bottom of the sidebar goes away and the WSL folders and tasks appear in the sidebar.

Other ways to install

The install box in step 1 also takes these, but a plugin installed this way cannot be updated from the Plugins page:

  • From GitHub: github:herenfor/dsh-wsl#path:/experiments/mirror/mirror, or for a given version github:herenfor/dsh-wsl#v0.1.0&path:/experiments/mirror/mirror.
  • From a local folder: download the repository to Windows and enter the full path of its experiments/mirror/mirror folder.

This update

The WSL plugin page now uses “This profile only” and “Follows web”, with hover explanations of the profiles inside WSL. Sync failures distinguish the completed change in the current profile from a failed update to the source profile. Chinese and English wording are updated together.

Tested versions

Tested with DSH 0.2.2-rc.1, 0.2.2-rc.2 and 0.2.2-rc.3. The scope differs between records:

Verification Plugin version DSH version Scope
Current local candidate 0.1.14 0.2.2-rc.3 64 unit tests; real manager and two isolated Hosts for wrong-location rejection, removal recovery, retained sessions and reinstall; Chinese/English label and sync-failure screenshots
Latest use-side recovery record 0.1.12 Desktop / WSL both 0.2.2-rc.3 Bridge and tuning loaded after configuration repair and restart; web was stopped, so creating a session there was not checked online
Historical native Desktop entry acceptance 0.1.12-dev.1 Desktop / WSL both 0.2.2-rc.3 Automatic discovery, persistent old pnpm entry migration, Host / daemon startup and first-restart connection and task mirroring
Earlier compatibility work Earlier releases 0.2.2-rc.1, 0.2.2-rc.2 Historical bridge, plugin-mirroring and installation checks

The current local setup uses two isolated Linux Hosts in the Desktop and WSL roles. Browser fixtures drive plugin rows and sync failures, with screenshots checked in Chinese and English. The historical native Desktop record covers entry migration, connection and task mirroring after the first restart, with UI checked through code and state.

Features in detail

Reuse mode detects DSH on PATH and in common standalone install folders, so an entry usually needs no input. Manual entries are under “Advanced”. Saved pnpm version paths are repaired when the corresponding stable package entry is valid; check again after upgrading to pick up the new version.

Run location and folders

  • Choose where each folder runs: on the new-task page, pick "Windows" or "WSL (distribution)" under the input box. The choice is kept per folder: new tasks in that folder run there from then on, and existing tasks stay where they are. Folders inside WSL (\\wsl.localhost\…) always run in WSL.
  • Windows folders can run in WSL too: WSL reads and writes them through paths like /mnt/c/…, which is slower than a folder inside WSL, and a note under the input box says so. The sidebar still shows it as one folder, with both sides' tasks under it.
  • Add WSL folders: when adding a folder, choose a Windows folder or a WSL folder. A WSL folder is picked by browsing the Linux file system right in Desktop.

The run-location menu

Tasks and the sidebar

  • Both sides in one list: the sidebar lists the folders and tasks of Windows and WSL together, with a small penguin on WSL ones. Approvals, questions, subagents and live titles work as in any task.
  • Scheduled tasks together: the scheduled tasks page lists both sides' scheduled tasks, and viewing, editing, running now and deleting one go to the side it lives on. A scheduled task that starts a new task is created on the side where the chosen folder runs.
  • Starts and stops with Desktop: the WSL side starts when Desktop opens and exits about 5 seconds after Desktop closes.

Plugins

  • WSL plugins on their own tab: the Plugins page gets a "WSL (distribution)" tab to install, enable, disable and uninstall plugins in WSL, with a page per plugin showing its description and the state of each component. The official Installed tab still covers Windows only; the two sides do not affect each other. Plugins installed only in WSL, including ones that change the interface, work in the Desktop window too. To install them, see "Installing plugins in WSL" below.
  • MCP servers set per side: an MCP server's command, paths and environment variables differ between Windows and WSL, so they are not copied from Windows. Set up WSL's MCP servers at the bottom of the "WSL (distribution)" tab on the Plugins page; they serve only tasks that run in WSL.

Settings and credentials

  • Desktop's model credentials: when a WSL task calls a model, it asks Desktop for the credentials; API keys and sign-ins are never written to the WSL disk. An API key you entered in WSL yourself takes precedence.
  • Desktop's settings win: settings you can change in Desktop (model, theme, language and so on) are copied one way into WSL. Settings of a plugin installed only in WSL show up on Desktop's settings page too, and changes made there are saved straight to WSL.
  • Both sides' choices in one list: where you pick one entry from a list (the default preset, the default permission preset, the search service, the model), the list shows both sides' entries, with " · WSL" on those only WSL has. When you pick one that only one side has, tasks on the other side use that side's own default, and the presets page says what the other side uses.
  • Follows DSH's language: Chinese and English for now; other languages show English.

Installing plugins in WSL

Desktop runs its WSL tasks in a profile of its own in WSL, desktop-wsl. Where its plugins come from depends on the run mode:

  • Reuse your dsh: plugins follow the web profile of your own dsh. Each time Desktop starts the WSL side, the plugins installed in web, whether they are on, and their settings are carried over; installing, uninstalling or switching a plugin in the tab below changes web too (your own dsh picks it up when it next starts); plugin settings changed in Desktop are written back to web at the next start, and when both sides changed one, web wins. Desktop's own settings (model, theme, language and so on) are never written to web. Plugins installed only in desktop-wsl before stay as they are, marked "This profile only" in the tab. "Follows web" means the plugin follows the web profile inside WSL; both labels describe WSL profiles. To follow another profile, add "pluginProfile": "<name>" to %USERPROFILE%\.dsh-wsl\config.json.
  • A separate copy for this plugin: its plugins are its own, starting with the official ones.

Install here:

Plugins → "WSL (distribution)" → enter an npm package name, git URL or local folder path in the install box → Check → Install. Windows paths are turned into WSL paths. When it says a restart is needed, quit Desktop completely, wait at least 5 seconds and open it again.

The WSL tab on the Plugins page

A WSL plugin's page

DS Bot installed in WSL, with its own interface working in the Desktop window; the Bot runs a command in WSL to check the environment

Updates

  • The plugin itself never updates in the background, which could cut off WSL tasks that are running. Check for and install updates under Plugins → Installed → WSL run mode, at a moment when no WSL task is running, then quit Desktop completely and open it again; until then the sidebar asks for the restart. The bottom of the setup window shows the installed version.
  • The DSH in WSL follows Desktop's version. After Desktop updates, the setup window offers to update the WSL side. A dsh you reuse that is not an npm global install (in a project folder, or installed with pnpm) is not updated by the plugin, which would put a second copy beside it: update it your own way.

Uninstall

  1. Desktop → Plugins → Installed → uninstall "WSL run mode", then restart Desktop.
  2. Remove what is left in WSL by hand:
    • ~/.dsh-wsl: connection files, logs, and in the separate-copy mode its DSH and data.
    • In the reuse mode also ~/.dsh/profiles/desktop-wsl, the profile the plugin created. Task data lives in ~/.dsh, shared with your own dsh: do not delete all of ~/.dsh.

When something goes wrong

  • When the bottom of the sidebar says the WSL side failed to start, click it to see the error.
  • When your dsh or Node.js is not found, the setup window lists where it looked. The full output of the last check is in %USERPROFILE%\.dsh-wsl\setup-probe.log on Windows.
  • If you chose to reuse your dsh and it is later not found (moved, removed), the WSL side stays off and the setup window asks for its new location; it does not switch to the plugin's own copy by itself.
  • The WSL side's log is ~/.dsh-wsl/run/desktop-wsl/daemon.log. When the WSL side fails before it can write that log, the error is in %USERPROFILE%\.dsh-wsl\bridge.log on Windows.
  • Feedback: https://github.com/herenfor/dsh-wsl/issues

Known limitations

  • Desktop and the DSH in WSL must match in the first two parts of their versions; see tested versions for verification scope.
  • In the separate-copy mode, WSL tasks are not shared with your own dsh, and tasks cannot be moved between the two ways yet.
  • Reusing your dsh runs its package directly with Node, with its data in ~/.dsh. It does not go through launch scripts or wrappers of your own: environment variables, ports or a DSH_HOME set there are not applied.
  • When a WSL plugin's patch changes the configuration of an official component (rather than switching it off), that change does not apply in the Desktop window.
  • The interface of WSL plugins loads into the whole Desktop window, not only into WSL tasks.
  • Closing Desktop stops the WSL side as well; WSL tasks do not keep running in the background, and WSL's scheduled tasks run only while Desktop is open.
  • Referring to another task with @ works only within one side: a WSL task is offered WSL tasks, a Windows task Windows tasks.
  • The "All plugins" page in Settings lists Windows plugins only; WSL plugins are on the "WSL (distribution)" tab.

Screenshot credits

Screenshots from a test environment, for illustration only. Third-party plugins shown: the desktop pet dsh-pet (PC2005-cloud; code MIT, character art not for commercial use), DS Bot (Fei2411, Apache-2.0), Claude Code Style (Nwflower, MIT) and dsh-runtime-tuning (MIT). Names and artwork belong to their authors. In the DS Bot screenshot, the replies come from a local stand-in model used for testing; the system details in the table are the real output of the command run in WSL.

License

MIT. The session ID field table is adapted from dsh-ssh-workspaces (MIT); see LICENSE for its notice.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.