A sophisticated three-tier memory management system for AI agents that handles short-term context, mid-term summaries, and long-term vector storage.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install monica-three-tier-memory
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install monica-three-tier-memory using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Memory Manager is a professional-grade architectural tool designed to solve the context window limitations of modern LLMs. By integrating this into Openclaw Skills, developers can provide their agents with a structured memory hierarchy: short-term sliding windows for immediate flow, medium-term summaries for historical continuity, and long-term vector retrieval for permanent knowledge.
This system ensures that agents remain contextually aware without suffering from performance degradation or excessive token costs. It utilizes local storage and efficient vector databases to create a persistent identity for AI agents, allowing them to recall user preferences and past project details across different sessions and workflows.
To get started with this memory architecture for Openclaw Skills, follow these steps:
# Initialize the memory management system
python3 scripts/memory_manager.py init
# Add a specific piece of information to the short-term memory
python3 scripts/memory_manager.py add --type short --content "User prefers Python for backend tasks"
# Query the memory tiers for relevant information
python3 scripts/memory_manager.py search "What are the user preferences?"
Ensure you configure your memory/config.yaml to set your desired window_size and summary_threshold values.
The Memory Manager organizes data across three distinct layers to optimize retrieval speed and context accuracy:
| Tier | Storage Location | Logic | Purpose |
|---|---|---|---|
| Short-Term | memory/sliding-window.json |
FIFO Queue | Maintains real-time conversation flow. |
| Medium-Term | memory/summaries/ |
Periodic Compression | Saves token-heavy history as concise summaries. |
| Long-Term | memory/vector-store/ |
ChromaDB (Vector) | Provides semantic retrieval for permanent RAG. |
Loading
A sophisticated three-tier memory architecture providing sliding windows, automated summarization, and vector-based long-term storage for AI agents.

An AI-powered analysis tool that deconstructs video ad creatives into actionable marketing insights like hooks, social proof, and emotional triggers.

An AI-driven toolkit for extracting text, scenes, and transcriptions from video advertisements using Google Gemini Vision.

A data-driven performance tracking skill for analyzing Meta Ads creative hit rates and cross-account benchmarks.

An intelligent maintenance assistant that monitors logs to automatically diagnose errors, search for solutions, and apply fixes or create pull requests.

A sophisticated three-tier memory architecture for AI agents that manages short-term context, medium-term summaries, and long-term vector-based retrieval.








































