Memory Setup

作者 sundial-orgb80cde2ef852无许可证663 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

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.

仅含说明AI & Agents
AI 生成的概览

为 Moltbot/Clawdbot 代理配置持久记忆搜索,涵盖配置、记忆文件与每日日志。

功能
指导在 Moltbot/Clawdbot 配置文件中设置 memorySearch 配置块,包括提供方、索引来源、索引模式、相关度阈值与结果数量上限。它定义工作区记忆结构,包含 MEMORY.md 以及 memory/logs、projects、groups、system 目录,并提供 MEMORY.md 与每日日志的模板。此外还给出代理回忆指令、故障排查步骤和验证方法。
适用场景
适用于为 Moltbot/Clawdbot 代理启用或修复持久记忆,或用户需要配置 memorySearch 时。也适用于代理在会话之间丢失上下文、需要建立记忆结构与回忆流程的情况。
运行要求
需要已安装 Moltbot/Clawdbot,并具备配置文件(如 ~/.clawdbot/clawdbot.json 或 moltbot.json)以及工作区目录。需要嵌入提供方访问权限:托管提供方需设置 VOYAGE_API_KEY 或 OPENAI_API_KEY,或使用无需密钥的本地提供方。更改后需重启网关。仅为说明文档,不附带脚本。

Memory Setup Skill

Transform your agent from goldfish to elephant. This skill helps configure persistent memory for Moltbot/Clawdbot.

Quick Setup

1. Enable Memory Search in Config

Add to ~/.clawdbot/clawdbot.json (or moltbot.json):

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

2. Create Memory Structure

In your workspace, create:

workspace/├── MEMORY.md              # Long-term curated memory└── memory/    ├── logs/              # Daily logs (YYYY-MM-DD.md)    ├── projects/          # Project-specific context    ├── groups/            # Group chat context    └── system/            # Preferences, setup notes

3. Initialize MEMORY.md

Create MEMORY.md in workspace root:

markdown
# MEMORY.md — Long-Term Memory
## About [User Name]- Key facts, preferences, context
## Active Projects- Project summaries and status
## Decisions & Lessons- Important choices made- Lessons learned
## Preferences- Communication style- Tools and workflows

Config Options Explained

SettingPurposeRecommended
enabledTurn on memory searchtrue
providerEmbedding provider"voyage"
sourcesWhat to index["memory", "sessions"]
indexModeWhen to index"hot" (real-time)
minScoreRelevance threshold0.3 (lower = more results)
maxResultsMax snippets returned20

Provider Options

  • voyage — Voyage AI embeddings (recommended)
  • openai — OpenAI embeddings
  • local — Local embeddings (no API needed)

Source Options

  • memory — MEMORY.md + memory/*.md files
  • sessions — Past conversation transcripts
  • both — Full context (recommended)

Daily Log Format

Create memory/logs/YYYY-MM-DD.md daily:

markdown
# YYYY-MM-DD — Daily Log
## [Time] — [Event/Task]- What happened- Decisions made- Follow-ups needed
## [Time] — [Another Event]- Details

Agent Instructions (AGENTS.md)

Add to your AGENTS.md for agent behavior:

markdown
## Memory RecallBefore answering questions about prior work, decisions, dates, people, preferences, or todos:1. Run memory_search with relevant query2. Use memory_get to pull specific lines if needed3. If low confidence after search, say you checked

Troubleshooting

Memory search not working?

  1. Check memorySearch.enabled: true in config
  2. Verify MEMORY.md exists in workspace root
  3. Restart gateway: clawdbot gateway restart

Results not relevant?

  • Lower minScore to 0.2 for more results
  • Increase maxResults to 30
  • Check that memory files have meaningful content

Provider errors?

  • Voyage: Set VOYAGE_API_KEY in environment
  • OpenAI: Set OPENAI_API_KEY in environment
  • Use local provider if no API keys available

Verification

Test memory is working:

User: "What do you remember about [past topic]?"Agent: [Should search memory and return relevant context]

If agent has no memory, config isn't applied. Restart gateway.

Full Config Example

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

Why This Matters

Without memory:

  • Agent forgets everything between sessions
  • Repeats questions, loses context
  • No continuity on projects

With memory:

  • Recalls past conversations
  • Knows your preferences
  • Tracks project history
  • Builds relationship over time

Goldfish → Elephant. 🐘

来源与署名

来源:sundial-org/awesome-openclaw-skills位于skills/memory-setup提交b80cde2

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架