ai-fu-cn/dsh-plugin-memos-code-retrospect ↗★ 0
dsh-plugin-memos-code-retrospect
订阅对话结束并对完整对话进行 LLM 蒸馏,将踩坑记录等以特定标签写入 MemOS,并在编码任务时提升该记忆的检索权重。
AI 分析
自动提取对话中的失败教训和工程约束并存入 MemOS,在后续编码时优先检索以防重蹈覆辙。适合进行复杂软件开发、希望智能体具备“吃一堑长一智”记忆能力的开发者。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗配置说明
| 配置项 | 默认 | 说明 |
|---|---|---|
enabled | true | 插件总开关,一键启停(对照实验用) |
home | "" | MemOS 数据目录(空则用 resolveHome 默认值,与主插件一致) |
profileId | "default" | 记忆命名空间 profile |
recallEnabled | true | 读取链路(pre-step 加权检索)开关 |
recallTimeoutMs | 3000 | 检索 deadline |
recallTopK | 6 | 最终注入条数 |
boostFactor | 2 | type:rejected_solution 命中 score 倍率(enable_weight) |
contextMaxChars | 3000 | `` 最大长度 |
codingKeywords | 内置词表 | 编码任务识别关键词 |
captureEnabled | true | 写入链路(turn/end 蒸馏)开关 |
distillModel | "" | 蒸馏 LLM 模型(distill_llm),留空跟随会话路由 |
distillMaxTokens | 2048 | 蒸馏输出上限 |
distillTimeoutMs | 60000 | 蒸馏超时 |
distillMinChars | 300 | 本轮对话小于该长度跳过蒸馏 |
maxDistillContextChars | 8192 | 蒸馏最大上下文长度(max_distill_context),超长自动截断 |
distillRetries | 1 | JSON 解析失败重试次数(v2 降级策略) |
dedupeEnabled | true | 写入前去重开关(v2) |
dedupeThreshold | 0.82 | 相似度阈值,超过则视为重复跳过写入 |
valueFilterEnabled | true | 低价值内容过滤开关(v2) |
sync_to_tencentdb | false | TencentDB-Agent-Memory 可选同步(预留,默认关闭) |