dsh-turn-guard
dsh turn-guard plugin: per-step timeout for agent turns. Watches session/event step boundaries; when the agent carries __pluginConfig.turnGuard.stepMs, a step running longer than that limit is cancelled via agent.cancel({kind:'hook'}). No config = no intervention (same as web session). 适合需限制单步执行时长的用户,未配置则不干预
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fatatalia/dsh-turn-guardドキュメント
README 全文を読む ↗配置项(单位:秒)
| 插件 | settings 段 | 默认 |
|---|---|---|
| imessage | imessage.stepTimeoutSec | 0(不限制) |
| webhook | webhook.hooks..stepTimeoutSec(每个 hook 独立) | 0(不限制) |
| heartbeat | heartbeat.stepTimeoutSec | 0(不限制) |
| dreaming | dreaming.stepTimeoutSec | 0(不限制) |
0 / 未配置 = 不限制(等同 web 会话行为)。设置页(Settings → 各插件)均有「单步超时(秒)」输入框,getConfig 自动回填当前值,保存即热生效(无需重启)。