In one sentence: run dsh plugin --profile web add @zhangzhian/dsh-devtools on the remote machine, restart dsh, and your DSH page gains seven development panels — Git, run management, files and editor, a bottom terminal, a sidebar terminal and browser, and a settings console — while the agent gets the same capabilities as git_* and run_* tools.

Two pieces, two jobs

DSH Remote has two pieces, and they do different things:

Client (DSH Remote) Plugin (dsh-devtools)
Installed on Your computer or phone The remote machine, inside dsh
Responsible for SSH connection, the DSH runtime, port forwarding, embedded pages Git, runs, files, terminals, browsers, settings
What you see A window that opens straight into the DSH page Extra panels and settings inside that page

So the plugin is not client UI, and the client has no built-in SSH terminal or SFTP file manager. Every Git panel, file tree and terminal you click in the DSH page comes from this plugin.

One consequence: the plugin also writes the port snapshot automatic forwarding relies on. Without it, no automatic forwarding rules are created (see port forwarding).

Install: one command, then restart

On the remote machine:

dsh plugin --profile web add @zhangzhian/dsh-devtools

Restart dsh afterwards — the host half loads at startup. Then the plugin page shows a Developer tools card with a switchable row per component, and the settings sidebar gains a matching entry with a console home.

You install one package; nine are pulled in (one manifest, seven component packages, one shared leaf). Version requirement: dsh >= 0.2.0-rc.2. Crossing to 0.3.x makes the platform refuse the install unless you explicitly override it (dsh plugin allow-version ... --accept-risk).

Seven panels

Panel What it does
Git Status groups (conflict / staged / unstaged / untracked), per-file diffs, commit graph; commit / push / pull / fetch / merge / rebase / stash
Run management Scans what can be launched in the workspace, remembers a launch list per workspace, runs things under management with a queue, tails logs, maps ports back to a run
File tree + editor + previews Sidebar file tree with Git status dots, search, create, rename, delete; a CodeMirror editor; previews for Markdown, HTML, images, audio, video, PDF and spreadsheets
Bottom workbench terminal A real PTY docked to the bottom of the window; several terminals, a shell per terminal, reconnect; closing one really reclaims the process
Sidebar terminal + link jumping Multi-tab terminal in the right sidebar; URLs in output highlight on hover and open in the sidebar browser on Ctrl/Cmd+click
Sidebar browser A browser tab in the right sidebar with an address bar, back / forward and reload, for previewing your own dev servers
Settings console One entry in settings for version and updates, each component's settings page, and the companion app download

The same bundle also adds a Remote access settings page that exposes the machine's sshd and dsh Web through a Cloudflare tunnel. It is off by default; details below.

Panels worth calling out

Git: commits take everything by default

Clicking Commit runs git add -A first (modified, staged and untracked files), then commits. To commit only the index, use "Commit staged files only" in the menu.

When a push is rejected because the remote moved ahead (non-fast-forward), it fetches, pulls and retries the push once; on a conflict it stops and hands the conflicting files back to you.

Files and editor: enough, without getting in the way

The editor is CodeMirror 6 with about 40 languages, soft wrap and Mod-S to save. Concurrent edits are guarded by a version check that raises a dialog instead of silently overwriting your file.

Preview tabs follow VS Code semantics: single click previews, double click pins, editing pins. Markdown gets an outline, HTML runs sandboxed, .xlsx / .xlsm render directly, and .docx / .pptx are converted to PDF by LibreOffice on that machine before preview.

Terminals and the sidebar browser: one path through

The bottom workbench is a real PTY: multiple terminals, a shell per terminal, reconnect after a drop, and closing a tab reclaims the process.

The sidebar terminal takes over the platform's terminal tab. When a URL appears in the output, hovering underlines it and the cursor turns into a pointer. Ctrl/Cmd+click opens it in the sidebar browser tab; a normal click still selects text. OSC 8 hyperlinks follow the same path.

The sidebar browser is the platform's browser tab, enabled by the bundle: address bar, back / forward, reload, and it accepts only http/https.

Settings console: version and updates

Developer tools in the settings sidebar is the single entry: version and update information, a grid of component cards, and a companion app link (the download page).

Version checks run automatically, throttled to once every 6 hours. An upgrade runs pnpm add @zhangzhian/dsh-devtools@<version> inside the profile directory and reads the version back, so success means the version actually changed.

There is also a dsh shell: a dsh-shell entry in the new-terminal dropdown where dsh, pnpm and node match the host runtime, for installing plugins or upgrading dsh. It does not touch the host environment or your shell rc files.

Tools for the agent

Git and run management give the agent tools as well as panels:

  • git_status / git_diff / git_stage / git_commit
  • run_scan / run_start / run_stop / run_list / run_logs / run_ports / run_plan_get / run_plan_set

The point is that you and the agent share one state. Changes, runs and ports you see in a panel are queryable by the agent; services the agent starts can be stopped from the panel.

Remote access: opt-in, and no SLA

Remote access is a settings page in the same bundle. It opens two independent Cloudflare Quick Tunnels: an SSH tunnel exposing the machine's sshd, and a dsh Web tunnel exposing the local dsh Web page.

No account, no domain. The client port lands in the 2201–2299 range and stays stable for the same host, and all three desktop platforms get a system service (LaunchAgent / systemd user unit / schtasks).

Before turning it on:

  • Off by default. Installing the component does not open a tunnel; enabling it requires an explicit risk confirmation.
  • Quick Tunnels have no SLA, concurrency limits, and rotating domains.
  • v1 does not support tunnels protected by Cloudflare Access.
  • The tunnel is yours, in your own Cloudflare account; it does not route through dshremote.cn servers.

Limits

  • Panels live inside the DSH page, not in the client shell. The client has no built-in terminal or SFTP.
  • Public sites may not embed: the sidebar browser is an iframe or webview, so X-Frame-Options or CSP frame-ancestors leave a blank page — use "Open in system browser".
  • No Ctrl/Cmd on a touchscreen: terminal link jumping needs the modifier, so a phone cannot trigger it; a tablet or desktop keyboard is fine.
  • The plugin is bound to the dsh version; check compatibility before a major upgrade.
  • It is not an IDE: no completion, debugger or extension marketplace.

FAQ

I installed it and nothing changed.

Check that dsh was restarted after the install, then look for the Developer tools card on the plugin page. If the version gate refused the install, the log says why.

Do I install seven packages?

No. Install the bundle, @zhangzhian/dsh-devtools; the rest are dependencies.

Do these panels live in the DSH Remote client or in the DSH page?

In the DSH page. The client opens that page, so desktop and mobile show the same panels — a phone simply lacks the Ctrl/Cmd terminal jump.

Is remote access safe?

It is off by default and asks for a risk confirmation, the public entry has its own credentials, and the tunnel belongs to your Cloudflare account. But it is still a public entry point, and Quick Tunnels have no SLA and rotating domains. Leave it off when not needed.