memory
Complete memory system for OpenClaw agents. Combines behavioral protocol (when to save) + auto-capture (heartbeat-enforced) + keyword search (recall) + maintenance (consolidation). Use for persistent memory, context recovery, answering "what did we discuss about X", and surviving context compaction. Includes SESSION-STATE.md pattern for hot context and RECENT_CONTEXT.md for auto-updated highlights.
Why use this skill?
Give your OpenClaw agent a long-term memory. Automatically capture, search, and manage project context with this robust memory system to avoid losing information.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/rosepuppy/memoryWhat This Skill Does
The Memory skill provides OpenClaw agents with a persistent, structured, and intelligent long-term memory system. Unlike standard LLM context windows that reset, this skill implements a multi-layer architecture including a behavioral protocol, automatic background capture via heartbeat, keyword-based recall, and periodic maintenance (consolidation). It ensures your agent maintains continuity across sessions by managing state via dedicated files like SESSION-STATE.md and RECENT_CONTEXT.md. The system operates on four pillars: a strict interaction protocol for saving information, a timer-enforced capture mechanism, a relevance-ranked recall system with time-decay, and an automated consolidation process to prune redundant data.
Installation
To integrate this skill, follow these steps:
- Execute the installation command:
clawhub install openclaw/skills/skills/rosepuppy/memory. - Copy the reference templates to your root directory:
cp skills/memory/references/SESSION-STATE.md ./andcp skills/memory/references/RECENT_CONTEXT.md ./. - Integrate the Memory Protocol into your
AGENTS.mdto force the agent to query memory before responding to specific questions. - Configure your
HEARTBEAT.mdto trigger thecapture.pyscript automatically, ensuring that insights are stored immediately after meaningful exchanges.
Use Cases
- Context Persistence: Maintain state for multi-day coding projects or ongoing research tasks.
- Knowledge Management: Automatically extract, categorize, and store user preferences and project decisions.
- Context Recovery: Instantly recall previous technical constraints, API keys, or project-specific jargon without manual prompting.
- Session Compaction: Avoid context window bloat by offloading historical data to memory files and only loading what is strictly relevant.
Example Prompts
- "What was the conclusion we reached about the database schema optimization during our meeting last Tuesday?"
- "Update my session state to note that I prefer using Tailwind CSS over standard CSS for this specific frontend project."
- "Show me the last three decisions we made regarding the authentication flow for the user dashboard."
Tips & Limitations
- Protocol Adherence: The system works best when the agent strictly follows the AGENTS.md instructions. Ensure your agent is configured to prioritize memory retrieval before answering questions.
- Pruning: Run the
consolidate.pyscript regularly. Storing too much irrelevant information can lead to 'context pollution' where recall scores become noisy. - File Permissions: Since this skill performs file-write operations, ensure the agent process has appropriate permissions to modify the project-specific memory markdown files.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-rosepuppy-memory": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
agent-identity
Cryptographic identity for AI agents. Register on-chain identity, sign messages, verify other agents, link platform accounts. Stake USDC to prove you're real. Built by g1itchbot for the USDC Hackathon.
memory
Complete memory system for OpenClaw agents. Combines behavioral protocol (when to save) + auto-capture (heartbeat-enforced) + keyword search (recall) + maintenance (consolidation). Use for persistent memory, context recovery, answering "what did we discuss about X", and surviving context compaction. Includes SESSION-STATE.md pattern for hot context and RECENT_CONTEXT.md for auto-updated highlights.