dshworks/dsh-watch

dshworks★ 2JavaScriptLast synced: 2026-08-14

Open on GitHub

Put a watch on a stream: background listeners that wake the DeepSeek Harness agent with new matching lines — the harness analog of Claude Code's Monitor tool, built on the first-class jobs subsystem. Not affiliated with DeepSeek.

README excerpt

dsh-watch Put a watch on a stream. The agent gets woken by what it says — even while idle. dsh-watch gives DeepSeek Harness the missing half of background work: not "tell me when it finishes " (the stock jobs subsystem already does that) but "tell me when it says something ". Arm a watch on a long-running command or a growing file; new lines — optionally filtered by a pattern — are batched per poll tick and delivered into the owning session as notices. An idle agent is woken; a busy one finds the notice queued into its next step. It is the harness analog of Claude Code's Monitor tool. Every watch is a first-class background job (kind watch ), so the standard surface applies unchanged: job list shows armed watches, job output drains a watch's line backlog, job kill disarms one, ownership is session-fenced, and settlement arrives as an ordinary completion notice. This plugin adds only the watching — no parallel lifecycle, no second registry. 60-second start dsh plugin forwards to pnpm, so pnpm must be on PATH. Then, in a session: Tail a file instead: What it does, precisely Behavior Detail Sources command (spawned once via the shell capability, inheriting the session's sandbox policy…

View full README on GitHub →
Agentsai-agentsbackground-jobsdeepseekdeepseek-harnessdshdsh-pluginmonitornotifications

Category