Install
openclaw skills install @mirza42/saveSave conversations to memory index — FTS5 rebuild, log cross-ref, saved convos dispatch
openclaw skills install @mirza42/saveThree-tier memory system for OpenClaw agents. Zero external dependencies, zero API keys, zero cloud services. Runs entirely on local files and Python stdlib.
Save session context as a standalone document, cross-reference it in a human-readable log, and index it for fast FTS5 full-text search — all with one command.
File: ~/.openclaw/workspace/saved/conversation-log.md
A date-sorted cross-reference index. Every saved conversation has a one-line entry: date, filename, topic summary. The agent reads this at session start and instantly knows what's stored.
- **2026-07-19** 2026-07-19_gif-library-and-picker-skill.md: GIF library + picker built
- **2026-07-18** 2026-07-11_movie-rec-animal-and-all-we-imagine-as-light.md: Discussion about movies
File: /dev/shm/memory-index.db
Built by: memory-index.py
Full-text search over all workspace markdown files and saved conversations. BM25 ranking. Porter stemmer. Synonym awareness.
python3 ~/.openclaw/workspace/saved/memory-index.py search "Playwright in production"
→ [0.12] memory/2026-07-18.md: Playwright testcases — One-Shot Test Generation
Directory: ~/.openclaw/workspace/saved/
The full saved conversation file. Read when the agent needs complete context.
/save WorksWhen the user says "save this conversation":
Synthesize a summary from session context — a standalone document with context, decisions, findings, action items. No tool call noise, no system messages, no chat-log verbatim.
Write the file to ~/.openclaw/workspace/saved/YYYY-MM-DD_topic-slug.md
Update the conversation log — prepend an entry with date, filename, and one-line description. Update the header count.
Rebuild the FTS5 index — runs memory-index.py build which scans all tracked files, builds a Porter-stemmed FTS5 table on tmpfs, generates a topic map JSON, and generates a stub index markdown for Tier 1 initial context.
memory-index.py (386 lines)conversation-log.mdThe agent handles /save automatically. For manual operations:
# Build/rebuild the FTS5 index
python3 ~/.openclaw/workspace/saved/memory-index.py build
# Search the index
python3 ~/.openclaw/workspace/saved/memory-index.py search "your query here"
# List all detected topic tags
python3 ~/.openclaw/workspace/saved/memory-index.py tags
| Variable | Default | Purpose |
|---|---|---|
OPENCLAW_WORKSPACE | ~/.openclaw/workspace | Root workspace directory |
SAVED_CONVERSATIONS_DIR | ~/.openclaw/workspace/saved | Where saved session files live |
# 0. Prerequisites
# - Python 3.8+ (stdlib only — no pip packages needed)
# - An OpenClaw agent with write/edit/exec/read tools
# 1. Create the saved conversations directory (inside the workspace)
mkdir -p ~/.openclaw/workspace/saved
# 2. Initialize the conversation log
echo -e '# Conversation Log\n_0 conversations_\n' > ~/.openclaw/workspace/saved/conversation-log.md
# 3. Copy memory-index.py to an accessible location
# (it's at {baseDir}/memory-index.py)
# 4. Build the initial index
python3 ~/.openclaw/workspace/saved/memory-index.py build
# 5. The /save flow: write file → update log → rebuild index
When the user says "save this", "save this conversation", or invokes /save:
1. Synthesize a clean summary from your session context
2. Write to ~/.openclaw/workspace/saved/YYYY-MM-DD_topic-slug.md
3. Prepend entry to conversation-log.md with date, filename, one-line description
4. Rebuild FTS5 index via memory-index.py build
2026-07-09_topic-slug-2.mdAgents don't have persistent memory. They can't remember what happened last session — unless they write it down. The save skill is a structured writing system that turns ephemeral conversations into durable, queryable knowledge. It's the difference between a chatbot and an assistant that learns over time.