memory-manager
三级记忆管理系统 (Three-Tier Memory Management)。用于管理 AI 代理的短期、中期、长期记忆。包括:(1) 滑动窗口式短期记忆,(2) 自动摘要生成中期记忆,(3) 向量检索长期记忆 (RAG)。当需要管理对话历史、优化上下文、构建个人知识库、或实现记忆持久化时使用此 Skill。
Why use this skill?
Enhance your AI agent with a three-tier memory system. Implement sliding windows, automated summaries, and RAG vector search for intelligent, persistent context.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/forvendettaw/monica-memory-managerWhat This Skill Does
The Memory Manager Skill is a sophisticated three-tier architecture designed to endow OpenClaw AI agents with persistent, context-aware intelligence. It replicates human-like memory patterns by segregating information into three distinct functional layers. The Short-Term Memory utilizes a sliding window mechanism (FIFO) to maintain immediate, coherent conversational flow without overwhelming the model's context window. The Mid-Term Memory acts as a compression layer, automatically generating summaries of past interactions once specific token thresholds are met, ensuring historical context is preserved in a lightweight format. Finally, the Long-Term Memory leverages ChromaDB for vector-based semantic retrieval (RAG), allowing the agent to recall specific facts, user preferences, or historical data across multiple, disconnected sessions, effectively creating a persistent knowledge base for the agent.
Installation
To integrate this skill into your environment, run the following command via the OpenClaw CLI:
clawhub install openclaw/skills/skills/forvendettaw/monica-memory-manager
After installation, navigate to the memory/ directory to configure the config.yaml file according to your specific storage requirements, such as adjusting the window_size for short-term recall or the summary_threshold for automated summarization triggers.
Use Cases
- Personalized Assistants: Remember user preferences, past habits, or specific instructions given weeks ago.
- Long-running Research: Maintain focus across multiple sessions by pulling in relevant information from historical data.
- Knowledge Management: Build a searchable database where the AI can retrieve technical details or notes using semantic search.
- Workflow Continuity: Resume complex tasks or coding sessions without needing to re-explain the project context from scratch.
Example Prompts
- "Check your long-term memory and recall the specific project requirements I mentioned last Tuesday regarding the API architecture."
- "Summarize the current conversation state and store any critical insights into the vector database for future reference."
- "Search through all previous interactions to find out what my stated preferences are for theme colors and font sizes."
Tips & Limitations
- Resource Management: Keep the
summary_thresholdbalanced. Too low creates excessive summary files, while too high may consume significant tokens in your prompt. - Semantic Accuracy: The long-term memory retrieval relies on embedding models. Ensure your
min_relevancethreshold is tuned to avoid hallucinations or irrelevant noise during search. - Storage: Note that this skill performs local file system operations. Ensure your host environment has sufficient disk space for the vector store index, especially for large knowledge bases. For privacy-conscious setups, remember that memory is stored locally in the
memory/directory, so back up this folder regularly to prevent data loss.
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-forvendettaw-monica-memory-manager": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
three-tier-memory
三级记忆管理系统 (Three-Tier Memory)。短期记忆滑动窗口 + 中期记忆自动摘要(LLM) + 长期记忆向量检索(RAG)。当需要管理对话历史、自动摘要、语义检索、构建个人知识库时使用此 Skill。
memory-manager
三级记忆管理系统 (Three-Tier Memory Management)。用于管理 AI 代理的短期、中期、长期记忆。包括:(1) 滑动窗口式短期记忆,(2) 自动摘要生成中期记忆,(3) 向量检索长期记忆 (RAG)。当需要管理对话历史、优化上下文、构建个人知识库、或实现记忆持久化时使用此 Skill。
openclaw-auto-doctor
实时监控 OpenClaw 日志,自动诊断错误,搜索解决方案,并自动修复问题或创建 Pull Request
memory-manager
三级记忆管理系统 (Three-Tier Memory Management)。用于管理 AI 代理的短期、中期、长期记忆。包括:(1) 滑动窗口式短期记忆,(2) 自动摘要生成中期记忆,(3) 向量检索长期记忆 (RAG)。当需要管理对话历史、优化上下文、构建个人知识库、或实现记忆持久化时使用此 Skill。
x-deep-miner
X (Twitter) 深度挖掘与归档 Skill。每小时自动扫描 AI/美股/生活类高热度推文(收藏>1000),自动翻译为专业中文文章,输出 Obsidian 格式。适用于构建个人知识库、每日情报简报。