Introduction¶
In DeepSeek Harness (DSH), asking the model to help inspect logs or modify configurations often requires SSH. A common approach is for the model to run commands in a subprocess via tools, while you open a separate terminal in the Web UI. This results in disconnected output streams, making it difficult to align context and hard to audit “who executed what.”
The plugin described below, dsh-likemobaxtearm-chumc (package name same as repo name, version 1.0.0, MIT), runs the local OpenSSH client inside a real PTY, embedded in the DSH right sidebar. Its interaction is similar to MobaXterm: you and the AI share the same SSH session, where operations are visible to both parties, and everything is written to a JSONL audit log in the workspace. The AI operates the session through 9 dedicated tools constrained by three permission levels; even under “Full” permission, dangerous commands trigger a cancellable notification window first.
What is this¶
- Maintainer: GitHub user qaz320621
- Category: DSH Client Plugin (Web profile,
sidebarRightTabs/slots) - Positioning: DSH sidebar SSH console; does not rely on additional remote installations, uses the
sshon your local PATH, and reuses~/.ssh/config, keys, and ssh-agent. - Host Requirements: Documentation specifies DSH 0.2.0-rc.2 / Web profile; the plugin Host code executes inside the Harness process, outside the workspace sandbox, so installation typically requires
danger-full-accessor approval.
Community Directory Page: SkillHub - dsh-likemobaxtearm-chumc. This directory is not officially affiliated with DeepSeek / High-Flyer; the DSH ecosystem itself follows an “everything is a plugin” philosophy.
Core Features¶
Terminal and Tabs¶
- The host tab bar contains only the “SSH Console” item; individual SSH sessions are managed on a secondary tab bar created within the page (horizontal scroll via wheel,
◀▶, dropdown listing all, each item can be closed with✕). - The terminal is based on xterm.js, supporting full-screen programs like vim and top; Windows side includes adaptation notes for ConPTY full-screen redraws.
- Reconnection: Tabs persist after a Harness restart. Press
ror click “Reconnect” to reconnect within the original tab; connection info is saved locally in the browser.
Shared Session for Human and AI¶
- Exclusive Input Rights: Only one writer at a time; if the AI holds the lock, you can one-click “Take Control” (sends a real Ctrl+C).
- Bidirectional Visibility: AI commands are annotated in the terminal; you can also pull output and logs via tools on the AI side.
- User Messages to AI: Supports questions, errors (auto-attaches recent terminal output), and Log Only (writes to log only, does not consume AI tokens).
AI’s 9 Tools¶
| Tool | Function |
|---|---|
ssh_list_hosts |
List saved hosts (passwords excluded) |
ssh_list_sessions |
Status of SSH sessions in the current DSH session |
ssh_connect |
Create a new session and open a tab in the right sidebar |
ssh_exec |
Execute a command and wait for completion, returning output and exit code |
ssh_send |
Write raw text (optional enter key), used for interactive programs |
ssh_read |
Read terminal output paginated by lines |
ssh_status |
Single session status and recent output |
ssh_log |
Read JSONL audit logs |
ssh_disconnect |
Close session and reclaim process tree |
Three AI Permission Levels (Independent per session)¶
- View Only: AI can only read; write-type tools are rejected.
- Q&A (Default): Every command requires you to click “Allow” in the “Pending Confirmation” area.
- Full: AI can execute directly; if a dangerous rule is matched, a cancellable notification pops up first (default grace 5s, config item
dangerGraceMs).
Other conventions: If the remote is waiting for a password / 2FA, AI writes are rejected (must not auto-fill passwords); password-related inputs are logged as [redacted]. The plugin does not save passwords.
Audit Logs¶
- Path:
<workspace>/.dsh-ssh/logs/*.jsonl; command originals are kept in full, overly long outputs are truncated by threshold and marked. - Can be archived via gzip to
archive/in the same directory after exceedinglogArchiveAfterDays(default 7 days); active sessions will not be moved.
Platform Support (According to README table)¶
| Aspect | Linux | macOS | Windows |
|---|---|---|---|
| Browser UI | Supported | Supported | Supported |
| Plugin Host (start ssh, logs, AI tools) | Tested | Theoretically available (untested) | Theoretically available (untested) |
Local ssh |
ssh on PATH |
System built-in OpenSSH | Win10 1809+ built-in OpenSSH, needs to be on PATH |
The implementation does not rely on Linux-specific code; however, ssh_exec exit code parsing is only reliable if the remote requires a POSIX shell. If the remote is cmd/PowerShell, the documentation suggests using ssh_send + ssh_read.
Installation and Activation¶
The repository includes the build artifact client.xterm.js, so installing from Git requires no local build. After installation, you must restart Harness once and refresh the page (Host modules are cached by URL, Client scripts just need a refresh).
Method A: Let AI install in a DSH session (Recommended by README)¶
In the session, instruct it to use install_bundle from plugin_manager, with target as the absolute path to the plugin directory (if you have already downloaded it locally).
Method B: Web UI¶
Sidebar Plugins → Install → Enter the absolute directory path or npm package name.
Method C: Install directly from GitHub¶
“Add Plugin” accepts any of the following forms (Do not just write qaz320621/dsh-likemobaxtearm-chumc, it will be rejected as an npm package name):
https://github.com/qaz320621/dsh-likemobaxtearm-chumc
github:qaz320621/dsh-likemobaxtearm-chumc
Please review the repo source code and LICENSE yourself before installing, and understand that the plugin runs with the current DSH process privileges.
Typical Usage¶
First Connection¶
- After restarting Harness and refreshing the page, open the right sidebar.
- Plus sign → “SSH Session Manager” in the Guide.
- Fill in target (
host,user@host, or~/.ssh/configalias) → Connect. - Enter password / 2FA in the terminal yourself.
Daily Operations¶
- Type directly in the terminal; use the toolbar to switch AI permission levels, rename tabs, or “Take Control” if necessary.
- Bottom drawer: Logs (filter by user/ai/system/remote), History (includes archives), Messages, Pending Confirmation (command approval in Q&A mode).
- The manager and new tab page will list Recent Connections, allowing one-click reconnection.
Involving AI in the Same Session¶
Under “Q&A” or “Full” permissions, the model can call the tools in the table above; under “View Only”, it can only read. You can send “Error” type messages in the message area to bring recent output to the model, while “Log Only” goes only to the audit log without triggering a model response.
Use Cases and Notes¶
Suitable for: Teams or individuals already using DSH Web profile who want AI and humans to collaborate on ops within the same PTY, and require JSONL auditing and graded authorization.
Notes:
- Depends on DSH 0.2.0-rc.2 and host contracts listed in the docs (
spawnTerminal,ctx.tools, etc.); contract changes will first be exposed by the Cordis activation tests included innpm testwithin the repo. ssh_execexit codes are heuristic and may be inaccurate if commands are backgrounded or if the shell is changed.- macOS / Windows host sides are marked as theoretically available/untested in the README; please verify on your local machine before going live.
- Self-development or secondary development requires Node ≥ 18;
node build.mjsis only needed to rebuildclient.xterm.jsifchunk/terminal.jsis modified (Build-time dependencies: esbuild, xterm; zero runtime dependencies).
Conclusion¶
dsh-likemobaxtearm-chumc integrates “Local ssh + Real Terminal + Human-Machine Shared Session + Auditing & Permissions” into the DSH right sidebar, suitable for scenarios where you don’t want to switch back and forth between the AI toolchain and a standalone SSH client. For further details, please refer to the SkillHub Directory Page and the GitHub Repo README (includes configuration items, tests, and architecture descriptions).