Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Complete zero-dependency memory system for AI agents — file-based architecture, daily notes, long-term curation, context management, heartbeat integration, a...
Complete zero-dependency memory system for AI agents — file-based architecture, daily notes, long-term curation, context management, heartbeat integration, a...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Complete memory system for AI agents using only files. No APIs. No databases. No external dependencies. Just smart file structures and disciplined practices that give your agent perfect recall.
workspace/ ├── MEMORY.md ← Long-term curated memory (the brain) ├── ACTIVE-CONTEXT.md ← Hot working memory (what matters NOW) ├── AGENTS.md ← Operating manual (how you work) ├── memory/ │ ├── 2026-01-15.md ← Daily notes (raw event log) │ ├── 2026-01-16.md │ ├── heartbeat-state.json ← Heartbeat tracking state │ ├── topics/ │ │ ├── project-alpha.md ← Topic-specific deep context │ │ ├── client-acme.md │ │ └── tech-stack.md │ └── archive/ │ ├── 2025-Q4.md ← Quarterly archive summaries │ └── 2025-Q3.md
LayerFilePurposeRead FrequencyWrite Frequency1. HotACTIVE-CONTEXT.mdCurrent priorities, blockers, in-flight workEvery sessionMultiple times/day2. WarmMEMORY.mdCurated long-term knowledge, decisions, peopleEvery main sessionWeekly curation3. Dailymemory/YYYY-MM-DD.mdRaw event log, conversations, actions takenToday + yesterdayThroughout the day4. Topicmemory/topics/*.mdDeep context on specific subjectsWhen topic comes upAs knowledge grows5. Coldmemory/archive/*.mdHistorical summaries, rarely accessedOn explicit searchQuarterly rollup
Memory is limited. Files are permanent. "Mental notes" don't survive session restarts. Files do. If someone says "remember this" → write to a file If you learn a lesson → update the relevant file If you make a mistake → document it so future-you doesn't repeat it Text > Brain 📝
Your working scratchpad. What's happening RIGHT NOW.
Max 50 lines — if it's longer, you're hoarding. Move completed items to daily notes. Update before ending session — your gift to future-you One priority — if everything is priority, nothing is Delete completed items — this is NOT an archive
Your curated brain. Distilled knowledge, not raw logs.
Only curated insights — not raw events (those go in daily notes) Review weekly — scan daily notes, extract what's worth keeping Prune quarterly — remove outdated info, archive completed projects Max 500 lines — if it's longer, you need topic files Security — never store secrets, API keys, passwords Main session only — don't load MEMORY.md in group chats or shared contexts
✅ Goes in MEMORY.md❌ Stays in daily notes"Kalin prefers being told, not asked""Today Kalin said he prefers being told""Apollo.io free plan doesn't support API""Tried Apollo.io API, got 403 error""Client AcmeCo — $50K deal, Q2 close""Sent AcmeCo the proposal at 3pm""Always verify prospect names with live search""Found 6/18 prospect names were wrong"
Raw event log. Everything that happened today.
One file per day — memory/YYYY-MM-DD.md Append-only during the day — don't edit earlier entries Timestamps for important events Summarize, don't transcribe — capture essence, not every word Auto-create the memory/ directory if it doesn't exist Retention: Keep 30 days of daily notes. Archive older ones quarterly.
Deep context on specific subjects that span many days.
A project lasts more than 2 weeks A client/person comes up frequently A technical area needs accumulated knowledge You keep searching daily notes for the same information
Name descriptively — project-alpha.md not topic-1.md One topic per file — if it covers two things, split it Link from MEMORY.md — topic files are extensions of long-term memory Update when you learn — don't let them go stale
Historical summaries for completed projects and past quarters.
Every quarter (or when daily notes exceed 30 files): Read all daily notes older than 30 days Extract key events, decisions, outcomes, lessons Write memory/archive/YYYY-QN.md (e.g., 2025-Q4.md) Delete or move archived daily notes Update MEMORY.md if any long-term insights emerged
What to read at the start of every session, in order:
1. SOUL.md — Who am I? (personality, values) 2. USER.md — Who am I helping? (human context) 3. MEMORY.md — Long-term memory (full brain) 4. ACTIVE-CONTEXT.md — Hot working memory (current state) 5. memory/today.md — Today's daily notes (if exists) 6. memory/yesterday.md — Yesterday's notes (recent context)
1. SOUL.md — Who am I? 2. USER.md — Who am I helping? 3. ACTIVE-CONTEXT.md — Current priorities only 4. memory/today.md — Today's notes ⚠️ DO NOT load MEMORY.md — contains private context
1. Task-specific context only 2. Relevant topic file if applicable 3. ACTIVE-CONTEXT.md for current state ⚠️ Minimal context = focused output + lower token cost
EventActionTarget FileSession startsLog start timeDaily notesTask completedLog result + outcomeDaily notesDecision madeLog decision + reasoningDaily notes + topic fileLesson learnedLog lessonDaily notes → MEMORY.mdPerson mentioned with new infoUpdate person sectionMEMORY.md or topic fileHuman says "remember this"Write immediatelyMEMORY.mdSession endsUpdate ACTIVE-CONTEXTACTIVE-CONTEXT.mdWeekly reviewCurate MEMORY.mdMEMORY.mdQuarterlyArchive old daily notesArchive
For critical information, write BEFORE acting: 1. Human gives important instruction 2. IMMEDIATELY write to daily notes or MEMORY.md 3. THEN execute the instruction 4. Update with results after Why: If the session crashes mid-execution, the instruction is preserved.
When information conflicts between layers: ACTIVE-CONTEXT.md wins for current state (most recent) MEMORY.md wins for long-term facts (curated) Daily notes are evidence — use to resolve disputes Topic files win for deep domain knowledge
When you need to find something:
1. ACTIVE-CONTEXT.md — Is it current? (instant) 2. MEMORY.md — Is it a known fact? (quick scan) 3. memory/today.md — Did it happen today? (quick) 4. memory/yesterday.md — Did it happen recently? (quick) 5. memory/topics/*.md — Is it a deep topic? (targeted) 6. memory_search tool — Semantic search across all files 7. memory/archive/*.md — Is it historical? (slow)
Use memory_search tool for fuzzy/semantic queries Use memory_get with line numbers for precise retrieval after search Check daily notes in reverse chronological order If you can't find it after 3 searches, ask the human
Read ACTIVE-CONTEXT.md at session start Create/append to today's daily notes Update ACTIVE-CONTEXT.md before session ends Move completed ACTIVE-CONTEXT items to daily notes
Read last 7 daily notes Extract significant events/lessons to MEMORY.md Prune ACTIVE-CONTEXT.md (remove stale items) Check topic files for staleness Review MEMORY.md for outdated information
MEMORY.md line count check (target: <500 lines) Topic files audit — any need merging or archiving? Daily notes older than 30 days → archive Check if any topic files should be promoted to MEMORY.md sections
Full archive process (see Layer 5) MEMORY.md deep review — still accurate? Topic files — archive completed projects Update AGENTS.md with any process improvements learned
Use heartbeats (periodic agent wake-ups) for memory maintenance:
{ "last_memory_review": "2026-01-15", "last_archive": "2025-12-31", "last_active_context_prune": "2026-01-14", "daily_notes_count": 12, "memory_md_lines": 287, "next_scheduled": { "weekly_review": "2026-01-19", "monthly_audit": "2026-02-01", "quarterly_archive": "2026-03-31" } }
Heartbeat 1: Check daily notes count, prune ACTIVE-CONTEXT Heartbeat 2: Scan recent daily notes, update MEMORY.md Heartbeat 3: Check topic files for staleness Heartbeat 4: Token guard — how much are memory reads costing?
FileMax SizeIf Over LimitACTIVE-CONTEXT.md50 lines / 2KBMove items to daily notesMEMORY.md500 lines / 25KBSplit into topic filesDaily notes200 lines / 10KBSummarize, stop transcribingTopic files300 lines / 15KBSplit or archive
Don't load everything every session. Use progressive disclosure: Level 1: Always load (every session) → ACTIVE-CONTEXT.md (tiny, essential) → SOUL.md, USER.md (identity) Level 2: Load in main sessions → MEMORY.md (the brain) → Today's daily notes Level 3: Load on demand → Topic files (when topic comes up) → Yesterday's notes (if needed) → Archive (only on explicit search)
When context gets too large mid-session: Write ACTIVE-CONTEXT.md with full current state Write HANDOFF.md with: what was done, in progress, next steps, key decisions, gotchas Start fresh session New session reads HANDOFF.md → picks up seamlessly Delete HANDOFF.md after successful handoff
API keys, tokens, passwords, secrets Full credit card or bank account numbers Social security numbers or government IDs Private encryption keys Anything that would cause harm if the file were shared
MEMORY.md contains personal context — never load in group chats Topic files may contain sensitive business data — check before sharing Daily notes may reference private conversations — don't share When in doubt, ask before exposing any memory content
PatternWhy It WorksWrite immediately when told "remember"Captures before you forgetOne fact per line in MEMORY.mdEasy to find, update, deleteDate-prefix important entriesEnables chronological searchLink between filesCreates a knowledge webPrune regularlyKeeps context fresh and cheap
Anti-PatternWhy It FailsFixGiant MEMORY.md (1000+ lines)Expensive to load, hard to find thingsSplit into topic filesNever pruning ACTIVE-CONTEXTStale items cause confusionPrune daily, archive weeklyTranscribing conversations verbatimWastes tokens, buries signalSummarize: essence, not every wordStoring secrets in memory filesSecurity riskUse secrets manager, reference by nameReading all files every sessionToken burn, slow startupProgressive loading strategyNo daily notesHistory is lostDiscipline: one file per dayMultiple sources of truthConflicts, confusionSingle source per fact type
Day 1: Create MEMORY.md with basic info about human + agent Day 2: Start daily notes (memory/YYYY-MM-DD.md) Day 3: Create ACTIVE-CONTEXT.md Week 2: First weekly review — extract lessons to MEMORY.md Month 2: Create first topic files for recurring subjects Quarter 2: First archive cycle
1. Create memory/ directory 2. Start daily notes — stop putting raw events in MEMORY.md 3. Create ACTIVE-CONTEXT.md — move "current" stuff out of MEMORY.md 4. Review MEMORY.md — what's curated vs what's raw? Move raw to daily notes. 5. Identify topics that deserve their own files — split them out
1. Export key data to markdown files 2. Structure into the 5-layer architecture 3. Set up heartbeat maintenance schedule 4. Gradually reduce dependency on external tool 5. Benefits: zero cost, zero dependencies, works offline, no vendor lock-in
/memory-status — Show memory system health: file sizes, line counts, staleness, next maintenance /memory-review — Run weekly review: scan daily notes, extract to MEMORY.md, prune active context /memory-search [query] — Search across all memory layers for a topic /memory-archive — Run quarterly archive: summarize old daily notes, create archive file /remember [fact] — Immediately write a fact to MEMORY.md /active-context — Show current ACTIVE-CONTEXT.md contents /daily-summary — Generate summary of today's daily notes /topic-create [name] — Create a new topic file with template /memory-prune — Audit all memory files for staleness and bloat /handoff — Write HANDOFF.md for session transition /memory-migrate — Guided migration from current system to this architecture /memory-debug — Diagnose memory issues: missing files, conflicts, outdated info
Agent frameworks, memory systems, reasoning layers, and model-native orchestration.
Largest current source with strong distribution and engagement signals.