dsh-fail-guard

同一工具连续失败达阈值时叫停。不是再试一次,而是推送一条四部分停手指令:试过什么、完整错误原文、初判原因、需要用户做什么。判定读真实工具结果(isError 或 shell 退出码非零),通过 agent.steer 回灌,让 agent 把它当成收到的消息而不是日志。

插件介绍

同一工具连续失败达阈值时叫停。不是再试一次,而是推送一条四部分停手指令:试过什么、完整错误原文、初判原因、需要用户做什么。判定读真实工具结果(isError 或 shell 退出码非零),通过 agent.steer 回灌,让 agent 把它当成收到的消息而不是日志。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:FenrirCait/dsh-fail-guard

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。