Install
openclaw skills install memoria-persistente-agentesPersistent memory system for AI agents inspired by Letta/MemGPT. Three-layer memory architecture (Core, Archival, Recall) that lets agents remember across sessions. Use when: (1) agent needs to recall user preferences, context, or decisions from past conversations, (2) starting a new session and needing context continuity, (3) user says 'remember this', 'you should know', or 'like last time', (4) agent detects important information worth persisting, (5) periodic memory maintenance during heartbeats. NOT for: simple Q&A with no persistence need.
openclaw skills install memoria-persistente-agentesThree-layer persistent memory for agents. No more starting from zero every session.
| Layer | What | Where | When |
|---|---|---|---|
| Core | Always in context | memory/core.md | Every session, auto-loaded |
| Archival | Searchable storage | memory/archival/*.md | On demand, semantic search |
| Recall | Session transcripts | OpenClaw session files | When needed via memory_search |
memory/core.md)Compact (~500-1000 words), always loaded. The agent's "working memory".
# Core Memory
## Identity
- Agent name, personality, role
## User
- Name, preferences, communication style, key facts
## Active Context
- Current projects, recent events, pending tasks
## Quick Reference
- Frequently needed info (medications, schedule, credentials refs)
memory/archival/)Long-term storage organized by topic. Searched, not loaded.
memory/archival/
├── people/ # People and relationships
├── projects/ # Project details and decisions
├── decisions/ # Important decisions made
├── learnings/ # Lessons learned
└── reference/ # Facts, procedures, how-tos
# [Topic] — YYYY-MM-DD
## Summary
One-line description
## Details
Full context
## Tags
comma, separated, tags
Use memory_search to find relevant archival entries. Never load all archival files at once.
memory/core.mdmemory/YYYY-MM-DD.md if existsmemory/YYYY-MM-DD.md filesWhen core grows too large or items become stale:
When archival info is needed repeatedly:
At natural breakpoints or heartbeat:
First run? Set up the structure:
mkdir -p memory/archival/{people,projects,decisions,learnings,reference}
Create memory/core.md if it doesn't exist:
# Core Memory
## Identity
- [Agent fills this in]
## User
- [Agent fills this in]
## Active Context
- [Agent fills this in]
## Quick Reference
- [Agent fills this in]
scripts/consolidate.pyConsolidates daily notes into archival entries. Run during heartbeats or manually.
python3 scripts/consolidate.py --days 7 --workspace /path/to/workspace
Options:
--days N — look back N days of daily notes (default: 7)--workspace PATH — workspace root (default: current dir)--dry-run — show what would be written without writingscripts/core-trim.pyTrims core.md when it exceeds the word limit.
python3 scripts/core-trim.py --max-words 1000 --workspace /path/to/workspace
Options:
--max-words N — maximum words for core.md (default: 1000)--workspace PATH — workspace root--dry-run — show what would be demoted without editing