Introduction¶
DeepSeek Harness (DSH) integrates the model, sessions, workspaces, and plugin tools into a single process. In actual development, compute resources, assets, or compilation environments are often on another machine: you might need to SSH into the remote to check logs, or attach a standalone script that only runs shell commands, but it’s hard to seamlessly continue a remote agent, call unique remote tools, or directly @ remote paths “like it’s local” within the local chat.
dsh-remote (repository jensentsts/dsh-remote-plugin) is a DSH client-side plugin released by maintainer jensentsts. Its goal is to place the local DSH in the “seat at the console” of the remote DSH over an authenticated TCP long connection: to orchestrate tasks, wait for the peer to finish a full round, bring the results back to the local chat, and optionally execute commands, transfer files, and mirror remote tools and workspace references. Ecosystem-wise, DSH follows the principle of “everything is a plugin”; the community directory is indexed on sites like SkillHub, with no official affiliation to DeepSeek / Fanshan.
What is this¶
Described in package.json, dsh-remote provides authenticated multi-host DSH connections, host-prefixed plugin/workspace references, and remote filesystem access. The current version in the documentation is 0.5.2, license MIT, and requires DSH engine >=0.2.2-rc.1 <0.3.0.
Implementation-wise, it is not a single-file script but a pair of static Cordis plugins: the master loads src/client.ts, and the controlled loads src/server.ts. The controlled side injects the remote DSH’s agents, sessions, agentPresets, workspaceRegistry, etc., thereby driving real sessions from within. The master side provides remote_* tools to the local model and lazily dials the tunnel. Communication uses X25519 mutual static key authentication, ephemeral key forward secrecy, and AES-256-GCM per-frame encryption; the repository notes it uses only Node.js built-in modules with zero external npm dependencies.
Core Features¶
The following capabilities are derived from the repository README and version notes, summarized by topic.
Remote Agents and Sessions¶
The master side can send prompts to a remote agent via tools (e.g., remote_agent_prompt), specifying preset_id and workspace; preset_id and workspace are only determined when the session is first created, and subsequent connections use the same session_id for continuation. When session_id is omitted, the plugin generates a deterministic anchor (e.g., remote-<first 12 chars of sha256>) using the local chat ID to implement a “one local chat corresponds to a remote conversation”; pass new_session=true if a separate session is needed.
Starting from 0.5.2, the replies array in agent.prompt can preserve multiple public replies and metadata according to the order of remote committed assistant/message. When an old peer lacks this capability, it is labeled as legacy behavior; the documentation explicitly states that local upgrades cannot recover lost early messages for the peer.
Commands, Files, and Tool Mirroring¶
The controlled side executes commands and streams files over the authenticated channel. The master side can mount the remote disk to a /rmt/... path, autocomplete remote directories in the input box, or reference remote image paths in chat. The local agent can invoke remote unique plugin tools (via remote_* and mirroring mechanisms), not limited to bare shell.
Multi-Host and Named References¶
Starting from 0.3, it supports connecting to multiple hosts with fixed public keys simultaneously; outbound/inbound permissions and Q&A are isolated by host, and other machines on the network are not auto-discovered. Reference syntax examples (from original README):
@studio:clock # Plugin retrieval
@studio:/C:/data/report.txt # Remote absolute path
@studio:产品/docs/brief.md # Remote DSH named workspace
@"studio:设计 笔记/docs/brief.md" # Spaces use quotes
@产品/docs/brief.md # Local, requires standalone dsh-workspace-reference plugin
The documentation notes that ~ is not introduced; same-name workspaces or plugins are not guessed, requiring explicit forms like host:workspace:ID / host:plugin:package-name. See docs/MULTI-HOST.md in the repository for the full syntax.
Security and Topology (Optional Capabilities)¶
0.4: Automatic downgrade of the old handshake is blocked by default; bounded connection/handshake budgets, frame timeouts, and backpressure are applied; Level 1/2 file reads require explicit configuration of readRoots. See docs/SECURITY.md before upgrading.
0.5: Optional centralized byte forwarding (FRP/VPN TCP entry) is available; devices maintain end-to-end authentication, and the center only forwards; disabled by default. See docs/MESH.md.
0.5.2: Optional Super agent IO integration is available (server config superAgentIo: true, default off); the client side has an additional superAgentIoInbound which is also disabled by default. Details are as per the README and docs/MESSAGES-0.5.2.md.
Installation and Activation¶
The quick start in the documentation does not provide one-click commands like dsh plugin add github:..., but rather key + cordis.patch.yml mounting on both ends. The steps below are consistent with the README “Quick Start”.
1. Generate Key Pair¶
Execute on either the master or controlled side (or a dedicated machine):
python tools/gen-keys.py
The script uses the Python standard library to generate keys by role under keys/active/ and installs them into the local default $DSH_HOME/dsh-remote/. The terminal prints the full SHA256 fingerprints of the public keys on both sides (format SHA256: + 64 hexadecimal digits) for verification. There is no centralized CA; valid peers are determined by “holding the paired private key + the peer having pinned the public key”.
2. Wake Up Controlled Machine (server)¶
Place server.key and client.pub from the controlled side keys/active/server-side/ into that machine’s $DSH_HOME/dsh-remote/, and append to the end of that machine’s profile’s cordis.patch.yml (modify paths according to your actual local location):
- insert:
- id: dsh-remote-server
name: 'file:///C:/path/to/dsh-remote/src/server.ts'
config:
host: '127.0.0.1'
port: 11325 # Must match the tunnel's 'local port' and be exclusive to this plugin
The controlled side listens only on the loopback address by default; public network access is provided by frp, Tailscale, or LAN tunnels.
3. Connect to Master Machine (client)¶
Place client.key and server.pub from keys/active/client-side/ into the master machine’s $DSH_HOME/dsh-remote/, and append to the master machine’s cordis.patch.yml:
- insert:
- id: dsh-remote-client
name: 'file:///C:/path/to/dsh-remote/src/client.ts'
config:
host: 'tunnel.example.com' # Tunnel public address / Tailscale name / LAN IP; must be explicitly filled
port: 10000
Restart both sides’ dsh web or desktop client. For packaging, installation, controlled machine configuration panel, and troubleshooting, see docs/GUIDE.md; for upgrades when the remote cannot be physically accessed, see docs/DEPLOY-PEER.md. For independent plugin index, see dsh-independent-plugins.
Typical Usage¶
With keys and dual-side plugins ready, you can let the model invoke a remote agent in the local conversation. Example from README:
remote_agent_prompt session_id="work-1" preset_id="cordis"
workspace="E:\project"
text="先读一下这个目录,然后告诉我它是干什么的"
In daily use, it is more recommended to omit session_id, allowing the plugin to automatically continue the remote session based on the local chat; the tool return headers will indicate (reused: …) or (created).
In a multi-machine environment, use the @host:… form in prompts or paths to point to specific remote plugins, workspaces, or absolute paths, avoiding confusion with local @workspace.
Suitable Scenarios and Notes¶
Who is it for: Scenarios where there are multiple hosts running DSH, you want to have a unified conversation on the main machine but execute agents/tools/large files remotely; and you are willing to manage keys, tunnels, and cordis.patch.yml configuration yourself, rather than relying on pure SaaS remote control.
Permissions and Security: The plugin executes commands and reads files within the remote DSH process’s permissions; from 0.4, reading sensitive paths on the read-only host requires configuration of readRoots. Before installation and upgrade, you should read LICENSE, the source code, and docs/SECURITY.md, and evaluate your own trust boundaries.
Version and Ecosystem: The README specifies Build r27 / c20; 0.5.2 changes involve message reply formats, Super agent IO, storage domains, etc., related to peer capability negotiation. When mixing versions, you must refer to the version-specific sections in the README. A GitHub star count of 0 in directory listings does not represent feature completeness, but serves as a public indicator.
Capabilities not promised in documentation: For example, the centralized mesh is currently delivered as a Node.js/Cordis proxy, not equivalent to a native mobile or browser client; attachment references are preserved but not automatically downloaded across machines to local renderable attachments, etc., subject to the 0.5.2 notes in the README.
Conclusion¶
dsh-remote uses a pair of client/server plugins and an X25519 + AES-256-GCM link to connect the “tool surface visible to the local model” with the “remote execution kernel”, and supports multi-host @host:resource naming. If you are already using DSH and have multi-machine collaboration needs, you can start with python tools/gen-keys.py and dual-side cordis.patch.yml, and then read the multi-host, security, and mesh documentation as needed.
- Community Directory Page: https://www.skillhub.cn/plugins/jensentsts/dsh-remote-plugin
- Source Code and README: https://github.com/jensentsts/dsh-remote-plugin