xujiping/dsh-plugins--packages-dsh-agent-terminal ↗★ 0
dsh-agent-terminal
Agent terminal for the DSH web GUI: sidebar entry + center panel that runs real external agent CLIs (claude code, hermes, ...) interactively inside a local PTY, rendered with xterm.js. 100% fidelity — the page IS the agent's own TUI. Sessions survive tab switches / panel close (host-side scrollback replay on re-attach), loopback-fenced REST + WebSocket routes.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xujiping/dsh-plugins#1adc7e76acdbef227d539c496cca5adf7a53d43e&path:packages/dsh-agent-terminal说明文档
阅读完整 README ↗配置(可选,cordis.patch.yml)
- id: agent-terminal
name: 'dsh-agent-terminal'
config:
agents:
- id: claude-code # 唯一 id
label: Claude Code # 显示名
command: claude # 命令(自动探测 PATH + 常见 bin 目录)
args: [] # 附加参数
# cwd: ~/work # 工作目录(默认 ~)
- id: hermes
label: Hermes
command: hermes
不配置时默认 claude-code + hermes。命令不存在的条目会显示为禁用卡片并提示。
使用
- 侧边栏点「智能体」→ 中央面板顶部点
+ Claude Code。 - 在终端里正常使用该智能体(claude 的
/help、权限确认、diff 全部原生可用)。 - 切到别的 DSH 会话再切回来:面板重开、滚动缓冲回放,PTY 一直在跑。
- 标签页
✕结束会话(kill 进程)。