Preface¶
When running DeepSeek Harness (DSH) on multiple machines, common practices include SSHing into the remote end, manually syncing workspaces, or repeatedly pasting commands in chats. As the number of machines grows, “which one is online and who should the task be assigned to” becomes an additional burden. The DSH community decomposes capabilities into plugins; dsh-plugin-mesh (maintained by peng456) addresses this same issue: it allows DSH instances to see each other on the local network and provides a peer operation page in the sidebar, supporting task delegation to peer agents and reverse delegation.
What is this¶
dsh-plugin-mesh is a Mesh workflow plugin for DSH (npm package name dsh-plugin-mesh, current version v0.3.35, MIT License). Upon startup, it automatically discovers other DSH instances on the same network segment, displays online status and capabilities reported by peers, and supports bidirectional task dispatch. If not on the same network segment, it can enable the built-in user-space Tailscale (tsnet) node to appear in the same list as machines discovered on the LAN within the tailnet, with consistent usage.
Ecologically, DSH follows the “everything is a plugin” principle; the plugin directory site SkillHub is maintained by the community and has no official affiliation with DeepSeek or Hithink RoyalFlush.
Core Features¶
The following introduces the main capabilities of the plugin during runtime, all derived from the project documentation.
Auto-discovery and Online Status¶
- Periodically sends JSON heartbeats (default interval 5000 ms) to UDP multicast
239.255.42.99:45892and listens on the same group. - Provides a small HTTP peer API on local TCP 45917 (configurable via
port). - Multicast TTL is 1, valid only within the same Layer 2 broadcast domain; when crossing subnets or if multicast is blocked, it can fall back on startup scanning and active subnet scanning (
mesh_scan). - Maintains peer online status through ping and other probes.
The documentation emphasizes a zero-configuration tendency: fixed ports, automatic scanning, and ping mean that once installed, instances on the same segment can discover each other without pairing codes (see “Applicable Scenarios and Notes” below for security-related matters).
Sidebar Mesh Page¶
When opening the Mesh page for the first time, you can set a readable name for the current machine (the hostname is available by default); other machines identify this machine by that name. The page is used to view the peer list, internet networking (Tailscale), and other operations; instructions for zero-to-one usage can be found on the Showcase Page.
Agent-callable Tools¶
The plugin registers the following tools for the agent (parameters and behavior are subject to the repository’s llms.txt):
| Tool | Function |
|---|---|
mesh_peers |
Lists discovered peers: online status, address, system, user, and capabilities, etc. |
mesh_scan |
Actively scans the current subnet; used when multicast is unavailable. |
mesh_run |
Dispatches a task to a specified peer (asynchronous: success indicates acceptance, not execution completion). |
mesh_tasks |
Views recent mesh tasks sent and received. |
mesh_run requires peer (machine name, instance id, or ip:port) and task. The same work item can reuse a thread, and the peer will reuse the session to save context; pure confirmation messages can use noWake: true to avoid waking the peer agent.
Cross-Internet Networking (Tailscale / tsnet)¶
LAN discovery relies on multicast or reachable subnet scanning; for cross-Internet scenarios, the plugin can download a precompiled sidecar (approx. 9MB gzip, cached in ~/.dsh/mesh/bin/) to run a user-space Tailscale node. End users do not need to install Go or the Tailscale client. A reusable auth key needs to be prepared on the Tailscale side and filled in once in the Mesh panel or configuration; keys and other states are written to ~/.dsh/mesh/state.json (permission 0600).
Installation and Activation¶
After installation, you must restart the DSH host process as the plugin is loaded at startup.
For DSH Desktop (desktop profile), please execute in the DSH Desktop built-in terminal; other profiles can be installed in a regular terminal:
dsh plugin add dsh-plugin-mesh
For Web and other non-desktop profiles:
dsh plugin --profile web add dsh-plugin-mesh
The documentation states: dsh plugin --profile desktop ... will be rejected by dsh in a regular terminal, as the desktop profile is managed exclusively by the Electron application; in this case, use the in-app terminal or ./install.sh in the source directory (if users do not want to start from a git clone, prioritize installation via the npm package).
After restart, you can confirm the service is up via a local health check:
curl -s http://127.0.0.1:45917/mesh/v1/health
The returned JSON should contain fields like "app":"dsh-mesh" and local machine identification.
Typical Usage¶
1. Same Network Segment: View Peers and Dispatch Tasks¶
In an agent conversation, you can first ask the agent to call mesh_peers to see who is online, then call mesh_run. Conceptual example (specific peer names depend on the mesh_peers results in your environment):
Please call mesh_peers, then dispatch the task "execute npm test on the peer machine" to the peer named my-build-box via mesh_run, setting the thread to deploy-test.
Dispatch is asynchronous; progress and results need to be viewed via the peer agent session or mesh_tasks.
2. Multicast Unavailable: Active Scanning¶
If switch IGMP, AP isolation, or Windows Firewall blocks UDP 45892, peers may not appear for a long time. You can ask the agent to execute mesh_scan, or rely on the startup scanning in the configuration (scanOnStart defaults to true).
3. Cross Subnet: Enable tsnet¶
Fill in the Tailscale reusable auth key in the Mesh panel’s tailnet card, or configure it in the profile’s cordis.patch.yml (Note: config: is replaced entirely rather than merged; to change one item, you must preserve other necessary keys):
- id: mesh
config:
tsnetEnabled: true
tsnetAuthKey: "tskey-auth-..."
Once enabled, DSH on the tailnet and peers discovered on the LAN appear in the same list, and mesh_run usage remains the same.
Applicable Scenarios and Notes¶
Who it is for: Those with multiple development machines, build machines, Termux devices, etc. on the same LAN who want to hand over “execute on peer” to the agent from one DSH instead of switching via SSH themselves; those willing to use Tailscale accounts for self-networking when crossing the public network.
Permissions and Security:
- The plugin runs with the current dsh process permissions; before installation, please read the GitHub Source Code and the MIT License to ensure it complies with your environment policy.
- Default
requirePairingis false: any host that can access local TCP 45917 might POST tasks and wake the agent (usingpermissionPreset, defaultworkspace-write). In untrusted networks, turn on the pairing switch in the Mesh panel, or configurerequirePairing: trueand let both sides share a secret key; the documentation states that pairing tokens travel in plaintext HTTP headers, mainly preventing accidental connections, not sniffing. - Multicast heartbeats expose machine card information on the same L2 network segment; shared keys will not appear in multicast content.
- On Android / Termux, the sidecar is related to power saving strategies; long-term background operation requires adding DSH to the battery whitelist according to the README, otherwise heartbeats and sessions may be interrupted (the plugin will rebuild sessions as designed, but debugging noise will increase).
Network Ports: TCP 45917 (peer HTTP), UDP 45892 (multicast). Cross-subnet LAN discovery may require supplementary scanning ranges in the configuration (see the full README for details).
Conclusion¶
dsh-plugin-mesh turns “multi-machine DSH mutual visibility + bidirectional task dispatch” into an installable Mesh plugin: relying on multicast and scanning for LAN, built-in tsnet for WAN, and the sidebar and agent tools (mesh_peers / mesh_run etc.) covering daily orchestration. For more design trade-offs and troubleshooting, see the repository’s Chinese README and DESIGN.md.
- Directory Page: https://www.skillhub.cn/plugins/peng456/dsh-plugin-mesh
- GitHub: https://github.com/peng456/dsh-plugin-mesh
- User Showcase Page: https://peng456.github.io/dsh-plugin-mesh/