yffo/dsh-engramory-recall ↗★ 0
dsh-engramory-recall
Local BM25 auto-recall, fail-closed write guard, static doctor and a memory panel for the Engramory markdown store — no network, no model, no daemon. 适合需要本地免网免模型进行Markdown记忆检索与安全写入的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yffo/dsh-engramory-recall配置
改 profile 的 cordis.patch.yml(改完要重启 App 才生效,宿主进程会缓存 ESM 模块):
- insert:
- id: engramory-recall
name: dsh-engramory-recall
config:
enabled: true # 总开关
storePath: ~/memory/engramory
maxPointers: 4 # 最多注入几条指针
maxChars: 480 # 注入文本硬上限(字符)
minScore: 0 # 提高它可以过滤弱命中
queryChars: 400 # 检索的查询字符预算(超长消息头尾各取一半)
nudge: true # 「长期记住」意图提示
nudgeSediment: true # 沉淀提醒
sedimentMinTurns: 12 # 沉淀提醒的轮次门槛
guardWrites: true # 写入闸门
dedupeInjection: true # 注入去重
rotationPenalty: 0.5 # 跨轮轮换降权(1 = 关闭)
rotationHistory: 32 # 轮换记忆长度
# 下面两个默认关闭:实测无净收益,留着等库里出现半年以上的跨度再复测
decayHalfLifeDays: 0 # freshness 指数衰减
recencyWeight: 0 # 时间乘性加权
autoArchive: false # 全自动归档(默认关:归档是改库,先手动点几轮再决定)
indexMaxLines: 200 # 索引 MEMORY.md 的行数上限
indexMaxBytes: 25600 # 索引的字节上限
registerSkill: true # 注册 engramory 技能(写入纪律的正文)
# 语义检索接缝(默认关闭):本地模块路径,或 host-llm / host-embed
semanticProvider: ''
semanticTimeoutMs: 2000
semanticPool: 50 # 提供方看多宽的候选池
semanticFusion: rrf # rrf = 词面有一票否决权(默认);trust = 提供方说了算
semanticHostRoute: '' # 只有 host-embed 用
autoArchive 打开后归档会在两处自动跑:每轮 pre-step 兜底(10 分钟 TTL,不会每轮扫库),
以及写完记忆库的那一刻(触发源记为 write)。它仍然先备份、仍然过写入闸门,只是不再等你点按钮。