DeepSeek Harness 插件

kdcadmin/jev-decision-kit#dsh-jev-skill-kit

Star 数 ★ 5 分类 技能包 收录于 2026-10-20

每轮对话前用本机 JEV 模型选好技能,把一行选择结果作为前言注入,让智能体只加载该加载的技能。需另行准备好 jev-decision-kit 工作区(Python .venv、host/preface_worker.py、models/jev/head.json);没有它插件不会注入任何内容。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:kdcadmin/jev-decision-kit#path:/plugins/dsh-jev-skill-kit

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

A DeepSeek Harness plugin that asks a local skill-selection model which skills a task needs, then injects that choice as a one-line preface at the start of the turn.

jev-decision: 已选定:docx、office-docx。不要读取技能,不要再挑选。

The agent then loads exactly those skills instead of browsing or picking again. Selection runs on the machine — no network call, no API key.

What it does

On every new turn (agent/pre-step), before the model speaks:

  1. Reads the user's message text.
  2. Asks the bundled helper process (a local HTTP service on 127.0.0.1) for a selection.
  3. Prepends the resulting one-line preface to the first user message of the turn.

It also reports subagent start/stop events to the same helper, so the kit's local dashboard can show delegation history.

If the turn already starts with jev-decision: (or the legacy 【技能柜】), nothing is injected — a user typing the marker mid-sentence still gets a selection.

Requirement: the jev-decision-kit workspace

This plugin is the DeepSeek Harness adapter of jev-decision-kit. It does not ship the model or the scoring code; it calls the ones in that workspace:

  • Python venv at <kit>/.venv (Windows Scripts/python.exe, macOS/Linux bin/python)
  • <kit>/host/preface_worker.py and the trained weights in <kit>/models/jev/

Without the kit the plugin stays silent: it injects nothing and writes one kit-missing line to <kit>/runtime/harness-plugin.log. It will not prefix your turns with an error.

Install

  1. Clone and set up the kit (README).
  2. Install this plugin into a DSH profile:
    • GUI: 设置 → 插件 → 添加插件 → the absolute path to this directory, then restart DSH and open a new session.
    • CLI (non-desktop profiles): dsh plugin add <absolute path to this directory>
  3. The profile must use a link: (or file:) dependency — that is how the plugin finds the kit after a reinstall. See the kit's INTEGRATION.md for the exact steps.

Where the kit lives, in order of precedence:

  1. JEV_KIT_ROOT environment variable
  2. <plugin dir>/kit-root.txt
  3. %LOCALAPPDATA%/jev-skill-kit/root.txt (Windows) or ~/.local/share/jev-skill-kit/root.txt
  4. the source path recorded in the profile's package.json (link:/file: dependency)
  5. two directories above the plugin (a plain checkout)

Configuration

Variable Default Meaning
JEV_KIT_ROOT — Kit workspace override
JEV_WORKER_WAIT_MS 8000 How long to wait for the helper process to come up
JEV_HARNESS_LOG <kit>/runtime/harness-plugin.log Diagnostics log (one JSON line per event)

Privacy

Everything runs locally. The plugin starts a 127.0.0.1 helper process and posts the task text to it; nothing leaves the machine. The helper is spawned with windowsHide: true and no detached, so no console window appears.

License

MIT — same as the parent workspace.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。