YiHarvest/dsh-failure-capsule ↗★ 0
dsh-failure-capsule
Local-first failure evidence capsules for DeepSeek Harness sessions
AI Analysis
核心用途是在会话失败、工具报错或中止时,自动收集并保存本地失败证据胶囊。适合需要调试、排查 Agent 运行故障的开发者。支持在 Web 和 Headless 配置文件中独立安装。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YiHarvest/dsh-failure-capsuleREADME
Read the full README ↗配置
cordis.patch.yml 提供以下默认值。可以在 profile 的 cordis.patch.yml 中用同一个 row id 覆盖整段配置:
- id: failure-capsule
name: dsh-failure-capsule
config:
outputDir: .dsh/failure-capsules
maxEvents: 80
maxGitBytes: 524288
captureGit: true
capturePlugins: true
triggerOnToolError: true
triggerOnTurnFailure: true
triggerOnAborted: false
triggerOnAgentError: true
| 字段 | 类型 | 默认值 | 作用 |
|---|---|---|---|
outputDir | string | .dsh/failure-capsules | 相对路径以 Session cwd 为基准;也可用绝对路径 |
maxEvents | integer | 80 | 1..10000,失败点之前最多保留的事件数 |
maxGitBytes | integer | 524288 | 1024..16777216,每条 Git 命令的输出预算 |
captureGit | boolean | true | 是否采集 Git 证据 |
capturePlugins | boolean | true | 是否采集 Loader 插件清单 |
triggerOnToolError | boolean | true | 失败工具结果是否触发 |
triggerOnTurnFailure | boolean | true | error / blocked / interrupted 回合是否触发 |
triggerOnAborted | boolean | false | aborted 回合是否触发 |
triggerOnAgentError | boolean | true | 无持久化失败边界的 live error 是否触发 |
错误配置在插件加载时直接失败,不静默回退。相同 Session Event 在一个插件生命周期内只生成一次;agent/error 会短暂等待对应的 turn/end,避免同一失败重复打包。