dsh-shell-remote
DiscoveredRemote one-shot shell execution (thin ssh transport) - the remote world per ADR-0004
dsh-shell-remote
One-shot remote shell execution over system OpenSSH: ssh <host> -- bash -c <cmd>,
forked from the dsh-shell-host type vocabulary. Design: ADR-0004.
Status
- R1 (done): repo scaffold + descriptor/executor type skeleton.
- R2 (this): the ssh transport is live.
execute()spawns the system ssh client, propagates the exit code, streams both output streams under an in-memory cap (byte-exact TAIL retained on overflow, never spilled), and fuses the deadline and the caller's abort into one first-cause SIGKILL of the ssh client (killing the client tears the remote command down with the session). The remote payload iscd -- '<workdir>' && eval '<command>', POSIX-quoted and carried in one extra single-quote layer — ssh joins its argv with bare spaces and the REMOTE shell re-splits them, so the whole payload must travel as one remote shell word. The workdir is a REMOTE path applied on the remote side; the command re-enters verbatim through the quoting layers. A settled ssh exit — including the transport's own 255 with a note on stderr (a failed remote preparation, e.g. an unreachable host) — resolves as a result; only a spawn that never produced a process rejects. The request'sstdoutMaxBytes(default 1 MiB) budgets stdout AND stderr alike; overflow truncates with the byte-exact TAIL retained — never a spill file. The D8 contract conformance test (runtime field-by-field diff against the seam types in the dsh-shell-host checkout) and the spill loudly-reject both live here.
Contract (D8, ADR-0004 decision 4)
ShellResultis field-identical to@deepseek-ai/dsh-bash-local'sShellRunResult, with one recorded deviation:sandboxis typednever(reserved, never populated — remote execution is never confined; the repo carries no dsh-sandbox dependency). The R2 conformance test locks this.- All path semantics are REMOTE paths; the executor never maps paths.
- Spill-class host capabilities loudly reject (R2); their type surface is reserved only.
Verify
pnpm install
pnpm typecheck && pnpm test
Comments
Loading…
Similar plugins
by CrazyShout
SSH remote workspaces for DeepSeek Harness: browse/read/write remote files, run remote commands, with connection status dots.
★ 7
↓ 37/wk
MIT
TypeScript
Oct 9, 2026
dsh plugin --profile web add dsh-ssh-remoteby frozo-ai
Remote execution worlds for DeepSeek Harness: run the agent's Bash, terminals, LSP and file tools inside a container. Zero dependencies.
★ 3
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-worldsby hcyinnn
SSH tools plugin for DeepSeek Harness (dsh): run remote commands and transfer files via OpenSSH. dsh 插件——让 Agent 通过 SSH 在远程主机执行命令、上传/下载文件。
★ 0
MIT
TypeScript
Sep 1, 2026
dsh plugin --profile web add dsh-tool-sshSSH remote execution set: give a session an ssh:// workspace and every file, command, and shell operation runs on the remote host.
★ 0
dsh plugin --profile web add dsh-ssh-remoteBundles the remote-shell skill for secure SSH, SFTP, Telnet, and WinRM remote operations, with an encrypted credential vault whose login and execution scripts never accept plaintext passwords.
★ 0
dsh plugin --profile web add dsh-remote-shellby Linjiangxian0203
Remote Host Tunnel Manager for dsh: remote port allocation + registry + resilient SSH tunnel
★ 6
↓ 253/wk
MIT
JavaScript
Oct 3, 2026
dsh plugin --profile web add dsh-remote-tunnel