@dshworks/dsh-watch
Background stream listeners that wake the DeepSeek Harness agent — put a watch on a command or file and receive new lines as in-session notices. Ships a daemon host so a watcher can run unattended for weeks.
AI 분석
通过监听文件或命令输出,在产生新行时自动唤醒 Agent。适合需要无人值守、后台监控任务的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dshworks/dsh-watchConfiguration
Every bound is a validated Config field, not a constant.
| Field | Default | Meaning |
|---|---|---|
pollIntervalMs | 300 | Poll cadence, and therefore the batch window |
maxNoticeBytes | 4096 | UTF-8 byte cap for one complete notice, header included |
maxConsecutiveWakes | 3 | Wake-credit burst capacity per owner |
wakeRefillMs | 60000 | Milliseconds per restored credit; 0 disables time refill |
defaultMaxEvents | 50 | Notice budget per watch; 0 means unbounded |
maxListenersPerOwner | 8 | Armed-watch cap per agent |
backlogBytes | 65536 | Retained-bytes budget for a watch's job_output |
autoArm | [] | Standing watches armed for the root session at boot |
The daemon's own config is brief (required), flushIntervalMs
(300000), and journal (true).