dsh-plugin-terminal
Manifest valid★ 2DeepSeek Harness Web plugin: a real PTY terminal in a VS Code-style collapsible footer panel
dsh-plugin-terminal
English | 中文
A DeepSeek Harness (DSH) Web plugin that adds a real interactive terminal — a VS Code-style collapsible panel docked to the footer. This plugin runs an actual shell in a PTY and streams the raw terminal bytes to the browser. It is a persistent bundle plugin (a host half plus a browser half) that loads on every boot.
Demo
What it does
- Actual terminal — a real interactive shell (PowerShell on Windows,
$SHELL//bin/bashelsewhere, by default) running in a PTY via the harness'ssubprocess.spawnTerminalprimitive (node-pty). - Full terminal rendering — xterm.js renders ANSI colors, cursor movement,
full-screen apps (
vim,htop,top, …), and 256-color output. - VS Code-style footer panel — a collapsible bottom panel with a header, drag-to-resize top edge, restart button, and collapse toggle.
- Keyboard shortcut — `Ctrl+
toggles the panel (the VS Code default). - Live resize — the PTY reflows when you resize the panel.
- A Terminal settings card under Settings → Plugins configures theme, font size, panel height, opacity, start-collapsed, shell, and working directory at runtime.
- Graceful fallback — if xterm.js cannot load (offline), a plain streaming view still exposes the real shell.
Files
| File | Purpose |
|---|---|
lib/index.js | Host half — spawns the PTY and bridges it over the /api/terminal WebSocket. |
lib/client.js | Browser half — the footer panel and the settings card. |
cordis.patch.yml | Composition patch that inserts the plugin row. |
package.json | Package metadata (dsh.bundle + dsh.client manifest). |
Install
dsh plugin --profile web add github:mervyn-teo/dsh-plugin-terminal
Then restart dsh web — host bundles load at boot.
Defaults live in cordis.patch.yml. Change them there (or in the profile's own
cordis.patch.yml) and restart, or adjust them at runtime from the settings
card. The host half serves two same-origin routes the browser half uses:
GET|POST /api/terminal/config and the /api/terminal WebSocket upgrade.
Requirements
- DSH with the
subprocessandwebServerservices mounted. - Network access to jsDelivr the first time the terminal renders xterm.js (the plain fallback works without it).
Settings
Settings → Plugins → Terminal exposes:
| Setting | Description |
|---|---|
| Theme | dark or light terminal theme (applied live). |
| Font size | Terminal font size in pixels (applied live). |
| Max height | Maximum panel height in pixels. |
| Opacity | Terminal background opacity 0–100% (100 = fully opaque). |
| Start collapsed | Whether the panel starts collapsed. |
| Shell | Shell executable for new sessions. |
| Working directory | Default directory for new sessions (empty = home directory). |
Shell and working directory apply the next time you open the terminal; theme, opacity, font size, and max height apply immediately.
Notes and limitations
- The terminal renders xterm.js from the jsDelivr CDN; the first expansion requires network access. The plain fallback still works offline.
- A session is process-local and does not survive a harness restart.
- The WebSocket route is loopback-bound like the rest of the Web GUI.
- Windows — on Windows the default shell is
powershell.exe(setshelltocmd.exefor Command Prompt, withshellArgs: []). It needs a Windows-builtnode-pty(conpty/winpty) from the DSH host.
License
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.1.1 | — | — |
| 0.1.2 | — | — |
| 0.1.3 | — | — |
| 0.1.9 | — | — |
| 0.1.11 | — | — |
| 0.1.12 | — | — |
| 0.1.13 | — | — |
| 0.2.0 | — | — |
Comments
Loading…
From the same category
by deepseek-ai
DeepSeek Harness: Everything is a Plugin.
★ 232.4k
MIT
TypeScript
Sep 17, 2026
by nexu-io
🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards,
★ 97.5k
Apache-2.0
TypeScript
Sep 22, 2026
by Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
★ 28.5k
↓ 831/wk
NOASSERTION
Go
Sep 21, 2026
dsh plugin --profile web add @wxg-prc-cpg/dsh-weknoraby awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 16.5k
CC0-1.0
Python
Sep 22, 2026
by zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 7.9k
Apache-2.0
TypeScript
Sep 21, 2026
dsh plugin --profile web add dsh-webby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7.2k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injector