Memory Setup

sundial-org/awesome-openclaw-skills/skills/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 從公開儲存庫中收錄這些內容。

檢舉或申請下架