Preface¶
When performing network device or embedded debugging in DeepSeek Harness (DSH), a common practice is: open another serial port assistant or SSH client, and then verbally describe commands or paste output in the chat. The links are scattered, and it is difficult for the model to align with “which device is currently connected and what was just executed”.
dsh-console brings serial ports and SSH into the “Device Console” panel in the DSH sidebar: one side is requirements and pending confirmation commands, the other is a real-time terminal; inside the panel, the model can generate commands based on requirements, confirm before execution by default, and append Chinese comments and interpretations to commands and outputs. Below, I explain based on positioning, functionality, installation, and usage.
What is it¶
dsh-console is a DSH client-side plugin released by maintainer chenxiaojie1009 (repo chenxiaojie1009/dsh-console). It provides a device console in DSH Web GUI / Desktop version: two types of connections, Serial (default 9600 8N1, common for switch Console ports) and SSH, and exposes a set of console_* tools for the Agent to operate on connected devices in the conversation.
Panel entry: Bottom of left sidebar → “Device Console”. Layout is split into left and right columns: left is the “Tell DSH what you want to do” requirement box and “Pending Confirmation Commands”; right is the real-time terminal (commands, Chinese comments, device output, and “Interpretation”).
Core Features¶
Connection and Status¶
- Serial Port: Automatically list COM ports, optional baud rate; after connection, select switch vendor (Huawei / H3C / Cisco / Ruijie / TP-Link / Juniper / MikroTik) in the top right, or leave “Auto Detect” for the device echo to judge.
- SSH: Can one-click bring in hosts configured in DSH SSH plugin in
$DSH_HOME/dsh-ssh.json, or manually input host, port, username; password is only input in the panel, stored in local memory, not written to session records or sent to the model, and can check the box to reuse saved passwords. - Status Indicator: A green dot in the top right of the “Device Console” icon in the sidebar indicates connected (amber indicates paused); there is a status capsule at the top of the panel. Only one device connection is maintained at a time; switching between serial and SSH will first disconnect the current connection.
Command Generation, Confirmation, and Interpretation¶
- Write a clear purpose in the left requirement box, click “Let DSH give commands”: calls the local DSH configured model to generate commands, not through chat session; result goes into “Pending Confirmation Commands”, displayed as
› command // Chinese comment. - Click “Execute” to actually send to the device; click “Cancel” to discard. “Confirm before execution” in the top right of the panel can be turned off; once off, commands are executed directly.
- After execution, the plugin calls the model again, appending a
Interpretation: ...below the output. In conversation mode, DSH can complete the same flow viaconsole_exec,console_note, etc. tools. - “Pause DSH” interrupts the current round of operation (including commands waiting); after changing requirements, click “Continue” to execute.
Agent Tools¶
| Tool | Function |
|---|---|
console_status |
Connection status, paused, available serial ports, SSH hosts, recent output |
console_serial_connect |
Connect to serial port |
console_ssh_connect |
Request user to input password in panel to connect SSH |
console_exec |
Submit command (enters pending confirmation area when confirmation is on) |
console_note |
Append Chinese interpretation for the just-executed output (display only) |
console_send |
Send raw input (e.g., Ctrl+C, Enter) |
console_read |
Read terminal buffer |
console_disconnect |
Disconnect |
Security Related¶
- Panel API
/api/device-console/*only accepts local loopback requests. - Requirements → commands, output interpretation will call the model you configured and consume tokens; if you need to be completely offline, you can type commands manually or only use operations outside chat.
- Device output is sent back to the model and may contain sensitive information, so pay attention to the screen and logs.
Installation and Enablement¶
Environment requirements (see repo readme): DSH >= 0.2.2-rc.1, Node >= 20; serial port dependency serialport (Windows 10/11 etc. have precompiled binaries; macOS / Linux also have precompiled). Current release package example version is 1.4.3 (refer to Releases). License: MIT.
The plugin runs with the current DSH process permissions; it is recommended to check the source code and license on GitHub before installing.
Method A: Local tgz install (Recommended)¶
After unzipping from Releases, point file: to the tgz; pnpm will automatically install serialport and ssh2:
# 1. Unzip dsh-console-<version>.zip to any directory
# 2. Install to target profile (default desktop profile name is desktop)
dsh plugin --profile desktop add "file:G:\path\to\dsh-console-1.4.3.tgz"
# 3. Restart DSH Desktop
Method C: Install directly from GitHub Releases¶
dsh plugin --profile desktop add "https://github.com/chenxiaojie1009/dsh-console/releases/download/v1.4.3/dsh-console-1.4.3.tgz"
Source code install (requires local compilation of serialport, slower):
dsh plugin --profile desktop add "github:chenxiaojie1009/dsh-console"
Uninstall¶
dsh plugin --profile desktop remove dsh-console
If ERR_PNPM_IGNORED_BUILDS or @serialport/bindings-cpp build is intercepted during installation, the README suggests executing:
dsh plugin --profile desktop approve-builds
When using install_bundle to install from a local directory link, dependencies are not installed automatically; when serial/SSH is abnormal, switch to Method A tgz installation.
Typical Usage¶
Panel Operations¶
- Open “Device Console”.
- Serial Port: Select COM port and baud rate → “Connect” → Select vendor or auto-detect as needed; you can refer to the left vendor command templates, click “Fill In” then send.
- SSH: Select configured host or manually fill → enter password → “Connect”.
- Let model output commands: Write purpose in requirement box (e.g., view NAS memory, query device supported commands) → “Let DSH give commands” → Click “Execute” or “Cancel” in pending confirmation area.
- Terminal area can manually input commands (immediate send),
Ctrl+Cinterrupt,Enter/Spacesingle key send; Enter in requirement box submits, Shift+Enter wraps line.
Operating device in conversation¶
You can tell DSH your goal, for example:
Execute help on the serial device, then tell me which commands are supported.
DSH will call console_status, console_serial_connect or console_ssh_connect if necessary (SSH will wait for you to input password in the panel), then use console_exec to submit commands, and use console_note to interpret the output. By default, execution can still be confirmed in the panel first.
If cc-safety-net is installed and warns on console_exec, the README says you can declare rules in non-sandbox PowerShell (device commands are not local shell):
npx -y cc-safety-net rule tool add console_exec --no-cwd-arg
Applicable Scenarios and Notes¶
Suitable for: scenarios where you need to complete switch / embedded Console, SSH login and troubleshooting on the DSH side, and want commands suggested by the model, manually reviewed, and then sent; multi-vendor syntax of switches can be constrained by vendor dropdown or auto-detect.
Notes:
- Model calls inside the panel depend on the models and network/quota you configured in DSH “Settings → Models”.
- SSH password needs to be re-entered after panel refresh; reading
dsh-ssh.jsonis read-only, not written. - The community directory dsh-console page on SkillHub and GitHub are both search entry points; DSH ecosystem emphasizes “everything is a plugin”, this directory is a community site and has no official affiliation with DeepSeek / Hua Fang.
Conclusion¶
dsh-console integrates serial port and SSH debugging into the DSH interface, using pending confirmation commands, Chinese comments, and output interpretation to lower the cost of “remembering commands and aligning windows”, and uses console_* tools to bring device operations into the Agent flow. For further understanding, check the Plugin Directory Page and GitHub Repository README and Releases.