dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Persona and system-prompt manager for DeepSeek Harness: pick an AI persona from the sidebar, guide Chinese chain-of-thought, and apply it to new conversations.
给 DeepSeek Harness 的插件:在左侧栏「新会话」下方加入「人设」入口,用可视化页面管理 AI 的系统提示词(人设),并控制模型是否使用中文思维链。
--dsw-alias-* 设计变量,自适应浅色 / 深色,并尊重 prefers-reduced-motion。在 Harness 里通过插件管理器安装本包(推荐),或一行命令装进某个 profile(会自动登记 dsh.profile.bundles):
dsh plugin --profile web add github:lcalc-lcalc/dsh-persona
也可以先 clone 再安装本地目录(适合改代码):
git clone https://github.com/lcalc-lcalc/dsh-persona
dsh plugin --profile web add ./dsh-persona
桌面版(
desktopprofile)由 Electron 独占,CLI 不能直接写入;请在 Harness 的「插件」页面安装,或按下面的方式手工登记。
然后在 profile 的 package.json 中确认:
{
"dependencies": { "dsh-persona": "file:/path/to/dsh-persona" },
"dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-persona"] } }
}
用 link / 目录联接安装时,注意本包对 @deepseek-ai/schemastery 的解析:打包安装会从 profile 解析;链接安装若解析不到,会自动回退到包内 vendor/ 副本。
默认人设是示例文本(seed.js),请替换成你自己的内容。
Agent preset 已经在其作用域里注册了 deployment:persona-prefix,所以本插件不注册同名 section,而是在 system-prompt/assemble 瀑布中改写这一段文本:
parentSessionId)保持自己的委派人设,不受影响。配置字段(均为可热更字段):
| 字段 | 说明 |
|---|---|
personas | { id, name, prompt }[],人设列表 |
activeId | 当前默认人设的 id |
chineseCot | 是否注入中文思维链要求 |
cotPrompt | 中文思维链要求的文本 |
| 文件 | 作用 |
|---|---|
index.js | Host 半:可热更 Config + 提示词瀑布改写 |
client.js | 浏览器半:侧边栏图标与主面板页面(window.__ModuleLoader__ 懒加载工厂) |
cordis.patch.yml | 组合补丁:插入 persona 行 |
seed.js | 示例人设文本 |
vendor/ | schemastery 与 cosmokit 的副本,用于链接安装时的依赖回退(MIT,见各自 LICENSE) |
locale/*.json | 插件管理器显示的标题与描述 |
fork 之后欢迎把署名换成你自己——毕竟这行字是给会看页脚的人看的。
complete: true 的完整提示词段,该段会在瀑布之后覆盖人设改写。persona 配置项;若插件行未启用,页面会显示「人设插件尚未激活」。MIT © dsh-persona contributors