跳到主要内容
Plugin

dsh-decision-engine

zuosus/dsh-decision-engine

给 DeepSeek Harness 的 System-1 决策守卫:在每次工具调用前问模型四个问题 (风险、可逆性、任务相关性、注入嫌疑),据此放行、询问或拦截。

形态
Plugin 插件
安装
npm 包安装
需要密钥
是
近月下载
4,225
最近推送
昨天更新

项目说明

From README

dsh-decision-engine website 给 DeepSeek Harness 的 决策层 :在主模型动手之前,把「当前状态 + 一组结构化问题」发给一个 便宜的决策小模型,拿回概率化的答案,据此决定放行、询问、拦截,或改道(换模型)、跳过(省掉一次 昂贵调用)。例如工具授权问四个问题:风险、可逆性、任务相关性、注入嫌疑。默认只记录、不拦截( shadow ),任何异常一律 fail-open 放行。

A judgement layer for DeepSeek Harness: before the main model acts, it sends "current state + a set of structured questions" to a cheap decision model, gets probability-bearing answers back, and decides to allow, ask, block — or reroute (switch model) and skip (drop an expensive call).

Tool authorization, for example, asks four questions: risk, reversibility, task relevance, injection suspicion.Defaults to shadow (record only) and fails open on any error.接任意决策服务 :请求形状只有一个—— { model, state, questions, think mode } 发过去, 拿回 answers 。

哪些服务商提供这个端点、走哪条路径、用谁的 key,都由 provider 决定, 与各决策点的解析逻辑无关。因此内置多个预设,也可填任意 custom base URL (自建 llama.cpp / vLLM、企业网关、第三方中转)。Works with any decision endpoin

Original description

Jev-like decision plugin for DeepSeek Harness

安装方式

npm 包安装 · 需要额外配置密钥

README 解析
shell
dsh plugin add dsh-decision-engine
shell
pnpm add dsh-decision-engine
shell
npx wrangler secret put PROVIDER_BASE_URL # 下发的基础地址,例如 https://api.example.com/v1

安全能力

静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」

  • 写入文件
  • 读取文件
  • 访问网络
  • 读取环境变量

未发现已知红线(明文传输、安装期执行代码、凭据外传等)。

能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。

为什么是这个分数

近 2 天仍在推送;README 给出了可直接复制的安装命令;运行前需要准备 API Key 或环境变量;近月 npm 下载 4225 次,star 不多但真在被使用。

维护活跃
100
实用度
54
生态热度
73
上手便捷
74
信号质量
100
数据置信度
85%
评分怎么算