baosfeng/my-dsh-plugins--plugins-dsh-my-memory ↗★ 11
dsh-my-memory
DSH 记忆插件:全局/项目两级记忆持久化,会话开始时注入系统提示词,设置页可视化面板(新增/修改/删除需用户确认),memory_query 只读查询工具。DSH web plugin: global/project memory with system-prompt injection, settings panel and a read-only query tool. 适合需要向Agent注入定制化系统提示词和长期记忆的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baosfeng/my-dsh-plugins#e7fff48bc3ce67cc99f28fa7f1f8175814da76eb&path:plugins/dsh-my-memory配置
cordis.yml 中 my-memory 的 config 字段,均可省略:
| 配置键 | 默认 | 作用 |
|---|---|---|
maxItems | 5 | 注入系统提示词的全局记忆条数上限 |
maxDescLength | 200 | 单条记忆注入长度上限(字符,语义截断优先概要/首句) |
maxEntryLength | 50 | 建议单条记忆长度上限(字符),超长时面板提示精简 |
autoLearn | false | 自动学习开关:会话结束提取候选进待确认区,确认后才写入 |
extractor | 'rule' | 候选提取方式:rule 确定性规则提取器 / llm(预留) |
proactivePropose | false | 开启后引导 agent 主动向你提议保存记忆 |
saveApproval | 'auto' | 记忆写操作(保存 + 删除)确认策略:auto / always / never |
maxPromptItems | 20 | 注入系统提示词的全局提示词条数上限(超出不注入 + warn) |
maxPromptLength | 1000 | 单条提示词正文上限(字符,超出截断 + warn) |