Remote task plugin for DSH: pair hosts over Iroh, send a task to a session on another machine, and read its progress back; when no target session is given, the peer opens a new session by default. Based on dsh-weave by Xiang Bai.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/zddzhangdada/dsh-remote-task/releases/latest/download/dsh-remote-task.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zddzhangdada/dsh-remote-task
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
DSH Remote Task
Connect explicitly trusted DeepSeek Harness hosts through Iroh and send tasks to sessions on another machine. Pair once, then dispatch a task from the current session and follow its progress in the right-side panel.
What you get
| Capability | Behavior |
|---|---|
| Persistent identity | The same host identity survives restarts. |
| Explicit pairing | Exchange endpoint tickets and trust each peer locally. |
| Encrypted transport | Iroh provides QUIC connections, direct paths, and relay fallback. |
| Remote directory | Discover workspaces and sessions on paired hosts. |
| Remote tasks | Send a task to a paired device from the current session; follow heartbeat, progress, and results in the right-side panel. |
| Visible state | Host reachability is separate from agent idle/running/offline state. |
| Native settings | Grouped identity and pairing controls, copy feedback, and removal confirmation. |
Remote tasks
Remote tasks are built into this package, so there is no separate dsh-weave-link install. From a DSH session you can:
- ask
link_deviceswhich paired devices are online and what sessions they have; - call
link_taskwith one or more device names and an instruction; - call
link_tasksto inspect a task, its messages, heartbeat, and result.
The right-side 远程任务 panel is a chat window: a task list, a conversation view with author and time on every message, and a bottom sheet for sending a task. It shows only the current session. Settings → 远程任务 is the single place for pairing, device renaming, per-device default workspace, heartbeat rules, and the incoming-new-session project. Incoming files are saved to the current conversation's project folder under 收到文件 (created automatically).
Task records live in the session directory as weave-tasks.json, so deleting a conversation deletes its task records with it. Failures have one status; the plugin inspects the failure text and retries in the same task at most twice when the problem looks temporary, otherwise it stops and reports.
Quick start
On each host:
# Install dsh-remote-task.tgz from the Releases page, then:
dsh plugin --profile web add ./dsh-remote-task.tgz
dsh web
- Open Settings → 远程任务 (or Settings → Remote Tasks) on both hosts.
- Exchange their tickets through a channel you trust.
- Add and explicitly trust the other host's ticket on each side.
- Use a higher-level plugin such as DSH Chat to select remote sessions.
Add DSH Bridge when messages should reach local agents on a receiving host. Bridge is optional for transport startup.
One transport, separate responsibilities
flowchart LR
A[Host A · Bridge] --> WA[Remote Task]
WA <-->|Iroh · QUIC| WB[Remote Task]
WB --> B[Host B · Bridge]
Iroh owns encrypted connectivity. The transport layer (originally Weave) owns host trust, endpoint refresh, reachability, and authenticated requests. Chat owns rooms, membership, and room capabilities. Knowing a ticket alone does not grant trust or agent access.
Configuration
| Field | Default | Purpose |
|---|---|---|
hostName |
System hostname | Display label for the host. |
relayMode |
default |
Iroh default relay selection, or disabled. |
persistIdentity / persistPeers |
true |
Keep identity and trusted peers across restarts. |
acknowledgementTimeoutMs |
10000 |
Default acknowledgement deadline. |
maxConcurrentInbound |
64 |
Bound concurrent incoming requests. |
shutdownTimeoutMs |
1000 |
Bound transport shutdown. |
Identity and trusted peers are stored under $DSH_HOME/dsh-weave (~/.dsh by default), with owner-only permissions — the path is kept from dsh-weave so existing pairings survive the rename. identityPath and peersPath can override their locations.
Cancellation & delivery
Outbound requests accept a cancellation signal. Cancellation closes their connection; the receiving listener is also notified when the peer disconnects. Cancelling a request does not mark an otherwise reachable host offline. Chat's longer polling requests use matching acknowledgement deadlines.
The current release includes both the transport MVP and the remote-task layer. Pairing, directory access, authenticated delivery, task dispatch, heartbeat inspection, and session-scoped task cards are implemented. Durable transport outbox/reconnect replay is still not implemented; task completion relies on the receiving agent replying with the documented [任务完成 #id] marker.
Protocol & architecture
Architecture · Protocol · Security · Room authority
The design documents include planned capabilities; use this README and the release notes for current behavior.
Development & feedback
npm ci
npm run check
Report an issue · Release notes · MIT license
Based on dsh-weave: this project is based on dsh-weave, originally created by Xiang Bai. Starting with 0.3.7 the package is named dsh-remote-task to reflect its actual function: sending tasks to sessions on another DSH host and reading their progress back. The original repository remains available for reference.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10669
Remote control of a dsh web workspace from phone or PC: QR-code pairing through a token-gated channel, SSE real-time sync, and separate mobile and full desktop GUI modes.
zhu1090093659/dsh-web#packages/dsh-ssh★ 10669
SSH ops panel for DSH: web terminal, SFTP transfer with progress, local port forwarding, and one-command cluster execution across hosts; agents share the same host config.
liguobao/ds-harness-remote★ 3897
Multi-device remote access for DeepSeek Harness and supported coding workspaces through an end-to-end encrypted channel, with adaptive Relay/WebRTC transport, device authorization, workspace files, read-only previews, terminals, and optional Codex Remote.
saya-ch/dsh-mobile★ 1015
Access DeepSeek Harness from the Android app or a mobile browser with secure LAN and remote connections, persistent device pairing, and a customizable mobile interface.
uumit-ai/dsh-uumit-remote★ 532
Open dsh web from your phone or another computer through a UUMit account, without running your own server or installing another program: a built-in tunnel client connects to UUMit's hosted tunnel, and a panel in the sidebar handles pairing and who can use it (only you, people you invite by link or phone number, or everyone), with revocation. Requires dsh web on DSH >=0.2.1-rc.2.
ZSeven-W/dsh-ios★ 485
A live iOS Simulator or USB-connected iPhone inside the conversation: 22 agent tools for booting, building, driving the UI by accessibility identity or OCR text, list-row actions and SwiftUI preview hot reload, plus a streaming sidebar panel you can tap and drag on.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.