A universal memory management system for Openclaw agents that optimizes token usage and provides intelligent state-aware context.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install qst-memory-skill
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 qst-memory-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
qst-memory is a sophisticated memory management framework built for developers using Openclaw Skills. It provides a robust solution for persistent agent context, utilizing a hierarchical 3-level tree structure to organize data. The system is designed to drastically reduce token consumption (by up to 90%) while improving the relevance of retrieved information through its hybrid search engine.
Beyond simple storage, it features an integrated state machine that tracks agent activities like IDLE, DOING, or WAITING. This version 1.8.2 includes critical loop protection mechanisms and user priority windows, ensuring that automated agents remain efficient without interrupting active user sessions or falling into infinite task loops.
To integrate this memory system into your Openclaw Skills environment, follow these steps:
# Install via ClawHub
clawhub install qst-memory
# Or clone from the source repository
git clone https://github.com/ZhuangClaw/qst-memory-skill.git
cd qst-memory-skill
# Set up the heartbeat integration script
cp scripts/heartbeat_integration.py ~/.openclaw/workspace/heartbeat.py
chmod +x ~/.openclaw/workspace/heartbeat.py
# Add to crontab for periodic checks (e.g., every 20 minutes)
(crontab -l ; echo "*/20 * * * * python3 ~/.openclaw/workspace/heartbeat.py") | crontab -
The qst-memory system organizes data using a combination of Markdown files for content and JSON for state management.
| Component | Type | Description |
|---|---|---|
| Memory Entry | Markdown | Includes Title, Category, Weight, Date, and Tags. |
| Agent State | JSON | Tracks status, task description, progress, and priority level. |
| Event History | JSON | A timeline of all state changes and task updates. |
| Configuration | YAML | Defines search thresholds, decay multipliers, and loop protection limits. |
| Encryption Key | File | Secure storage for the AES-128-CBC + HMAC master key. |
Loading
A sophisticated memory management system for AI agents that integrates state awareness, loop protection, and hybrid semantic search to optimize token usage.

An automated configuration guard that protects Feishu API quotas by maintaining optimized cache settings within Openclaw Skills.

An automated pipeline for researching, synthesizing, and publishing daily Xiaohongshu content digests.

Automate the discovery of arXiv papers and generate social-ready research summaries for Xiaohongshu.

A high-performance memory system for AI agents using QST theory and matrix-based retrieval to bridge short-term context and long-term knowledge.

A high-performance memory management framework for AI agents featuring hierarchical classification, hybrid search, and automated loop protection.








































