DeepSeek Harness 插件

dsh-cdi-plugin

Synthetic CDI (clinical documentation integrity) auditing plugin for DeepSeek Harness — deterministic SOP-rule evaluation tools + bundled (fictional) gold sets, rules, and agent skills.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
fmlin0429712024/dsh-cdi-plugin
最近更新
2026年8月15日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/fmlin0429712024/dsh-cdi-plugin
插件名:dsh-cdi-plugin
作者:fmlin0429712024

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

<h1 align="center">dsh-cdi-plugin</h1>

<p align="center"> <strong>Synthetic CDI auditing, packaged for DeepSeek Harness</strong><br/> Native model tools for deterministic SOP-rule evaluation over a bundled SQLite rule store — with the CDI agent skills and (fictional) gold sets shipped in the box. </p>

<p align="center"> <img src="https://img.shields.io/npm/v/dsh-cdi-plugin" alt="npm version" /> <img src="https://img.shields.io/npm/dm/dsh-cdi-plugin" alt="npm downloads" /> <img src="https://img.shields.io/badge/license-MIT-green" alt="license MIT" /> <img src="https://img.shields.io/badge/DSH-0.1.0--rc.6-8257D0" alt="DSH 0.1.0-rc.6" /> <img src="https://img.shields.io/badge/status-published-green" alt="published on npm" /> <img src="https://img.shields.io/badge/data-synthetic-orange" alt="synthetic data only" /> </p>

A DeepSeek Harness (DSH) plugin that turns a governed clinical-documentation audit pipeline into two native model tools. Install it, ask for an audit, and the model walks the pipeline end to end — with every deterministic verdict coming from the SQLite SOP store, never from the LLM's judgment.

> Every finding stays requires_human_review and routes to a qualified human reviewer. All data is synthetic and fictional — no real patient, provider, or client data; no clinical, coding, billing, or compliance decision.

---

Who is this for

  • Documentation-quality & audit teams in healthcare operations who need a

governed, traceable way to review clinical documentation against SOP rules — every finding cites its source fields and routes to a qualified human reviewer.

  • DSH users building vertical solutions — a working reference for packaging

a domain pipeline (skills + rules + data + tools) as a standard plugin on the stock DSH GUI.

  • Researchers & students studying governed agentic workflows — everything

runs on synthetic data, so it is safe to experiment with end to end.

Use cases

  • Full-pipeline audit of a synthetic ICHD record: normalization → evidence

review → rule evaluation (deterministic via SQLite, narrative via use-case skills) → 7 draft findings, all requires_human_review.

  • Patient-domain checks with the multi-domain gold set (SYN-ICHD-05/06,

requires store: "multi-domain").

  • Ad-hoc rule lookups — "which treatments finished ≥ 15 min early?"

(cdi_query_rule with SYN-ICHD-01, one record at a time).

Features

  • Native tools, no shelling outcdi_query_rule and cdi_list_rules are first-class model tools (cards in the conversation, not bash+python).
  • The LLM reports, never judges — deterministic rules evaluate against bundled SQLite SOP stores (shared + multi-domain); the tool's result is final.
  • 8 CDI agent skills in the box — the governed pipeline (normalization → evidence review → rule evaluation → human review) ships with the package, and is also discoverable from any repo's .agents/skills.
  • Self-contained — tools + SOP stores + gold sets + rules + skills travel inside the npm package.
  • Zero UI changes (Step 1) — runs on the stock DSH GUI; Step 2 adds a domain UI (finding cards, evidence detail, review workbench).

How it works

gold set (synthetic) ──► normalize ──► evidence review ──► rule evaluation ──► draft finding ──► HUMAN REVIEW
                                                             │                        │
                                            deterministic: cdi_query_rule  (SQLite)   └─► confirm / reject / clarify
                                            narrative:     use-case skills  (LLM)              │
                                                                                               └─► feedback loop

Quick start

# install into your web profile
dsh plugin --profile web add dsh-cdi-plugin

# restart dsh web, then in any session:

> 用 cdi_list_rules 列出所有确定性规则,然后对 > data/synthetic-ichd-patient-goldset.json 跑一次完整 CDI 审计

The deterministic-rule-audit skill prefers cdi_query_rule for every deterministic check; tools/query_deterministic_rule.py remains as a fallback with the same contract.

Tools

ToolPurpose
cdi_query_ruleEvaluate one deterministic SOP rule (SYN-ICHD-01/09/06) against one record. store: "multi-domain" selects the patient-domain store.
cdi_list_rulesList every deterministic rule in both bundled stores with trigger descriptions.

Development

node --test "test/*.test.mjs"     # frozen smoke tests — no DSH host needed

The tests cover the failure modes that actually crash profiles at boot (schema compilation at apply() time) and at tool-call time (output-schema validation, including non-triggered results whose draft_question is null). Run them before every release.

Local dev needs one machine-specific wiring symlink so the plugin resolves @deepseek-ai/* from its real location:

mkdir -p node_modules
ln -sfn ~/.dsh/profiles/node_modules/@deepseek-ai node_modules/@deepseek-ai

(node_modules/ is git-ignored.)

Publish

node --test "test/*.test.mjs"      # gate
npm version patch                  # bump
npm publish                        # requires a bypass-2FA granular token or OTP

peerDependencies deliberately pin the working release train (@deepseek-ai/dsh-tools: ^0.1.0-rc.6) — the npm latest dist-tag of @deepseek-ai/dsh-tools points at a broken 0.0.1-rc.1, so never resolve from latest.

Roadmap

  • [x] Step 1 — host plugin (this package): native rule tools, packaged skills/data, verified on DSH 0.1.0-rc.6
  • [x] npm publishdsh-cdi-plugin@0.1.0 live on the npm registry
  • [ ] Step 2 — cdi-gui client half: audit-finding cards in the conversation, evidence/rule detail panel, human-review workbench — enterprise domain UI inside the DSH shell
  • [ ] More verticals — other documentation-audit domains on the same governed-pipeline pattern

License

MIT