dsh-backstage
DeepSeek Harness 的后台终端任务管理插件,支持在 PTY 中启动长运行进程、发送输入及分页输出。
AI 分析
核心用途是让 Agent 能够管理和交互控制后台长周期运行的终端任务(如启动服务、持续测试)。适合需要复杂命令行交互与进程控制的开发任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/pty-runner说明文档
阅读完整 README ↗Configuration
The plugin accepts optional configuration (in the config block of the patch line or a profile patch layer); everything has a default, and illegal values fail plugin loading rather than running half-configured:
- insert:
- id: backstage
name: dsh-backstage
config:
bufferCapacity: 20000 # output lines kept per job (100-200000, default 5000)
defaultGroup: 'default' # default group tag when none is specified
backend: 'auto' # 'pty' (real pseudo-terminal) | 'pipe' (pipe fallback) | 'auto'
stopGraceMs: 1500 # grace period for graceful stop, then force kill (50-60000)
portScan: true # check requested port occupancy before launch
backend semantics: pty uses node-pty (ConPTY on Windows) and interactive programs behave exactly as on a real terminal; pipe uses a plain subprocess pipe without terminal semantics (programs that only flush when a TTY is present may buffer output), with zero native dependencies; auto prefers pty and degrades to pipe when no native module is available.