Phone client for DeepSeek Harness — no app to install (PWA). Read sessions, background jobs, subagents, goal rounds, workflows and pending approvals, and talk to any session from it: streamed replies, tool-call progress, stop at any time, switch sessions and models. Also ships a GUI sidebar panel. Formerly dsh-taskwatch; the npm package is now dsh-in-hand.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-in-hand
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:dingchenhui0618-arch/dsh-in-hand
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
English · 简体中文
| Form | One web page (/taskwatch) — no app, no store |
| Platform | iOS Safari · Android Chrome; can be added to the home screen as a PWA |
| Runtime deps | 0 — a single-file page, no framework, no CDN, works offline |
| DSH version | >=0.2.1-rc.2 <0.3.0 (declared in engines.dsh; tested end to end on the Windows desktop build, nightly channel) |
| Public access | Built-in relay: no public IP, no port forwarding |
| Authorisation | One scan from the desktop sidebar's Phone pairing panel; a 6-digit code still works. Per device, revocable anytime |
This is a plugin for DSH (DeepSeek Harness) that puts a desktop agent session into a phone browser: you can watch it run, approve a tool call, and answer a question from the phone, without installing an app. The plugin serves one narrow page, /taskwatch, from your own DSH instance; the phone reaches it over your LAN, or through a relay you run yourself. It is not a cloud service, not a native app (nothing from an app store, no build step — at most a PWA icon on the home screen), and it does not upload your files to a third party.
While a turn is running the header grows one 44px run bar — Step 3 · editing a file on the left, 1:37 elapsed on the right. The step count comes from that turn's own step/start frames; there is deliberately no percentage bar, because the host never says how many steps a turn will take. A simple mode (drawer → display settings) hides the two metric rows and folds attach/camera into a single “+” — files, photos and the camera are all still there, and the choice is remembered per phone. The run bar appears on its own; simple mode is off until you turn it on.
Install
Three steps; the third one is optional.
Install the plugin on the machine running DSH:
dsh plugin --profile web add dsh-in-handThen restart DSH — close and reopen the desktop client, or run
dsh webif you started it from a shell. Plugin rows come from the profile's bundle graph, so nothing changes until you restart.Bring the phone in. In the desktop sidebar open Phone pairing and scan the QR code with the phone camera — that is the whole step (the code rotates every 60 s and works once). Without a camera, type the 6-digit code shown in the same panel; the LAN address is
http://<computer-LAN-IP>:3099/taskwatch, the HTTPS relay address from outside. A code gives a 30-day cookie that slides on every visit. (Without a relay, the plugin answers directly on DSH's own port, e.g.http://127.0.0.1:3080/taskwatch; there is no pairing and no public entry in that mode.)Optional: put a public entry in front. The plugin has no auth of its own and listens on loopback, so a public entry means a relay (or an equivalent TLS reverse proxy) plus a tunnel back to this machine. DSH Web must listen on 3080: the desktop build otherwise picks a random port, and the port is set through a profile patch, as the Chinese README describes. Deployment templates and a three-step setup live in
docs/deploy/README.md(currently in Chinese).
Phone pairing
The sidebar has a second entry, Phone pairing, that does one thing: get a phone in.
- Scan. The QR code rotates every 60 seconds. It does not contain the 6-digit code; it contains a single-use hop ticket (v3, audience
remote, 60 s, burnt on use) appended to the LAN entry. The phone camera opens it, the relay redeems it, a 30-day cookie is set, and the browser lands on/taskwatch— no typing at all. - Type, if you must. Camera broken or the screen is too far away: the panel also shows the 6-digit code (2 minutes, 5 attempts, single use) by asking the relay's own mint endpoint.
- Recently seen devices. Which device, which entry, how long ago. Revoking takes two taps (the button turns into "Confirm revoke"); the next request from that device gets
401. - It says why when it cannot connect. Relay not running, relay listening on loopback only (no
.lanmarker), nopublicUrl, or a configured LAN address that is no longer on this machine — all four are named in the panel instead of leaving a dead QR code.
The relay needs no change: both sides share the ticket secret (<home>/.dsh/taskwatch-ticket.key), which hop tickets already relied on. The QR code is rendered by the host (lib/qr.js over a vendored qrcode-generator, MIT) — no runtime dependency, no external image host or CDN.
With the relay on a server (the docs/deploy/ layout) scanning still works, but two things must be true: that relay is v1.1.0 or newer (it verifies v3 tickets) and it uses the same ticket secret as this computer (put the value of ~/.dsh/taskwatch-ticket.key into /etc/taskwatch-relay/env as TASKWATCH_TICKET_SECRET=…, or pass --ticket-secret-file at install time). Without them, asking for a code fails ("the relay is not running on this computer") and a scanned ticket lands on the pairing page — pair once through the relay's own page instead (ssh -N -L 13099:127.0.0.1:3099 root@your-server, then open http://127.0.0.1:13099/taskwatch/pair).
Acting from outside needs relay v1.2.0. 1.1.0 forwards reads, messages and uploads only, so approving, answering, reordering the queue, revoking a device or configuring notifications from the phone answers 404. 1.2.0 extends the allow-list to 35 routes and advertises its capabilities in /taskwatch/lan.json; the page reads that and names the version instead of leaving a button that does nothing.
(State screenshot: the relay status is injected and the domain is replaced with an example one; the panel component, the QR code and every other field come from the real host.)
Security
Plain facts, no promises:
- The agent runs as you. A session executes with your user account's permissions, under whatever preset DSH is using (
danger-full-accessby default). The phone page is another way to drive that same session, so treat access to it as access to a terminal on this machine. - Approvals happen on the phone; every failure falls back to the desktop. While a phone page is online, it can claim one
approval/requestand resolve it once asalloworreject. No phone online, a hidden page, an abort signal, or a timeout (default 120 s,approvalTimeoutMs, 10000–600000) all hand the request back to the desktop. There is no always-allow option: a decision succeeds once — a duplicate is answered with409, an expired or already-returned request with410. - High-risk actions need two steps. The host decides risk from
toolName + reason + displayReason(19 patterns by default) and sends onlyrisk: high | normalto the page. On a high-risk card, "Approve once" opens an in-card confirmation with the tool and the reason, and only "Confirm" submits.riskConfirm: falseskips that second step and keeps the badge only. - Files are read one at a time.
/taskwatch/fileserves a single file referenced by that session's messages, up to 50 MB. No directory listing, no globs, no parent-directory access; symlink escapes are rejected. Anything else is403 outside-roots.DSH_TASKWATCH_ROOTSis unchanged: still~/.dsh/attachmentsand~/.dsh/outbox. - Devices can be revoked. Each browser gets an HttpOnly cookie; the ledger keeps a readable summary name, first/last seen, entry, pairing count and a revoked flag — no IP, no full UA. Revoking the current device asks for confirmation, and its next request gets
401. At most 50 devices are kept, and entries idle for 30 days are dropped. This is not an account system. - The phone never stores the full command text. Audit lines keep
{at, session, toolName, outcome, by, risk, reason?}withreasoncut to 120 characters — no command body, no stdout/stderr. Question audits keep the title, outcome and counts, not the selected option or the custom answer text. - Starring uses GitHub OAuth Device Flow (v1.8.23). Tapping "star" only opens a panel: the host asks GitHub for an 8-digit device code, and only after you enter it and confirm on GitHub does the host star the repo as your own account. The request uses an empty scope (public star only — no private repos, no profile), and the access token lives in host memory for a few seconds: it is used for the star immediately, then nulled and the flow deleted — never logged, never written to disk, never returned to the page. Revoke it anytime at
github.com/settings/applications. This only happens after your own click and your own confirmation on GitHub; there is no automatic or bulk starring. - Do not expose DSH itself. The plugin registers only its own
/taskwatchroutes and listens on loopback; it does not proxy the GUI. A public entry must go through a relay that whitelists paths and checks a token or a short-lived ticket. Never publish port 3080 directly.
| A high-risk request: the card says what will change before anything runs. | A normal approval: one decision, a countdown, and a fallback to the desktop. |
Honest limits
- It cannot edit an existing long text input on the agent's behalf. A half-written prompt in the desktop composer, or a free-form form field, is not part of any request the phone can claim, so the phone will not compose a replacement and write it there.
- On iOS, add it to the Home Screen to get the app-like shell (icon, fullscreen, no address bar). That is a PWA, not a native app, and there is no true background refresh: polling stops when you leave the page and resumes when you come back.
- Files outside
attachments/outboxthat the session never referenced stay invisible, even if you know the path. The read route widens only to absolute paths quoted in that session's messages, one file per request. - Real-device behavior is yours to verify. Screenshots and UI checks come from real Chrome over CDP at 390 px width with injected data; camera capture on iOS Safari, HEIC input, and a 2.5 MB upload on a weak network have only been simulated.
- UI copy is Chinese only. There is no i18n yet; this file documents the plugin, it does not translate the interface.
Docs
The detailed notes are kept in Chinese, one file per topic:
| Topic | File |
|---|---|
| Each capability: why it works this way, failure semantics, which version added it | docs/notes/features.md |
| Implementation notes: polling, reconnect, no full re-render, end-to-end traps | docs/notes/impl.md |
| Every HTTP route, its body, its error codes, and what it reads from the host | docs/notes/api.md |
| Two entries, SSH reverse tunnel, ticket format, 502 triage | docs/notes/remote.md |
| Security boundaries in full | docs/notes/security.md |
| Known limits in full, and what has not been verified on a real phone | docs/notes/limits.md |
| What each check script proves | docs/notes/dev.md |
| Relay deployment (three steps, nginx template, health check) | docs/deploy/README.md |
| Screenshot index and history | docs/screenshots/README.md |
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10686
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★ 10686
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★ 4003
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★ 1024
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★ 533
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.