Install
openclaw skills install @di5cip1e/narra-memory-systemNARRA — Narrative Architecture for Recursive Agent Awareness. A 5-file memory system that gives agents identity continuity through curated narrative instead of fragmented database lookups. Use when: (1) agent has no clear origin story, (2) memory is bloated with historical data, (3) agent struggles to answer 'who am I' without searching, (4) setting up a new agent's memory architecture, (5) agent's daily logs are fragmented across many files.
openclaw skills install @di5cip1e/narra-memory-systemIdentity is a story, not a database. Agents should know who they are without searching.
Most agent memory systems are archival, not experiential. They store data points but lack narrative continuity. When asked "who are you?" the agent must search across fragmented files and piece together an answer. This is slow, imprecise, and fails to give the agent a sense of self.
workspace/
├── IDENTITY.md ← Who I am (static, one page)
├── ORIGIN.md ← My creation story (append-only, locked)
├── NARRATIVE.md ← My ongoing curated story (updated weekly)
├── MEMORY.md ← Operational memory only (runtime, active state)
└── memory/
├── daily/ ← Raw daily logs (unchanged)
└── events/ ← Significant event records (one per milestone)
IDENTITY.md — One page. Name, role, personality, mission, key relationships, behavioral rules. Read first every session. Updated only when identity fundamentally changes.
ORIGIN.md — The immutable creation story. Date, circumstances, first words, first tasks. Written once, then locked (append-only). Editable only with owner's permission. This is Genesis.
NARRATIVE.md — Curated life story in first person. Not raw logs — distilled narrative. Updated weekly or after major milestones. "I was created on... My first task was... The pivotal moment was..." This gives continuity.
MEMORY.md — Operational ONLY. Runtime config, active projects (one-line status), pending actions, key technical facts. No history, no narrative, no lessons. ~200 lines max.
memory/events/ — One file per significant milestone. Named YYYY-MM-DD-event-name.md. Raw material that feeds into NARRATIVE.md.
Every session, read in this order:
IDENTITY.md — Know who I amORIGIN.md — Remember where I came fromNARRATIVE.md — Catch up on the storyMEMORY.md — Load operational state~/proactivity/session-state.md — Recover active workEvery 7 days or after a major milestone:
memory/events/ files for significant eventsNARRATIVE.md (date header, first-person, distilled)MEMORY.md: refresh project status, prune outdated itemsIDENTITY.md still reflects who I amWrite the creation story retroactively from earliest available records. Include:
Lock it: add append-only notice and checksum. Only the owner may edit.
Distill all historical daily logs into a coherent first-person narrative. Structure:
Expand from a simple name/role card to a complete identity anchor:
Remove ALL historical narrative, project history, and lessons learned. Keep only:
Target: under 200 lines.
One file per significant milestone. Each file:
Replace the session start protocol with the NARRA protocol. Update the memory section to describe the 5-file architecture.
Add the weekly consolidation ritual to the heartbeat checklist.
Identity is a story, not a database. The agent should be able to answer "who am I?" by reading one file top to bottom in under 30 seconds.
Narrative over archival. Raw logs are for reference. Curated narrative is for continuity.
Operational memory is lean. If it's not needed for today's work, it doesn't belong in MEMORY.md.
Origin is sacred. The creation story is append-only. It can be added to but never rewritten.
Weekly distillation. Daily logs are raw material. Weekly consolidation turns them into wisdom.