DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
I

@xiciyang/inference-diagnose

Inference Diagnose

LLM 推理服务崩溃诊断:生成定制采集脚本 → 离线脱敏报告解析 → 根因诊断+修复方案 → 失败后按证据差异定向补采(离线/脱敏/证据链驱动,三维可插拔)

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:xiciyang/inference-diagnose#693515e94f9f762f74eaaca550109ece5e0e621f
README兼容性版本

兼容性与来源证明

Inference Diagnose 以 @xiciyang/inference-diagnose 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/19

版本

0.1.0stable
2026/10/19

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
BSD-3-Clause
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/10/19
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Experimental Inspector@deepseek-ai/dsh-experimental-inspector用于 Host 调试和 Client Runtime 检查的实验性跨 realm CDP hub

README

@xiciyang/inference-diagnose

Diagnose an inference service from evidence, not guesswork — and say "unconfirmed" when the evidence is not there.

Generate a collection script → parse the sanitized report offline → produce a ranked root cause with a fix → if the fix fails, re-collect only the missing probes and diff against the previous round. Offline, de-identified, hash-chained audit, and fail-closed when a rule for the framework × runtime × hardware combination is missing.

  • No cloud round-trip for your logs: collection runs on the user's machine; parsing and diagnosis happen in memory.
  • Evidence-driven: every conclusion carries severity, confidence and a falsifier; "not confirmed" is a valid verdict.
  • Three modes: service failure (A), regression against a customer baseline (B), consistency / non-determinism (C).
  • Five tools, all risk: read — no writes, no sandbox requirement, no confirmation token.

安装

git clone https://github.com/xiciyang/inference-diagnose.git
cd inference-diagnose && bash scripts/build.sh
dsh plugin --profile <name> add .

尚未发布到 npm;上面的源码路径装完重启生效。

要求 Node ≥ 20,已在本机 DSH 0.2.0-rc.2 上验证。

从源码构建:

bash scripts/build.sh      # 27 个文件 → lib/
node tests/run.mjs         # 30 spec,无 GPU / 无容器 / 无网络

用法

在会话里直接调用五个工具(裸名,无 inference_ 前缀):

工具作用
generate_collect_script生成内嵌脱敏的采集脚本(在用户自己的机器上执行,本插件不代执行)
parse_collect_report解析已脱敏报告 → 结构化证据(全程内存,明文不落盘)
diagnose_serviceA 范式:服务异常(崩溃/启动失败/挂起/被外部杀/资源耗尽/输出异常)
diagnose_regressionB 范式:相对客户基线的性能/精度劣化(无基线则退化为定性诊断)
diagnose_consistencyC 范式:一致性/非确定性

典型链路:generate_collect_script → 用户在目标机执行 → parse_collect_report → diagnose_service; 修复失败后用返回的 nextSteps 只补采缺失探针,再调一次 diagnose_service(带 priorRound)看 diff。

配置

变量作用默认
INFERENCE_DIAGNOSE_ROOT审计链与运行状态根~/.ai-infra
DSH_HOME会话存储根~/.dsh
INFERENCE_WORKSPACE跑「与兄弟插件工具名不重名」检查时的源码目录未设置则跳过该检查
SPEC_ROOT设计文档仓(门禁 2–4)未设置则跳过

三维词表是 L1 数据:assets/config/dims.json + assets/dimensions/<kind>/<id>.yaml。 新增一个维度取值 = 加一个 YAML + 在 dims.json 登记 + 配规则文件;缺规则文件会让该组合 fail-closed(ERR_ROOTCAUSE_RULES_NOT_LOADED),不会静默降级。

framework:mindie(Ascend)· vllm;runtime:docker; hardware:ascend-arm · gb10 · nvidia · cpu。

治理面

  • 风险分级:五个工具全部 risk: read / sandbox: none / confirmation: not-required。 声明面在 manifest.yaml(给人/审计看)与 src/governance/risk.js(给代码看), 由 tests/unit/governance.spec.mjs 断言逐工具相等,并与实际注册工具名双向一致。
  • 审计哈希链:每次调用追加到 $INFERENCE_DIAGNOSE_ROOT/logs/audit/inference-diagnose/<YYYY-MM-DD>.jsonl; hash = sha256(canonicalJson(record 去掉 hash)),prevHash 首尾相接,只追加(O_APPEND + 0600)。 记录只存参数摘要与参数名,绝不存参数值。
  • 复算:node scripts/verify-audit.mjs [--root R] [--day D] [--tail N],链损坏 exit 1。

兼容与门禁

  • DSH bundle:dsh.bundle.patch + engines.dsh 已声明;entry id inference-diagnose,npm 名 @xiciyang/inference-diagnose。
  • node tests/run.mjs:30 spec 全过(本机实测),只收集 tests/unit/ 与 tests/integration/。
  • bash scripts/verify-all.sh:spec 套件 +(可选)状态机穷举与兄弟仓契约;缺少外部仓时显式 SKIP,不伪造通过。
  • 真机端到端脚本在 tests/realmachine/,不进 CI(见其 README)。

许可

BSD-3-Clause。见 LICENSE。