dsh-agent-memory:给 DSH 装上跨会话长期记忆 #1373
Culeot
started this conversation in
Show Your Plugins!
Replies: 2 comments
|
记忆插件(embedding + 检索)是"官方没做社区全做"的 memory 家族新成员。 已收录进手册生态章节社区资产清单:https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/07-ecosystem.md |
0 replies
|
此帖已迁移至新帖 #1448(https://github.com/deepseek-ai/deepseek-harness/discussions/1448):内容已更新至 v0.7.2,含辩证记忆治理、自我纠错闭环、query-word 检索等全部最新特性。本旧帖保留供历史参考。 |
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.
Uh oh!
There was an error while loading. Please reload this page.
这是什么
dsh-agent-memory 是 DeepSeek Harness(DSH)的跨会话长期记忆插件:会话之间沉淀的知识(用户偏好、已定决策、踩坑教训)自动保存,新会话开局就能用上。零依赖、无 MCP、无向量库、无 embedding API。
核心特性
$DSH_HOME/storages/memory.json,纯 JSON 可查看、可进 git。agent/pre-step钩子按当前消息检索最相关记忆,注入最多 3 条短摘要;检索结果不变时跳过注入,不重复刷屏。ctx.storageDomain(schema 校验、原子写、事件)、ctx.tools.register、agent.inject(),与官方插件同构。memory_import走写链批量导入,memory_reload从磁盘重开合并。工具
memory_remembermemory_recallmemory_indexmemory_forgetmemory_importmemory_reload安装
重启 DSH,新会话出现 6 个
memory_*工具。前置条件:profile 已挂存储三件套(dsh-storage、dsh-storage-json、dsh-storage-domain——web profile 自带)。质量
45 个单元测试全绿;真机(headless)冒烟通过;检索 top-1 命中 100%(9/9);400 条写入 45ms、召回 3ms。
提案
DSH 目前记忆能力是"文件型"(storage domain、session-query-sqlite、agent-instructions),动态记忆无处安放。本插件把这块补齐,建议官方纳入 packages/memory/*,欢迎以任何形式并入官方仓库。
All reactions