返回顶部
m

memory-setup记忆配置

Enable and configure Moltbot/Clawdbot memory search for persistent context. Use when setting up memory, fixing "goldfish brain," or helping users configure memorySearch in their config. Covers MEMORY.md, daily logs, and vector search setup.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
148
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

memory-setup

记忆设置技能

将您的智能体从金鱼变成大象。此技能帮助为Moltbot/Clawdbot配置持久化记忆。

快速设置

1. 在配置中启用记忆搜索

添加到 ~/.clawdbot/clawdbot.json(或 moltbot.json):

json
{
memorySearch: {
enabled: true,
provider: voyage,
sources: [memory, sessions],
indexMode: hot,
minScore: 0.3,
maxResults: 20
}
}

2. 创建记忆结构

在工作区中,创建:

workspace/
├── MEMORY.md # 长期整理记忆
└── memory/
├── logs/ # 每日日志(YYYY-MM-DD.md)
├── projects/ # 项目特定上下文
├── groups/ # 群聊上下文
└── system/ # 偏好设置、配置笔记

3. 初始化MEMORY.md

在工作区根目录创建 MEMORY.md:

markdown

MEMORY.md — 长期记忆

关于 [用户名]

  • - 关键事实、偏好、上下文

活跃项目

  • - 项目摘要和状态

决策与经验

  • - 重要选择记录
  • 经验教训

偏好设置

  • - 沟通风格
  • 工具和工作流程

配置选项说明

设置用途推荐值
enabled开启记忆搜索true
provider
嵌入提供方 | voyage | | sources | 索引内容 | [memory, sessions] | | indexMode | 索引时机 | hot(实时) | | minScore | 相关性阈值 | 0.3(越低结果越多) | | maxResults | 返回最大片段数 | 20 |

提供方选项

  • - voyage — Voyage AI嵌入(推荐)
  • openai — OpenAI嵌入
  • local — 本地嵌入(无需API)

来源选项

  • - memory — MEMORY.md + memory/*.md文件
  • sessions — 过往对话记录
  • both — 完整上下文(推荐)

每日日志格式

每天创建 memory/logs/YYYY-MM-DD.md:

markdown

YYYY-MM-DD — 每日日志

[时间] — [事件/任务]

  • - 发生了什么
  • 做出的决定
  • 需要跟进的事项

[时间] — [另一事件]

  • - 详细信息

智能体指令(AGENTS.md)

在AGENTS.md中添加以下内容以控制智能体行为:

markdown

记忆召回


在回答关于先前工作、决策、日期、人员、偏好或待办事项的问题前:
  1. 1. 使用相关查询运行memorysearch
  2. 必要时使用memoryget提取特定行
  3. 如果搜索后信心不足,说明已检查过

故障排除

记忆搜索不工作?

  1. 1. 检查配置中 memorySearch.enabled: true
  2. 确认工作区根目录存在MEMORY.md
  3. 重启网关:clawdbot gateway restart

结果不相关?

  • - 将 minScore 降低至 0.2 以获取更多结果
  • 将 maxResults 增加至 30
  • 检查记忆文件是否包含有意义的内容

提供方错误?

  • - Voyage:在环境中设置 VOYAGEAPIKEY
  • OpenAI:在环境中设置 OPENAIAPIKEY
  • 如果没有API密钥,使用 local 提供方

验证

测试记忆是否正常工作:

用户:关于[过去话题]你还记得什么?
智能体:[应搜索记忆并返回相关上下文]

如果智能体没有记忆,说明配置未生效。请重启网关。

完整配置示例

json
{
memorySearch: {
enabled: true,
provider: voyage,
sources: [memory, sessions],
indexMode: hot,
minScore: 0.3,
maxResults: 20
},
workspace: /path/to/your/workspace
}

为何重要

没有记忆:

  • - 智能体会在会话间遗忘所有内容
  • 重复提问,丢失上下文
  • 项目缺乏连续性

拥有记忆:

  • - 回忆过往对话
  • 了解您的偏好
  • 追踪项目历史
  • 随时间建立关系

从金鱼到大象。🐘

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memory-setup-jack-1776113293 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 memory-setup-jack-1776113293 技能

通过命令行安装

skillhub install memory-setup-jack-1776113293

下载

⬇ 下载 memory-setup v1.0.0(免费)

文件大小: 2.43 KB | 发布时间: 2026-4-14 14:11

v1.0.0 最新 2026-4-14 14:11
- Initial release of the memory-setup skill for Moltbot/Clawdbot.
- Step-by-step guide to enable and configure persistent memory search, covering config file changes and recommended settings.
- Instructions for creating MEMORY.md and organizing long-term and daily memory files.
- Troubleshooting section for common setup and provider issues.
- Example config and agent instructions included for easy setup and verification.
- Explains key options, provider choices, and the benefits of persistent memory for chatbot agents.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部