dsh-experience-memory
其他 活跃维护

dsh-experience-memory

lzpgood123/dsh-experience-memory

轻量级记忆插件,融合全局热记忆与按需经验库,基于FTS5实现毫秒级全文检索,WebUI卡片直观展示历史记忆,让知识调用更便捷。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
234 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lzpgood123/dsh-experience-memory
git clone https://github.com/lzpgood123/dsh-experience-memory.git
git clone git@github.com:lzpgood123/dsh-experience-memory.git
README.md main

dsh-experience-memory

npm version
CI
License: MIT

DSH (DeepSeek Harness) memory plugin: global hot memory + on-demand experience library.

  • 全局热记忆:USER.md / MEMORY.md 自动常驻注入。
  • 经验库:默认不自动全局加载;用户可通过 WebUI 卡片/侧边栏手动选择加载,Agent 也可按相关度阈值自动检索注入当轮上下文。
  • 记忆审批:可开关。开启时写入进入 pending,等待用户批准;关闭时 Agent 可自动判断并直接写入。
  • 后台子代理记忆 review:每 N 轮对话后自动启动子代理审查,提炼值得保存的偏好/决策/方案(Hermes 同款机制)。
  • 本地 SQLite + FTS5 关键词检索,不依赖向量模型。
  • 使用/反馈加权排序,拒绝精确重复并提示相似条目。

简体中文 · Design Spec

Install

Published on npm as dsh-experience-memory.

dsh plugin --profile web add dsh-experience-memory
dsh --profile web

本地开发:

pnpm install
pnpm dev

Commands

/memory status|add|edit|remove|list|pending|approve|reject
/experience save|search|load|unload|list|export

Tools

  • experience_save(title, content, category?, tags?, workspace?)
  • experience_recall(query, workspace?, category?, limit?)

Storage

~/.dsh-experience/
├── global.json
├── USER.md
├── MEMORY.md
└── experience.db

Development

pnpm typecheck
pnpm test
pnpm build

License

MIT