beimianism/Hermeslike-Mixagent-MoA

Project Overview项目介绍

This is a native DSH plugin that implements a Hermes-style Mixture-of-Agents (MoA) request aggregator for DeepSeek Harness LLM calls. It adds a full end-to-end processing pipeline that routes incoming user requests through a V4F router, multiple parallel reference advisors, and a final streaming aggregator, plus includes built-in dual-channel failover and V4P triple-gate cost protection. The plugin registers a custom LlmAdapter for DSH’s core LLM module, adds three distinct new model options to DSH’s built-in model selector, and processes all requests routed to the configured MoA providers through its complete pipeline. You can install it directly via DSH CLI using the public GitHub repository link or a local development path, depending on whether you want to modify the source code or just use the stable version.

The three available models are deepseek-v4-mix, which runs the full MoA pipeline, and deepseek-v4-pro and deepseek-v4-flash, which connect directly to the respective models without running through the MoA workflow. Only the first two models are subject to V4P gate constraints, and any unknown model ID will default to a flash direct connection, so it will never silently trigger the higher-cost MoA process without explicit user input. Key features include Hermes-style advisor output processing, sensitive information desensitization, context budget cropping, and automatic dual-channel failover. This plugin is designed for DSH users who want to improve the quality of LLM outputs by leveraging multiple model responses in a mixed agent workflow.

After installation, all configuration for the plugin is done through DSH’s web settings page, under a dedicated section added by the plugin. All configuration changes take effect in real time, so you do not need to restart DSH after adjusting settings, and your API keys are stored locally only and never echoed back to the interface. The project is released under the open-source MIT license, and all required dependencies are injected via DSH profile’s pnpm closure, so you do not need to declare them manually. The plugin supports multi-dimensional cost control rules that can be adjusted to fit different user budget requirements, from low-budget personal use to higher-budget professional use.

Hermeslike-Mixagent-MoA 是专为 DeepSeek Harness 开发的原生插件,是一个 Hermes 风格的多智能体混合(MoA)请求聚合器,为 DSH 的 LLM 调用注入「路由器 → 多路参考顾问 → 聚合器流式输出」的完整处理流水线,同时支持双通道故障切换和 V4P 三重闸门费用防护功能。它为 dsh-llm 注册了专用适配器,所有路由到对应 provider 的模型请求都会经过该 MoA 流水线处理,并在 DSH 的模型选择器中新增了三个可选模型。

三个模型分别是完整走 MoA 流水线的 deepseek-v4-mix、不走 MoA 直接直连的 deepseek-v4-pro 和 deepseek-v4-flash,其中前两个受 V4P 闸门约束,未知模型 ID 默认按 flash 直连处理,不会静默触发高成本的 MoA 流程。插件核心特性包括复刻 Hermes 语义的顾问输出处理、敏感信息脱敏、上下文预算裁剪、双通道自动切换等,适合需要通过多模型混合提升输出质量的 DSH 用户使用。

安装可通过 DSH CLI 执行 dsh plugin --profile web add github:beimianism/Hermeslike-Mixagent-MoA 完成,安装后可在 DSH 的网页端设置页面找到插件的配置项,所有配置实时生效无需重启,API 密钥仅本地存储不会回显。项目基于 MIT 许可证开源,依赖由 DSH profile 的 pnpm 注入,不需要额外声明,支持配置多维度的费用管控规则,适配不同用户的预算需求。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 github:beimianism/Hermeslike-Mixagent-MoA

把 beimianism/Hermeslike-Mixagent-MoA 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

中文 · English

hermeslike-MoA

Hermes 风格的 Mixture-of-Agents(MoA)请求聚合器——为 DSH 的 LLM 调用注入「路由器 → 多路参考顾问 → 聚合器流式输出」流水线,并带双通道故障切换与 V4P 三重闸门费用防护。


hermeslike-moa 是一个 DSH 插件(dsh.bundle)。它注册一个 dsh-llm LlmAdapter(provider 路由 deepseek-moa,配置了 OpenCode Go key 时追加 go-moa),所有路由到这些 provider 的模型请求都会经过 MoA 流水线:

用户请求
  → V4F 路由器(单次调用 JSON 判定:任务是否值得 V4P 介入)
  → 参考顾问 ×N 并行(V4F;Hermes 风格顾问角色 system prompt;工具调用/结果折叠为纯文本;
     工具结果 head+tail 裁剪;参考输出脱敏;末尾追加合成 user 判断指令)
  → 聚合器(模型选择:用户显式选择优先 → 路由器辅助 → V4P 三重闸门兜底)
  → 流式透传(标准 dsh-llm StreamChunk)

三个模型选项

模型选择器里本插件提供三个模型:

模型 含义
deepseek-v4-mix(MoA Mix · 模型混合) 完整 MoA 流水线:路由器 → 参考顾问 ×N(flash,并行)→ 聚合器(pro 或 flash)→ 流式。消耗 1 路由 + N 参考 + 1 聚合共 N+2 次调用;聚合 pro 受 V4P 闸门约束
deepseek-v4-pro 直连单一 V4 Pro(不走 MoA,无路由/参考/聚合开销);仍受 V4P 闸门约束(防呆:预算不足时按设置降级 flash 或报错)
deepseek-v4-flash 直连单一 V4 Flash(不走 MoA,最便宜最快;不受闸门约束)

任何未知模型 id(不在上述三个之内)按 flash 直连处理,绝不静默触发昂贵的 MoA 路径。

核心特性

  • mix 模型大类:模型选择器里新增 MoA Mix · 模型混合(deepseek-v4-mix)——选中它即强制走完整 MoA 流水线(模拟选择入口),聚合模型仍按设置/路由器决定;flash/pro 保留为显式聚合模型。
  • Hermes 忠实参考语义:lib/reference.js 复刻 Hermes moa_loop.py 的顾问视图——丢弃主 system prompt、把 tool_calls 渲染为 [called tool: name(args)]、把工具结果 head+tail 裁剪(4000 字符预算)折叠进前一条 assistant 消息、不发出任何 tool-role 消息(兼容严格 provider)、末尾追加合成 user 判断指令保证 user 结尾。
  • 脱敏:集中式密钥形状(sk-/Bearer/JWT/私钥/数据库连接串)+ 安全的 email/电话正则(带边界条件,不误伤 SHA/ID/日期)。
  • 上下文裁剪:估算 token 预算,从最旧帧丢弃,保持 user-first 不变式,保留尾部合成指令。
  • 双通道:official(DeepSeek 官方按量)+ go(OpenCode Go 订阅额度);Go 优先整套流水线,连续 3 次失败自动切官方整套。
  • V4P 三重闸门:预算倍数(前瞻预算池 = F 已花×ratio − P 已花)+ 窗口内次数上限 + 最小间隔。
  • 新契约记账:dsh-llm 分离式 TokenUsage(inputTokens 为未缓存输入,cache 读写单独计),滚动窗口成本核算。

安装

# bundle:进入 profile layer stack(重启 web 生效)
dsh plugin --profile web add github:beimianism/Hermeslike-Mixagent-MoA

# 或 本地开发路径(换成你的实际路径)
dsh plugin --profile web add /path/to/hermeslike-moa

公开 @deepseek-ai/* 与 cordis 依赖刻意不声明(由 profile 的 pnpm closure 注入)。

系统设置(推荐)

插件融合进 DSH web 系统设置——设置页(「设置 → Hermeslike MoA」)由插件自带 client 半渲染(官方 Models 页不渲染第三方 provider,其编辑卡被禁用),实时生效、无需重启。每个字段旁有 ⓘ 悬停提示,key 字段下方显示实时健康诊断(keyHealth):

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev scnu-thesis-formatter 下一个 Next dsh-provider-veark →