rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:icrefin/dsh-remote-access
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Reach this DeepSeek Harness from your phone, tablet, or another computer over a private mesh network — Tailscale, ZeroTier, NetBird — and get the real Harness client, not a cut-down remote control. One switch, one link.
Settings ▸ Remote Access
└── listener status · ready-to-open links · bind address · optional key
dsh web deliberately refuses a wildcard bind: --host takes one concrete local
address, and 0.0.0.0 is rejected at startup. The desktop app goes further — it
launches the harness as --host 127.0.0.1 --port 0, so the web server is bound
to loopback on a random port before any plugin loads. There is no configuration
that turns that listener into a network one.
So this plugin is a gateway instead:
phone / laptop this machine
┌──────────────┐ WireGuard ┌─────────────────────────────┐
│ browser │──────────────▶│ 100.x.y.z:3080 │
│ (real DSH UI)│ │ └─ key gate → replay ──┐ │
└──────────────┘ │ ▼ │
│ 127.0.0.1:<random> harness│
│ (unchanged, loopback only) │
└─────────────────────────────┘
The browser loads the same page the local window loads, so sessions, prompts,
streaming, terminal and settings all arrive by construction. The only work the
gateway does per request is: check its own cookie, attach the harness cookie it
minted for itself, rewrite Host to loopback, drop Origin/Referer/Sec-Fetch-*,
and stream the answer back. WebSocket upgrades are tunnelled as raw sockets.
Because the mesh transport is already WireGuard-encrypted, the gateway serves
plain HTTP on 3080; it never pretends to terminate TLS.
pnpm install
pnpm check # typecheck both halves, build, run 86 tests
pnpm run pack # -> dist/dsh-remote-access-0.1.6.tgz
scripts/install.sh
Install the packed tarball from Settings → Plugins, then restart the app. A bundle added to a running profile cannot be imported until the next start.
The listener ships off. Installing the plugin exposes nothing until you turn it on.
If the host has Tailscale running, the first link uses the MagicDNS name
(http://host.tailnet.ts.net:3080/), which survives an address change. The
dotted address is listed next to it.
| Surface | What it does |
|---|---|
Host route GET /api/dsh-remote-access/status |
listener state, detected interface, bind error |
Host route POST /api/dsh-remote-access/config |
live settings, persisted through the settings service |
Host route GET /api/dsh-remote-access/key |
links (plain, or with the key when it is on) |
Host route POST /api/dsh-remote-access/regenerate |
replaces the key and invalidates every cookie |
Gateway http://<mesh-address>:3080/ |
optional key gate, then a replay of the harness over loopback |
| Settings section Remote Access | the section that drives all of the above |
$DSH_HOME/remote-access/key (mode
0600), the browser holds only an HMAC cookie, and the harness launch token
and session cookie never leave the host.100.64.0.0/10 mesh address
is preferred over the LAN, so a laptop on café Wi-Fi does not publish an agent
to the café. 0.0.0.0 is available in the panel, with a warning, when you
really do control every network the machine joins.| Field | Default | Meaning |
|---|---|---|
enabled |
false |
whether the listener should run |
port |
3080 |
TCP port on the mesh address |
bindHost |
auto |
auto (detected mesh interface), all (0.0.0.0), or one IPv4 literal |
requireKey |
false |
optional hardening: whether a browser must present a key first |
The panel writes these through the harness settings service, so a value lands
in the profile's cordis.patch.yml and survives a restart. A write that cannot be
persisted still applies and is reported as Applied, but not saved.
The plugin does not embed Tailscale. It detects an address in 100.64.0.0/10
(the range Tailscale, ZeroTier and NetBird use) and asks tailscale status --json for the node's MagicDNS name when the CLI is installed. A GUI-only
install without the CLI symlink still works, with the IP link.
Restrict the port in your tailnet ACL, for example:
{ "action": "accept", "src": ["autogroup:member"], "dst": ["tag:my-mac:3080"] }
Funnel publishes to the public internet and is not what this plugin is for.
pnpm check # typecheck both halves, build, then vitest
scripts/install.sh # pack to dist/ and print the install path
scripts/dev-profile.sh boot 19599 # boot in an isolated profile on :19599
scripts/dev-profile.sh remove
test/gateway.spec.ts is the one that matters: a real HTTP server stands in for
the harness (it checks Host, refuses Origin, requires its session cookie),
and the gateway is driven end to end over fetch and a raw WebSocket handshake.
| Path | Role |
|---|---|
src/index.ts |
host half: Config, the gateway lifecycle, route registration |
src/mesh/gateway.ts |
listener, key gate, HTTP replay, WebSocket tunnel |
src/mesh/gate.ts |
cookie signing, unlock page, failure limiter |
src/mesh/detect.ts |
interface classifier and Tailscale reader |
src/mesh/secret.ts |
the key file |
src/routes.ts |
the panel's route family |
src/client/ |
browser half: settings section, dictionaries, styles |
cordis.patch.yml |
the bundle patch that inserts the Loader row |
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。