beimianism/Hermes-to-DSH
浏览本机的Hermes技能、MCP服务及对话历史,并将选中的技能与MCP配置注入到当前agent。
项目介绍Project Overview
Hermes to DSH 是一个 DSH 插件,在 DeepSeek Harness Web 侧栏中以可停靠、可缩放面板展示本机 Hermes 的技能、MCP 服务与对话历史,支持全局搜索、对话预览、来源与消息类型过滤,并可将选中的技能与 MCP 配置以主动或被动模式注入当前 agent。适用于需要在 DSH 中复用 Hermes 资产时。注意:依赖本机 Hermes 只读数据库与 PATH 中的 python。
Hermes to DSH is a DSH plugin that shows local Hermes skills, MCP services, and chat history in a dockable, resizable DeepSeek Harness web sidebar. It supports global search, chat preview, source/message filters, and injects selected skills and MCP configs into the current agent in active or passive mode. Use it when reusing Hermes assets inside DSH. Caveat: it requires the local read-only Hermes database and python on PATH.
请帮我了解并安装插件:【Hermes-to-DSH】【https://github.com/beimianism/Hermes-to-DSH】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:beimianism/Hermes-to-DSH
把 beimianism/Hermes-to-DSH 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
中文 · English
Hermes to DSH
在 DeepSeek Harness Web 侧栏里浏览本机 Hermes 的 技能 / MCP 服务 / 对话历史,并把选中的技能与 MCP 配置注入到当前 agent。
Hermes to DSH(hermes-to-dsh) 是一个 DSH 插件(dsh.bundle),把本机 Hermes 资产(技能、MCP 服务、对话历史)以可停靠、可缩放的侧栏面板呈现在 DeepSeek Harness Web UI 中,并提供两种注入模式:
- 主动 — 勾选你真正要用的技能/MCP;插件读取所选
SKILL.md+ MCP 配置,注入到当前 agent 的系统提示词(含长度警示与总量上限)。 - 被动 — 接触式提示;仅当某能力缺失时,agent 才按需读取技能
SKILL.md/ MCP 配置。
功能
- 固定、可拖动/缩放面板,四角抓取手柄(26px 命中区)。
- 两列布局:左 = 仓库/项目 → 对话;右 = 技能 + MCP + 模式。
- 全局搜索:对话名/id、技能名/描述、MCP 服务名。
- 对话预览:点开任意对话看
开场 X 条 + 最新 Y 条(两侧条数可分别配置)。 - 来源过滤:按对话
source(desktop/cron/...)过滤。 - 消息类型过滤:只看 提问
user/ 回答assistant/ 工具tool;选定某类型后自动补齐到设定数量(跨越其他类型取足)。 - 复制地址:复制会话 id。
- MCP 详情:勾选前先查看某服务的配置块。
- 主动选择落盘:写入
~/hermes-active-selection.json并通知当前会话,让 agent 知道你的选择。
能力面
| 能力面 | 说明 |
|---|---|
| UI | sidebar.footer.action 侧栏面板(pill 切换 固定/可缩放两列面板) |
| Host handlers | inspect、chatPreview、mcpDetail、setMode、detail |
| 注入 | systemPrompt.section hermes:mode(主动 → 所选 SKILL.md 全文 + MCP 配置;被动 → 接触式提示) |
安装
# bundle:进入 profile layer stack(重启 web 生效)
dsh plugin --profile web add github:beimianism/Hermes-to-DSH
# 或 纯 Cordis:通过配置 HMR,零重启
dsh plugin add github:beimianism/Hermes-to-DSH
@deepseek-ai/*与cordis公开依赖刻意不声明(由 profile 的 pnpm closure 注入)。
前置:本机 Hermes 数据位于 %LOCALAPPDATA%\hermes\state.db(只读),且 PATH 里有 python 供辅助脚本使用。
原生架构(跟随启动)
插件是原生 bundle + client,随 dsh web 每次启动自动加载,无需动态插件/启动器:
- host 半(
index.js):注册ctx.connection.rpc.handle('/hermes', …, {authority:'trusted-host'}),暴露inspect/chatPreview/mcpDetail/setMode/detail五个端点;systemPrompt.section('hermes:mode')注入主动/被动提示词(若宿主未提供systemPrompt服务——如纯 web profile——注入段自动跳过,其余功能不受影响)。 - client 半(
client/index.js,由client/_make_native.cjs生成):__ModuleLoader__.loadbundle,require('react'),host.call适配为ctx.connection.rpc.call('/hermes', …),样式经<style>注入;面板挂sidebar.footer.actionslot。 - 主动选择落盘
~/hermes-active-selection.json并追加会话消息通知 agent。
使用
- 打开 DeepSeek Harness web UI。
- 点击左下角
📁 Hermes 资产胶囊,切换面板。 - 面板顶部:设置 开场/最新 条数、来源过滤、搜索、消息类型;标题栏切换 主动/被动。
- 主动模式下勾选需要的 技能 / MCP 服务 —— 面板会写入选择并通知会话。
插件管理
在 DSH 浏览器控制台 / 插件管理器 中管理已启用插件。本 bundle 安装名为 hermes-to-dsh;卸载时从 profile layer stack 移除对应行并重启 web。
布局
Hermes-to-DSH/
├── package.json # 清单(name, exports, dsh.bundle.patch, dsh.client)
├── cordis.patch.yml # bundle 行,插入插件
├── index.js # Node(host)半 —— Cordis 插件
├── client/index.js # Web client 半 —— 侧栏面板(已构建产物)
├── client/_make_native.cjs # client 生成器(仅开发用,源面板在工作区外)
├── scripts/ # 只读 python 辅助脚本
│ ├── _hermes_scan.py # 扫描 projects/repos/chats/skills/mcp
│ ├── _chat_preview.py # 开场 X + 最新 Y(消息类型自动补齐)
│ └── _mcp_detail.py # 读取某服务配置块
├── AGENTS.md
├── LICENSE (MIT)
└── README / README.en
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS