shenA2024/whale-persona
把 AI 编码助手的人设变成一份可开关、可编辑、可记忆的配置:自称(按模型分档)、对用户的称呼、 关系立场、性格正文、逐条可勾选的工作契约、思维链语言,以及带代码级确认闸门的长期记忆。 一份 config.json + 一个收件箱文件,DSH 与 ZCode 两个宿主共用同一个人设。 0.12.0 起还带一层条件反射:自己写规则,命中时由插件在代码层注入一步指令(匹配不花 token), 可选把这一步的请求瘦身、把工具裁到白名单 —— 规则是个人资产,默认零规则。 > 维护状态(2026-09-19):主宿主是 DeepSeek Harness;ZCode 适配器停止开发(维护者 2026-09-19 拍板:
catalog descriptioncatalog 简介 / catalog description:人设引擎 / DeepSeek Harness 插件:一份 config.json 管住 AI 的自称、称呼、立场、工作契约、思维链语言与长期记忆;出厂空白、装上不改变任何行为;记忆由 AI 提议、人工确认才生效(代码强制)。装:npx -y whale-persona。A blank-by-default persona engine for DSH. ZCode adapter retired.
Project Overview项目介绍
This is a persona engine built for AI coding agents, with DeepSeek Harness as its current primary host, and the former ZCode adapter is now discontinued and only kept for historical reference. It converts an AI coding assistant’s persona into a toggleable, editable configuration with memory support, including tiered self-naming by model, user addressing, stance, personality, toggleable work contracts, thinking chain language, and a code-enforced confirmation gate for long-term memory. It is implemented as pure ESM, has zero runtime dependencies, never accesses the network, and degrades all errors to empty output without breaking active sessions.
After installation, users can edit their configuration via the DSH settings panel or the local editor included in this repository. You can set up self-name, stance, appearance, reply tone, work contracts and more, and it also supports custom reflex rules that inject directives at the code layer when matched without consuming model tokens. Pre-built personas need to be imported from a separate linked preset repository, as the engine itself ships blank by default and does not change any AI behavior out of the box, making it suitable for developers who want to customize their AI coding assistant’s persona and manage long-term memory.
It requires Node.js version 20 or higher and DSH version 0.1.6-alpha.1 or higher, and is released under the permissive MIT open source license. From a security perspective, it never accesses the network, executes commands, or reads a user’s working directory, all write operations are explicitly logged, and it includes an automated security probe to verify compliance. The one-step installation script completes all required setup, you just need to restart DSH after installation for changes to take effect, and if you do not add a configuration it will not alter any existing behavior.
这是一个面向AI编码助手的多宿主人设引擎,目前主宿主为DeepSeek Harness,原ZCode适配器已停止开发仅作历史保留。它可以将AI编码助手的人设转换为可开关、可编辑、带记忆能力的配置,包含按模型分档的自称、对用户的称呼、立场性格、可逐条勾选的工作契约、思维链语言,还有代码层强制确认闸门的长期记忆。它采用纯ESM实现,零运行时依赖,不联网,所有异常都降级为空处理,不会中断会话。
典型工作流程是用户安装后通过DSH设置面板或仓库自带的本地编辑器编辑配置,可预设自称、立场、形象、回复语气、工作契约等内容,还支持自定义条件反射规则,命中规则时可在代码层注入指令,不消耗模型token。预设人设需要从关联的预设仓库导入,引擎本体出厂空白,默认不改变任何AI行为,适合想要自定义AI编码助手人物设定、管理长期记忆的开发者使用。
它要求Node.js版本不低于20,DSH版本不低于0.1.6-alpha.1,采用MIT许可完全免费开源。安全层面它不联网、不执行命令、不读取用户工作目录,所有写操作都逐项登记,还有自动化安全探针校验。首次安装可以通过一条命令完成所有步骤,安装后需要重启DSH生效,不写配置的话安装后不会改变任何现有行为。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:whale-persona(shenA2024/whale-persona)
仓库:https://github.com/shenA2024/whale-persona
本站详情页:https://www.yhbd.top/plugins/shena2024-whale-persona/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-29 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add -w https://github.com/shenA2024/whale-persona/releases/download/v0.15.1/whale-persona-0.15.1.tgz
把 shenA2024/whale-persona 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
whale-persona —— 多宿主人设引擎
简体中文 | English
把 AI 编码助手的人设变成一份可开关、可编辑、可记忆的配置:自称(按模型分档)、对用户的称呼、
关系立场、性格正文、逐条可勾选的工作契约、思维链语言,以及带代码级确认闸门的长期记忆。
一份 config.json + 一个收件箱文件,DSH 与 ZCode 两个宿主共用同一个人设。
0.12.0 起还带一层条件反射:自己写规则,命中时由插件在代码层注入一步指令(匹配不花 token),
可选把这一步的请求瘦身、把工具裁到白名单 —— 规则是个人资产,默认零规则。
维护状态(2026-09-19):主宿主是 DeepSeek Harness;ZCode 适配器停止开发(维护者 2026-09-19 拍板: 「ZCode 已经决定不再制作了」)。该目录仅作历史保留 —— 不再开发、不再真机回归、出问题不优先修; 0.10.0 起的预设库 / 酒馆卡 /
dsh.bundle都与它无关。完整取舍与"删还是留"的待决项见 docs/维护状态.md。
MIT · 纯 ESM · 零运行时依赖 · 不联网 · 异常一律降级为空(最坏是"没有人设",不炸会话)。
English: a persona engine for AI coding harnesses — the English guide (what it is, how to install, what each feature does, and which documents are authoritative) is README.en.md.
它解决什么问题
你和编码 AI 之间那些每次都要重说一遍的事:它老忘、你得反复交代;同一件活今天一个风格明天一个风格; 「别问我还要不要继续」这句话说过一百遍它还是问。
whale-persona 把这些人设事实变成一份你自己的配置,每个会话自动带上。装完是空白的、装上不改变任何行为—— 要什么写什么。而它和别人不一样的一点:记忆必须你确认才生效(代码强制,不是提示词约束), AI 只能提议,改不了你的准则。
先看到效果,再决定装不装(一条命令,只读,不碰你的任何配置):
node scripts/render-preview.mjs --config examples/demo-config.json --cwd D:/work/demo
它把「此刻实际注入系统提示词的三段文本」逐字打印出来——这就是装完你能得到的东西。
想直接上手:往下跳到 60 秒上手。第三方要实现同样的格式:看 SPEC.md。
它给你什么
| 能力 | 说明 |
|---|---|
| 自称 / 称呼 | {selfName} {userName} 占位符;自称可按具体模型指定(selfNameByModel),未命中回落 flash / pro 两档 |
| 立场与性格 | stance(一句话)与 character(整段正文),渲染在提示词最前面 |
形象(appearance) |
opt-in、默认关:把「你是谁/长什么样」当既定事实注入(text 通用 + byModel 按模型覆盖,键写宿主真实模型 id);渲染在立场正文之后、工作契约之前 |
| 形象卡(0.17.0) | appearance.cards:给自己 / 用户本人 / 第三方各存一张卡(标题 + 一行摘要 + 长文 + 照片路径)。默认「本人卡常驻一行摘要、长文与照片按 id 去读」——摘要进提示词、正文留在配置里;每张卡用 auto / expand / on 单独开关。图片永不进提示词(只给路径) |
回复语气(tone) |
opt-in、默认关:只改措辞与节奏,不改结论、证据标准与工作契约;结构与形象相同,现成文案见 core/presets.js |
| 工作契约 | 逐条可勾选,on:false 即停用;写得具体可验证才有效 |
| 思维链语言 | 只改思考语言,不改答复语言(off / zh-CN / en …) |
| 长期记忆 | 手工条目(权威层)+ 收件箱(AI 提议 → 人确认 → 只追加式入库) |
| 分类路由(0.13.0) | 同一道确认闸门推广到记忆之外:条目标 kind(pitfall / idea …),人确认那一刻按 memory.sinks 路由只追加式落进目标文件;不注入提示词、幂等、无路由会报出来;默认空表 = 零行为改变 |
| 注入体积(0.13.0) | 计量每段字符数与合计(走与渲染同一条通路),面板与 CLI 可见;budget 超限时可选注入一行提醒 —— 只提醒,永不自动裁剪 |
| 条件反射(reflex) | 自己写规则,命中即在代码层注入一步指令(正则 / 近似 / 词袋三通道);匹配不花 token,可选把这一步的请求瘦身、把工具裁到白名单;默认零规则 |
| 两个编辑入口 | DSH「设置 → 人设」可编辑面板 + 本仓自带本地编辑器页;同一套读写纪律 |
| 零行为改变 | 不写配置 = 三段全空,装上不改变任何行为(有单测钉住) |
| 默认安全 | 不联网、不执行命令、不读你的工作目录;写面逐项登记在 .github/SECURITY.md,并由安全探针 S15 与代码同步(新增写盘文件不登记 = 安全套件红) |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
mindscale-noah/MindMemOS
Aik358/dsh-auto-memory
AskTheWay/dsh-auto-memory
fishzjp/qa-skills
WeirdSky924/agent-handoff-skill