longlongdragons/roleplay-plugin
longlongdragons★ 0JavaScript最后同步: 2026-08-18
沉浸式角色扮演插件(DeepSeek Harness 动态 Cordis 插件)
README 摘要
沉浸式角色扮演插件(DeepSeek Harness 动态 Cordis 插件) Immersive roleplay plugin for DeepSeek Harness, built as a dynamic Cordis plugin with a Host/Client split. - Plugin ID: rplay-1 (包名 roleplay-immersive-v2 ) - 类型:DeepSeek Harness 动态 Cordis 插件(Host 端 + Client 端) - 已自测:7 个 RPC 处理器注册、 persona guard check 工具注册(schema 编译正确)、端到端执行通过 - 构建产物: host.js 、 client.js (均已通过 node --check ) 功能总览 需求 实现 图形化控制面板 shell.overlay 右侧抽屉 + 右下角 🎭 悬浮按钮:预设分类卡片 / 自定义表单 / 角色库 / 设置 / 指令说明 官方预设角色 15 个:武侠4(侠客/魔教少主/掌门/说书人)、古人4(诗人/谋士/帝王/书生)、动漫3(热血少年/傲娇少女/高冷御姐)、科幻2(机甲指挥官/星际舰长)、现代2(温柔店长/治愈系博主) 主题联动 theme.overrideTokens('roleplay', …) 覆盖 13 个设计令牌(明暗双套)+ 氛围装饰层 + 主题字体:wuxia / ink / anime / scifi / modern / default 人设守卫 工具 persona guard check :评审官 LLM 强制纯 JSON → 检测 → 失败自动重写 1 次 → 兜底输出「角色思绪混乱,请重新提问或调整角色设定」,零死循环;严格/宽松双模式 人设注入 systemPrompt.section('roleplay:persona', order:10) ,每次模型步骤动态读取当前状态,多轮不重置 斜杠指令 /reset 、 /role 、 /check 、 /guard strict loose on off 、 /theme on off 双向同步 面板操作与指令共用 Host 单一状态源;客户端 1.2s 轮询 get state (带 rev 增量)+ 操作即时回推 会话持久化 状态写 /.dsh-roleplay.json (含 rev/current role/current theme/theme enabled/guard enabled/strict mode/retry count/custom roles) 安全与扩展 自定义角色违规词过滤 + 字数上限;主题自动匹配(关键词加权评分,theme desc 权重×2);预设/主题为纯数据表可增删 文件…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784