Practical memory architecture for OpenClaw agents.
Cognition helps an agent remember what matters across sessions without turning memory into ceremony.
It gives you a staged adoption path for:
- daily logs
- durable knowledge
- commitments
- reusable procedures
- safe consolidation
- optional retrieval overlays
bash scripts/install.shThen adopt Cognition in 3 tiers.
Use this first. It is the smallest useful subset.
memory/YYYY-MM-DD.mdfor daily session logsMEMORY.mdfor durable factsmemory/bank/*.mdfor deeper detailmemory/FUTURE_INTENTS.mdfor commitments- protocol blocks from
references/protocols.md
Add the learning loop once Core is normal behavior.
- nightly staged consolidation
- reusable procedures
- procedure registry
- importance tagging
- safe promotion rules (
draft → reviewed → trusted)
Optional overlays only after Core + Recommended are already working.
- cross-references
- confidence tracking
- gap tracking
- retrieval logging
- weekly reflection
- hybrid retrieval tuning
Memory should be operational, not decorative.
Cognition keeps raw logs append-only, stages durable-memory updates before mutation, and treats optional overlays as optional.
SKILL.md— lean runtime entrypointreferences/architecture.md— core systems, overlays, retrieval tiers, file structurereferences/protocols.md— protocol blocks to merge into AGENTS.mdreferences/consolidation-prompt.md— nightly staged consolidation promptreferences/weekly-reflection-prompt.md— weekly reflection promptreferences/config.md— advanced hybrid retrieval tuningreferences/cognitive-science.md— theory appendixscripts/install.sh— scaffold installertemplates/— starter files for intents, procedures, gap tracker, retrieval log, and overlays
- stage proposals before durable-memory mutation
- keep raw logs append-only
- keep
MEMORY.mdcompact - treat procedure promotion as earned
- log retrieval gaps instead of inventing certainty
MIT © Don Zurbrick