Cognition
/install cognition
Cognition
Cognition gives an OpenClaw agent a practical memory architecture: raw logs, durable knowledge, commitments, and reusable procedures.
Use it to make memory operational, not decorative.
Start Here
Install the scaffolding:
bash {baseDir}/scripts/install.sh
Then adopt it in 3 tiers.
Tier 1 — Core
Adopt this first. It is the smallest useful subset.
Core behavior
- Log important work to
memory/YYYY-MM-DD.md - Keep durable facts in
MEMORY.mdand deeper detail inmemory/bank/*.md - Track commitments in
memory/FUTURE_INTENTS.md - Add the protocol blocks from
{baseDir}/references/protocols.mdto your AGENTS.md
What Core gives you
- recent-session continuity
- a compact durable memory index
- fewer dropped promises
- a default place to put important facts instead of hoping the model remembers
Tier 2 — Recommended
Adopt this once Core is part of normal use.
Add these pieces
- nightly staged consolidation via
{baseDir}/references/consolidation-prompt.md - reusable procedures in
memory/procedures/ - procedure registry in
memory/procedures/index.yaml - importance tagging from
{baseDir}/references/protocols.md
Safety model
- consolidation stages proposals before durable mutation
- daily logs stay append-only
- uncertain items stay tagged
[NEEDS_REVIEW] - new procedures start as
draft - promote procedures cautiously:
draft→reviewed→trusted
Tier 3 — Advanced
Only adopt this if Core and Recommended are already working.
Optional overlays
memory/bank/cross-references.mdfor linked retrievalmemory/KNOWLEDGE_MAP.mdfor coarse confidence trackingmemory/meta/gap_tracker.jsonfor repeated retrieval missesmemory/meta/retrieval_log.jsonfor retrieval analytics- weekly reflection via
{baseDir}/references/weekly-reflection-prompt.md - hybrid retrieval tuning via
{baseDir}/references/config.md
Advanced is for sharper retrieval and maintenance, not for replacing the Core system.
Core File Map
Always-on files
memory/YYYY-MM-DD.md— daily session logMEMORY.md— durable fact indexmemory/bank/*.md— deeper topic filesmemory/FUTURE_INTENTS.md— commitments and deferred actions
Recommended files
memory/consolidation/YYYY-MM-DD-staged.md— staged memory proposalsmemory/procedures/index.yaml— procedure registrymemory/procedures/*.md— reusable procedures
Advanced files
memory/KNOWLEDGE_MAP.mdmemory/bank/cross-references.mdmemory/meta/gap_tracker.jsonmemory/meta/retrieval_log.jsonmemory/summaries/YYYY-WNN.md
Reference Map
Read only what you need:
{baseDir}/references/protocols.md— protocol blocks to copy into AGENTS.md{baseDir}/references/consolidation-prompt.md— nightly staged consolidation{baseDir}/references/weekly-reflection-prompt.md— weekly reflection without direct mutation{baseDir}/references/architecture.md— core systems, overlays, retrieval tiers, safety notes, file structure{baseDir}/references/config.md— advanced hybrid retrieval tuning{baseDir}/references/cognitive-science.md— theory appendix
Guardrails
- Prefer staged proposals over silent durable-memory edits
- Keep raw logs append-only
- Keep
MEMORY.mdcompact; move detail intomemory/bank/ - Treat procedure promotion as earned, not automatic
- If retrieval fails, log the gap instead of inventing certainty
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cognition - After installation, invoke the skill by name or use
/cognition - Provide required inputs per the skill's parameter spec and get structured output
What is Cognition?
Practical memory architecture for OpenClaw agents. Helps agents remember commitments, retrieve context, prevent repeat mistakes, compile reusable procedures,... It is an AI Agent Skill for Claude Code / OpenClaw, with 363 downloads so far.
How do I install Cognition?
Run "/install cognition" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cognition free?
Yes, Cognition is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Cognition support?
Cognition is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cognition?
It is built and maintained by Don Zurbrick (@zurbrick); the current version is v2.0.1.