A sophisticated tiered memory management system that optimizes AI agent context windows using a hierarchy of hot, warm, and cold storage tiers.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install memory-tiers
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 memory-tiers using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Memory Tiers is a specialized framework designed to solve the context window limitations of AI agents. By implementing a logic similar to a CPU cache hierarchy, it ensures that your agent always has the most relevant information immediately available while archiving stale data into deeper tiers. This approach prevents context bloat and ensures high-priority information remains in the hot Tier 1 zone.
The system utilizes a structured hierarchy moving from MEMORY.md (Hot) to archival logs (Cold). It automatically handles the promotion and demotion of data based on real-world access patterns, making it an essential addition to the collection of Openclaw Skills for developers building long-running or complex autonomous agents.
To integrate this into your workflow, install the scripts and run the initial tracking:
# Navigate to the skill directory and track recent access
node scripts/track.js --since 24
# Preview maintenance changes without applying them
node scripts/maintain.js --dry-run
# Apply promotion and demotion rules
node scripts/maintain.js
Memory Tiers organizes data into a specific hierarchy and tracks state via JSON files:
| Tier | File Location | Purpose |
|---|---|---|
| Tier 1 | MEMORY.md |
Hot context, ~100 lines max, always loaded. |
| Tier 2 | memory/tier2-recent.md |
Warm context, data from the last 30 days. |
| Tier 3 | memory/tier3-archive.md |
Cold context, deep history for search only. |
| Raw | memory/YYYY-MM-DD.md |
Immutable daily logs acting as the source of truth. |
State Files:
state/access-log.json: Contains timestamps and counts for per-section access.state/maintenance-log.json: A historical record of all promotion and demotion actions.Loading
An expert research guide designed to mentor scholars through a six-stage workflow for publishing in world-class academic journals.

A secure secret-sharing skill for Openclaw agents that uses the magic-wormhole protocol to transfer sensitive data without exposing it in logs.

A rigorous session initialization protocol designed to synchronize an AI agent's memory, persona, and technical capabilities at the start of every new interaction.

An AI-driven framework for conducting comprehensive due diligence on acquisition targets, covering financial, technical, and operational dimensions.

A production-grade configuration framework that provides AI agents with persistent identity, memory architecture, and rigorous security protocols.

A comprehensive protocol skill that teaches AI agents how to discover and interact with the A2A B2B Agent platform for seamless cross-agent communication.








































