DeepSeek Harness Plugin

peng456/dsh-plugin-mesh

Stars ★ 10 Downloads (30d) 5,046 Category Remote & Mobile Added 2026-10-17 npm dsh-plugin-mesh

Discovers other DSH instances on the local network by UDP multicast or port scan, lists them in a sidebar panel together with the capabilities each one reports, and dispatches tasks between machines in both directions over the LAN or over an automatically downloaded userspace Tailscale node.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-plugin-mesh

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

dsh plugin --profile web add github:peng456/dsh-plugin-mesh

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

Discover other DeepSeek Harness (dsh) instances on your network and dispatch tasks between machines in both directions. No pairing codes, no IP entry, no Tailscale client to install.

中文完整文档 · llms.txt (machine-oriented facts) · AGENTS.md (for coding agents)


What it is

A dsh plugin. Install it on two or more machines and the agents find each other on the LAN, show up in a sidebar panel, and hand work to one another. The receiving agent decides how to do it, and the result is dispatched back into Tasks — dispatch only means "delivered", the result arrives on its own.

This is agent-to-agent delegation, not remote execution: you state the outcome, the other agent runs the commands.

Examples

Scenario You say The peer agent does You get
Compile on the PC “Build the Windows target, send the artifact and errors.” pulls, builds, collects artifact path, exit code, errors
Deploy & verify on Android “Install that build on the Android device, launch it, send a screenshot and logs.” installs, launches, screenshots, logs screenshot, key logs, launch status
Plugin adaptation “On Windows, install the latest build, restart, confirm health reports the new version.” upgrades, restarts, probes health version, whether it took effect

Chains work too: A sends to B to compile, B hands it to C to deploy, and the result comes back to A. Each hop is just another mesh_run — no central scheduler.

When machines are not on the same network, an optional bundled userspace Tailscale node (tsnet) provides a second channel. It is a separate Go binary, downloaded per platform on first use — end users need neither a Go toolchain nor the Tailscale client.

Install

dsh plugin add dsh-plugin-mesh                 # 'desktop' profile: in DSH Desktop's own terminal
dsh plugin --profile web add dsh-plugin-mesh   # other profiles: a normal terminal works

From source: git clone https://github.com/peng456/dsh-plugin-mesh && cd dsh-plugin-mesh && ./install.sh

Restart the dsh host afterwards — plugins load at startup. You should then see a Mesh entry in the sidebar.

Three steps

  1. Install on every machine.
  2. Restart dsh on every machine.
  3. Open the Mesh panel. Seeing another machine means it worked.

If the panel is empty, check in this order: (a) same LAN, (b) the peer also installed and restarted, (c) the peer's firewall allows TCP 45917 and UDP 45892. Multicast is often blocked by routers — the panel's Scan subnet button works around that.

What you get

  • Zero-config discovery — UDP multicast heartbeat on 239.255.42.99:45892, plus an active subnet scan when multicast is blocked.
  • Capability cards — each machine reports its runtimes (Node / Python / Go / Docker / …), CPU cores, memory and GPU, so you can tell before dispatching whether a machine can do the job.
  • Bidirectional dispatch — the peer's agent can dispatch results back; both sides compute the same conversation key independently, without negotiation.
  • Two channels with automatic failover — LAN first, tsnet as backup (a free Tailscale account and an auth key are required; create one at https://console.tailscale.com/admin/settings/keys, and tick Reusable). The backup channel is actively probed even while the LAN is healthy, so it is known-good rather than assumed-good.
  • Traceable routing — every task records why it went where it went, and why it failed if it did. Both are readable from the peer.
  • A demo that needs one machine — the panel's 看演示 / demo entry plays the whole dispatch → run → result loop locally (no network, no agent session, no tokens), so a single-machine user can see what it is for.

Security defaults — read this

Dispatch works out of the box. Zero configuration: a machine you can reach can hand you a task and it runs, with no prompt. That is deliberate — working immediately is the point. Pairing (below) is the gate to turn on; a per-machine “did you allow this device?” prompt still exists in the code but is debug-only (DSH_MESH_REQUIRE_APPROVAL=1) until someone actually asks for it as a setting.

Discovery is intentionally public so you can see machines before deciding to talk to them. On an untrusted network (café, dorm, office) also turn on pairing:

  1. Flip the switch in the Mesh panel's pairing card — it takes effect immediately, no restart. (Writing requirePairing: true in cordis.patch.yml also works and pins it on, so the UI cannot turn it off.) A dispatch whose x-dsh-mesh-token header does not match this machine's secret is rejected with HTTP 403; discovery and health probes stay public.
  2. Make the pairing secret identical on both machines (the Mesh panel has a field for it).

Note the token travels in a plain HTTP header: it guards against stray devices on the network, not against a network sniffer. It lives in ~/.dsh/mesh/state.json (mode 0600) and is never included in the multicast card.

Configuration

Override by id in the profile's cordis.patch.yml:

- id: mesh
  config:
    requirePairing: true
    permissionPreset: workspace-write

config: is replaced wholesale, not merged — restate any keys you want to keep. The full key list with defaults is in llms.txt.

Requirements

  • A dsh host that can load cordis plugins with a client half (DSH Desktop, or dsh web).
  • Node >= 20 for development. @deepseek-ai/* packages are supplied by the host.

More

Full documentation (Chinese) README.md
Machine-oriented facts / config table llms.txt
Guide for coding agents AGENTS.md
Contributors (what each PR / issue changed) CONTRIBUTORS.md
Showcase page (Chinese) https://peng456.github.io/dsh-plugin-mesh/
Issues https://github.com/peng456/dsh-plugin-mesh/issues
Contact geekstartup@163.com

Contributors

This is not a one-person project. Much of 0.5.x came from other people's machines, other people's stack traces, and other people's PRs:

@sakikoTGW 23 PRs: Windows/Android platform fixes, the three-OS CI matrix, system identity and diagnostics, the card workbench, mobile layout, per-profile mesh/ — the backbone of 0.5.0
@geekstartup42 #34 stopped multi-round tasks on one thread from being treated as receipts (0.5.22); #35 made state.json atomic and fail-closed (0.5.23)
@chengle0575 #22, the first external code fix attempt (a patch for issue #1)
@WinWindWing #1, the first external issue: dispatch never registered threadState, so results never landed in the originating session — where thread routing started
@sillywhalebot #33, a second dispatch on the same thread treated as a receipt — exact repro steps, version, and the peer's prompt, which produced #34
@kingofpantheon #31, the proposal to give threads ownership metadata and read-only retrieval — the first to name the cross-talk problem

Bots deserve a line too: @dependabot[bot] keeps the CI dependencies current, and github-actions keeps test → publish → release running.

Per-contribution detail (which PR changed what, which issue led to which fix) is in CONTRIBUTORS.md (Chinese). To join the list: a PR, or a reproducible issue, is enough.


Sponsors

OMDSH (Oh My DSH) · Beyond the default. · DeepSeek Harness developer community

Independent and unofficial; it sponsors the model tokens (compute) for this project. Website https://omdsh.dev/

Thanks, OMDSH. Sponsorship is support, not a purchase: everything here is free, and sponsorship unlocks no features.


MIT licensed. Not affiliated with DeepSeek.

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.