mingzhicode/dsh-interactive-terminal ↗★ 1

dsh-interactive-terminal

Interactive terminal plugin for DeepSeek Harness 在Web界面中集成交互式终端,适合需要在DSH环境中直接执行Bash命令的Linux或macOS用户。

Package
dsh-interactive-terminal
Compatibility
Unverified
Harness peer range
^0.1.0-rc.8
Cordis peer range
^4.0.2
Version
0.1.0
License
MIT
Last updated
Sep 18, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mingzhicode/dsh-interactive-terminal

Configuration

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.

FieldDefaultMeaning
shellPath/bin/bashBash executable; other shells are rejected.
shellArgs--noprofile --norc -iInteractive-shell arguments; no empty arguments.
rows40Fixed PTY rows.
cols160Fixed PTY columns.
scrollbackLines10000Retained history lines, excluding the viewport.
scrollbackMaxBytes4194304UTF-8 limit for serialized ANSI history, excluding the viewport.
maxToolOutputBytes262144Complete tool-result JSON limit; at least 1024, no greater than scrollbackMaxBytes.
maxInputBytes65536Input bytes per model send or accepted human input lease.
maxQueuedOperations128Accepted mutations per Agent, including the active operation.
maxSessions32Maximum live Agent terminals.
pollIntervalMs50Delay after each foreground check before the next check.
operationTimeoutMs30000Model mutation deadline before interrupt recovery.
interruptTimeoutMs5000Controlled-prompt recovery deadline after SIGINT.
disconnectGraceMs15000Controller disconnect grace before human-input recovery.
disposeGraceMs3000Process-tree termination grace during reset or teardown.