AskTheWay/dsh-jev-interceptor
⚡ Millisecond System-1 judgement for every tool call in DeepSeek Harness — Jev-powered risk classification & evidence-gated auto-approval. Fail-closed by construction. dsh 生态第一个 System-1 决策插件
Project Overview项目介绍
dsh-jev-interceptor is a DSH-native plugin that wires TypeSafe's non-generative System-One decision model Jev into two decision points of DeepSeek Harness: the pre-execute waterfall and the @session retention resolver. It ships as an npm package, is mounted as a DSH bundle layer, and subclasses upstream rows so @-completion, byte budgets, spill, and cancellation stay inherited. The repo name dsh-jev-interceptor, the dsh-plugin topic, the bundle-manifest field, and the takeover of DSH-specific hooks make this a product built FOR DSH, not a generic agent add-on.
Typical workflow: before every tool call, Jev returns a typed choice/noul answer plus calibrated probability in roughly 100ms at about $0.00002 per request; high-risk calls are denied, medium-risk ones escalate to a human, and clearly safe reversible calls stop wasting clicks on approval dialogs. When a session snapshot exceeds its byte budget, Jev scores every droppable message as noise, background, relevant, or critical and drops least-valuable-first instead of oldest-first, while checkpoints and the newest message stay protected exactly as upstream. Shadow mode logs counterfactual retention before you flip to enforce, and read-only tools (read, read_image, grep, glob, todo_write) short-circuit with zero cost.
Dependencies and limits: Node ≥ 20.3 is required, installation uses npm install --legacy-peer-deps, the Config schema in src/config.ts exposes timeouts, cooldown, concurrency, cache, per-hook thresholds, and the preapproveToolAllowlist (empty by default so nothing is auto-approved). Providers are swappable behind a shared state + questions wire — OpenRouter works today with no waitlist, TypeSafe direct and the Apache-2.0 local model Laya are also supported; API keys come from env vars such as OPENROUTER_API_KEY. Every decision is logged to <dsh-home>/plugins/dsh-jev-interceptor/telemetry.jsonl honoring $DSH_HOME, low confidence or any provider failure degrades to stock DSH behavior, and 63 vitest tests (run via npm test) cover adversarial regression cases; license is MIT.
dsh-jev-interceptor 是面向 DeepSeek Harness(DSH)的原生插件,将 TypeSafe 出品的非生成式 System One 决策模型 Jev 接入 DSH 的两个关键决策点。安装方式为通过 npm 拉取 dsh-jev-interceptor 包,并作为 DSH bundle 层加载;其源代码以 DSH 的 row 接管上游 pre-execute 与 session-reference 行为,从而以毫秒级、约 0.00002 美元一次的代价完成调用前风险分级与会话注入时的价值打分。
典型工作流:在工具调用真正执行前,Jev 先给出 confidence 分布,自动拒绝高风险调用、把中等风险上报人类、对低风险可逆调用直接放行;当用户通过 @session 引用历史会话时,插件为每条候选消息打上 noise / background / relevant / critical 标签,按价值而非时间顺序丢弃溢出内容。开发者与运维人员可先用 shadow 模式收集反事实日志,再切到 enforce 模式;该项目适合关心调用审计、上下文预算与自动审批严谨度的 DSH 高级用户。
依赖与限制:运行需要 Node ≥ 20.3,API key 通过 OPENROUTER_API_KEY 等环境变量注入,OpenRouter 即开即用,亦可换成本地 Apache-2.0 的 Laya;超时、重试、冷却、并发上限、LRU 缓存等参数都在 src/config.ts 的 Config 字段中;首次使用前请注意 Auto 权限预设与预审批白名单默认为空、低置信度一律回退 stock 行为、所有决策会写入 <dsh-home>/plugins/dsh-jev-interceptor/telemetry.jsonl;license 为 MIT。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-jev-interceptor(AskTheWay/dsh-jev-interceptor)
仓库:https://github.com/AskTheWay/dsh-jev-interceptor
本站详情页:https://www.yhbd.top/plugins/asktheway-dsh-jev-interceptor/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 23 · 最近提交 2026-09-25 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 23 stars - an early-stage project星标 23,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-jev-interceptor
把 AskTheWay/dsh-jev-interceptor 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-jev-interceptor
⚡ Millisecond judgement for every tool call and every recalled message — for about two millionths of a dollar each.
Your agent's most expensive habits: asking a poetry-writing LLM yes/no questions, and amputating your context by age. This plugin wires Jev — the non-generative "System One" model that broke everyone's feed — into the decision points of DeepSeek Harness where an LLM is overkill and rules are blind.
English | 中文

What it does, in one breath: before a tool call runs, Jev classifies its risk, irreversibility, task-fit, and injection-suspicion in one ~$0.00002 request — confident high-risk calls get denied, medium ones escalate to a human, and clearly-granted reversible ones stop wasting your clicks on approval dialogs. And when an @session snapshot gets injected, Jev scores every message's value for the citing task so the error traceback survives the byte budget instead of the oldest small talk. Every doubt, every timeout, every missing key degrades to stock dsh behavior. Nothing to configure away, nothing that can widen a permission.
Why this exists
dsh ships zero per-call risk classification — the pre-execute waterfall's default is a bare allow. Its only built-in precedent, experimental/auto-review, does the classification with a generative LLM: one full model request per tool call, temperature 0, hand-rolled JSON text protocol, self-described as slow, expensive, and experimental. That's a System-2 scribe doing a System-1 reflex's job:
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Minglink/dsh-infinite-gen-4
kenryu42/cc-safety-net
hyhmrright/brooks-lint
toby-bridges/api-relay-audit
hashgraph-online/hol-guard
SeaOf0/dsh-redteam-model
howmp/dsh-pentest
saya-ch/dsh-mobile