awol2005ex3/dsh-role-manager0

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.

包名
dsh-role-manager
版本
1.0.0
许可证
Apache-2.0
最近更新
2026年8月31日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:awol2005ex3/dsh-role-manager

配置(cordis.patch.yml 可覆盖)

字段默认说明
storagePath~/.dsh/roles.yaml角色存储文件路径
defaultRole首次启动时默认激活的角色 id(可选)
sectionOrder1追加模式下分节在系统提示词中的排序
replaceBeforeStarttrue对话未开始时是否替换(而非追加)系统提示词

使用

  1. 打开 dsh Web 界面,左侧侧边栏底部会出现「🎭 角色」入口(若未检测到侧边栏插槽,则回退为左下角浮动按钮)。
  2. 点击打开面板 → 「新建角色」填写名称、提示词与介绍页 HTML(可选)→ 「保存」。
  3. 「应用选中角色」将把该角色设为当前活动角色,并按上述规则注入系统提示词;若配置了介绍页,空白会话首页会同步显示该角色的介绍内容。
  4. 列表中已配置介绍页的角色会显示「介绍」按钮,可随时预览(弹层渲染,点「关闭」或遮罩空白处关闭)。
  5. 「清空角色」取消当前角色(不再注入额外提示词,首页恢复默认标题)。

介绍页为自由 HTML 片段(如 我能做什么 …),直接渲染在首页 hero 区,容器居中、超高可滚动。