npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-soul-md

v0.5.8

Published

DeepSeek Harness 的 soul.md 风格人设 + 长期记忆插件:设置页输入人设卡名称和内容即可,文件由插件自动管理;可按工作区指定人设、聊天框可给会话单独切人设;AI 可自行演化人设与记忆(soul_read/soul_update/memory_*)。

Readme

dsh-soul-md

GitHub: Scorp1o117/dsh-soul-md · npm: dsh-soul-md · English

Enhancement Suite npm

属于 DeepSeek Harness Enhancement Suite —— Vision · Soul/Persona · 长期记忆 · 插件市场。

DeepSeek Harness 的人设 + 长期记忆插件——完全不用管文件

在 设置 → 人设卡 里输入人设卡的名称内容,点保存,剩下的插件全包了。

功能

  • 人设卡:卡片内容渲染成系统提示词段落(soul:persona)。支持多张卡:设置一张默认卡,聊天框标题栏的「人设」下拉可以给每个会话单独选卡
  • 长期记忆:Agent 自带五个工具——
    • memory_append / memory_read / memory_rewrite:持久记忆文件(Agent.md / memory.md 风格)。当前人设卡有自己的记忆,没选卡时用全局记忆
    • soul_read / soul_update:AI 自己读、自己演化人设卡——发现自己的稳定特质就折叠进卡片,跨会话持续成长而不是每次重置
    • 记忆会以 soul:memory 段落注入提示词(有上限),AI 随时看得见自己的记忆
  • 解析规则会话选择(聊天框切换)> 工作区人设 > 默认卡 > 无,切换下一轮对话即生效,无需重启
  • 工作区人设(v0.5.2):设置 → 人设卡 里会列出所有工作区,每个工作区可以指定一张人设卡——该工作区的会话默认用它(会话级切换仍然优先)。工作区列表来自 dsh 的工作区注册表,不用输任何路径

安装

在 profile 的 cordis.patch.yml(如 $DSH_HOME/profiles/web/cordis.patch.yml)里 insert:

- insert:
    - id: soul-md
      name: 'dsh-soul-md'          # 之前先 pnpm add dsh-soul-md

重启 dsh web,打开 设置 → 人设卡:输入名称 + 内容,保存,完事。

文件在哪(你不用管,仅供参考)

  • 人设卡:存在 soul-md 设置命名空间里(settings.yaml),即 cards: { 名称 -> 内容 } + active 默认卡 + 会话级 sessions
  • 记忆文件:插件托管在 $DSH_HOME/soul-md/memory/global.md + 每张卡一个文件),按需自动创建
  • 从 ≤ v0.4 的文件版升级?插件首次运行会自动导入path 卡片(名为「默认」)和旧记忆文件

配置

| 字段 | 默认值 | 含义 | |---|---|---| | cards | {} | 人设卡:名称 → Markdown 内容(界面管理) | | active | '' | 默认卡名称;空 = 默认不启用 | | sessions | {} | 会话级选择(sessionId → 卡名 / none / ''),聊天框切换器写入 | | workspaces | {} | 工作区级选择(工作区路径 → 卡名 / none / ''),设置页写入 | | workspaceList | [] | 工作区列表(路径 + 标题),由服务端从 dsh 工作区注册表维护 | | memory.maxBytes | 1048576 | memory_append / memory_rewrite 超过此大小会拒绝 | | memory.inject | true | 把记忆渲染为 soul:memory 提示词段落 | | memory.injectMaxChars | 8000 | 注入段落字符上限(从文件头截取) | | memory.order | 0.5 | 注入的记忆段落顺序 | | legacy 字段 | — | pathfallbackordercompletewatchdebounceMssoulMaxBytespersonasrostermemory.path… 保留以兼容旧配置,仅用于一次性导入 |

注意事项

  • 不要在人设文本里写 {{ / }}:它们是提示词变量语法,未知变量会在渲染时报错(目前没有转义语法)。
  • 人设/记忆段落按组装解析:稳定卡片字节不变(KV Cache 友好),编辑即时生效。
  • DSH 会直接公开插件注册的 soul-md settings 命名空间;插件不会修改宿主安装目录中的文件。
  • 建议在人设卡里写清工作准则(如"任务质量优先"),避免角色扮演影响干活质量。
  • 0.5.8 起最低支持 DSH 0.1.0-rc.7,已针对 0.1.0-rc.70.1.0-rc.80.1.1-rc.1 测试。仍使用 DSH 0.1.0-rc.6 的用户请锁定 [email protected];这是最后一个包含旧 settings 白名单兼容补丁的版本。

License

MIT