memory-setup
Skill56 starsChanged 9 months agoMITView on GitHub
启用并配置 Moltbot/Clawdbot 的持久化记忆搜索功能。当用户需要设置记忆功能、修复"金鱼记忆"问题,或配置 memorySearch 时使用。涵盖 MEMORY.md、每日日志和向量搜索的设置。
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- sloemo01/hermes-skills-bundletheir own version, first seen Jul 28, 2026
- IlyaGorsky/memory-toolkittheir own version, first seen Apr 13, 2026
- thoitiettxl-cyber/Claw-IItheir own version, first seen Apr 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- IlyaGorsky/memory-toolkit★ 13same name
- sloemo01/hermes-skills-bundle★ 9same name
- thoitiettxl-cyber/Claw-II★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository89 other files it gives its agents.
- skills/proactive-agent-zh/assets/AGENTS.mdAGENTS.md
- skills/ai-persona-os-zh/CLAUDE.mdCLAUDE.md
- skills/ui-ux-pro-max-zh/CLAUDE.mdCLAUDE.md
- admapix-zhSkill
- agent-autonomy-kit-zhSkill
- agent-browser-zhSkill
- ai-business-search-zhSkill
- personaSkill
- answer-overflow-zhSkill
- api-gateway-zhSkill
- automation-workflows-zhSkill
- auto-updater-zhSkill
- baidu-search-zhSkill
- brave-search-zhSkill
- brave-web-search-zhSkill
- browser-use-zh-cloudSkill
- browser-use-zh-open-sourceSkill
- browser-use-zh-remote-browserSkill
- browser-use-zhSkill
- byteroverSkill
- caldav-calendar-zhSkill
- capability-evolverSkill
- clawddocs-zhSkill
- clawhub-zhSkill
- content-ideas-generator-zhSkill
- desktop-control-zhSkill
- edgeone-clawscan-zhSkill
- elite-longterm-memory-zhSkill
- evolver-zhSkill
- Excel / XLSXSkill
- filesystem-management-zhSkill
- find-skills-zhSkill
- freeride-zhSkill
- frontend-design-zhSkill
- githubSkill
- gmail-zhSkill
- gog-zhSkill
- gongwen-writingSkill
- gongwen-writing-zhSkill
- gongwenSkill
- humanize-ai-text-zhSkill
- humanizer-zhSkill
- imap-smtp-email-zhSkill
- markdown-converter-zhSkill
- marketing-mode-zhSkill
- marketing-skillsSkill
- mcporterSkill
- minara-zhSkill
- model-usageSkill
- moltguardSkill
- moltguard-zhSkill
- multi-search-engineSkill
- n8n-workflow-automationSkill
- nano-banana-pro-prompts-recommend-skillSkill
- nano-banana-pro-zhSkill
- nano-pdf-zhSkill
- news-summary-zhSkill
- notionSkill
- obsidianSkill
- ontologySkill
- The first 60 shown.
The file
Files
记忆设置技能
让你的 Agent 从金鱼变成大象。本技能帮助配置 Moltbot/Clawdbot 的持久化记忆功能。
快速设置
1. 在配置中启用记忆搜索
添加到 ~/.clawdbot/clawdbot.json(或 moltbot.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:
# 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:
# YYYY-MM-DD — 每日日志
## [时间] — [事件/任务]
- 发生了什么
- 做出的决策
- 需要跟进的事项
## [时间] — [另一个事件]
- 详细信息Agent 指令(AGENTS.md)
将以下内容添加到 AGENTS.md 中以控制 Agent 行为:
## 记忆回忆
在回答关于过往工作、决策、日期、人物、偏好或待办事项的问题前:
1. 使用 memory_search 进行相关查询
2. 需要时使用 memory_get 提取具体行
3. 如果搜索后信心不足,说明已检查过记忆故障排除
记忆搜索不工作?
- 检查配置中
memorySearch.enabled: true是否已设置 - 确认工作区根目录存在 MEMORY.md
- 重启网关:
clawdbot gateway restart
搜索结果不相关?
- 将
minScore降低到0.2以获取更多结果 - 将
maxResults增加到30 - 检查记忆文件中是否有有意义的内容
提供商报错?
- Voyage:在环境变量中设置
VOYAGE_API_KEY - OpenAI:在环境变量中设置
OPENAI_API_KEY - 如无 API 密钥,使用
local提供商
验证
测试记忆功能是否正常工作:
用户:"你还记得关于 [过去的话题] 的什么事吗?"
Agent:[应该搜索记忆并返回相关上下文]如果 Agent 没有记忆,说明配置未生效。请重启网关。
完整配置示例
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
},
"workspace": "/path/to/your/workspace"
}为什么这很重要
没有记忆:
- Agent 每次会话都会忘记一切
- 重复提问,丢失上下文
- 项目缺乏连续性
有记忆后:
- 能回忆过去的对话
- 了解你的偏好
- 追踪项目历史
- 随时间建立关系
金鱼 → 大象。🐘
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

