DSH | ExpMem | 文件型长期经验记忆与压缩前晋升 #2792
wangcan26
started this conversation in
Show Your Plugins!
Replies: 2 comments 1 reply
v0.4.0: Generative experience memoryDSH ExpMem This release combines two memory designs:
What changed
Existing dsh plugin --profile web add @creative-dswork/dsh-expmem@0.4.0 |
1 reply
v0.5.0:持久化 Reflection Run / Persistent Reflection Runs中文DSH ExpMem 这个版本将
EnglishDSH ExpMem This release turns the prompt-driven reflection introduced in
安装 / Installdsh plugin --profile web add @creative-dswork/dsh-expmem@0.5.0 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
0.2.0我开发 DSH ExpMem,是为了给个人开发任务补一层长期经验记忆。安装后,DSH Agent 可以保存用户习惯、任务经验和工程洞见,也能按需检索以前的完整会话。
记忆分层
ExpMem 参考 MemGPT,把长期记忆分成两层:
session-query。原始会话继续由 DSH 保存,ExpMem 不复制事件。上下文压力达到 70% 时,ExpMem 会在 DSH Compaction 前提醒当前 Agent 搜索已有记录,并最多保存三条高价值经验。如果上下文直接越过阈值,Agent 会根据 Compaction 记录的事件范围,从 Recall 取回原始消息后补做晋升。
这个过程使用当前 Agent,不需要常驻 Worker、独立总结模型、Embedding 服务或额外 API Key。
与 DSH 的集成
npm 包自带
cordis.patch.yml。DSH 安装 bundle 后会加载:session-query-sqlite和tool-session-queryexpmem_search、expmem_write、expmem_forget项目通过 Cordis、System Prompt、Tool 和
agent/pre-step扩展点接入,没有修改 DSH Agent Loop。安装
导入 Claude Code 与 Codex 记忆
先预览,再执行导入:
CLI 默认读取:
~/.claude/projects/**/memory/*.md$CODEX_HOME/memories/**/*.mdCLI 会保存来源 Agent、原始路径和 SHA-256。重复执行时,它会跳过未变化的文件,并原位更新已变化的记录。源文件保持不变。
当前范围
Archive 目前使用不区分大小写的字面 AND 搜索。项目没有引入向量检索、后台 LLM 总结器或语义去重模型;Recall 的保留与删除继续交给 DSH 会话持久化处理。
文档:中文 | English
All reactions