Autonomous session scribe — reads today's OpenClaw session logs, extracts decisions, preferences, framework sentences, and project updates, then writes a structured daily memory file. Use when setting up automated memory extraction for an AI agent, or when manually triggering a memory consolidation pass. Works as a cron job (isolated session) or on-demand.
An autonomous "stenographer" agent that watches your OpenClaw session history and extracts what matters into persistent, structured memory files — so your agent remembers across sessions without relying on context window compaction.
1. Copy the skill to your workspace:
cp -r skills/public/scribe ~/.openclaw/workspace/skills/public/scribe
2. Register the nightly cron job (one command):
python3 skills/public/scribe/scripts/setup-cron.py
That's it. Scribe will run every night at 23:30 and write memory/YYYY-MM-DD.md to your workspace.
3. Run manually anytime:
python3 skills/public/scribe/scripts/scribe.py
~/.openclaw/agents/main/sessions/{workspace}/memory/YYYY-MM-DD.md# YYYY-MM-DD Memory (Scribe)
## 🔑 Decisions Made
## 💡 Preferences & Rules
## 🗣️ Framework Sentences
## 📦 Project Updates
## ✅ Todos / Follow-ups
Environment variables (all optional — defaults work out of the box):
| Variable | Default | Description |
|---|---|---|
SCRIBE_SESSION_DIR | ~/.openclaw/agents/main/sessions | Session JSONL location |
SCRIBE_WORKSPACE | ~/.openclaw/workspace | Where memory files are written |
SCRIBE_DAYS | 1 | Days back to scan |
SCRIBE_MODEL | anthropic/claude-haiku-4-5 | LLM model (OpenRouter ID) |
SCRIBE_APPEND_LONGTERM | false | Also append to MEMORY.md |
OPENROUTER_API_KEY | (from OpenClaw config) | Override API key |
references/cron-setup.md — manual config, launchd, timezone changesreferences/signal-guide.md — how the LLM decides what's worth extracting