dshworks/dsh-watch ↗★ 2

@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. 适合需要监控文件或命令变化并自动唤醒智能体的用户。

Package
@dshworks/dsh-watch
Compatibility
Unverified
Harness peer range
^0.1.7-alpha.1 || ^0.2.0-rc.1
Cordis peer range
^4.0.1
Version
0.2.3
License
MIT
Last updated
Oct 5, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dshworks/dsh-watch

Configuration

Every bound is a validated Config field, not a constant.

FieldDefaultMeaning
pollIntervalMs300Poll cadence, and therefore the batch window
maxNoticeBytes4096UTF-8 byte cap for one complete notice, header included
maxConsecutiveWakes3Wake-credit burst capacity per owner
wakeRefillMs60000Milliseconds per restored credit; 0 disables time refill
defaultMaxEvents50Notice budget per watch; 0 means unbounded
maxListenersPerOwner8Armed-watch cap per agent
autoArm[]Standing watches armed for the root session at boot

The daemon's own config is brief (required), flushIntervalMs (300000), and journal (true).