dsh-loop-breaker
Hard stop for runaway turns: blocks repeated identical tool calls and ends the turn when per-turn step or time budgets are exceeded.
失控回合硬止损:拦截同一工具+同一参数的重复调用,单轮步数或时长超预算即结束本轮。
How to install
dsh plugin add dsh-loop-breaker About
dsh-loop-breaker 硬止损插件:**同一工具 + 同一参数反复调用时,直接中断本轮**。 为什么需要 2026-09-13 从真实会话日志实测: 单个 turn 最多跑出 **337 步** 同一条命令被重复调用 **120 次** / **85 次** dsh 自带的 repeat-tool-reminder **只提醒、不中断** dsh-agent-loop 只暴露 maxParallelToolCalls,**没有步数上限** 结果就是"跑四小时 / 最后只能 /stop"。 实现 用两个上游扩展点: | 钩子 | 作用 | |---|---| | tools/post-execute(waterfall) | 计数;超限时返回 {kind:'block', feedback, additionalContexts} 否决该次结果并注入可见说明 | | agent/pre-step(waterfall) | 返回 {kind:'reject'} 让下一步不进入 → **本轮结束** | 判定键是「工具名 + 参数规范化后的 JSON」,所以正常干活(每次不同命令)不会误伤。 配置 yaml id: loop-breaker name: 'dsh-loop-breaker' config: consecutiveLimit: 4 # 连续重复多少次硬止损 tot…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 0
- mo. downloads
- –
- Last push
- 2026-09-18
- Created
- 2026-09-18
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
openclaw
openclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)