Turns the DeepSeek Harness agent into any character: a global cosplay switch, SillyTavern v2 role cards with JSON import/export, a neutral/role thinking-style toggle, and natural-language card authoring via a built-in skill.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ZelinW1/dsh-cosplay
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
让 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 文件。
Links
More in this category
PC2005-cloud/dsh-pet#dsh-pet★ 1011
Desktop pet for the DSH Web UI with 25 transparent animations, screen wandering, click reactions and drag, plus a reproducible asset-generation pipeline.
Nagi-ovo/dsh-ads★ 647
Parody ads in 2005-Chinese-web style: sidebar banners, in-chat feeds, corner popups, and a close button whose hit area is smaller than it looks. All fictional.
vlln/whale-girl★ 342
Desktop pet (QQ-pet style): floats in the corner, draggable, feedable, playable.
a86582751/dsh-nexttavern★ 140
Roleplay workspace for DeepSeek Harness: import SillyTavern/TauriTavern character cards or author one from scratch through an interactive flow; turn a long TXT novel into a playable card with either an intensive or a coarse reading pass; the main agent consults worldbooks on demand, and prose is read in a dedicated tavern reader tab; explore multiple worldlines inside one conversation (regenerate, edit-and-send, explicit clone); scoped style presets with 16 built-in styles, a character agent cluster, a standalone decision card, and card or novel export; long stories hold together through a frozen settings prefix, a hard-cut context window, traceable director notes and keyword/semantic/hybrid recall, with embeddings either online or fully local. Targets Harness 0.1.2-alpha.3 and applies its documented compatibility patches.
yyh-001/dsh-meme★ 133
Chat meme stickers: text-only send, mood auto-send, QQ/WeChat-style picker, auto-learn, custom packs.
Sutera-Diffusus/dsh-whale-musume★ 111
A whale-girl desktop pet for the DeepSeek Harness Web UI: pat-to-raise growth, work-state poses per tool type, 494 dialogue lines, 30 achievements, a growth diary, drag physics, theme sync and an accessibility mode. Chat-keyword sensing and API-balance care ship off and are opt-in; an optional weather mood calls Open-Meteo only after you name a city. No telemetry.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.