YiHarvest/dsh-failure-capsule0

dsh-failure-capsule

Local-first failure evidence capsules for DeepSeek Harness sessions

AI 분석

核心用途是在会话失败、工具报错或中止时,自动收集并保存本地失败证据胶囊。适合需要调试、排查 Agent 运行故障的开发者。支持在 Web 和 Headless 配置文件中独立安装。

패키지
dsh-failure-capsule
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 14.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YiHarvest/dsh-failure-capsule

配置

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
字段类型默认值作用
outputDirstring.dsh/failure-capsules相对路径以 Session cwd 为基准;也可用绝对路径
maxEventsinteger801..10000,失败点之前最多保留的事件数
maxGitBytesinteger5242881024..16777216,每条 Git 命令的输出预算
captureGitbooleantrue是否采集 Git 证据
capturePluginsbooleantrue是否采集 Loader 插件清单
triggerOnToolErrorbooleantrue失败工具结果是否触发
triggerOnTurnFailurebooleantrueerror / blocked / interrupted 回合是否触发
triggerOnAbortedbooleanfalseaborted 回合是否触发
triggerOnAgentErrorbooleantrue无持久化失败边界的 live error 是否触发

错误配置在插件加载时直接失败,不静默回退。相同 Session Event 在一个插件生命周期内只生成一次;agent/error 会短暂等待对应的 turn/end,避免同一失败重复打包。