/install clawmem-pro
OpenClaw Memory System
What This Skill Does
Implements a complete file-based memory architecture that persists across OpenClaw sessions. Agents wake up with full context instead of starting from zero.
When to Trigger
- User says "my agent forgets everything"
- User wants to set up memory for their agent
- User mentions MEMORY.md, daily notes, cron inbox, or heartbeat routines
- User asks how to make agent remember between sessions
- Setting up a new agent workspace
- Configuring cron jobs for memory extraction
Installation (Agent Instructions)
When this skill triggers, the agent should:
-
Run the installer script from the skill directory:
- Windows:
./scripts/install.ps1 -WorkspacePath \x3Cworkspace> - Linux/macOS:
./scripts/install.sh -WorkspacePath \x3Cworkspace> - The installer creates:
MEMORY.md,HEARTBEAT.md,memory/directory, templates, cron configs
- Windows:
-
Verify 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 notes
-
Seed MEMORY.md with operator context:
- Operator name, timezone, communication preferences
- Active projects, priorities, decisions
- Important people, relationships, boundaries
- Tool preferences, coding style, review rules
-
Configure cron jobs (optional but recommended):
- Nightly memory extraction: 23:00 daily
- Heartbeat check: every 30 minutes
- Use
./scripts/setup-cron.ps1or./scripts/setup-cron.sh
Directory Structure After Install
workspace/
|-- 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
Daily Workflow
On Every Session Start
- Read
MEMORY.md— who you are, operator context, priorities - Read
memory/YYYY-MM-DD.md(today + yesterday) — recent context - Check
memory/cron-inbox.md— messages from other sessions
During the Session
- Write everything significant to
memory/YYYY-MM-DD.md:- Decisions made, lessons learned
- Errors encountered and how fixed
- New projects started, completed milestones
- Changes to operator preferences or context
- Format:
## HH:MM -- Brief title - Be raw and verbose — this is working memory
Before Session Ends
- Check if cron inbox needs processing
- If significant events occurred, append a summary to MEMORY.md under relevant sections
Heartbeat Routine
The heartbeat script (scripts/heartbeat-check.ps1 or .sh) runs periodically and:
- Processes
memory/cron-inbox.mdentries into daily notes - Clears the inbox after processing
- Updates
memory/heartbeat-state.jsonwith timestamps - Checks for stale or completed cron jobs
Memory Extraction
The nightly cron (scripts/memory-extract.ps1 or .sh) at 23:00:
- Reads today's daily notes
- Looks for significant keywords: decided, lesson, milestone, completed, shipped, fixed, breakthrough
- Extracts matching entries with context
- Appends to
MEMORY.mdunder a dated "Daily Extracts" section - Marks daily notes as extracted
Writing Good Daily Notes
- Timestamp every entry:
## HH:MM -- What happened - Include context: what triggered it, what was decided, rationale
- Don't censor — this is raw working memory, not curated wisdom
- Significant entries will be extracted automatically
- Review MEMORY.md weekly to remove outdated info
Security Rules
MEMORY.mdmay contain operator-specific info — only load in trusted (direct) sessions- Skip MEMORY.md in group chats or shared contexts
- Never share operator personal details externally without approval
- Keep private info private
Customization
Adjust Extraction Keywords
Edit scripts/memory-extract.ps1 (or .sh) $significanceKeywords array:
- Default: decided, lesson learned, important, breakthrough, milestone, completed, shipped, fixed
- Add domain-specific keywords as needed
Add New Heartbeat Checks
Edit HEARTBEAT.md and scripts/heartbeat-check.* to add custom periodic checks:
- Service health checks
- File cleanup routines
- External API status checks
Change Cron Schedule
Edit scripts/setup-cron.ps1 or scripts/setup-cron.sh:
- Memory extraction: default 23:00
- Heartbeat: default every 30 min
- Daily notes reminder: default 09:00
Troubleshooting
Agent still forgets between sessions:
- Verify AGENTS.md includes "Read MEMORY.md on every session"
- Check that MEMORY.md file exists and is readable
- Ensure daily notes are being written
Cron inbox not processing:
- Check heartbeat-state.json for last run timestamp
- Verify cron jobs are scheduled (run
./scripts/setup-cron.*) - Check if heartbeat-check script exists and is executable
Memory extraction not running:
- Verify cron job is scheduled
- Check that daily notes exist for extraction
- Review extraction keywords if nothing is being picked up
Templates
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 playbook
Copy these during installation; do not modify originals.
Cross-Platform
Scripts provided for both PowerShell (Windows) and Bash (Linux/macOS):
*.ps1— PowerShell scripts*.sh— Bash scripts
Always check both versions exist when editing.
Scripts Reference
| 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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clawmem-pro - After installation, invoke the skill by name or use
/clawmem-pro - Provide required inputs per the skill's parameter spec and get structured output
What is ClawMem Pro?
Use whenever the user wants persistent memory across OpenClaw sessions, mentions MEMORY.md, daily notes, cron inbox, heartbeat routines, agent identity, or '... It is an AI Agent Skill for Claude Code / OpenClaw, with 59 downloads so far.
How do I install ClawMem Pro?
Run "/install clawmem-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is ClawMem Pro free?
Yes, ClawMem Pro is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does ClawMem Pro support?
ClawMem Pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created ClawMem Pro?
It is built and maintained by Marc69-69 (@marc69-69); the current version is v1.0.0.