Introduction¶
DeepSeek Harness (DSH) uses Markdown to render assistant replies, where code blocks typically have only a single action entry point: Copy. When a reply contains commands that the user wishes to execute (such as git sequences, pnpm scripts, or diagnostic scripts), the user must copy, switch to a terminal, paste, and run them—a fragmented workflow.
dsh-run-button adds the missing action entry point for such code blocks. Maintained by EdwardXiao-bit, this client plugin (MIT License) adds a run button to Shell code blocks within DSH replies. Upon clicking, the command is executed on the host machine, with output streamed in real-time to a floating Dock at the bottom right (default mode) or the bottom workbench panel.
Plugin Overview¶
The plugin’s core function is to transform Shell code blocks from “static text” into “executable commands.” It supports various command-line languages, including bash, sh, zsh, powershell, and cmd. During execution, commands inherit the workspace directory and sandbox policies of the current session; security is based on user-initiated requests and a loopback RPC channel. Currently, this plugin has 1 star on GitHub.
Installation¶
The plugin is published on npm and included in the DSH community directory.
1. Install via DSH CLI (Recommended)
dsh plugin --profile web add dsh-run-button
This command resolves dependencies from the npm registry, writes the configuration, and mounts the plugin. To uninstall, use dsh plugin --profile web remove dsh-run-button.
2. Install from Source
If installing from source, you must manually edit the profile configuration because a simple npm install does not allow DSH to load the plugin:
{
"dependencies": { "dsh-run-button": "^0.1.0" },
"dsh": { "profile": { "bundles": ["dsh-run-button"] } }
}
Usage¶
- Locate a Shell code block in the DSH reply and click the
▶ Runbutton in the top right corner to execute the command. - Output is displayed by default in a floating Dock card at the bottom right. Each execution result corresponds to a card that supports stop, collapse, or close actions.
- Click the
cwdbutton (located next to the Run button) to temporarily override the working directory for that code block; this directory will be remembered. - Switch output modes in the run bar:
- Dock (Default): Floating cards stacked at the bottom right.
- Panel: Each execution result generates a bottom workbench tab (requires
dsh-better-sidebar). - Off: No output is displayed; only status feedback is retained.
- Long-running commands can be terminated via the stop button on the chip, Dock card, or workbench tab.
Technical Details & Limitations¶
- Output Limits: Each stream output is capped at 256 KB to prevent blocking by large files.
- Security: Commands are executed exactly as written, with no interpolation. The RPC channel is loopback-only and requires connection-layer authentication.
- Dependencies: Panel mode depends on the optional
dsh-better-sidebarplugin. If this plugin is not installed, Panel mode is automatically disabled, falling back to the default Dock mode.
Summary¶
dsh-run-button transforms Shell code blocks from “static text” into “executable commands,” significantly improving the efficiency of quickly validating commands and running diagnostic scripts within the DSH conversation flow.
- Plugin Directory: https://www.skillhub.cn/plugins/EdwardXiao-bit/dsh-run-button
- GitHub URL: https://github.com/EdwardXiao-bit/dsh-run-button