JasperGuWP/dsh-project-memory
JasperGuWP★ 2TypeScript最后同步: 2026-08-19
Project-level persistent memory plugin for deepseek-harness: auditable Markdown memory files with memory_load_context / upsert / finalize / forget tools. Zero-dependency, installable via dsh plugin add.
README 摘要
dsh-project-memory deepseek-harness 的「项目级持久记忆」插件:让模型跨会话读写 当前项目 memory/ 目录下的可审计 Markdown 记忆文件——落盘为普通文本,可 git 审计 / diff,不依赖模型内部上下文。 通用、零外部依赖:不预置任何项目知识,装到哪个项目就服务于哪个项目。 工具 四个工具,名字均可用 toolPrefix 加前缀: 工具 作用 memory load context 会话/任务开始加载相关记忆;关键词检索 + 全量 catalog 清单 memory upsert 仅在用户明确要求「记住 / 以后都按这个来」时写入或更新一条记忆 memory finalize 任务收尾把结论沉淀为一条 reference 记忆(固定文件,避免文件膨胀) memory forget 遗忘:删除正文文件 + 对应索引行(保护 MEMORY.md 与 reference.md ) 特性 - 文件即记忆 : memory/MEMORY.md (纯索引)+ memory/ .md (正文)。 - 索引格式 : - [类别] 主题:一句话摘要 → 文件名.md - 敏感信息拦截 :token / cookie / password / 密钥 / JWT / .env 命中即拒存(返回 ok:false )。 - 工作区感知根目录 :优先 sandboxPolicy.resolve({ session }) (会话 cwd),回退 config.memoryRoot → process.cwd() 。 - 检索 :中英分词 + 多字段 + 正文 + 新鲜度加权; catalog 可当「列记忆」用。 - 防膨胀 : maxReferenceEntries 给 reference 设上限,自动裁最旧。 安装 方式 A:一键安装(Bundle,推荐) 本仓库是一个 dsh Bundle( package.json 声明了 dsh.bundle.patch )。其他用户用 dsh plugin 直接装到自己的 profile: 装完 重启 dsh 进程 生效(node 半侧无热加载)。插件零外部依赖、无构建步骤,git 源装上即可用;若 pnpm 对 git 依赖提示 allowBuilds ,按提示在 profile 的 pnpm-workspace.yaml 加一行后重跑。 校验 / 移除: 方式 B:手动本地插件(不打包也行) 插件是零依赖的单文件 .ts ,不走包管理也可以: 1. 下载 memory-plugin.ts 到本机。 2. 在你 profile 的 cordis.patch.yml 加一行( name 用绝对路径): 3. 重启 dsh。 配置 键 默认 说明 memoryRoot 会话工作区 /mem…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 183,476
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,499
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 18,022