rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lwlwilliam/dsh-plugin-bind-workspace-model
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个 DeepSeek Harness 插件 bundle:给每个工作区记住默认的 provider / 模型 / 推理强度 (reasoning effort)。之后在这个工作区里新建的会话会直接以该默认模型开始,不用每次手动切换。
包名:@local/dsh-plugin-bind-workspace-model。@local/ 是本地占位 scope(不发布到 npm
registry),安装走下面的 Release .tgz 或 GitHub 仓库两种方式。
之后该工作区新建的会话就会以这个选择开始。具体语义:
每次 push 到 main / master,仓库自带的 GitHub Action 会为这次提交打包并发布一个
build-<提交短SHA> 的 GitHub Release,资产是:
dsh-plugin-bind-workspace-model-<version>-<短SHA>.tgz
dsh-plugin-bind-workspace-model-<version>-<短SHA>.tgz.sha256
每个 Release 里同时有两套资产:
dsh-plugin-bind-workspace-model-<version>-<短SHA>.tgz:这次提交的确定版本(带版本号与提交
短 SHA,可追溯,适合固定版本安装);dsh-plugin-bind-workspace-model.tgz:固定文件名的“最新构建”副本,用于下面这个稳定地址。https://github.com/<owner>/<repo>/releases/latest/download/dsh-plugin-bind-workspace-model.tgz
GitHub 的 releases/latest/download/<文件名> 会重定向到最新一个 Release 里同名资产,所以这个
地址长期不用改:以后每次 push,安装同一个地址拿到的就是最新构建。把它粘贴进 Web GUI 的
Plugins → Add plugin 输入框,或命令行安装:
dsh plugin --profile web add https://github.com/<owner>/<repo>/releases/latest/download/dsh-plugin-bind-workspace-model.tgz
打开仓库的 Releases 页面,找对应的 build-* Release(资产名里带版本号与提交短 SHA,据此
确认它对应哪次提交),复制该 .tgz 资产的下载地址,然后:
dsh plugin --profile web add <release 里 .tgz 的下载地址>
也可以把同一个 .tgz 下载地址粘贴进 Web GUI 的 Plugins → Add plugin 安装框。安装前可选核对:
sha256sum -c dsh-plugin-bind-workspace-model-<version>-<短SHA>.tgz.sha256
说明:GitHub Actions 自动发布的 Release 没有“升级”语义;从 tarball 安装的插件不会出现在 “Versions”更新列表里,升级方式是卸载后重新用同一个稳定地址安装。
仓库根目录就是插件包根目录(仓库地址由你自己的 GitHub 仓库决定,下面的 <owner>/<repo> 是占位符)(package.json、index.js、client.js 都在根上,没有构建步骤):
dsh plugin --profile web add github:<owner>/<repo>
等价的写法是 https://github.com/<owner>/<repo>(建好仓库后把 <owner>/<repo> 换成实际地址),或把它填进
Plugins 页面的安装框。代价是每次安装/升级都走 git 拉取,版本与校验和不如 Release 包可追溯。
engines.dsh 版本要求,否则 DSH 会拒绝安装。$DSH_HOME/workspace-default-model/bindings.json,是一个很小的
JSON 文件。每条记录按工作区 id 保存(同时记录规范化路径,便于迁移);未注册的目录退化为
按路径保存($DSH_HOME 由 Host 决定,默认通常是 ~/.dsh)。workspace-default-model/ 目录)。纯 JS、无构建步骤。冒烟测试自带伪造的 Host / Client 上下文,不需要真实的 Harness 实例:
node --check index.js
node --check client.js
node test/host-smoke.mjs
node test/client-smoke.mjs
本地开发安装(把当前 checkout 直接链进 web profile):
dsh plugin --profile web add /abs/path/to/dsh-plugin-bind-workspace-model
改动 Host 半通常会在 profile 重载时生效;改动 Client 半需要刷新页面。
CI:.github/workflows/ci-release.yml —— push 到
main / master 或手动触发时跑检查、npm pack 打包并发布 per-commit Release;pull request
只跑检查。重跑同一提交会复用已有 Release 并覆盖资产。
| 文件 | 作用 |
|---|---|
index.js |
Host 半:按工作区读写绑定、模型候选,并在新会话创建时应用默认模型。 |
client.js |
浏览器端:工作区 ... 菜单里的 默认模型 入口与选择对话框。 |
cordis.patch.yml |
bundle patch,让 Host 与 Client 两半被加载。 |
locale/*.json |
Plugin Manager 的显示元数据(标题/描述)。 |
icon.svg |
插件图标。 |
test/*.mjs |
不依赖真实 Harness 的冒烟测试。 |
.github/workflows/ci-release.yml |
CI:跑检查,并为每次提交打包发布 GitHub Release。 |
A DeepSeek Harness plugin bundle that gives each workspace its own default provider / model / reasoning effort. New sessions created in that workspace start on that selection; sessions with history are left untouched.
$DSH_HOME/workspace-default-model/bindings.json on the Host. Deleting that file
clears all bindings; uninstalling the plugin does not remove it.Install from the per-commit .tgz on the latest build-* release page, or straight from the repo:
dsh plugin --profile web add <release .tgz URL>
dsh plugin --profile web add github:<owner>/<repo>
Refresh the Web page once after installing so the new client bundle loads (the Host half loads live). Known limits: the binding is applied at session creation (saving a new default also retargets not-yet-started sessions of that workspace), the model catalog reflects currently mounted providers (a provider that cannot list models is reported as a catalog failure), and storage is a single small JSON file on the Host.
Development:
node --check index.js && node --check client.js
node test/host-smoke.mjs
node test/client-smoke.mjs
dsh plugin --profile web add /abs/path/to/repo # install the local checkout CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。