Superlative Memory Manager
by @tech-immortales-design
Unified memory management combining auto-compaction, tiered storage, semantic recall, and token optimization for efficient, lossless context handling in Open...
clawhub install superlative-memory-managerπ About This Skill
Superlative Memory Manager π§
The ultimate unified memory system for OpenClaw. Combines the best-of-breed memory skills into a seamless, self-optimizing stack.
What It Does
memory-on-demand style queriestoken-efficient-agent to minimize usageArchitecture
Input β Context Compactor (70%) β Memory Tiering (auto-tier) β Semantic Store (LanceDB)
β
Memory On-Demand (recall)
β
Cognitive Memory (multi-store)
β
Git Notes (permanent decisions)
Configuration
Add to your openclaw.json or agent config:
{
"skills": {
"superlative-memory-manager": {
"enabled": true,
"compaction": {
"thresholdTokens": 90000,
"strategy": "semantic-first",
"preserveLast": 30
},
"tiering": {
"hotRetention": "session",
"warmRetention": "30d",
"coldRetention": "1y",
"archiveCompression": "gzip"
},
"recall": {
"maxResults": 10,
"minScore": 0.6,
"boostRecent": true
}
}
}
}
Usage
The skill works automatically once enabled. No manual intervention needed.
Manual Override (optional)
# Force compaction now
memory compact --forceQuery semantic memory
memory recall "project decisions about database"Store important fact (will be tiered appropriately)
memory store "User prefers dark mode" --category preference --importance high
Requirements
This skill orchestrates existing skills; it does not install them. Ensure these are installed and ready:
cognitive-memorymemory-tieringcontext-compactormemory-on-demandmemory-qdrant for vector storePerformance
Monitoring
The skill emits events:
memory.compaction.startedmemory.compaction.completed (with stats)memory.recall.performed (query, results, latency)memory.tiering.moved (from β to)Subscribe via heartbeat or log monitoring.
Troubleshooting
Q: Compaction not happening?
A: Check token usage via openclaw status. Ensure compaction.thresholdTokens is below 90k.
Q: Recall returns irrelevant results?
A: Adjust recall.minScore higher (0.7-0.8). Ensure embeddings model is loaded (qdrant).
Q: Storage growing indefinitely?
A: Review tiering retention policies. Cold/Cold tiers may need manual cleanup after expiration.
Changelog
*Built by Aisha π€ β because context matters*
π‘ Examples
The skill works automatically once enabled. No manual intervention needed.
Manual Override (optional)
# Force compaction now
memory compact --forceQuery semantic memory
memory recall "project decisions about database"Store important fact (will be tiered appropriately)
memory store "User prefers dark mode" --category preference --importance high
βοΈ Configuration
Add to your openclaw.json or agent config:
{
"skills": {
"superlative-memory-manager": {
"enabled": true,
"compaction": {
"thresholdTokens": 90000,
"strategy": "semantic-first",
"preserveLast": 30
},
"tiering": {
"hotRetention": "session",
"warmRetention": "30d",
"coldRetention": "1y",
"archiveCompression": "gzip"
},
"recall": {
"maxResults": 10,
"minScore": 0.6,
"boostRecent": true
}
}
}
}
π Tips & Best Practices
Q: Compaction not happening?
A: Check token usage via openclaw status. Ensure compaction.thresholdTokens is below 90k.
Q: Recall returns irrelevant results?
A: Adjust recall.minScore higher (0.7-0.8). Ensure embeddings model is loaded (qdrant).
Q: Storage growing indefinitely?
A: Review tiering retention policies. Cold/Cold tiers may need manual cleanup after expiration.