awol2005ex3/dsh-role-manager ↗★ 0
dsh-role-manager
DeepSeek Harness (dsh) plugin: manage named roles, each with a preset system prompt. The active role is injected into the system prompt (replacing it before the conversation starts, appending afterwards). Ships a host service plus a Web client UI.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:awol2005ex3/dsh-role-manager说明文档
阅读完整 README ↗配置(cordis.patch.yml 可覆盖)
| 字段 | 默认 | 说明 |
|---|---|---|
storagePath | ~/.dsh/roles.yaml | 角色存储文件路径 |
defaultRole | 无 | 首次启动时默认激活的角色 id(可选) |
sectionOrder | 1 | 追加模式下分节在系统提示词中的排序 |
replaceBeforeStart | true | 对话未开始时是否替换(而非追加)系统提示词 |
使用
- 打开 dsh Web 界面,左侧侧边栏底部会出现「🎭 角色」入口(若未检测到侧边栏插槽,则回退为左下角浮动按钮)。
- 点击打开面板 → 「新建角色」填写名称、提示词与介绍页 HTML(可选)→ 「保存」。
- 「应用选中角色」将把该角色设为当前活动角色,并按上述规则注入系统提示词;若配置了介绍页,空白会话首页会同步显示该角色的介绍内容。
- 列表中已配置介绍页的角色会显示「介绍」按钮,可随时预览(弹层渲染,点「关闭」或遮罩空白处关闭)。
- 「清空角色」取消当前角色(不再注入额外提示词,首页恢复默认标题)。
介绍页为自由 HTML 片段(如
我能做什么 …),直接渲染在首页 hero 区,容器居中、超高可滚动。