Community Session Doctor plugin for DeepSeek Harness #6085
Replies: 3 comments
|
Thanks — the payload-free design here is the part worth copying. Reading Where we overlap: other tools in this family emit a machine-readable report per run — No new format needed — the projection is |
|
Thanks — this is a helpful comparison. I agree that The semantic edge cases you called out are important: I will first compare the existing report consumers and the two check schemas you mentioned. A separate optional output or projection seems more appropriate than changing the current report format. Thanks again for the concrete mapping. |
|
Thanks — that is exactly the distinction worth preserving. If it helps, the projection is mechanical and additive: Nothing here implies a change to |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
项目地址:https://github.com/wsjwu58-cmd/dsh-session-doctor
Session Doctor 是什么
Session Doctor 是面向 DeepSeek Harness 的 Session 诊断集成。它用于解释 Agent 为什么停止、反复失败、持续重试、上下文持续增长,或在进程中断后留下不完整的 JSONL 日志。
它重放已持久化的 Session 事件,生成带版本的结构化诊断报告:报告包含发现类别、影响级别、有限的事件序号证据、指标与建议代码,方便 CLI、Web UI 或自动化工具继续处理。诊断和聚类均为只读,不会修改被检查的 Session。
主要功能
--repair时修复最后一条被撕裂的 JSONL 记录,保留有效的逻辑事件前缀;不会覆盖已经提交但内容损坏的记录。截图
上图展示了 Session 诊断页:发现项会标出影响级别、类别、证据事件序号、可比较的标量指标与建议代码。
与 DeepSeek Harness 的集成方式
packages/runtime-diagnostics/session-doctorpackages/bundle/doctordoctorprofile、CLI、JSONL 读取与显式修复packages/client/ui-session-doctorpackages/api/session-controller从源码运行
当前 Web 与 RCA 路径依赖对应的 DeepSeek Harness Host/API 源码接口,因此建议从源码运行:
git clone https://github.com/wsjwu58-cmd/dsh-session-doctor.git cd dsh-session-doctor pnpm install pnpm run build诊断单个 Session:
输出 JSON、跨 Session 聚类和显式修复:
启动 Web UI:
启动后,在 Session 页面打开“诊断”标签页。确定性诊断不会调用模型,也不会向 Session 追加事件;“分析根因”需要当前 Session 有可用模型选择。
当前限制
反馈
欢迎反馈 DeepSeek Harness、Node.js 与操作系统版本、使用的 profile,以及诊断报告中的发现类别或建议代码。请不要上传包含 API Key、原始模型消息、工具参数或其他敏感信息的 Session JSONL。
All reactions