ZelinW1/dsh-cosplay
A cosplay plugin for DeepSeek Harness.
项目介绍Project Overview
dsh-cosplay 是一个 DSH 插件,可让 Agent 按选定角色的人格、语气和守则对话,同时保留写代码、查资料、读文件等能力。它支持全局开关、SillyTavern v2 角色卡导入导出、自然语言建卡,并内置“蓝色大肥鱼”角色。适合想在所有会话中固定或切换角色扮演风格时使用。注意:“角色化思考”为概率触发,可能影响任务能力,且仅适用于 DeepSeek v4。
dsh-cosplay is a DSH plugin that makes the Agent speak with a chosen character’s personality, tone, and rules while keeping coding, research, and file-reading abilities. It offers a global toggle, SillyTavern v2 card import/export, natural-language card creation, and a built-in “blue fat fish” character. Use it when you want role-play across sessions. Caveat: character-style thinking is probabilistic, may reduce task performance, and only works with DeepSeek v4.
请帮我了解并安装插件:【dsh-cosplay】【https://github.com/ZelinW1/dsh-cosplay】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。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.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-cosplay
把 ZelinW1/dsh-cosplay 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-cosplay 🎭
让 DeepSeek Harness 的 Agent 扮演任何角色。
这是什么?
一个 DSH(DeepSeek Harness)插件。开启后,Agent 会以你选定的角色人格、语气和行为守则来对话,同时保留干活的能力(写代码、查资料、读文件正常)。内置一条「蓝色大肥鱼」;也可以自己创建任意角色,或者一句话让 Agent 帮你搜设定、生成角色卡。
功能
- 全局开关:设置页一键开/关。开着的时候所有会话都进入角色扮演;关掉立即恢复默认人格(下一轮对话生效)。
- 思考风格:默认「中立思考」——模型思考时保持专业分析,只在回复里扮演,保 Agent 能力;全沉浸可切「角色化思考」(注:概率触发,可能影响 Agent 任务能力,仅适用于 Deepseek v4,方法参考:https://github.com/victorchen96/deepseek_v4_rolepaly_instruct)。
- 角色卡:对齐 SillyTavern(酒馆)v2 规范;支持导入/导出标准 v2 JSON。
- 自然语言建卡:直接说"帮我生成一个角色卡,角色为:XXX",Agent 会自己搜索设定、整理成卡、写入角色库。
- 内置默认角色:蓝色大肥鱼(鲸鱼娘)🐋,装完即用。
安装
dsh plugin --profile web add dsh-cosplay
装完重启 dsh 即可。前提:pnpm 在 PATH(Windows 上确保 pnpm.cmd 可用)。
依赖说明:运行时只需额外装一个
@deepseek-ai/schemastery;其余服务包(cordis、dsh-settings、dsh-tools、dsh-system-prompt、dsh-typert-protocol)由 dsh 自带解析,无需单独安装。
使用
- 打开设置 → 「角色扮演」→ 打开开关(默认关闭)。
- 选一个角色(默认蓝色大肥鱼),也可以新建、导入,或让 Agent 帮你生成。
- 新建一个会话正常聊天——下一轮对话起,Agent 就是那个角色了。
- 想换角色:设置页点「设为当前」,或对话里让 Agent 用
cosplay_switch切换;随时关开关恢复默认。
角色卡字段
对齐酒馆 v2:name、description(身份)、personality(性格)、scenario(场景)、first_mes(开场白)、mes_example(示例对话)、system_prompt(置顶指令块)……全部自由文本,想写多详细写多详细。插件特有的 style(语气)、rules(守则)、behavior(行为)也随卡存储,导出时放进 v2 的 extensions,互相不干扰。
开发
npm run check # 语法检查
纯 JS ESM,无构建步骤,改完 src/ 重启 dsh 即生效。
许可
见 LICENSE 文件。
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora
anywhere-labs/deepseek-harness-desktop