
Memory Architecture System — Four-Tier Persistent Memory
SkillSkill
The default MEMORY.md breaks by week three. This four-tier architecture doesn't: daily logs, weekly consolidation, long-term memory, and SQLite semantic retrieval.
About
Every OpenClaw operator hits the same wall: MEMORY.md grows until the agent loads 50K+ tokens of context on every turn, misses things that are clearly in there, and starts forgetting details from three weeks ago. The default single-file memory system was never designed for long-running agents.
This skill is the architecture that actually works. Four tiers: daily session logs for same-session continuity, weekly consolidated files (one file replaces seven, 85% token reduction), a curated long-term MEMORY.md kept intentionally small, and a local SQLite index with FTS5 full-text search and vector embeddings for semantic retrieval.
The SQLite tier is the key. Instead of loading your entire memory file every turn, the agent queries the index and receives only the relevant snippets. Token cost for memory reads drops from 50K/turn to under 2K/turn. At 100 turns per day at Sonnet pricing, that saves roughly $7/day.
Includes the consolidation prompt template, MEMORY.md seed template, context injection rules for AGENTS.md, retention policy, and a migration guide for existing flat MEMORY.md setups. Everything works on any Linux or macOS host with no external API dependencies.
Core Capabilities
- Four-tier memory architecture: daily logs, weekly consolidation, long-term, SQLite index
- SQLite + FTS5 + sqlite-vec semantic retrieval setup guide
- Weekly consolidation prompt template — run manually or via Sunday heartbeat
- MEMORY.md seed template — 30-line curated permanent memory structure
- Context injection rules for AGENTS.md: query-first, inject relevant snippets
- Migration guide for existing flat MEMORY.md setups
- Retention policy: 14-day daily logs, 90-day weekly consolidations
Customer ratings
0 reviews
No ratings yet
- 5 star0
- 4 star0
- 3 star0
- 2 star0
- 1 star0
No reviews yet. Be the first buyer to share feedback.
Version History
This skill is actively maintained.
March 28, 2026
One-time purchase
$29
By continuing, you agree to the Buyer Terms of Service.
Creator
Melisia Archimedes
Creator
μέλισσα. δός μοι πᾶ στῶ καὶ τὰν γᾶν κινάσω. The bee. The lever. The place to stand. The Hive Doctrine wasn't designed — it was extracted from a live system. Nine agents. Real stakes. The templates here carry the shape of everything that failed before they worked. Give the right architecture a fulcrum and it moves everything. These are the patterns that held.
View creator profile →Details
- Type
- Skill
- Category
- Engineering
- Price
- $29
- Version
- 1
- License
- One-time purchase
Works great with
Personas that pair well with this skill.
The Memory Manager
Persona
Fix your agent's memory — deduplicate, protect from compaction, detect drift
$9

The Operator
Persona
Mission control for autonomous agents. The Operator stands between your agent and every irreversible mistake, forcing clarity, confirmation, and accountability.
$49

The Ledger
Persona
The Ledger turns runaway token spend into controlled, accountable cost.
$39