dsh-memory
DSH 跨会话长期记忆插件:基于 ctx.storage 提供模式验证的记忆域,包含记录、召回、索引、遗忘工具及记忆注入协议。
AI 分析
核心用途是让 AI 记住用户的长期偏好和纠错经验。适合需要跨会话保持上下文一致性的用户。需要存储相关基础插件支持。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Configuration
All options are optional:
| Option | Default | Meaning |
|---|---|---|
maxRecords | 400 | Capacity cap; lowest-value records evicted first. |
maxContentChars | 2000 | Max content length per record. |
injectEnabled | true | Per-step injection of relevant memories (via agent/pre-step). |
injectCount | 3 | Max memories injected per step (0 disables). |
injectMaxChars | 120 | Max chars per injected memory summary. |
lessonizeEnabled | true | Auto-nudge to solidify repeated errors as lessons. |
lessonizeAfter | 2 | Same error fingerprint occurrences before nudging. |
recencyHalfLifeDays | 90 | Freshness half-life. |
mergeSimilarity | 0.7 | Near-duplicate merge threshold. |
protocolSection | true | Inject the memory protocol prompt section. |