crazy-L118/dsh-personalization 预览 preview

crazy-L118/dsh-personalization

Plugin插件 Native原生 ⭐ 2 MIT Prompts & Skills提示词与技能

A personalization plugin for DeepSeek Harness

Project Overview项目介绍

dsh-personalization is a native plugin built specifically for DeepSeek Harness (DSH). It adds a dedicated "Personalization" section to the DSH settings panel, sitting just below the "Agent preset" entry, where users can author long-lived instructions, set the nickname the AI should use for them, rename the AI itself, and define a persona description. Once saved, those values are injected into DSH's system prompt from the very next message onward. Installation is performed with dsh plugin --profile web add dsh-personalization@1.0.0 — the README explicitly warns that the @1.0.0 version suffix is mandatory so that the latest pinned release is picked up rather than the floating latest tag. Removal uses dsh plugin --profile web rm dsh-personalization, after which a dsh web restart is required for the change to take effect on the web profile.

A typical session begins with the user opening the DSH web settings, scrolling to the new personalization page, and filling in fields such as a nickname, a renamed assistant identity, a persistent rule list, and a persona block describing tone or role. The plugin is implemented in two halves: a host-side Node module at lib/index.js that registers a personalization:user segment into DSH's system-prompt registry at order 1, immediately after the built-in persona, and re-reading the configuration file on every conversational turn; and a browser-side module at lib/client.js that mounts the settings page into DSH's settings.section slot at order 25 and reads or writes configuration through two same-origin HTTP endpoints, /personalization-config and /personalization-config-save. The target users are DSH operators who want every task and every reply to consistently follow the same style, naming, and ground rules without retyping them each session.

Configuration is persisted solely on the local machine at ~/.dsh/personalization.json, and the file can be edited by hand without restarting DSH, since the host half re-reads it each turn. Field caps are 80 characters for nickname and aiName, 1500 characters for instructions, and 2000 characters for persona. When the file is empty or the master enabled flag is false, the segment resolves to an empty string and DSH drops it, yielding zero prompt bloat. The project is released under the MIT license, bundles a bundle-manifest, and carries an explicit disclaimer stating it is not affiliated with, endorsed by, or sponsored by DeepSeek, with "DeepSeek Harness" used only as a descriptive reference.

dsh-personalization 是一个面向 DeepSeek Harness(DSH)的原生插件,仅以 DSH 为目标。它在 DSH 设置页的「Agent 预设」下方新增「个性化」页,允许用户填写长期指令、昵称、AI 名称与人设描述,保存后从下一条消息起即向系统提示词注入。安装方式为 dsh plugin --profile web add dsh-personalization@1.0.0(需显式版本号),卸载使用 dsh plugin --profile web rm dsh-personalization,随后重启 dsh web 生效;界面与系统提示词会跟随 DSH 当前语言,注入位置紧跟 DSH 内置人设、采用逐行引用标记以防伪造。

典型工作流是打开 Web 设置 → 进入「个性化」页 → 填写指令与称呼 → 保存即生效,无需重启;运行过程由宿主半区(Node 端 lib/index.js)注册 personalization:user 段并每轮重读配置,界面半区(浏览器端 lib/client.js)在设置页 settings.section 插槽 order 25 注册页面,并通过 /personalization-config(读)与 /personalization-config-save(写)两个同源 HTTP 接口同步。该插件适合希望让所有任务、所有回复统一遵循同一套规则与口吻的 DSH 用户。

所有配置只保存到本机 ~/.dsh/personalization.json,不上传任何第三方服务;字段上限分别为 nickname/aiName 80 字符、instructions 1500 字符、persona 2000 字符。空内容或 enabled=false 时输出空串,DSH 自动丢弃该段,提示词零冗余。项目使用 MIT 协议,明确声明与 DeepSeek 无隶属关系,「DeepSeek Harness」商标仅作描述性引用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 dsh-personalization@1.0.0

把 crazy-L118/dsh-personalization 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-personalization

English | 简体中文

dsh 个性化插件:在 dsh 设置里教 AI「你是谁、它是谁、要记住什么」。一次配置,之后所有任务、所有回复都生效。

功能

  • dsh 设置新增**「个性化」**页(位于「Agent 预设」下方),跟随界面语言(中文 / English)
  • 自定义指令:给 AI 定几条长期规则(例如「先给结论再展开」),后续所有任务都生效
  • 称呼与身份:AI 对你的称呼、AI 自己的名字
  • AI 的人设 / 人格描述:角色设定与说话风格
  • 总开关:一键停用所有注入,不必逐项清空
  • 保存即生效:设置保存后,从下一条消息起就按新内容注入,无需重启 dsh web
  • 注入内容紧随 dsh 内置人设之后、工具说明之前;逐行加引用标记,避免用户内容伪造系统指令
  • 所有配置只保存在本机 ~/.dsh/personalization.json,不上传任何服务器

界面截图

个性化设置页(中文)

英文界面:

个性化设置页(English)

安装

请显式指定版本号安装(当前最新 v1.0.0):

dsh plugin --profile web add dsh-personalization@1.0.0

请务必带上 @1.0.0 版本号,确保安装到该最新版本;仅写包名会装到 latest,无法保证是 1.0.0。

重启 dsh web 生效。

卸载

dsh plugin --profile web rm dsh-personalization

配置文件

所有内容保存在本机 ~/.dsh/personalization.json,可直接手改(保存后无需重启,下一轮对话自动读取):

{
  "enabled": true,
  "nickname": "阿伟",
  "aiName": "小深",
  "instructions": "回答先给结论再展开。\n代码注释和提交信息用中文。",
  "persona": "严谨但不失幽默的资深工程师。"
}
字段 含义 上限(字符)
enabled 总开关,false 时完全不注入 —
nickname AI 对你的称呼 80
aiName AI 自己的名字 80
instructions 自定义指令(长期规则) 1500
persona 人设 / 人格描述 2000

工作原理

插件分两半:

  • 宿主半区(lib/index.js,Node):向 dsh 的系统提示词注册表注册一个 personalization:user 段(order 1,紧跟内置人设)。该段在每一轮对话组装时实时读取配置文件,因此保存即生效;同时提供 /personalization-config(读)与 /personalization-config-save(写)两个同源 HTTP 接口。
  • 界面半区(lib/client.js,浏览器):向设置页 settings.section 插槽注册「个性化」页(order 25),通过上面的 HTTP 接口读写配置,跟随 dsh 界面语言。

全空或总开关关闭时输出空串,dsh 会自动丢弃该段,提示词零冗余。

联系

问题或建议,欢迎联系:

赞助

如果这个插件对你有帮助,可以给我的晚餐加一根火腿肠 🌭

赞赏码

免责声明

  • 本项目与 DeepSeek 无隶属、背书或赞助关系。
  • "DeepSeek Harness" 是 DeepSeek 的注册商标,此处仅作描述性引用;插件名采用官方推荐的 DSH 缩写。
  • 个性化内容仅注入到你本机 dsh 发起的模型请求中,不会发送给任何第三方。

License

MIT

← 上一个 Prev dsh-remote-explorer 下一个 Next neoxider-agent-deck →