rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wooyang2018/dsh-waypoint
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | Chinese
Remote development that behaves like a local session.
Add an SSH host once. The plugin provisions the remote DSH runtime itself, mirrors its workspaces and sessions into the local sidebar, and opens a remote session in the ordinary Conversation UI — the same transcript, composer, tool cards, stop control, and session list as a local session.
Local DSH Remote host
┌──────────────────────────────────────┐ ┌──────────────────────────────┐
│ normal sidebar + Conversation UI │ │ dsh web (installed by plugin)│
│ local mirror Session + Agent façade │ SSH │ dsh-waypoint-agent │
│ host registry / auto provisioning │◀────────▶│ workspace/session write │
│ direct key or local key proxy │ │ remote tools + model calls │
│ authenticated /api route │ tunnel │ │
└──────────────────────────────────────┘ └──────────────────────────────┘
This plugin is developed for the official DSH Desktop application. Supported DSH versions:
| Component | Version |
|---|---|
| DSH Desktop / official client | 0.2.2-rc.3 (tested) |
| Plugin | 1.0.0 |
| Remote DSH runtime | 0.2.2-rc.3 (tested; new installs follow the local DSH version) |
| Remote Node.js | 22.19+ |
| Remote OS | Linux or macOS |
Other DSH GUI plugins, community forks, modified clients, non-DSH GUIs, and other DSH versions have
not been tested. The package's dependency range is intentionally permissive for installation, but
it is not a compatibility or support guarantee. The desktop client and the remote runtime are tested
on 0.2.2-rc.3; new remote installs follow the local DSH runtime version by default and can be
pinned with remoteDshVersion.
| Capability | State |
|---|---|
One-click local plugin install (scripts/install-local.sh) |
Available |
| Plugin-owned remote provisioning over SSH | Available |
| Host registry, discovery, SSH tunnel, health, reconnect | Available |
| Remote workspaces appear as normal local workspaces | Available |
| Remote sessions appear in the normal sidebar | Available |
| Remote sessions open in the normal Conversation UI | Available |
| Localized UI follows the DSH language (zh / en) | Available |
| Prompts, stop, transcripts, tool cards, usage | Available |
| Per-host model key source (local proxy or remote direct) | Available |
| Remote model catalog, offered in the model menu for mirrored Sessions | Available |
| Restart the remote DSH without reinstalling | Available (systemd deployments; nohup uses Reinstall) |
| Open the remote DSH Web UI through the tunnel | Available |
| Remote file tree and file previews | Available (agent-backed over the SSH tunnel) |
| Remote terminal per Session | Available (local Sessions keep local PTY; remote Sessions use the remote agent PTY over the SSH tunnel) |
| Agent tools for host/workspace/session operations | Available |
| Approval prompts bridged into the local UI | Available |
| Relay/NAT traversal, cloud sandbox, multi-tenant | Not yet |
Remote file and terminal operations require the agent-backed API. If the connected remote agent is older, file/terminal actions fail with a Reinstall instruction instead of opening extra SSH connections.
Open Plugins → Add plugin and enter:
dsh-waypoint
The package is published on npm; DSH installs the bundle from the registry. The package includes the remote agent asset and the terminal-controller fork, so there is nothing else to install. Restart DSH when the plugin page asks for it; Settings → Remote development then appears.
If npmjs.com still resolves an older latest tag for a newly published release, install the exact
current version instead:
dsh-waypoint@1.0.0
Keep this pinned version in sync with each release.
For development, clone the repository and run the installer:
cd /path/to/dsh-waypoint
pnpm install
pnpm -r build
./scripts/install-local.sh
The script builds the workspace, creates a single plugin tarball containing the terminal-controller
fork, and installs that tarball into the desktop profile. For a DSH Web profile:
./scripts/install-local.sh --profile web
# restart that DSH Web process
Reopen DSH. Settings → Remote development appears.
my-host) and click Save and connect.dsh web, and opens
the loopback tunnel. It also applies a model key source: with the default seed it copies the
resolved model key into the remote environment. The card shows Installing → Connected and the
row reads Remote direct; switch Model key source to Local key proxy on the card if you
would rather keep the key here.The Settings page is now only host/workspace management. The conversation is not a popup.
Removing a mirrored workspace from the local sidebar pauses its local synchronization. The remote workspace, files, running sessions, and local cached history are retained. Catalog refreshes, reconnection, and plugin restarts do not add the row back.
To resume, use Add workspace, select the same remote device and directory, and add it again. The plugin restores the existing local history and catches up from the remote log (within the configured snapshot window). Creating a session from a removed workspace requires this explicit add first; discovering it in the remote catalog alone does not resume synchronization.
Test isolation is controlled by a test-only manifest in the test DSH home, not by the Settings UI or an agent tool:
$DSH_HOME/waypoint/test-visibility.json
{"hiddenPaths": ["/tmp/dsh-waypoint-tests"], "hiddenWorkspaceIds": ["remote-workspace-id"]}
hiddenPaths prevents local registration at creation. hiddenWorkspaceIds hides an existing visible
test workspace after the run; local mirror sessions are archived, not deleted, and are restored when
the entry is removed. See docs/testing.md.
Agent-facing testing instructions live in AGENTS.md. For UI/integration work use the isolated environment:
./scripts/test-sandbox.sh
See docs/testing.md for test workspace visibility.
The plugin does not embed a second chat UI and does not iframe the remote page. It:
Session seeded from the remote session's committed event log;followup/steer/cancel from the local Agent façade to the remote agent API;The remote DSH remains the execution owner. The local Session is a durable, live mirror, so the ordinary client code paths handle rendering, selection, streaming, and the transcript.
The choice is per host. Each host card has a Model key source switch with two values (Local key proxy / Remote direct), and the collapsed row states the live result as Local proxy, Remote direct, or Remote default:
DEEPSEEK_BASE_URL=http://127.0.0.1:47821 and a placeholder key; the SSH tunnel adds
-R 127.0.0.1:47821:127.0.0.1:<local-proxy-port>; the local proxy injects the real key and forwards
to credentialProxyUpstream.dsh web environment (the
systemd unit or the nohup environment) with
DEEPSEEK_BASE_URL=https://api.deepseek.com/anthropic. The remote host calls DeepSeek directly.Switching a host's source restarts its remote DSH. The profile-wide credentialProxy setting is only
the seed for hosts that never chose: false seeds remote direct, true seeds local key proxy. A
host that has chosen keeps its choice.
If no local key resolves, the plugin still provisions and connects; configure the remote DSH's own credentials. The row then reads Remote default, meaning the plugin supplied no key and the remote host uses its own.
| Tool | Purpose |
|---|---|
remote_hosts_list |
Hosts, phases, remote facts |
remote_host_add |
Add an SSH host and start provisioning |
remote_host_connect |
Connect/reconnect/refresh |
remote_host_provision |
Force reinstall/restart and reconnect |
remote_host_restart |
Restart the remote DSH service without reinstalling |
remote_workspace_add |
Register a remote directory |
remote_workspaces_list |
List remote workspaces |
remote_session_create |
Create a remote session |
remote_sessions_list |
List remote sessions |
remote_session_prompt |
Send a prompt |
remote_session_snapshot |
Read a transcript page |
remote_session_cancel |
Cancel the active turn |
remote_host_add, remote_host_connect, remote_host_provision, and remote_host_restart ask for
approval before they run: they may open an SSH connection, and in direct-key mode provisioning copies
the local model key into the remote service environment. remote_host_restart requires the
installer-owned systemd user unit; a nohup deployment uses Reinstall or a manual restart instead.
Local: official DSH Desktop or DSH Web with the same core version, plus ssh with key or ssh-agent auth. Only the official Desktop client is a verified GUI target.
Remote: Linux or macOS with an SSH server. Node.js 22.19+ must already be installed and is discovered through the account's own shell, so PATH, nvm, Volta, fnm, Bun, asdf, mise, Nix, and Homebrew all answer. The installer does not download Node.js: picking a runtime version is your decision, and a second one on the machine is how two runtimes end up fighting over one command. A missing or too-old Node.js stops the install with a message naming what to install. Windows remotes are not supported.
pnpm and @deepseek-ai/dsh are installed globally, into the prefix npm prefix -g reports, so the
dsh the plugin starts and the dsh you type yourself are the same file and the same version. Override the
prefix with remoteGlobalPrefix when npm's answer is not the one you want; there is no fallback location,
because a silently relocated dsh is exactly the divergence this removes. If that prefix is not on your
login shell's PATH, the install log prints the one export PATH=… line to add — the installer never edits
your shell startup files. A prefix npm cannot write fails the install with npm's own error instead of
installing somewhere else; note that npm writes
<prefix>/lib/node_modules and <prefix>/bin, so a machine can have one writable and not the other, which
is what dsh-waypoint-install doctor is for.
If the remote host needs a proxy, set remoteInstallProxy to a URL that is reachable from the
remote host, for example http://127.0.0.1:17890 when a port forward serves the proxy there. The
installer exports HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and npm_config_* for the bootstrap.
When the option is empty, it uses the account's actual login shell (bash, zsh, fish, and other common shells) and its login/interactive startup files to read HTTPS_PROXY/HTTP_PROXY.
The same proxy is written into the remote systemd unit (or inherited by the nohup process), so
remote model requests use it as well, not just the installer.
127.0.0.1 only.accept-new); use yes with a prepared known_hosts for strict checks.credentialProxy: true to keep the key local and proxy model traffic through the reverse SSH
tunnel. Proxy requests require a per-host token, so unrelated local users on the remote host cannot
reuse the tunneled credential endpoint./api Fetch route. Tokens/credentials are stored
in 0600 files and never returned to the browser.- id: dsh-waypoint
config:
autoProvision: true
remoteDshHome: ~/.dsh
# npm globals (pnpm and @deepseek-ai/dsh) go into this prefix; empty asks `npm prefix -g`.
remoteGlobalPrefix: ''
# remoteDshVersion: 0.2.2-rc.3 # pin a remote DSH version; omit to follow the local DSH version
remotePnpmVersion: 11.21.0
# Remote-visible proxy for npm and DSH downloads. Empty means inspect the remote login shell.
remoteInstallProxy: ''
remoteInstallNoProxy: 127.0.0.1,localhost
remoteStart: systemd # systemd | nohup | none
# Direct key mode (default): copy the resolved key to the remote service env.
credentialProxy: false
copyModelKey: true
remoteModelBaseUrl: https://api.deepseek.com/anthropic
# Optional proxy mode: keep the key local.
credentialProxyUpstream: https://api.deepseek.com/anthropic
credentialProxyRemotePort: 47821
modelCredentialRef: DEEPSEEK_API_KEY
# Mirror remote work into the ordinary local UI.
mirrorSessions: true
mirrorPollMs: 1500
mirrorMaxEvents: 2000
The remote agent config remains available for advanced deployments:
- id: dsh-waypoint-agent
config:
stateFile: ''
token: ''
loopbackOnly: true
defaultSnapshotEvents: 500
maxSnapshotEvents: 2000
heartbeatMs: 15000
dsh-api-remotes enabled so that surface keeps booting, and its approval bridge registers
with prepend so mirrored approvals still reach the native local UI; use the host card's
Open remote Web UI action when you need the remote browser (for example to install remote
plugins).mirrorMaxEvents is not mirrored; increase the limit or open it on the
remote host directly.| Symptom | Action |
|---|---|
Installing never finishes / Waiting for remote dsh web… |
Check ssh -o BatchMode=yes my-host true. The installer detects Node.js through your shell (nvm/Volta/fnm) and never installs one, so a missing or too-old Node.js ends the install with an explicit message; install Node.js 22.19+ there, or use remoteStart: nohup, then Reinstall |
| Install stops saying Node.js was not found | Your login shell does not expose node. Install it under an interactive shell for that account (nvm/fnm/Volta all work), confirm bash -lic 'command -v node' prints a path, then Reinstall |
does not accept POST |
Remote agent is old; click Reinstall |
| No remote workspace in sidebar | Use Workspaces +, or Settings → Remote development → Workspaces |
| Native session has no reply | Check the host row's Local proxy / Remote direct / Remote default state; configure remote credentials or switch to the local key proxy |
DeepSeek Messages request failed (404) |
Proxy upstream must be https://api.deepseek.com/anthropic; the fixed proxy joins/preserves the provider prefix. Reinstall the local plugin and reconnect |
| Approval appears locally but remote tool still fails | The local decision was sent; check the remote tool result |
| Local terminal opens local shell | Expected for local Sessions; remote Sessions use Remote · <dir> terminals |
| Remote terminal opens local zsh | The terminal-controller fork is not active; run ./scripts/install-local.sh again |
| Port changed after remote restart | Click Rediscover |
| Install fails while reporting the npm global prefix | npm cannot write <prefix>/lib/node_modules or <prefix>/bin for this account, or npm prefix -g printed nothing. Point remoteGlobalPrefix at a directory you own (for example ~/npm-global) and retry |
dsh not found in your own shell after installing |
The install log printed the export PATH=… line to add to your shell startup. The installer does not edit those files itself |
| Remote DSH stopped starting after you switched Node.js versions | An nvm/Volta switch moves the npm global prefix with it, so the service's baked-in dsh path no longer exists. Click Reinstall; dsh-waypoint-install doctor --target … reports global_dsh and login_path_has_dsh |
| Remote agent port jumps around or the host keeps disconnecting | Two dsh web processes are writing the same agent.json. Run one per DSH_HOME; doctor reports dsh_web_processes |
Remote logs: journalctl --user -u dsh-waypoint-agent -f or $DSH_HOME/waypoint-agent/web.log.
pnpm verify
The suite covers protocol/SSE/cursor/write contracts, installer rendering, proxy forwarding, and the client bundle. The native path was validated against a real Linux remote host: plugin provisioning, remote workspace/session creation, a remote prompt through the local key proxy, live event mirroring into the ordinary Conversation UI, a second follow-up, and a remote tool call/result.
dsh-waypoint started as a fork of Golden-Pigeon/dsh-remote.
The changes below were offered back upstream, the offer was declined, and the work continues here as
an independent project under its own name. Both are MIT licensed, the original authors keep their
attribution in LICENSE and THIRD_PARTY_NOTICES.md, and the
repository history — including every upstream commit — is preserved unchanged.
Because the rename also changes the identity DSH persists, the two are separate installs and neither reads the other's state:
Upstream dsh-remote |
This project | |
|---|---|---|
| Bundle | dsh-remote-local-plugin |
dsh-waypoint |
| Remote agent | @goldenpigeon/dsh-remote-agent |
dsh-waypoint-agent |
| Host registry | $DSH_HOME/remote |
$DSH_HOME/waypoint |
| Agent state (remote) | $DSH_HOME/remote-agent |
$DSH_HOME/waypoint-agent |
Nothing is migrated automatically. If you are switching over, remove the old bundle
(dsh plugin --profile <p> remove dsh-remote-local-plugin) so two Settings sections cannot appear,
then follow docs/operations.md for moving the host registry and cleaning up the old
dsh-remote-agent.service on the remote host.
| Package | Role |
|---|---|
@dsh-waypoint/protocol |
Wire types, surface metadata, cursor, SSE, typed client |
dsh-waypoint |
Provisioning, tunnel, proxy, native session mirror, tools, Settings |
dsh-waypoint-agent |
Remote host plugin for workspaces, sessions, prompts, SSE |
dsh-waypoint-terminal-controller |
Profile fork routing local vs mirrored terminals |
@dsh-waypoint/installer |
Bootstrap library/CLI used by the plugin |
@dsh-waypoint/testkit |
Fake host and wire contract tests |
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。