rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:beidou6972yh/dsh-bw-router
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
B&W = 小棒(B棒)× 灰狼(Wolf) 合作的 DeepSeek Harness 模型路由插件。
把一件任务拆成分段计划、按每段需要挑模型,并在同一个会话里切模型而不丢上下文;成本要么给出依据、要么明示不可用,绝不编数。
当前版本 v0.2.0:两个发布阻塞已修复——① 配置里的多行纯量不再让整份 profile 被跳过(
sources.config>0可复现);② 客户端输入区新增「生成计划」触发,不必再手工调接口。
context-overflow、missing-capability、price-unknown 等),不静默降级。需要 DeepSeek Harness 0.2.1-rc.2 或同线版本,Node.js >=20。
# 从 GitHub 固定 tag 安装(推荐)
dsh plugin --profile web add 'github:beidou6972yh/dsh-bw-router#v0.2.0'
# 或从 Release 的预构建 tarball 安装
dsh plugin --profile web add 'https://github.com/beidou6972yh/dsh-bw-router/releases/download/v0.2.0/dsh-bw-router-0.2.0.tgz'
npm 渠道暂不发布;GitHub 仓库与 Release tarball 是唯一发布源。
装完重启一次承载插件的宿主(dsh web)。包内 cordis.patch.yml 已声明 dsh.bundle,安装后会自动启用,无需手写 patch 行。
dsh-router-mode,草稿会带上 [路由模式] 标记),或直接说明「按路由模式执行」。[路由] 第 n/N 段 · 当前模型 · 已花 … · 下一段:…。| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /router/models |
模型发现(count/sources/filesRead/pricing) |
| POST | /router/plan |
生成分段计划与计划卡 |
| POST | /router/plan/confirm |
确认开工(可带 sessionId) |
| POST | /router/plan/swap |
开工前给某段换模型 |
| GET | /router/state |
状态栏数据 |
| GET | /router/card |
计划卡数据 |
| POST | /router/switch |
切到某段模型 |
| POST | /router/stage/finish |
段末记账 |
| GET | /router/wizard、/router/context、/router/reconcile |
只读辅助视图 |
curl -s -X POST http://127.0.0.1:3080/router/plan \
-H 'content-type: application/json' \
-d '{"taskId":"demo-1","stageNames":["分析","实现","验收"],"estimatedInputTokens":5000}'
^0.2.1-rc.2(在 0.2.1-rc.2 上实测;engines.dsh 已声明,宿主版本闸门可识别)。web。pricing=host-unpriced,只记 token 不显示预估;这是明示行为,不是错误。npm ci
npm test # 单元/回归测试(全量请在 release/* 或 feat/* 分支上跑)
npm run build # 编译 dist 与客户端 bundle
npm run verify:plan-trigger # 客户端「生成计划」端到端自测
MIT © B&W(小棒 & 灰狼)
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。