aa2246740/dsh-model-fusion
Fusion for DeepSeek Harness: a frontier Lead plans and reviews, a much cheaper Sidekick writes the code — frontier results at a discount.
Project Overview项目介绍
Fusion is a native plugin for DeepSeek Harness (DSH) and surfaces inside the model menu as "Fusion · Auto". It pairs a user-selected Lead frontier model with a cheaper Sidekick: the Lead interprets requests, drafts task specifications, and reviews changes, while the Sidekick performs the actual file edits, shell commands, and test runs. Critically, the Lead never writes code and can only execute shell commands inside DSH's read-only sandbox — this restriction is enforced programmatically, not through prompt wording. The plugin only uses DSH's public plugin surface, ships a bundle-manifest, and requires DSH 0.2.0-rc.2 on either desktop or web builds.
In a typical workflow the user opens Settings → Fusion, picks any logged-in DSH model for the Lead and Sidekick roles (including subscription routes from dsh-oauth-login and dsh-antigravity-oauth), then chats normally; whenever code changes are needed, DSH runs acceptance commands in the real environment and the Lead audits each hard requirement with cited evidence, returning the task to the Sidekick on failure. Internal evidence from 9 SWE-rebench Python tasks shows GPT-6 Astra + GLM-5.3-Flash solved 11/18 problems at roughly 54% of the cost of Astra alone. The tool targets individual developers and small teams who want frontier-model quality on coding tasks without the full frontier-model bill, and the README is explicit that the sample is small and Python-only.
A cache keep-alive component pings the Lead's model while it waits for Sidekick results, preventing cache expiry and wasted re-read tokens; it is matched by model family (gpt-*, claude-*, gemini-*, glm-*, grok-*, kimi-*, deepseek-*) and automatically disables on flat per-request plans. Stated limits include about 5× the latency of a single frontier model, the Lead-handoff fallback being covered only by automated tests, and unverified support for Windows 10/11 and Linux, plus macOS Dock launches missing Homebrew/nvm paths. All Fusion state lives in $DSH_HOME/plugins/dsh-model-fusion/state.sqlite and can be wiped by deleting that file; the project is released under Apache-2.0.
Fusion 是 DeepSeek Harness(DSH)的原生插件,在模型菜单中以"Fusion · 自动"出现。它把用户选定的 Lead(前沿模型)与 Sidekick(廉价模型)配对:Lead 负责理解需求、拆解任务、审查改动,Sidekick 负责实际改代码、跑命令与测试;Lead 不写代码且只能跑在 DSH 的只读沙盒里,由程序而非提示词强制。安装遵循 INSTALL.zh.md,插件仅依赖 DSH 0.2.0-rc.2 的公开插件接口,并随附一份 bundle-manifest,桌面版与 Web 版均可加载。
典型工作流是用户在设置中选择 Lead 与 Sidekick(任何 DSH 已登录模型,包括 dsh-oauth-login、dsh-antigravity-oauth 提供的订阅线路),然后正常对话;遇到改代码需求时,DSH 在真实环境跑验收命令,Lead 按硬性要求逐条审查,未通过则打回 Sidekick 返工。内部记录的 9 道 SWE-rebench 题测试中,GPT-6 Astra + GLM-5.3-Flash 组合做对 11/18 题,费用比单用 Astra 低 54%。它适合想压低编码 Agent 账单、又不愿牺牲前沿模型质量的个人开发者与小团队,并明确承认样本小、未覆盖非 Python 项目。
缓存保活机制会在 Lead 等 Sidekick 时按模型名(gpt-*、claude-* 等)维持输入缓存,节省重读费用,按次计费套餐默认关闭。已知限制包括:耗时约为单模型的 5 倍、Lead 接手兜底仅由自动化测试覆盖、Windows 10/11 与 Linux 未验证,且 macOS Dock 启动的 DSH 缺少 Homebrew、nvm 路径。所有 Fusion 数据落地在 $DSH_HOME/plugins/dsh-model-fusion/state.sqlite,删除即可清空;项目以 Apache-2.0 发布。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-model-fusion(aa2246740/dsh-model-fusion)
仓库:https://github.com/aa2246740/dsh-model-fusion
本站详情页:https://www.yhbd.top/plugins/aa2246740-dsh-model-fusion/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 47 · 最近提交 2026-10-01 · 主语言 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 更稳。
- 47 stars - an early-stage project星标 47,属于早期项目
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:aa2246740/dsh-model-fusion
把 aa2246740/dsh-model-fusion 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
Fusion · DSH 插件
English · 安装 · Install (English)
Fusion 在 DeepSeek Harness(DSH)的模型菜单里是一个普通模型:Fusion · 自动。背后是两个你自己选的模型:
- Lead:一个强的前沿模型。负责理解需求、看代码、写任务说明、审查结果。
- Sidekick:一个便宜得多的模型。负责实际改代码、跑命令、跑测试。
目标只有一个:用前沿模型的效果,付打折的价钱。
思路受 Cognition 在 Devin 里推出的 Fusion 启发,这是一个独立实现,与 Cognition 无关。
实测效果
9 道真实开源项目的题(SWE-rebench,Python),每题跑 2 次,用隐藏测试判定对错。Lead 为 GPT-6 Astra(high),Sidekick 为 GLM-5.3-Flash(high):
| 做对 | 总花费(按 API 价格估算) | |
|---|---|---|
| GPT-6 Astra 单独 | 9/18 | $39.17 |
| Fusion:GPT-6 Astra + GLM-5.3-Flash | 11/18 | $18.07(便宜 54%) |
| Fusion:GPT-6 Astra + Grok 4.6 | 13/18 | $41.27(不省钱) |
- 花费是按各家 API 公开价格换算的估算,不是账单。
- 局限:样本小(9 题 × 2 次)、只测了 Python、公开题目可能出现在模型训练数据里。
- 详细方法、原始数据和每一轮的结论见 docs/EVIDENCE.md。
对照 Devin 自己的 Fusion: 两边用同一对模型,Lead 是 GPT-6 Astra(high),Sidekick 是 SWE-2。题目、工作区和隐藏测试完全相同。
排除被污染的尝试后,四个组别都干净的题剩 4 道,结果如下:
| 做对 | 花费 | |
|---|---|---|
| 本插件:Astra + SWE-2 | 4/4 | $2.73 |
| Devin Fusion:Astra + SWE-2 | 3/4 | $4.81 |
| Devin,Astra 单独 | 3/4 | $8.13 |
- 样本只有 4 道题、每题 1 次,不能据此说谁更强,也不代表与 Devin 同等水平。
- SWE-2 两边都按 $0 计价,所以花费都是 Lead 的。
- 本插件的耗时约为 Devin 的 3.4 倍。
- 排除了哪些尝试、为什么排除,以及方法和原始数据,见 docs/EVIDENCE.md。
怎么用
- 按 安装说明 装好插件。
- 打开 设置 → Fusion,选择 Lead 和 Sidekick。可以选 DSH 里任何已登录的模型。
- 在模型菜单里选择 Fusion · 自动,像平时一样对话。
搭配建议: 省钱靠的是 Sidekick 比 Lead 便宜得多。选一个强的前沿模型当 Lead,再选一个价格低很多(最好 5 倍以上)的模型当 Sidekick。两者价格越接近,越省不了钱。
工作方式
- 普通对话:Lead 直接回答,和用普通模型一样。
- 需要改代码时:Lead 把任务交给 Sidekick。任务说明里带着用户需求的原话,以及验收命令。
- 验收:
- Sidekick 交回结果后,DSH 在真实环境里运行验收命令。
- Lead 审查改动,并且必须对用户的每一条硬性要求给出结论和证据,缺一条都不能通过。
- 原本就失败的测试(例如缺少可选依赖),可以标成"只要求不新增失败"。
- Sidekick 改写了原有测试时,会被单独标出来,Lead 必须确认过才能通过。
- 返工:不通过就把具体问题打回给同一个 Sidekick 继续改。
- 如果发现任务说明里允许改的文件不够(例如另一个测试文件还写着旧行为),Lead 可以在返工时把它加进可改范围。只能加、不能减,每次都会留下记录。
- Lead 不写代码:这不是靠提示词约束,而是由程序保证的:
- Lead 没有写文件的工具;
- 它执行的 shell 命令跑在 DSH 的只读沙盒里。
- 唯一的例外:程序判定 Sidekick 确实做不完时,才解锁 Lead 接手。 例如 2 轮返工后检查仍然失败,或者 Sidekick 用完了步数、反复卡住。接手时:
- Lead 只能改任务允许的文件;
- 必须通过同样的验收;
- 任务结束后恢复只读。
- 额度用完或出错:Lead、Sidekick 各自处理。可以换模型继续,也可以定时继续;进度保留。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Q00/ouroboros
crafter-station/petdex
anywhere-labs/Agents-Anywhere
amlyczz/dsh-agy-link
opencues/opencues
chaos-03x/dsh-agy
skyf0xx/hedgehog