wuzhigouno-collab/dsh-rp-composer
TriComposer · DSH web 端 RP 结构化输入插件:台词/动作/心理分框填空、模板组装发送,从输入层消除 AI 对玩家言行的成分误识别。Structured tri-channel input composer for LLM roleplay on DeepSeek Harness.
Project Overview项目介绍
TriComposer is a roleplay input enhancement plugin for the DeepSeek Harness web client. It splits the input area into three independent fields for dialogue, action, and thought, omits empty segments, and assembles the message using a labeled Chinese template to prevent the AI from confusing these components. It supports brief, detailed, and collapsed views with persistent state. Use it for long RP sessions where mixed inputs cause misinterpretation. Note: it docks onto the official input slot, does not replace the default input area, and requires a compatible DSH parsing protocol.
TriComposer 是一款面向 DeepSeek Harness web 端的角色扮演输入增强插件。它把输入框拆为台词、动作、心理三段独立填空,留空自动省略,并按中文说明模板组装发送,从源头消除 AI 对成分的混淆识别;支持简要、详细、折叠三视图与状态持久化。适用长篇 RP 中玩家输入混合成分的拆分提交。注意:它仅挂载于官方输入槽位,不替换默认输入框,需配合 DSH 配套解析协议使用。
请帮我了解并安装插件:【dsh-rp-composer】【https://github.com/wuzhigouno-collab/dsh-rp-composer】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:wuzhigouno-collab/dsh-rp-composer
把 wuzhigouno-collab/dsh-rp-composer 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
TriComposer · 三段输入(dsh-rp-composer)
一个面向 DeepSeek Harness(DSH)web 端的角色扮演输入增强插件。
在 RP 对话中,玩家的一条输入往往混合台词、动作、心理三种成分。纯文本无标记时,AI 容易混淆识别——让 NPC"听见"了心理活动、把动作当成对话、或替玩家补全并未发生的言行。TriComposer 把输入框拆成三个填空框,用户只需分别填写,插件自动按约定模板组装发送,从源头消除成分混淆。
功能
- 三段填空:台词 / 动作 / 心理三个独立输入框,任意组合,留空自动省略
- 模板组装:不用符号包裹,自动用中文说明每个成分("台词(NPC 能听到):…"),与 RP 输入解析协议(如 Gent 模式预设)直接兼容
- 双视图:简要(横向单行,快进短句)/ 详细(纵向多行,长段落可视范围更大,支持 Ctrl+Enter 发送)
- 折叠收纳:收起为一条标题栏,界面状态(视图/折叠)持久化在浏览器
- 零侵入:挂载于官方
conversation.input.dock槽位,不替换默认输入框,不影响 Agent RP、便携酒馆等其他插件 - 标准管线:组装结果走"写入草稿 + 提交"的标准发送路径,会话记录、撤回、重发行为与手敲完全一致
演示
| 简要(横向) | 详细(纵向) | 折叠 |
|---|---|---|
![]() |
![]() |
![]() |
安装
# 本地目录安装(link 模式,改代码即时生效)
dsh plugin --profile web add /path/to/dsh-rp-composer
# 或从 GitHub 安装
dsh plugin --profile web add github:wuzhigouno-collab/dsh-rp-composer
安装后重启 web 端(dsh web),进入任一会话即可在输入框上方看到面板。
技术要点
- 纯客户端插件:Node 半为空壳,浏览器半经
dsh.client声明加载 - UI 挂载:cordis
slots服务,conversation.input.dock(list 型、session 作用域) - 发送:
props.inputActions.setDraft(text)+inputActions.submit()(InputZone 标准套件) - 模板:DSH 双面插件结构(
dsh.plugin.json+cordis.patch.ymlbundle 声明 + ModuleLoader 格式 client bundle),参考 dsh-portable-tavern
许可
MIT(见 LICENSE)



MJorgin/dsh-media-skills
Sal7one/DSH-Design-Studio
ysr666/dsh-vision-router
Anionex/dsh-vision-toolkit
shanliuling/dsh-image-gen
Mars-Sea/dsh-commandcode-provider
zhaoolee/notes