0gl20shk0sbt36/dsh-deadman ↗★ 0

dsh-deadman

DSH deadman switch: run a command unless a living agent keeps holding it off. Arms a watchdog that asks the owning session on every firing, skips when somebody holds, and acts when nobody answers. 适合需要无人值守自动执行任务或容灾备份的开发者。

Package
dsh-deadman
Compatibility
Unverified
Harness peer range
0.2.0-rc.2
Cordis peer range
~4.0.4
Version
0.2.0
License
MIT
Last updated
Sep 30, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:0gl20shk0sbt36/dsh-deadman

配置

写在 profile 的 cordis.patch.yml 里覆盖 bundle 默认值:

- id: deadman
  config:
    holdWindowSeconds: 60
键默认说明
holdWindowSeconds60全部 agent 无推进后,再等多久执行
checkIntervalSeconds20巡检周期
maxHoldMinutes30从触发起的总上限,到顶一律放行
questionBlockSeconds600被"待回答的提问"卡住时的最长等待,到点放行
onUndeliverableexecute属主会话彻底投递不到时:execute 照常执行 / skip 放弃本轮
progressScopeglobal活跃度判据范围:global 整机 / owner 仅属主及其直接子代理
serializeCommandsfalse多条动作命令是否排队串行执行
commandTimeoutSeconds300单条动作命令的执行超时
dataDir$DSH_HOME/plugins/dsh-deadman数据目录(tasks.json + hold/)