xiaoxianyu-office/dsh-router-flash 预览 preview

xiaoxianyu-office/dsh-router-flash

DSH bundle 插件:V4 Flash 神模式(opencode-go)agent preset 分发包,dsh plugin add 安装后自动同步 router-flash preset。

Project Overview项目介绍

This repository is a DSH-native bundle plugin package that provides an optimized agent preset for the deepseek-v4-flash model hosted on opencode-go. It addresses the common "ghost mode" issue where the Flash model produces shallow, low-quality outputs without proper prompting. By adding pre-configured personas and deep thinking anchors, it helps the model produce more thoughtful, high-quality outputs. To install, you run the dsh plugin command from your terminal, add the GitHub repository reference with the correct version tag, then edit your DSH settings.yaml to set this preset as the default. It automatically adapts to Linux, macOS, and Windows, matching the correct shell for your operating system out of the box.

After installation and configuration, you just restart DSH and any new session will automatically load the router-flash preset paired with the deepseek-v4-flash model. You can submit your task directly, and the preset will inject five thinking anchors: classification, review, off-topic correction, deep thinking, and decision closure. This optimizes the model's output process before it starts working on your request. The preset is especially well-suited for complex build tasks like creating large projects from scratch, as it helps the model plan thoroughly and reduce common errors that come from shallow thinking. Non-Flash models are not affected and will still use the original routing logic.

This project is open source under the MIT license, and it requires DSH version rc.6 or newer to work, along with access to the deepseek-v4-flash model from opencode-go. It fixes several issues found in the original routing preset, including broken dynamic injection and timing problems, by merging all prompts statically which makes it more simple and reliable. When you uninstall the plugin bundle, it does not automatically delete the installed preset files, which prevents accidental deletion of any custom changes you may have made. If you want to completely remove the preset, you will need to manually delete the directory and update your DSH settings file.

这是一个专为DeepSeek Harness(DSH)打造的原生bundle插件包,用于适配opencode-go提供的deepseek-v4-flash模型。它解决了Flash模型默认引导条件不佳导致的「鬼模式」问题,通过注入最优的深度思考引导提示,让模型切换到高质量输出的「神模式」。用户可通过DSH自带的插件命令一键安装,安装后修改配置文件即可启用,支持Linux、macOS、Windows三平台自动适配。

安装配置完成并重启DSH后,新建会话会自动加载router-flash预设配合deepseek-v4-flash模型使用。用户只需要直接提交任务,预设会自动注入分类、回顾、深度思考、决策闭环五个思考锚点,优化模型的输出流程。这个预设特别适合处理从零开始开发大型项目这类复杂构建任务,能有效提升交付质量,减少低级错误。

本项目基于MIT许可证开源,依赖DSH rc.6以上版本,以及opencode-go提供的deepseek-v4-flash模型。它修复了原版router preset存在的动态注入时序问题,改为静态合并引导,更加简单可靠。卸载插件时不会自动删除已安装的预设文件,避免用户自定义修改被误删,如需彻底移除需要手动操作。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 12 stars - an early-stage project星标 12,属于早期项目
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 -w github:xiaoxianyu-office/dsh-router-flash#v0.1.0

把 xiaoxianyu-office/dsh-router-flash 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-router-flash

让 opencode-go 的 DeepSeek V4 Flash 从「鬼模式」切换到「神模式」的 dsh agent preset 标准分发包。

标准 DSH bundle 插件包:安装后自动把 router-flash preset 同步到 ~/.dsh/.agent-presets/router-flash,重启 DSH 即生效。原 install.sh 手动复制方式已由本 bundle 替代。

这是什么

一个 DeepSeek Harness(dsh)的 agent preset 分发包。它把 dsh-router-standard 研究里为 Flash 标定的最优引导(w7 persona + 深度思考锚)适配到 opencode-go provider 的 deepseek-v4-flash 上。

核心问题:Flash 在默认(无引导)条件下会进入「鬼模式」——思考浅、草草动手、质量差。这不是 Flash 能力不行,而是引导条件不对。补上正确的引导(分类 + 回顾 + 反跑题 + 深度思考 + 决策闭环),Flash 就能进入「神模式」——深度规划、高质量交付、自测零错误。

安装

dsh plugin --profile web add -w github:xiaoxianyu-office/dsh-router-flash#v0.1.0

安装后重启 DSH:router-flash preset 会被自动安装到 ~/.dsh/.agent-presets/router-flash。

然后编辑 ~/.dsh/settings.yaml,把默认 agent preset 指向它(模型也需指向 Flash):

agent-default-model:
  provider: opencode-go
  model: deepseek-v4-flash
  reasoningEffort: max
agent-presets:
  default: router-flash

再次重启 dsh,新会话即使用 router-flash preset + deepseek-v4-flash 模型。

升级

重复 add 并指定最新 tag,不要使用 update 选择 Git 引用:

dsh plugin --profile web add -w github:xiaoxianyu-office/dsh-router-flash#v0.1.0

重启 DSH 后,包内变更的 preset 文件会自动覆盖到 ~/.dsh/.agent-presets/router-flash。

卸载

dsh plugin --profile web remove dsh-router-flash

卸载后重启 DSH。注意:bundle 安装的 preset 文件(~/.dsh/.agent-presets/router-flash)会保留,如需彻底移除可手动删除该目录,并在 ~/.dsh/settings.yaml 中移除 agent-presets.default 指向。

使用

  1. 安装并配置后重启 dsh,新会话会自动使用 router-flash preset + deepseek-v4-flash 模型。
  2. 直接提交任务即可。persona 会自动注入「分类 + 回顾 + 反跑题 + 深度思考 + 决策闭环」五个锚。
  3. 会话启动后,模型的 system prompt 应包含:
    You are a helpful assistant.
    Before acting, decide the task type (build or fix)...
    Before acting, briefly review what you have already done...
    Do not run environment checks (echo, whoami, uname...)...
    Think deeply about the architecture, edge cases...
    Produce when your information is complete...
    

跨平台支持

本 preset 三平台通用,dsh 会自动选择 shell 工具:

系统 shell 状态
Linux bash ✅ 实测
macOS bash ✅ 自动适配
Windows pwsh(PowerShell) ✅ 自动适配

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

← 上一个 Prev dsh-attachments 下一个 Next dsh-beyond-glass →