sunny0826/dsh-plugin-herdr0

dsh-plugin-herdr

Herdr control-plane plugin for DeepSeek Harness (DSH): observe and drive Herdr — a terminal workspace manager for AI coding agents — from DSH sessions

AI Analysis

核心用途是在 DSH 中直接控制 Herdr 终端管理器。适合使用 AI 编码代理并需要监控终端工作区的开发者。必要条件是需运行 herdr headless 服务并配置 Socket 路径。

Package
dsh-plugin-herdr
Version
0.1.0
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sunny0826/dsh-plugin-herdr

Configuration

KeyTypeDefaultDescription
socketPathstringherdr socket path (HERDR_SOCKET_PATH); POSIX only
sessionstringherdr session name (HERDR_SESSION)
timeoutMsnumber30000per-command timeout
allowBackgroundbooleanfalseexpose run_in_background on pane run
events.enabledbooleanfalsesubscribe to Herdr events
events.maxReconnectMsnumber30000event subscription reconnect cap
reportStatebooleantruereport DSH→Herdr state inside a pane (HERDR_ENV)
projectRootstringproject directory for server-side filtering; defaults to process.cwd()

Preset configuration (presets/herdr/agent.cordis.yml, herdr-session-mode):

KeyDefaultDescription
paneId''Fixed pane binding shared by all sessions; empty = every session creates its own dedicated workspace
label''Display label override; empty = auto `dsh:
(cwd basename, falls back todsh:`)
cwdWorkspace working directory; empty = the session's project directory

Output limits (CA-014):

  • Per-command output is capped at 1 MiB per stream; pane_read/pane_run report truncated: true when the cap is hit (the server-reported truncated flag is surfaced as-is).

Platform support: the plugin is POSIX-only — all control-plane interaction goes over the herdr Unix-domain socket (JSONL), and the panel's start button spawns herdr server from PATH as the single bootstrap exception. Windows (named pipe) is not supported: the plugin refuses to load without a resolvable socket path. Use POSIX (macOS/Linux).

Example patch (cordis.patch.yml):

- id: dsh-plugin-herdr-client
  name: dsh-plugin-herdr/client-entry
  config:
    timeoutMs: 15000
- id: dsh-plugin-herdr
  name: dsh-plugin-herdr
  config:
    timeoutMs: 15000