dsh-ai-memory
给 DSH 里的 AI 一套属于自己的长期记忆,并让人格从记忆、反思和长期互动中逐渐生长。 适合希望AI在长期互动中沉淀记忆、塑造个性人设的深度用户。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Isyyyue/dsh-ai-memoryREADME
Read the full README ↗配置
默认情况下无需配置。需要自定义时,可以在 profile 的 cordis.patch.yml 中覆盖插件配置:
- id: dsh-ai-memory
name: dsh-ai-memory
config:
dir: 'D:\my-memory'
injectIndex: true
maxIndexEntries: 40
maxGraphNodes: 500
enabled: true
| 配置项 | 默认值 | 说明 |
|---|---|---|
dir | ~/.dsh/ai-memory | 账本目录 |
injectIndex | true | 是否在会话开始注入记忆索引 |
maxIndexEntries | 40 | 注入的判断数量上限 |
maxGraphNodes | 500 | 图谱快照节点上限 |
enabled | true | 是否注册插件 |
注入内容是摘要,不是整本账本。已确认的人格会单独列出;待确认的人格候选不会进入普通会话注入,只在 memory_persona read 和 memory_reflect 中出现,避免一次偶然观察被反复强化。
首次使用、尚未写入任何记忆时,也会注入简短的写入规则,帮助 AI 开始积累。提醒不会自动保存对话;是否形成有效判断仍由调用方决定。