Introduction¶
When building agents or doing daily development in DSH, conversations and trajectories often run on the local host, while the code you actually need to modify and the commands you need to run are on a remote Linux machine. The common workflow is to open a separate SSH client and a local or web-based editor, switching back and forth among the file tree, terminal, Git status, and Agent session, which easily leads to broken context.
dsh-remote-vs integrates host management, helper deployment, remote files/terminal/Git, and a VS Code-like workbench into a DSH Web plugin: hosts are configured in DSH settings, allowing you to browse remote directories, edit, search code, and run the full SCM workflow directly from your browser. Once a remote workspace is bound, native tools can execute transparently on the remote side. The following sections explain it in the order of “What it is → What it does → How to install → How to use → Notes”.
What is this¶
- Plugin Name: dsh-remote-vs (Repository: xiray-xia/dsh-remote-vs)
- Maintainer: xiray-xia
- Category: Client (Web plugin; requires installation into the profile used by the Web GUI)
- In one sentence: VSCode-style remote SSH development for DSH — host manager, helper deploy pipeline, remote files/terminal/git, transparent remote execution.
Architecturally, the plugin runs within the Host process, handling SSH hosts/keys/pushing and /api/dsh-remote/* routes; the browser partially takes over the “Remote Hosts” settings and the workbench (right sidebar + “Remote Editor” in the session view). It communicates via ssh2 with the remote ~/.dsh-helpers/<ver>/<arch>/dsh-ssh-helper, operating on the user-specified remote working directory.
Core Features¶
Remote Workbench (VS Code-style UI)¶
| Capability | Description |
|---|---|
| Explorer | Lazy-loaded directory tree; right-click to create/rename/delete/copy/move/paste, find in folder, insert @ references; Git status colors and folder aggregation. |
| Search | File names (remote find) and content (remote grep); content search supports directory scope, case sensitivity/whole word/regex, grouped results, match highlighting, and click-to-jump-to-line. |
| Source Control | Repository directory selector; Changes/Staged/Untracked buckets; per-file and per-hunk stage/revert/discard; branches/remotes/stash; fetch/pull/push. |
| Session Change Review | List changed files by session with +a −b stats; open to see full-line coloring + character-level diffs, navigate changes with n/N, and undo individual changes (remote git apply -R). |
| Side-by-side Diff | Equal left/right split, rendering large line files within the viewport; editable on the changed side with save support. |
| Commit Graph | SVG branch graph, commit details, expandable changed files and diffs. |
| Multi-tab Editor | Open/save/dirty markers; image and Markdown/HTML preview; Dark+/Light+ syntax highlighting with fallback coloring. |
| Multi-terminal | Tabbed terminals, reconnecting by session upon refresh; concurrent channel limit of 6 per host, with explicit errors when busy instead of infinite queuing. |
If dsh-better-sidebar is installed, there is a dedicated “Remote” tab; otherwise, the native right sidebar “Remote” page is used (content is identical). The editor also mounts into the session view slot, forming a Remote Editor tab alongside “Conversation / Trajectory”, with the code area taking full screen width; the right sidebar acts as a backup surface for narrow screens.
Hosts and Channels¶
- CRUD for hosts, connection testing; certificate or password authentication; configuration stored in
$DSH_HOME/dsh-remote.json(0600), independent fromdsh-ssh.json. - One-click generation of a dedicated key for password-based hosts and writing to
authorized_keys. - Push pipeline: detects remote arch/system, compares versions, skips if consistent, otherwise pushes the helper; backs off and retries on failure (starting at 5 seconds, capped at 5 minutes); “Push” in settings allows forced retries.
- One-time read-only import from
~/.ssh/configor existingdsh-ssh.json.
Remote files are accessed via SFTP; single directory listing limit is 20,000 entries (materials do not specify interface truncation markers). Terminal uses ssh2 PTY + WebSocket + xterm; refresh reconnection does not forcefully change PTY dimensions.
Agent and Transparent Remote Execution¶
Agent tools include: remote_hosts, remote_exec, remote_read, remote_write, remote_ls.
Once a remote workspace binding is active:
- P2: Native
read/write/edit/bash/glob/grep/jobs, etc., execute directly on the remote. - P3: Remote session
@references can utilize remote file candidates (including rg index routes).
Installation and Enabling¶
Requires DSH engines.dsh to be >=0.2.1-alpha.3 <0.3.0; the README states the current tested baseline is 0.2.1-rc.2. The plugin version in package.json is 0.8.2, license MIT.
Execute under the profile used by the Web (commonly named web, subject to your local profile):
dsh plugin --profile web add github:xiray-xia/dsh-remote-vs
Materials note: The repository includes a pre-built lib/, so allowing pnpm builds for installation scripts is not necessary; restart dsh web after installation and open Settings → Remote Hosts to begin configuration.
Typical Usage¶
- Configure Hosts: Add SSH hosts in settings (or import from ssh config /
dsh-ssh.json) and test connections; use the key bootstrap on password hosts if needed. - Push Helper: The push pipeline distributes
dsh-ssh-helperon first use or version mismatch; view push status and retry in settings if it fails. - Create Workspace: Use the local/remote dual-mode wizard in the workspace panel to bind remote directories and routing tiers.
- Daily Development: Open files in the Explorer, use Search for navigation; commit via the SCM panel; run commands in multi-terminals; switch to the “Remote Editor” in the session view for full-screen editing.
- Collaborate with Agent: After binding a remote workspace, read/write, bash, grep, etc., used in conversation can transparently execute on the remote; remote
@references are available under P3 routing.
Use Cases and Notes¶
Suitable for: Developers who prefer using DSH in the browser but need to long-term modify code, view Git, and open terminals on remote Linux, and want Agent tools to default to the remote workspace.
Notes:
- The plugin runs with the permissions of the current DSH Host process and can access its configured keys and SSH; please review the GitHub Source Code and LICENSE (MIT) before installation.
- The community directory SkillHub Plugin Page is an independent site with no official affiliation to DeepSeek / High-Flyer; star counts and other metadata are subject to the page and repository (GitHub stars were 2 in the task clues).
- The remote must be Linux; some capabilities rely on remote
setsid --wait. If missing, the behavior of killing processes via timeout degrades and is explained in host logs. - For languages without dedicated syntax packages like kotlin / gradle, coloring follows Java, which is a limitation noted in the README.
Conclusion¶
dsh-remote-vs connects a VS Code-style remote workbench, SSH host management and helper pipeline, and P2/P3 transparent remote execution into DSH Web, reducing the fragmentation of “one setup for SSH, one for editor, and another for Agent”. For installation or updates, please refer to the SkillHub Directory Page and GitHub Repository.