davidgereb/dsh-plugin-watchdog ↗★ 0
dsh-plugin-watchdog
Host-side crash/restart watchdog for dsh: resumes sessions whose agents were interrupted by a server crash or restart and continues their work automatically — no browser needed. Settings card for the fallback model and resume policy.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-plugin-watchdog
Host-side crash/restart watchdog for dsh. When the dsh server process dies —
a crash, OOM, kill -9, or a restart — every running agent is interrupted and
the work simply stops. The persisted session logs survive, but nothing picks the
work back up until a human reopens the sessions. This plugin closes that gap:
- No browser needed. It is a host-only Cordis plugin; it runs inside the dsh server and works whether the GUI is open, closed, or never opened.
- On restart it checks recently active sessions and resumes the ones whose work was genuinely interrupted — not the ones that were deliberately stopped.
- It picks up where they left off: it resumes the persisted session via
ctx.agents.resume, then either re-arms the active goal (the goal-round driver queues the next `` itself) or wakes the agent with a "continue where you left off" follow-up prompt. Crash-recovery closers (TOOL_OUTCOME_UNKNOWN/TOOL_NOT_STARTED) are already in the resumed history, so the model verifies uncertain side effects before retrying.
Install
The plugin is a host-only Cordis plugin resolved from your dsh profile's
package store. The profile's dsh plugin command forwards to pnpm, so any
pnpm-supported git spec works.
From GitHub
dsh plugin --profile web add github:davidgereb/dsh-plugin-watchdog
This also installs the host half's dependency,
dsh-lib-context-injection
(declared as a git dependency in this package's package.json).
From a local checkout
# 1. build (regenerates lib/index.js + lib/client.js from src/)
node scripts/build.js
# 2. make the local package resolvable by the profile
dsh plugin --profile web link /path/to/dsh-plugin-watchdog
# 3. same for the lib dependency
dsh plugin --profile web link /path/to/dsh-lib-context-injection
Then add the loader row to the profile patch file
($DSH_HOME/profiles/web/cordis.patch.yml):
# ── Watchdog: resume sessions interrupted by a server crash/restart ──
# Host-only plugin (no browser half). On boot it resumes recently-active
# sessions whose agents were interrupted by an unclean server stop and
# continues their work (goal re-arm or a continue follow-up).
- insert:
- id: watchdog
name: dsh-plugin-watchdog