dshbase

插件目录 / Security / dsh-infra-observability

dsh-infra-observability

已验证 · 实测可装 Bryan-cmf

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

查看 GitHub ↗ ← 返回插件目录

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

功能简介

DSH-Plugin: structural observability layer - real tool/skill usage recording (tools/result), skill-catalog audit, watchdog. No model self-reporting.

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

DSH-Plugin: structural observability layer - real tool/skill usage recording (tools/result), skill-catalog audit, watchdog. No model self-reporting. 实测能干净安装、正常启动。早期项目,但功能可用。

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

README

⚠️ 此套件已併入 @bryan-cmf/dsh-insights(2026-08-17)。此 repo 僅保留作合併前歷史,後續迭代請到 dsh-insights。

🔭 Infra Observability — DSH-Plugin

結構化觀測層:真實的工具/技能使用記錄(tools/result)、技能目錄審計、看門狗。零模型自報——平台記什麼,報告就寫什麼。

npm
License: MIT
DSH

A DeepSeek Harness host plugin
that replaces model self-reporting with structural recording:

  • tools/result listener — every real tool execution (name + outcome) is
    recorded by the platform into a ring buffer and per-day aggregates.
  • agent/error / agent/status — error totals and live-agent tracking.
  • Watchdog — timer-driven alert when agent errors spike (≥ N in 5 min).
  • Three tools for the model and humans:
Tool What it reports
usage_report Per-day tool/skill aggregates (calls / ok / err) + recent executions
audit_skills Catalog totals, provider spread, warnings (missing description, non-kebab names), today's skill usage
infra_health Uptime, records kept, error counts, running agents, catalog size, watchdog state

Dashboard (browser)

The client half registers an 「觀測」view tab (order 20, right of
chat / trajectory) rendering a live per-session dashboard from the infraView
session projection: turn counts, failure count, tool/skill TOP lists with
success-rate bars, and the recent execution trail. Data updates as events
commit — no refresh needed.

Install

Path A — Host composition (recommended, always-on)

Add to the profile's package.json dsh.profile.bundles (the package ships a
dsh.bundle.patch that inserts the plugin row):

"dsh": { "profile": { "bundles": ["@bryan-cmf/dsh-infra-observability"] } }

Path B — Agent preset row

- id: infra-observability
  name: '@bryan-cmf/dsh-infra-observability'

Requirements

  • DSH >= 0.1.0-rc.6 (services: tools, timer, skills — all part of the
    shipped dsh-base bundle)

Configuration

Key Default Meaning
maxRecords 5000 Ring-buffer cap for recent execution records
healthIntervalMs 60000 Watchdog check interval
errorAlertThreshold 5 Alert at ≥ this many agent errors per 5-minute window

Scope notes

  • Aggregates are process-lifetime (like dsh-skill-trail); the durable source
    of truth remains the session log. Cross-restart persistence is planned.
  • Companion package: @bryan-cmf/dsh-skill-trail
    renders the per-reply badge row; this package is the backend layer.

Development

pnpm install --store-dir .pnpm-store
pnpm build

License

MIT

安装

🧩 让 Agent 自动装(推荐)

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

dsh plugin add dshbase-catalog

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

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

Web profile:

dsh plugin --profile web add github:Bryan-cmf/dsh-infra-observability

Headless(CLI)profile:

dsh plugin --profile headless add github:Bryan-cmf/dsh-infra-observability

实测报告

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

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

分享徽章

Security 里更多

浏览全部 7819 个插件 →