Install
openclaw skills install white-stone-memMemory system with 5 categories - knowledge, projects, error log, daily review, and tasks. Load on demand to avoid memory pollution. 记忆系统 - 包含常识记忆、项目记忆、错题本、每日回顾和任务追踪。按需加载,避免记忆污染。
openclaw skills install white-stone-memYour personal memory system with 5 categories, loaded on demand.
memory/knowledge/common.mdmemory/projects/[project_name].mdmemory/errors/memory/diary/[date].mdmemory/tasks/[task_name].md~/.openclaw/workspace/memory/
├── knowledge/ # 常识记忆 (启动加载)
│ ├── common.md
│ └── reflection-log.md
├── projects/ # 项目记忆 (按需加载)
│ └── [项目名].md
├── errors/ # 错题本 (全局加载)
│ └── [类别].md
├── diary/ # 每日回顾 (日期命名)
│ └── YYYY-MM-DD.md
└── tasks/ # 子任务追踪 (subagent 任务)
└── [任务名].md
EN / 中文, details include both languages. This applies regardless of which language the original context was in. / 所有记忆条目必须双语记录首次使用需要创建目录结构:
mkdir -p memory/knowledge memory/projects memory/errors memory/daily
# 读取
cat memory/knowledge/common.md
# 编辑
vim memory/knowledge/common.md
# 加载项目记忆(用户明确要求时)
cat memory/projects/[项目名].md
# 读取错题本
cat memory/errors/*.md
# 添加新错误
echo "## 新错误\n- 问题:...\n- 原因:...\n- 解决方案:..." >> memory/errors/general.md
# 创建今日回顾
echo "# $(date +%Y-%m-%d) 回顾" > memory/daily/$(date +%Y-%m-%d).md
在现有关键词搜索基础上,增加向量语义搜索能力。
在配置文件中启用:
memory:
vector_search:
enabled: true
⚠️ 开启向量搜索需要配置以下之一:
| 选项 | 说明 |
|---|---|
| A. Gemini API | 提供 GEMINI_API_KEY 环境变量 |
| B. 本地 Ollama | 确保运行 ollama run qwen3-embedding-0.6B |
# 检查 Ollama 是否运行
curl -s localhost:11434/api/tags
| 组件 | 推荐 |
|---|---|
| Embedding | Gemini API 或 Ollama + qwen3-embedding-0.6B |
| 向量库 | FAISS 或 LanceDB |
| 索引 | HNSW (O(log n)) |
/memory build-index # 构建索引
/memory search "xxx" # 搜索
/memory index-status # 查看状态