dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:JupiterWalker/dsh-prewalk
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Prewalk mode for DeepSeek Harness: the first step of every turn runs on your strong model to reason and make the plan, and the following steps continue on the weak model.
给 DeepSeek Harness(DSH)加一个 agent preset「Prewalk 模式」:每个 turn 的第一步用强模型做推理、打样、把计划立起来,之后的步骤交给弱模型照着做。花一份强模型的推理,省掉后面所有步骤的贵 token。
一个 turn 里最贵也最关键的往往只有第一步——读懂需求、想清楚怎么做、把第一刀切准。后面多数步骤是执行:改文件、跑命令、贴结果。dsh-prewalk 让这两段走不同的模型,而不需要你手动切换。
用 DSH 自带的插件管理安装本目录(绝对路径),随后刷新 Web 页面:
# 在 DSH 会话里执行
plugin_manager action=install_bundle target=/绝对路径/dsh-prewalk
装好后在会话的 preset 选择器里挑「Prewalk 模式」,再去 Settings → Prewalk 选好强/弱两个模型即可。依赖 @deepseek-ai/schemastery 从公共 npm 解析,无需额外配置。
agent/status 变 running)与 turn 收尾(agent/turn-stopping)两个时机把路由切回强模型。agent/pre-step),在路由已被固定的前提下把下一步切回弱模型。agent.model.select({ provider, model }) 这一条合法入口;两个模型任一未填时不做任何切换,会话按宿主默认路由运行。strongProvider / strongModel / weakProvider / weakModel。presetForSession(session) === 'prewalk',其它 preset 的会话不受影响。agent/status、agent/turn-stopping、agent/pre-step);宿主升级后如行为变化,需要跟着适配。node --check index.js # 宿主侧语法检查
node --check client.js # 浏览器侧语法检查
npm pack # 产出 local-dsh-prewalk-<版本>.tgz
mkdir -p dist && cp local-dsh-prewalk-<版本>.tgz dist/dsh-prewalk.tgz
gh release create v<版本> local-dsh-prewalk-<版本>.tgz dist/dsh-prewalk.tgz
dist/dsh-prewalk.tgz 这个名字是刻意的:插件市场条目指向 releases/latest/download/dsh-prewalk.tgz,所以每次发版都要附上这个同名资产,市场会自动跟到最新版,不必再提市场 PR。
目录结构:
index.js 宿主侧插件(按 turn/step 切换模型)
client.js 浏览器侧插件(设置页 + 输入区下拉)
cordis.patch.yml 插件组成(insert @local/dsh-prewalk 与 prewalk preset)
icon.svg 插件图标
locale/en.json 设置页展示用的英文标题与说明
locale/zh.json 设置页展示用的中文标题与说明
assets/ README 与插件市场用的图标
未声明许可证;如需复用请先联系作者。
A DeepSeek Harness (DSH) agent preset called Prewalk mode: the first step of every turn runs on your strong model to reason and lay down the plan, and the following steps continue on the weak model. You pay for strong reasoning once per turn instead of on every step.
The expensive, load-bearing part of a turn is usually its first step — reading the request, deciding the approach, taking the first accurate cut. The rest is execution: edit a file, run a command, paste the result. dsh-prewalk splits those two phases across two models, without you switching models by hand.
Install this directory (absolute path) with DSH's plugin manager, then reload the Web UI:
# inside a DSH session
plugin_manager action=install_bundle target=/absolute/path/dsh-prewalk
Then pick "Prewalk mode" in the session preset selector and choose the two models under Settings → Prewalk. The @deepseek-ai/schemastery dependency resolves from public npm, so nothing else needs configuring.
agent/status turning running) and at turn teardown (agent/turn-stopping).agent/pre-step), the route for the following step is handed back to the weak model.agent.model.select({ provider, model }); if either side is unset, nothing is switched and the session keeps the host's default route.strongProvider, strongModel, weakProvider, weakModel.presetForSession(session) === 'prewalk'. Other presets keep their own routing.agent/status, agent/turn-stopping, agent/pre-step); a host upgrade that changes them needs a follow-up adaptation.node --check index.js # host half syntax check
node --check client.js # browser half syntax check
npm pack # writes local-dsh-prewalk-<version>.tgz
mkdir -p dist && cp local-dsh-prewalk-<version>.tgz dist/dsh-prewalk.tgz
gh release create v<version> local-dsh-prewalk-<version>.tgz dist/dsh-prewalk.tgz
That stable dist/dsh-prewalk.tgz name is deliberate: the marketplace entry points at releases/latest/download/dsh-prewalk.tgz, so each release just needs to attach that same-named asset and the entry follows the newest version without another marketplace pull request.
Layout:
index.js host half (per turn/step model routing)
client.js browser half (settings page + composer dropdowns)
cordis.patch.yml composition (inserts @local/dsh-prewalk and the prewalk preset)
icon.svg plugin icon
locale/en.json English title and description for the settings page
locale/zh.json Chinese title and description for the settings page
assets/ icon used by the README and the marketplace
No license declared; contact the author before reuse.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。