shenhuanageshei/dsh-preset-zombie-guard ↗★ 0
dsh-preset-zombie-guard
Preset-zombie guard for DeepSeek Harness: periodically scans session logs (zstd frame decoding) for sessions whose effective agent preset no longer exists in the roster; auto-archives blank zombies via the official workspaceRegistry API and deduplicates warnings for non-blank ones. Ships preset_guard_check_remove (full-decode dependency audit to run before deleting any user preset) and preset_guard_last_report. Born from the 2026-08-31 preset-deletion incident. 预设僵尸守护:周期扫描会话日志识别失效预设引用;空白僵尸自动归档,非空白告警去重;删除预设前的依赖安全检查。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shenhuanageshei/dsh-preset-zombie-guard说明文档
阅读完整 README ↗使用纪律(删除预设前必读)
- 删除任何用户预设前必须先跑
preset_guard_check_remove(presetId)。 - 必须确认输出无「未完整分析」横幅(
N 个会话未完整分析,删除安全性未确认) 才可视为安全——存在横幅时清单不完整,删除操作不可视为安全。 - 依赖清单非空时逐个处理(改指/归档/确认可冷死)后再删除。
配置(cordis Config)
| 键 | 默认 | 说明 |
|---|---|---|
intervalMs | 900000 | 扫描周期(ms,下限 5000) |
autoArchiveBlank | true | 僵尸空白会话是否自动归档;false 时整体 report-only |
acknowledgedSessions | [] | 已知并接受、永久静默 B/C 告警的会话 id(人工处理完成后登记;不影响 check_remove 的完整性) |
scanRootOverride | — | 覆盖扫描根目录(测试/演示用);override 模式下归档动作整体禁用 |