lovezi0/dsh-memory-palace

将WorkBuddy的文件式记忆系统移植进[DeepSeek Harness](https://www.deepseek.com/harness/)——为Harness提供**跨会话持久化、人类可直接编辑的Markdown记忆**。

Project Overview项目介绍

This is a native DeepSeek Harness plugin that ports the file-based memory system from WorkBuddy to DSH, adding cross-session persistent memory stored as plain Markdown that is directly editable by humans. It separates memory into two tiers: user-level memory for cross-project personal preferences, and workspace-level memory for project-specific conventions. Expired daily logs are automatically consolidated into long-term memory, and the plugin can read and write directly to existing WorkBuddy or CodeBuddy memory directories to avoid duplicate maintenance.

AI can call built-in tools to write memory with automatic deduplication, read aggregated memory, or delete memory by content, with all deletion actions requiring manual user confirmation before they execute. Users can also manually distill current conversation or project memory into long-term memory with one click from the session title bar. All configuration can be adjusted graphically in the DSH settings panel, and you can add custom instructions that get injected into the system prompt for AI. The recommended hybrid mode lets sub-agents automatically organize logs and deduplicate content, while the main AI maintains long-term memory, balancing automation and user control.

To install this plugin, you first need to have DeepSeek Harness and its CLI tool installed and available on your system path. It supports three common installation methods: installing directly from the GitHub repository, installing from the public npm registry, or installing from a local cloned copy of the source code. All memory content is stored as plain Markdown files, so you can edit your memory at any time with any standard text editor. The plugin is released under the open source MIT license, so it is free to use and modify.

dsh-memory-palace 是专为 DeepSeek Harness 开发的原生插件,将 WorkBuddy 的文件式记忆系统移植到 DSH 中,为其提供跨会话持久化、人类可直接编辑的 Markdown 记忆。它支持用户级跨项目偏好记忆与工作区级项目约定记忆双层存储,可自动将超期的每日日志沉淀进长期记忆,还能兼容已有 WorkBuddy、CodeBuddy 记忆目录。

这款插件支持 AI 主动写入、聚合读取、按内容删除记忆,自带去重功能,用户也可以通过会话标题栏的一键按钮手动将当前对话或项目记忆提炼成长期记忆。所有配置都可以在 DSH 的设置面板中通过图形界面调整,还支持添加自定义指令,通过系统提示词注入给 AI。推荐开启混合模式,兼顾自动化整理日志和用户对长期记忆的主动控制。

安装该插件需要先准备好 DeepSeek Harness 及对应 CLI 工具,支持通过 GitHub、npm 或者本地源码三种方式安装。所有记忆都以纯 Markdown 格式存储,用户随时可以用任意编辑器手动修改。插件采用 MIT 许可开源免费,记忆按用户级和项目级目录存储,结构清晰易维护。

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

把 lovezi0/dsh-memory-palace 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-memory-palace dsh-memory-palace

把 WorkBuddy 的文件式记忆系统移植进 DeepSeek Harness —— 为 Harness 提供跨会话持久化、人类可直接编辑的 Markdown 记忆。

License: MIT Awesome DSH Plugin npm DeepSeek Harness:0.2.0-rc.1 Desktop: supported

特性

  • 人类可读的真源:记忆以纯 Markdown 存储,任何编辑器都能直接修改,数据始终属于你。
  • 双层记忆:用户级(跨项目个人偏好)+ 工作区级(项目约定),互不干扰。
  • WorkBuddy / CodeBuddy 桥接:项目已有对应记忆目录时直接读写,无需重复维护。
  • 记忆工具:AI 可主动写入、聚合读取、按内容删除(删除需人工确认),写入自带去重。
  • 手动蒸馏:会话标题栏一键把项目记忆提炼成精简的长期记忆(v1.8.1 起只保留「蒸馏项目记忆」)。
  • 设置页集成:全部配置均可在 DSH 设置面板中图形化调整(按板块折叠),无需改配置文件。
  • 自定义指令:不适合写进记忆的特殊指令可在设置页配置,插件经系统提示词注入。
  • 记忆注入:长期记忆与今日日志以「会话起始快照」常驻上下文、按文件身份各只注入一次 —— 既保证每个步骤都可见,又不破坏前缀缓存、不堆积冗余快照。
  • 记忆写入(v1.8.0 起唯一模式):记忆子代理每轮自动整理今日日志并去重(章节化、标删),长期记忆 MEMORY.md 由主 AI 主动维护,兼顾自动化与可控性。
    • v1.8.0 破坏性变更:原「主动记忆(插件模式)」与「智能模式」已整体移除。二者的能力已被覆盖——主动落档由分工指令引导主 AI 承担,逐轮摘要由记忆子代理写进日志承担。
  • 标准插件包:经官方插件机制一键安装,无需改动 harness。

记忆文件布局

~/.deepseek-harness/
└── MEMORY.md                      # 用户级记忆(跨项目个人偏好)

<项目根>/
├── .workbuddy/memory/             # 桥接 WorkBuddy 记忆(存在时优先写入)
│   ├── MEMORY.md                  # 项目级约定(buddy 目录保持嵌套,兼容 WB/CB 原生格式)
│   └── 2026-08-16.md              # 每日工作日志
├── .codebuddy/memory/             # 桥接 CodeBuddy 记忆(存在时,结构同 .workbuddy)
└── .deepseek-harness/             # dsh 原生目录(读取恒在首位;无 buddy 时作为写入目标创建)
    ├── MEMORY.md                  # 项目级约定(长期记忆,与 memory/ 同级)
    └── memory/
        └── 2026-08-16.md          # 每日工作日志

工作原理

读取(每轮对话)——两条通道并行:

① 系统提示词(恒定):记忆分工指令 / 自定义指令等固定内容,前缀缓存友好
② 对话历史投影(易变):用户级 + 项目级长期记忆、今日日志——按文件身份各注入一次,压缩后自动重注最新版

投影逐文件独立截断:用户级 MEMORY.md 受「用户级预算」约束,项目级 MEMORY.md 与今日日志各受「工作区预算」约束、互不挤占 —— 预算说的是每个文件的上限,不是所有文件合计的总量。被截掉的部分不丢,随时可用 memory_read 读取。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-niao-quick-open 下一个 Next dsh-claude-theme →