dsh-routing-suite README

The project's README from github.com/yjh051108/dsh-routing-suite. As one markdown file: README.md.

dsh-routing-suite — 注入器 × 思维模式路由 × 分级模式 套装

一个仓库装齐三件套:运行时注入器(免重启运行时管理层)+ 思维模式路由预设(任务感知推理模式,P1-P23 实测)+ 分级任务协议(脑暴出题 → 规格化计划 → 打卡制 → 组收官 → 终验,含红队门与审计端点)。

中文 | English

组件入口(快速跳转)

组件 说明 入口
injector 运行时注入器:dev_* 工具全家桶(注入/热重载/卸载/侧挂转正/路由自愈) injector/README.md · 文档
preset 思维模式路由预设(router-standard / router-spec,按模型 persona 路由) preset/README.md · 实验报告
graded 分级模式:会话级两级任务协议(6 工具+三模式+小类模式粒度+红队门+审计端点+超级面板) graded/README.md · 架构 · 理论 · 实测数据

研究与数据(graded)

"模型也会偷懒——我们测到了,还做了对抗" —— 分级模式插件的公开研究位:

一键安装

dsh plugin --profile web add github:yjh051108/dsh-routing-suite

本套装已含上述三组件(injector/preset/graded 均为仓库内普通目录,内容直接入库); graded 发布物:graded/dsh-external-dsh-graded-mode-0.0.1-rc1.tgz(或 Release 附件)。

DSH Target:>=0.1.0-rc.6 <0.2.0(已跟进 rc.8 / 0.1.1-rc.2 / 0.1.2-alpha.1)

DSH 目前处于 developer preview,官方明示会有破坏性变更(breaking changes)。 本仓库的版本跟进记录见 preset/CHANGELOG.md。

安装链(三步)

# 1. 拉套装(单仓库:injector/preset 内容已直接入库,无需 submodule)
git clone https://github.com/yjh051108/dsh-routing-suite.git
cd dsh-routing-suite

# 2. 一键安装(注入器装配 + 预设复制 + 布局自检 + 提示重启)
.\install.ps1

或手动:

# 步骤 1:装配注入器(官方装配,重启后由 bundles 接管)
dsh plugin --profile web add .\injector
# dsh 不在 PATH 时:npx '@deepseek-ai/dsh' plugin --profile web add .\injector

# 步骤 2:安装 router 预设(每个预设目录平铺复制到 .agent-presets 下,DSH 只扫一级子目录)
$target = Join-Path $env:USERPROFILE '.dsh\.agent-presets\router-standard'
Copy-Item -Recurse .\preset\router-standard $target

$target = Join-Path $env:USERPROFILE '.dsh\.agent-presets\router-spec'
Copy-Item -Recurse .\preset\router-spec $target

# 步骤 3:重启 DSH → 新会话选择 Router Standard / Router Spec (experimental)

注意:不要复制 preset 整目录(会多套一层,DSH 发现不了预设)。

组件

路径 仓库 版本 作用
injector/ dsh-super-injector v0.3.3 运行时注入器:dev_* 工具全家桶(注入/热重载/侧挂转正/卸载/路由自愈);github: 装配由 prepare 钩子自动构建
preset/ dsh-router-standard v0.3.0 … 主线 v1.19.1/v34 思维模式路由预设:router-standard(分类 persona + 完整 sections)/ router-spec(深度思考优先)。router-pro 为规划中(planned),未随 v0.3.0 发布
graded/ dsh-graded-mode v0.0.1-rc1 graded 模式:会话级两级任务协议(脑暴选择题对齐 → 北极星定稿 → 规格化计划 → 按规格注入 → 打卡制 → 组收官 → 终验);6 工具 + 三模式 + 小类模式粒度 + 红队门 + 审计端点;graded/dsh-graded-mode-3.2.0.tgz 可直接 dsh plugin --profile web add

版本号以各组件仓库的 git tag 为准(列内链接直达对应 Release)。

三个组件随本仓库统一演进(injector/、preset/ 与 graded/ 已是仓库内普通目录,内容直接入库);上游独立仓库保留用于独立发布,后续可转镜像/归档。预设安装目录为 preset/router-standard(已平铺,无额外嵌套)。

router-standard 预设能力(P1-P23 实测摘要)

v0.3.0 变更(真实装配链路修复)

文档

许可证

MIT。致谢:xiaobright/modeltest(V4.1b 评测)、xiaobright/dsh-anchored-standard(锚定机制)。

dsh-routing-suite (yjh051108/dsh-routing-suite)

Searching Database…

What is this?dsh-routing-suite is a three-part kit for the DSH agent runtime: a runtime injector, a task-aware reasoning-mode router preset, and a graded task protocol — all shipped in one repo.
Is this one plugin or several separate tools?One repo, three components: the injector (inject/hot-reload/uninstall dev tools), the router-standard/router-spec reasoning presets, and the graded-mode plugin with 6 tools, a red-team gate and audit endpoints.
How do I get it installed?Use the one-click three-step chain against DSH >= 0.1.0-rc.6; the graded release adds directly via 'dsh plugin --profile web add'. Don't copy the preset folder by hand — one extra nesting layer and DSH won't discover it.
What needs to be on my machine first?A DSH runtime (target >= 0.1.0-rc.6) and Node.js >= 22; the injector's git assembly auto-builds through a prepare hook, so no separate build steps are listed.
Is DSH itself stable to build on right now?Not fully — DSH is officially a developer preview with declared breaking changes, and router-pro is planned but not shipped with the current v0.3.0 preset.
Does it run on all three desktop OSes?Yes — it's JavaScript on Node.js >= 22, and the repo is tagged for Windows, macOS and Linux.
How does the router change how the model reasons?Each task is classified into a behavior band: spec (plan-collective), react (executor) or mixed (a trap to avoid), with weak letting the model self-classify. Fixed guidance is injected alongside every user message (92-94% cache hits), and personas are tuned per model.
Why did the authors build the graded protocol?They measured that models slack off on long tasks: without the protocol, late-stage sessions dropped to '1 tool call / 0 image reads', while protocol chains stayed engaged. With the triple anchor (review + convergence + anti-drift), open-task completion went from 0% to 100%.
What does a graded-mode session actually enforce?A session-level two-tier protocol: brainstorm alignment questions, a north-star goal sign-off, a spec'd plan, check-ins along the way, then group wrap-up and final verification — guarded by a red-team gate and audit endpoints.
Can I re-run their measurements on my own sessions?Yes — 'node scripts/measure.mjs your-session.jsonl' recomputes the same diligence metrics from any session log and outputs sanitized numbers only, so you can verify the laziness findings yourself.
Creator
yjh051108
Size
1.3 MB
Stars
7K
Age
2mo
Commits · 90 Days