DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Tavern Preset Roles — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
T

dsh-tavern-preset-roles

Tavern Preset Roles

DSH Tavern: Send messages according to each preset entry’s own role during play (the beginning, middle, and end sections are no longer forced to system/user)

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Lindemellis/dsh-tavern-preset-roles#9447c15d902d25a9bc945cae0f3fae8f5d045b6e
READMECompatibilityVersions

Compatibility and provenance

Tavern Preset Roles is published as dsh-tavern-preset-roles and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/7/2026

Versions

0.1.0stable
10/7/2026
Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/7/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

README

dsh-tavern-preset-roles

DSH Tavern 游玩时,预设条目按自身的 role 发送,不再被强制成 system / user。

预设的导入、开关、前中后排序、应用到本局,全部沿用 DSH Tavern 自带的「预设库」,本插件只在请求发出前改写角色和位置:

段DSH 原行为本插件
前段拼进唯一的 system 消息每条单独成消息,用条目 role;DSH 自己的人物卡/世界书等 system 材料放在其后(systemPosition)
中段塞进本轮 foreground-frame 的写作规则从 frame 里剪出,按条目 injection_depth 插进对话,用条目 role
后段强制 user,并与相邻 user 合并剪出后按顺序追加在末尾,用条目 role(assistant 即预填)

安装

已在 DSH Tavern 2.5.0(DSH 0.1.5-rc.2,Windows 桌面版)上使用。下面的 <DSH Tavern> 指 DSH Tavern 的安装目录(里面有 DSH Tavern.exe 和 data 文件夹)。

  1. 把本仓库克隆到 DSH Tavern 安装目录之外的任意位置,例如 D:\dsh-plugins\dsh-tavern-preset-roles(放在外面,升级时不会被清掉)。
  2. 关闭 DSH Tavern,编辑 <DSH Tavern>\data\harness\profiles\tavern\package.json:
    • 在 dependencies 里加一行 "dsh-tavern-preset-roles": "link:D:/dsh-plugins/dsh-tavern-preset-roles"(换成你的路径,用正斜杠);
    • 在 dsh.profile.bundles 数组末尾加上 "dsh-tavern-preset-roles"。
  3. 建立链接(PowerShell):
    New-Item -ItemType Junction -Path "<DSH Tavern>\data\harness\profiles\tavern\node_modules\dsh-tavern-preset-roles" -Target "D:\dsh-plugins\dsh-tavern-preset-roles"
    
  4. 启动 DSH Tavern。

DSH Tavern 升级时会保留你自己加的 bundle 和依赖。卸载:删掉 package.json 里加的两处和上面的链接,再重启。

改了插件代码或 cordis.patch.yml 之后需要重启 DSH Tavern;只改前端(lib/client.js)时按 Ctrl+R 刷新即可。

注意

本插件不改 dsh-tavern 的代码,但依赖它的一些内部结构(见下文)。dsh-tavern 升级后如果这些结构变了,插件可能失效。设计上失效时尽量原样放行,不影响酒馆本身;遇到问题请开 issue 并注明 DSH Tavern 版本。

配置(cordis.patch.yml)

  • front / middle / back:某段设为 false 则该段保持 DSH 原样
  • systemPosition:after-front(默认)或 first
  • debug:在 DSH 日志里打印每次改写了几条

不改写、原样放行的情况

  • 非游玩请求(摘要、后台结算等带 purpose 的请求)、silly 对话、卡片工作台
  • 旧存储格式的对话(chats/<id>/snapshots/)
  • 文本对不上(例如 DSH 升级改了组装方式):日志里会有提示,请求照常发送

已知限制

  • DeepSeek 接口原样保留中间位置的 system 消息;走 pi-ai 的服务商(Gemini、Claude、OpenAI 等)只认开头一条 system,后面的 system 会被它的适配器转成 user。
  • 依赖 dsh-tavern 的内部结构:请求标记 dsh-tavern.request-handled、@deepseek-ai/dsh-system-prompt、foreground-frame,以及 lib/domain/runtime-presets.js、native-conversation-storage.js。