memory-compression-system
Integrated memory management and extreme context compression for OpenClaw. Combines memory management, compression, search, and automation in one unified skill.
Why use this skill?
Optimize OpenClaw agent memory with advanced compression. Reduce context usage by 85% with automated scheduling, smart cleanup, and unified search capabilities.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hassffw/memory-compression-systemWhat This Skill Does
The Memory Compression System is a professional-grade utility designed to optimize the OpenClaw agent's contextual footprint. By combining sophisticated memory management, multi-tier compression algorithms, and unified search capabilities, this skill enables the agent to retain long-term historical data without sacrificing performance or exceeding token limits. It automates the maintenance of memory logs through a reliable scheduling system, ensuring that context windows stay clean and efficient. Whether you are managing deep project history or daily chat logs, this system ensures your agent's 'brain' remains agile by reducing data size by up to 85% through its proprietary Ultra Compact (UCMP) format.
Installation
For most users, installation is seamless via ClawHub. Simply execute clawhub install openclaw/skills/skills/hassffw/memory-compression-system in your terminal. For those requiring a custom environment or manual auditing, you can clone the repository directly into your /home/node/.openclaw/workspace/skills directory and run the scripts/install.sh file to finalize dependencies. Once installed, initialize the automation by running scripts/enable.sh to begin the 6-hour interval maintenance cycles.
Use Cases
This skill is ideal for power users and developers who maintain large-scale agent context over extended periods. It is perfect for project management, where developers need to recall documentation or code structures from weeks ago without loading massive context windows into the current session. Additionally, it serves as an excellent tool for log rotation and historical data archiving, ensuring that relevant insights are always searchable while keeping active workspace files light and performant.
Example Prompts
- "Perform a manual compression of all memory files using the ultra format to clear up space for our current project task."
- "Search through my historical memory logs for the session where we discussed the API refactoring strategy from last week."
- "Show me a list of all compressed memory files currently residing in the system and verify their health status."
Tips & Limitations
To get the best results, use the Ultra Compact (UCMP) format for archives you do not intend to access frequently, as it targets 150 tokens. For data you need to query often, rely on the Base64 Compact format. Remember that while search is context-aware, heavily compressed files may take slightly longer to index compared to raw memory files. Always verify that your backup system has sufficient storage space, as the skill performs automatic backups before every compression cycle 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-hassffw-memory-compression-system": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read, code-execution
Related Skills
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营
autodream-core
通用记忆整理引擎 — 基于适配器模式的跨平台记忆整理技能。自动去重、合并、删除过时条目。| Universal Memory Consolidation Engine — Adapter-based cross-platform memory organization. Auto-dedup, merge, prune stale entries.
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
auto-context
智能上下文卫生检查器。分析当前会话的上下文污染程度 (长对话、主题漂移、噪声累积),建议:continue、/fork、/btw 或新会话。 支持手动触发(/auto-context)和自动触发(响应层实现)。 基于 ArXiv 论文和认知心理学研究的多维度评估体系。