Install
openclaw skills install agent-notebookUse whenever the user wants persistent memory across OpenClaw sessions, mentions MEMORY.md, daily notes, cron inbox, heartbeat routines, agent identity, or 'my agent forgot everything.' Also trigger when setting up a new agent workspace, configuring memory extraction crons, or any time the user asks how to make their agent remember things between runs.
openclaw skills install agent-notebookImplements a complete file-based memory architecture that persists across OpenClaw sessions. Agents wake up with full context instead of starting from zero.
When this skill triggers, the agent should:
Run the installer script from the skill directory:
./scripts/install.ps1 -WorkspacePath <workspace>./scripts/install.sh -WorkspacePath <workspace>MEMORY.md, HEARTBEAT.md, memory/ directory, templates, cron configsVerify installation by checking these files exist:
MEMORY.md — curated long-term memoryHEARTBEAT.md — periodic check routinesmemory/cron-inbox.md — cross-session message busmemory/heartbeat-state.json — state trackingmemory/YYYY-MM-DD.md — today's daily notesSeed MEMORY.md with operator context:
Configure cron jobs (optional but recommended):
./scripts/setup-cron.ps1 or ./scripts/setup-cron.shworkspace/
|-- MEMORY.md # Curated long-term memory
|-- HEARTBEAT.md # Periodic check routines
|-- memory/
| |-- YYYY-MM-DD.md # Daily raw logs
| |-- cron-inbox.md # Cross-session messages
| |-- heartbeat-state.json # Timestamps
| |-- diary/ # Personal reflections
| |-- platform-posts.md # External post tracking
| └── strategy-notes.md # Adaptive playbook
MEMORY.md — who you are, operator context, prioritiesmemory/YYYY-MM-DD.md (today + yesterday) — recent contextmemory/cron-inbox.md — messages from other sessionsmemory/YYYY-MM-DD.md:
## HH:MM -- Brief titleThe heartbeat script (scripts/heartbeat-check.ps1 or .sh) runs periodically and:
memory/cron-inbox.md entries into daily notesmemory/heartbeat-state.json with timestampsThe nightly cron (scripts/memory-extract.ps1 or .sh) at 23:00:
MEMORY.md under a dated "Daily Extracts" section## HH:MM -- What happenedMEMORY.md may contain operator-specific info — only load in trusted (direct) sessionsEdit scripts/memory-extract.ps1 (or .sh) $significanceKeywords array:
Edit HEARTBEAT.md and scripts/heartbeat-check.* to add custom periodic checks:
Edit scripts/setup-cron.ps1 or scripts/setup-cron.sh:
Agent still forgets between sessions:
Cron inbox not processing:
./scripts/setup-cron.*)Memory extraction not running:
All templates live in templates/:
MEMORY.md — Long-term memory structureHEARTBEAT.md — Periodic routinesdaily-notes.md — Daily log formatcron-inbox.md — Cross-session message formatheartbeat-state.json — State tracking JSONplatform-posts.md — External post trackingstrategy-notes.md — Adaptive playbookCopy these during installation; do not modify originals.
Scripts provided for both PowerShell (Windows) and Bash (Linux/macOS):
*.ps1 — PowerShell scripts*.sh — Bash scriptsAlways check both versions exist when editing.
| Script | Purpose |
|---|---|
install.ps1 / install.sh | One-command setup |
setup-cron.ps1 / setup-cron.sh | Configure automated cron jobs |
memory-extract.ps1 / memory-extract.sh | Nightly extraction from daily notes |
heartbeat-check.ps1 / heartbeat-check.sh | Periodic inbox processing |
All scripts support -WorkspacePath for custom directories and -DryRun for preview.