mingzhicode/dsh-interactive-terminal ↗★ 1
dsh-interactive-terminal
Interactive terminal plugin for DeepSeek Harness 在Web界面中集成交互式终端,适合需要在DSH环境中直接执行Bash命令的Linux或macOS用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mingzhicode/dsh-interactive-terminalConfiguration
Add an override to ~/.dsh/profiles/web/cordis.patch.yml, or $DSH_HOME/profiles/web/cordis.patch.yml when using a custom home:
- id: dsh-interactive-terminal
config:
shellPath: /bin/bash
shellArgs: [--noprofile, --norc, -i]
rows: 40
cols: 160
A patch replaces the row's entire config; include all custom values you want to retain. Omitted fields use the defaults below. Resetting the terminal creates a new shell and loses its in-memory state.
| Field | Default | Meaning |
|---|---|---|
shellPath | /bin/bash | Bash executable; other shells are rejected. |
shellArgs | --noprofile --norc -i | Interactive-shell arguments; no empty arguments. |
rows | 40 | Fixed PTY rows. |
cols | 160 | Fixed PTY columns. |
scrollbackLines | 10000 | Retained history lines, excluding the viewport. |
scrollbackMaxBytes | 4194304 | UTF-8 limit for serialized ANSI history, excluding the viewport. |
maxToolOutputBytes | 262144 | Complete tool-result JSON limit; at least 1024, no greater than scrollbackMaxBytes. |
maxInputBytes | 65536 | Input bytes per model send or accepted human input lease. |
maxQueuedOperations | 128 | Accepted mutations per Agent, including the active operation. |
maxSessions | 32 | Maximum live Agent terminals. |
pollIntervalMs | 50 | Delay after each foreground check before the next check. |
operationTimeoutMs | 30000 | Model mutation deadline before interrupt recovery. |
interruptTimeoutMs | 5000 | Controlled-prompt recovery deadline after SIGINT. |
disconnectGraceMs | 15000 | Controller disconnect grace before human-input recovery. |
disposeGraceMs | 3000 | Process-tree termination grace during reset or teardown. |