deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:beimianism/Hermes-to-DSH
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
中文 · English
在 DeepSeek Harness Web 侧栏里浏览本机 Hermes 的 技能 / MCP 服务 / 对话历史,并把选中的技能与 MCP 配置注入到当前 agent。
Hermes to DSH(hermes-to-dsh) 是一个 DSH 插件(dsh.bundle),把本机 Hermes 资产(技能、MCP 服务、对话历史)以可停靠、可缩放的侧栏面板呈现在 DeepSeek Harness Web UI 中,并提供两种注入模式:
SKILL.md + MCP 配置,注入到当前 agent 的系统提示词(含长度警示与总量上限)。SKILL.md / MCP 配置。开场 X 条 + 最新 Y 条(两侧条数可分别配置)。source(desktop/cron/...)过滤。user / 回答 assistant / 工具 tool;选定某类型后自动补齐到设定数量(跨越其他类型取足)。~/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 每次启动自动加载,无需动态插件/启动器:
index.js):注册 ctx.connection.rpc.handle('/hermes', …, {authority:'trusted-host'}),暴露 inspect / chatPreview / mcpDetail / setMode / detail 五个端点;systemPrompt.section('hermes:mode') 注入主动/被动提示词(若宿主未提供 systemPrompt 服务——如纯 web profile——注入段自动跳过,其余功能不受影响)。client/index.js,由 client/_make_native.cjs 生成):__ModuleLoader__.load bundle,require('react'),host.call 适配为 ctx.connection.rpc.call('/hermes', …),样式经 <style> 注入;面板挂 sidebar.footer.action slot。~/hermes-active-selection.json 并追加会话消息通知 agent。📁 Hermes 资产 胶囊,切换面板。在 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
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。