openclaw-mem

Persist critical session knowledge to MEMORY.md and daily logs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/laoye2020/openclaw-workspace-clean --skill openclaw-mem-laoye2020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-mem
Source: https://github.com/laoye2020/openclaw-workspace-clean/tree/main/skills/openclaw-mem
Command: npx skills add https://github.com/laoye2020/openclaw-workspace-clean --skill openclaw-mem-laoye2020

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that critical knowledge and decisions made by AI agents are preserved beyond the ephemeral nature of session memory, preventing data loss and maintaining a reliable source of truth.

Core Features & Use Cases

  • Session Memory Management: Saves important information from temporary session memory to durable storage before session compaction.
  • Knowledge Curation: Differentiates between temporary session data, daily logs, and long-term, high-signal knowledge.
  • Use Case: An AI agent makes a critical decision about a user's preference. This Skill ensures that decision is saved to MEMORY.md so it's available in future sessions, even if the current session memory is cleared.

Quick Start

Use the openclaw-mem skill to save the current decision as durable knowledge.

Frequently Asked Questions about openclaw-mem

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist AI agent memory to survive session compaction?

You can persist AI agent memory by explicitly commanding the skill to curate critical decisions and write them to durable disk-based storage like MEMORY.md or daily logs, ensuring knowledge survives session compaction.

What is the difference between session memory and long-term durable memory?

Session memory is temporary and cleared during compaction, whereas long-term durable memory is high-signal knowledge explicitly saved to disk-based storage, preserving important facts and preferences for future AI agent sessions.

When do I need to manually save AI agent session memory to disk?

You need to manually save AI agent session memory to disk when critical decisions or user preferences are made, requiring explicit user commands to write knowledge to MEMORY.md before the ephemeral session memory is compacted.

Does AI agent durable storage write to MEMORY.md automatically?

No, durable storage does not write to MEMORY.md automatically. It requires explicit user commands to curate and persist critical knowledge from session memory to disk-based daily logs or long-term storage.

What's the best way to manage daily logs versus long-term knowledge for AI agents?

The best way to manage daily logs versus long-term knowledge is to use a skill that differentiates between them, allowing you to curate temporary session data into daily logs and high-signal facts into durable MEMORY.md storage.

Why does my AI agent lose context after session compaction?

Your AI agent loses context after session compaction because ephemeral session memory is cleared, meaning critical knowledge was not explicitly written to durable disk-based storage like MEMORY.md before the compaction occurred.