dsh-user-memory

白箱两段记忆:四层用户自写的长期记忆(必须遵守/行为设定/用户画像/可选遵守)注入为系统提示词的一节;另有「临时记忆」(跨对话交接/阶段目标/等待项)独立成节、独立预算(默认 1200 字),条目完结即停止注入。长期记忆是记忆目录里可读可改的 Markdown 文件,AI 只能提议,用户在中文面板点「采纳」才写入;临时记忆只在用户明确要求时写入,存放在 <DSH_HOME>/temp-memory.json(首次写入才创建),不在记忆目录里。不自动采集、不后台回写、不联网。

插件介绍

白箱两段记忆:四层用户自写的长期记忆(必须遵守/行为设定/用户画像/可选遵守)注入为系统提示词的一节;另有「临时记忆」(跨对话交接/阶段目标/等待项)独立成节、独立预算(默认 1200 字),条目完结即停止注入。长期记忆是记忆目录里可读可改的 Markdown 文件,AI 只能提议,用户在中文面板点「采纳」才写入;临时记忆只在用户明确要求时写入,存放在 <DSH_HOME>/temp-memory.json(首次写入才创建),不在记忆目录里。不自动采集、不后台回写、不联网。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-user-memory

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:XinzeQing/dsh-user-memory

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令