Preface¶
The DeepSeek Harness (DSH) plugin ecosystem follows the “everything is a plugin” philosophy. For developers who need to manage multiple dsh-superagent deployments, each repository corresponds to an independent process with its own database, model routing, and GitHub Source, easily scattered across multiple terminal windows. DSH Superagent Remote is a Windows-side plugin that consolidates deployments from multiple repositories into the DSH interface for unified management.
Plugin Overview¶
DSH Superagent Remote is a client-side plugin maintained by GameGeek-Saikel. It runs within the DSH Web interface on Windows, starting and supervising a dsh-superagent deployment for each GitHub repository inside WSL2. Each repository gets a native DSH conversation window (based on GitHub issue threads), a project sidebar panel, and its own Superagent panel (the upstream dt-column panel accessed via reverse proxy).
Core Features¶
Repository and Workspace Mapping¶
The plugin adopts a model of “one workspace = one GitHub repository + one DSH configuration + one loopback port + one state directory.” Each repository maps to an independent dsh-superagent deployment with its own memory, state directory, and configuration.
WSL2 Lifecycle Management¶
- WSL distro startup is lazy: the distro is started only when the panel is opened; closing the panel or browser tab does not stop the deployment, and the deployment is terminated only when the entire DSH process stops.
- If the plugin owns the distro, stopping DSH can optionally terminate WSL; otherwise, the distro is preserved.
- Removing a workspace stops the corresponding deployment, deletes its WSL configuration, state directory, and session records, and frees the port for future use.
Port Allocation¶
New workspaces are automatically assigned the lowest available port, starting from portBase (default 3081, adjacent to DSH’s default 3080). After a workspace is removed, its port is reclaimed and not retained for higher-indexed workspaces.
Conversation Transport¶
Each workspace maps to a GitHub issue thread: every message is a comment that mentions the agent account, and the deployment replies within the same thread. Messages are sent optimistically (displayed immediately), and the agent polls the thread for replies every 1.5 seconds instead of the 3-second interval when idle. Replies are presented as standalone cards containing the author, date, and action buttons.
Panel Views¶
The panel provides two views:
- Chat: DSH conversation window, including the content column, right-side bubbles, assistant cards, action rows, hover action rows, floating editor, and loading whale animation.
- Superagent: The deployment’s own six-tab panel (Overview, Sources, Triggers, Evaluations, Executions, Settings), accessed via reverse proxy.
Session Presets¶
When creating a new workspace, the main session defaults to “low effort,” the executor defaults to “maximum effort,” and the deployment’s own default model is used.
Installation and Activation¶
The plugin is a private plugin installed via a local checkout link:
pnpm install
pnpm check
dsh plugin --profile web add link:D:\Projects\dsh-plugins\dsh-superagent-remote
After installation, restart dsh web, and a Superagent entry will appear in the sidebar.
Prerequisites¶
The following conditions must be met before installation (see docs/002-runbook.md for details):
- WSL2 uses mirrored network mode
- pnpm is installed in the distro
ghCLI on Windows is logged in with the operator account- The distro contains the agent’s
ghwrapper (gh-agent)
First Run¶
On the first panel open, if the official Node/TypeScript dsh-superagent package is missing from the distro, the plugin will automatically clone the upstream repository and run pnpm install and pnpm build to set up.
Configuration Options¶
All configuration options reside in the profile’s cordis.patch.yml and are all optional:
| Option | Default | Description |
|---|---|---|
distro |
Ubuntu-22.04 |
WSL distro name for hosted deployments |
wslUser |
root |
User in the distro that owns the configuration and state directories |
checkout |
/root/dsh-superagent |
Checkout directory for dsh-superagent in the distro |
agentCli |
/root/.local/bin/gh-agent |
GitHub CLI wrapper used when creating new workspaces |
portBase |
3081 |
Starting port for new workspaces |
terminateWslOnExit |
owned |
Whether to terminate WSL on DSH exit: owned terminates only if the plugin started the distro; always always terminates; never never terminates |
trustedHosts |
[] |
Additional hosts allowed to call the plugin API, e.g. 192.168.1.5:3080 |
autoImport |
true |
Registers already-running deployments in WSL only on first open; removed projects are not re-imported |
How It Works¶
The plugin uses a reverse proxy architecture. The browser (DSH web) communicates with the host plugin via the /superagent-remote/:id/ route, and the host plugin then interacts with the dsh-superagent deployment in WSL2:
browser (DSH web) Windows host WSL2
┌──────────────────┐ /superagent-remote/api/* ┌────────────────┐
│ workspace shell │ ─────────────────────────► │ host plugin │
│ conversation │ /superagent-remote/:id/ │ runtime │ ──► dsh --profile <p>
│ vendored panel │ ─── orchestrator/api/* ──► │ reverse proxy │ 127.0.0.1:<port>
└──────────────────┘ └────────────────┘
- All
GET stateandPUT settings/...requests from the panel are proxied to the WSL deployment; edits act directly on the deployment. - Conversation text is fetched from GitHub (
gh issue view), while run/pause status is retrieved from the deployment’s management API. /runtime/starttriggers WSL startup; the workspace is launched in the background and immediately returns a snapshot, while the panel renders the cached snapshot as provisioning continues.
Use Cases and Notes¶
This plugin is suitable for scenarios where developers need to manage multiple dsh-superagent deployments within DSH, especially when each repository is deployed independently and conversations and configuration need to be managed through the DSH interface.
Notes:
- The plugin runs with the permissions of the current DSH process. Review the source code and license before installation.
- Conversations are based on GitHub issues, not token streams; replies are presented as cards.
- One repository maps to one deployment. Multiple projects mean multiple DSH processes, each consuming memory and a state directory.
- The plugin requires Node.js version
^22.19.0 || >=24.0.0and pnpm11.22.0.
Summary¶
DSH Superagent Remote consolidates multiple dsh-superagent deployments scattered across WSL2 into the Windows-side DSH interface, providing unified session, project panel, and deployment management capabilities. Through reverse proxy and lazy WSL2 startup, it reduces the operational burden of multiple processes into a single interface.
For more information, see the plugin directory page: https://www.skillhub.cn/plugins/GameGeek-Saikel/dsh-superagent-remote
Source repository: https://github.com/GameGeek-Saikel/dsh-superagent-remote