rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:L-Shy-P/dsh-preset-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness(DSH)桌面端用的 Agent 预设管理插件:在会话中途切换预设、按预设注入工具引导、管理子代理可用的预设,并支持预设包的导入导出。仓库同时附带一个开箱可用的预设 「标准模式·加强版」。
适用版本:DSH
0.2.1(desktop profile,~/.dsh/profiles/desktop)。
list_agent_presets、set_my_preset、set_subagent_preset。agent_preset 时注入默认预设、拒绝不在允许列表里的选择(孙代理及更深层级同样生效)。/preset [id] 切换/列出预设,/preset-export <id>、/preset-import <base64> 导入导出预设包。better-standard,order 2。插件清单与内置「标准模式」完全一致(工具指导、计划策略、AGENTS.md 摘要、技能目录、运行时上下文都保留),差异只有两点:
agent_preset 为子代理选择预设。该预设只使用 DSH 自带插件,不需要额外安装任何插件。通过插件市场安装时,它会随包的 bundle patch 一起写入;手动安装时由 install.mjs 追加。
⚠️ 不要只输入包名
dsh-preset-manager。 npm 上有一个同名但完全无关的包(他人的 "Preset doctor",latest 0.6.0)。在 DSH 的安装框里 输入裸名字会从 npm 装到那个包,表现为「装完既没有『标准模式·加强版』预设,也没有预设选择器」。 本插件没有发布到 npm,请始终使用下面的完整地址(本地路径 / tgz URL / 仓库 URL)。 判断装对没有:看插件版本是不是1.0.0。
在「插件 → 发现 → 索引源(Index sources)」里添加本仓库的索引:
https://cdn.jsdelivr.net/gh/L-Shy-P/dsh-preset-manager@main/index.json
如果访问不了 jsDelivr,可以换成 GitHub 原始地址:
https://raw.githubusercontent.com/L-Shy-P/dsh-preset-manager/main/index.json
之后在发现页搜索「预设管理器」或 dsh-preset-manager,点安装并重启 DSH 即可。索引里的版本固定到仓库 commit,安装的是这个仓库本身(不是 npm 包)。
dsh-preset-manager-1.0.0.zip 解压后:
dsh-preset-manager-1.0.0/
├── 安装(双击这里).cmd ← Windows 双击安装
├── 卸载.cmd ← Windows 双击卸载
├── 使用说明.md ← 给完全没接触过的人看的步骤
├── install.mjs ← 安装器本体(macOS/Linux 用 node install.mjs)
├── dsh-preset-manager-1.0.0.tgz ← 也可以喂给 DSH 的「安装第三方插件」
└── package/ ← 插件包本体(DSH 里填这个目录的绝对路径也能装)
推荐做法:解压到一个固定位置 → 完全退出 DSH → 双击 安装(双击这里).cmd → 重开 DSH。
安装器会找到 DSH 与 profile,把插件复制进 <profile>/local/dsh-preset-manager,再用 DSH 自带插件命令注册;找不到命令行时退化为直接写 package.json 的 dependencies 与 dsh.profile.bundles。两种方式都不需要手动编辑 YAML,升级/卸载也不会留下重复行。
用 DSH 界面安装(上表里的 tgz 或
package目录)时,源文件不能删除或移动,否则插件失效;用安装.cmd会把文件复制进 profile,之后可以删掉解压目录。
要求:Node.js 18+,已启动过一次 DSH 桌面端(让 profile 目录生成)。
git clone https://github.com/L-Shy-P/dsh-preset-manager.git
cd dsh-preset-manager
node install.mjs
然后在系统托盘/任务栏完全退出并重新启动 DeepSeek Harness。
可选参数:
node install.mjs --dry-run # 只打印计划,不写文件
node install.mjs --uninstall # 卸载
node install.mjs --profile <name> # 指定 profile(默认 desktop)
安装脚本会:
<profile>/local/dsh-preset-manager;dependencies 与 dsh.profile.bundles;package.json 并复制到 node_modules;cordis.patch.yml 自动插入,不需要单独导入;package.json。脚本不依赖 npm 包,也不需要联网。
/preset <id>。预设本质上是一份插件清单,导入的预设只能使用当前部署已安装的插件。DSH 发行版自带的 @deepseek-ai/* 插件、当前 profile 的 node_modules 里安装的插件、以及其他已注册预设用到的插件会被视为可用;缺失的依赖会导致导入被拒绝,并列出缺失项。
导入前会检查、导入后会等待挂载:如果预设挂载失败,脚本会自动把 profile patch 回滚到导入前的内容。需要强行导入时可以在命令里使用 --force:
/preset-import --force <base64>
安全提示:导入预设等同于往 profile 里写入并挂载任意插件声明。只导入可信来源的预设包;可用性检测只验证模块是否存在,不验证其安全性或兼容性。
<profile>/cordis.patch.yml,删除 id 为 preset-manager 与 preset-better-standard 的条目(以及设置生成的 - id: preset-manager 配置覆盖条目);<profile>/node_modules/dsh-preset-manager;若是通过 install.mjs 安装且从未保存过设置,也可以直接从备份 cordis.patch.yml.bak-preset-manager-* 恢复。
lib/index.js 宿主插件(命令、模型工具、引导、子代理策略、导入导出)
lib/client.js 浏览器 UI bundle(顶栏切换器、设置页、命令卡片)
cordis.patch.yml dsh bundle patch(插件行 + 自带预设)
presets/better-standard.yml 自带预设声明
index.json 插件市场 format 1 索引(供「索引源」使用)
install.mjs 手动安装脚本(git clone 用户)
0.2.1 的 settings/config-editor 行为;升级 DSH 大版本后请先跑 node install.mjs --check。complete persona,会丢弃其他系统提示词段,因此预设管理引导不会出现在极简模式下(这是预期行为)。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、deepseek-harness。