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. 适合需要无人值守自动执行任务或容灾备份的开发者。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:0gl20shk0sbt36/dsh-deadman配置
写在 profile 的 cordis.patch.yml 里覆盖 bundle 默认值:
- id: deadman
config:
holdWindowSeconds: 60
| 键 | 默认 | 说明 |
|---|---|---|
holdWindowSeconds | 60 | 全部 agent 无推进后,再等多久执行 |
checkIntervalSeconds | 20 | 巡检周期 |
maxHoldMinutes | 30 | 从触发起的总上限,到顶一律放行 |
questionBlockSeconds | 600 | 被"待回答的提问"卡住时的最长等待,到点放行 |
onUndeliverable | execute | 属主会话彻底投递不到时:execute 照常执行 / skip 放弃本轮 |
progressScope | global | 活跃度判据范围:global 整机 / owner 仅属主及其直接子代理 |
serializeCommands | false | 多条动作命令是否排队串行执行 |
commandTimeoutSeconds | 300 | 单条动作命令的执行超时 |
dataDir | $DSH_HOME/plugins/dsh-deadman | 数据目录(tasks.json + hold/) |