dsh-memory-connect
Asher-2000
跨会话记忆插件(v0.6.1,npm 包 @asherliner/dsh-memory-connect):自动提取、SQLite FTS5 索引、RRF 语义召回(每轮注入系统提示词)、定时维护、LLM 智能合并(自动接入 ctx.llm)、上下文爆炸防护、全局身份 Soul(~/.dsh/soul.md)。v0.5.0 新增:时态上下文图谱(valid_from/valid_until/supersedes,reviseMemory 追加式修正)、信任模型(历史记忆作为不可信参考注入,当前指令绝对优先)、轮末自动摘要。v0.6.0 新增:本地语义 embedding(BAAI/bge-small-zh-v1.5,embed_server.py 提供,余弦相似度 + 与 FTS5 的 RRF 融合,纯本地无云端调用,CPU 约 232 条/秒)。v0.6.1 修复 path 配置 ~ 展开。零配置装完即用。
Cross-session memory plugin for DSH (v0.6.1, npm @asherliner/dsh-memory-connect): auto-extraction, SQLite FTS5 indexing, RRF semantic recall injected into the system prompt every turn, scheduled maintenance, LLM-powered consolidation via ctx.llm, context explosion prevention, and global Soul identity via ~/.dsh/soul.md. v0.5.0 added temporal context graph (valid_from/valid_until/supersedes, append-only corrections via reviseMemory), trust model (recalled history injected as untrusted reference, current instruction always wins), turn-end summarization. v0.6.0 added local semantic embeddings (BAAI/bge-small-zh-v1.5 via embed_server.py, cosine + RRF fusion with FTS5, no cloud calls, ~232 msgs/sec on CPU). v0.6.1 fixed ~ expansion in path config. Zero-config install.
安装命令
dsh plugin --profile web add github:Asher-2000/dsh-memory-connect该命令来自上游目录,本站的自动审核尚未覆盖它——执行前请自行核对仓库。
安装后运行 dsh --profile web --dump-config 并重启对应 profile。插件会以你的本机权限运行第三方代码,安装前请检查源码。