dshbase

插件目录 / Knowledge / dsh-local-diagnostics

dsh-local-diagnostics

已验证 · 实测可装 fengyufengzi

✓ 持续维护 基于 5 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-19最近推送
跨平台平台

功能简介

Privacy-first in-memory diagnostics for DeepSeek Harness

✅
我们的评价
可用 — 实测通过,早期项目

Privacy-first in-memory diagnostics for DeepSeek Harness 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-local-diagnostics

CI

一个面向 DeepSeek Harness 的隐私优先、本地内存诊断插件。

它通过 Harness 已公开的 Cordis 扩展点观察运行状态,不修改 Agent Loop:

  • tools/execute:测量 dispatch 阶段耗时,并始终调用 next();
  • tools/result:统计最终成功、失败以及结构化错误码;
  • session/event:只统计事件类型;
  • agent/error:只统计错误类名;
  • diagnostics_report:返回当前 Session 的脱敏聚合报告。

隐私保证

插件不采集提示词、消息、工具参数、工具输出、错误消息、Session ID、文件路径或凭证,也不写磁盘、不发送网络请求。完整边界见 docs/privacy.md。

环境要求

  • Node.js ^22.19.0 || >=24.0.0
  • pnpm 11.7.0
  • DeepSeek Harness 0.1.0-rc.6 系列

Harness 尚处于开发者预览阶段,插件 API 可能发生破坏性变化。

本地开发

corepack pnpm install
corepack pnpm run check

check 依次执行类型检查、单元测试、构建,并把真实 .tgz 安装到隔离的临时消费项目中验证发布入口。只运行打包消费测试:

corepack pnpm run build
corepack pnpm run test:package

安装到 DSH profile

从本项目目录安装当前 checkout:

corepack pnpm run build
npx @deepseek-ai/dsh plugin --profile web add .
npx @deepseek-ai/dsh --profile web --dump-config
npx @deepseek-ai/dsh --profile web

然后要求 Agent 调用 diagnostics_report。移除插件:

npx @deepseek-ai/dsh plugin --profile web remove dsh-local-diagnostics

配置

- insert:
    - id: local-diagnostics
      name: dsh-local-diagnostics
      config:
        maxDistinctValues: 128

maxDistinctValues 是每类统计保留的精确名称上限,超出的名称归入 <other>。

当前限制

  • 数据仅覆盖插件本次加载之后的进程生命周期。
  • 重启和插件热重载都会清空统计。
  • timing 是 dispatch 阶段耗时,不含审批和结果渲染。
  • 第一版没有 UI、文件导出、OpenTelemetry 或跨进程聚合。

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-local-diagnostics」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:fengyufengzi/dsh-local-diagnostics

Headless(CLI)profile:

dsh plugin --profile headless add github:fengyufengzi/dsh-local-diagnostics

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Knowledge 里更多

浏览全部 7819 个插件 →