ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 4/5

memory-consolidate

Persistent memory system for OpenClaw agents: reads session logs, extracts facts/decisions/solutions, manages temperature-based lifecycle, and generates MEMORY_SNAPSHOT.md injected into every session. ALWAYS use this skill when the user mentions: memory consolidation, 记忆整理, agent memory, MEMORY_SNAPSHOT, memory health, SNR, signal noise ratio, semantic pipeline, memory cron, session log extraction, facts not being saved, memory stale or missing, 内存优化, optimize agent memory, install memory, memory not working, memory consolidate 报错, cron 怎么配 (when related to memory), 每天自动整理记忆, or any question about why the agent forgets things between sessions. Also activate when user says memory is stale, missing, or broken.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/blusehuang1121/memory-consolidate
Or

What This Skill Does

The memory-consolidate skill acts as a persistent cognitive layer for OpenClaw agents, solving the common problem of session-based amnesia. It functions as an automated garbage collector and semantic summarizer for your agent's interactions. By reading session logs, it extracts critical facts, decision-making rationales, and project solutions. It utilizes a temperature-based lifecycle model to manage the 'freshness' of information, decaying stale data while promoting high-signal information into a dynamically generated MEMORY_SNAPSHOT.md file. This snapshot is automatically injected into every new session, ensuring your agent maintains context, history, and continuity across time. It optimizes the Signal-to-Noise Ratio (SNR) by clustering related concepts and deduplicating redundant logs.

Installation

To install, run: clawhub install openclaw/skills/skills/blusehuang1121/memory-consolidate. After installation, execute mkdir -p $OPENCLAW_WORKSPACE/memory/structured/{archive,candidates,semantic} to initialize the storage directories. Patch your agent config to inject the snapshot by running the provided gateway config.patch command. Finally, schedule the daily consolidation task via cron to ensure your agent stays updated at 3:00 AM UTC. Verify the health of your memory system anytime using the observation script: python3 $OPENCLAW_WORKSPACE/scripts/memory_consolidate_observe.py.

Use Cases

  • Long-term project tracking: Retain technical decisions and architecture choices over weeks of development.
  • Agent persona maintenance: Ensure the agent remembers user preferences and identity traits consistently.
  • Knowledge base refinement: Filter out chatter and surface actionable facts from daily log noise.
  • System Recovery: Rapidly restore context if a session is lost or corrupted.

Example Prompts

  1. "The agent seems to have forgotten our project structure; please trigger a memory consolidate to fix the missing details."
  2. "My agent's memory health is low. Can you run the memory optimization and check the SNR?"
  3. "Why does the agent keep asking for setup details I provided last week? Please run a memory snapshot update."

Tips & Limitations

  • Configuration: Always ensure IDENTITY.md and USER.md are populated; the skill relies on these for context-aware extraction.
  • Tuning: If you find the agent is holding onto too much irrelevant data, increase the temperature.age_lambda value in your config.yaml to speed up the decay of older items.
  • Dependency: Ensure the tui provider in your openclaw.json is configured correctly, as the semantic clustering relies on this LLM connection to perform high-level synthesis of your logs.

Metadata

Stars4190
Views1
Updated2026-04-18
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-blusehuang1121-memory-consolidate": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#memory#automation#context#persistence#optimization
Safety Score: 4/5

Flags: file-write, file-read, code-execution, external-api