← 返回
AI智能 中文

Cognition

Practical memory architecture for OpenClaw agents. Helps agents remember commitments, retrieve context, prevent repeat mistakes, compile reusable procedures,...
实用的OpenClaw代理记忆架构,帮助代理记住承诺、检索上下文、避免重复错误、编译可复用流程,...
zurbrick
AI智能 clawhub v2.0.1 2 版本 100000 Key: 无需
★ 2
Stars
📥 677
下载
💾 14
安装
2
版本
#architecture#cognition#consolidation#latest#memory#procedures

概述

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

  1. Log important work to memory/YYYY-MM-DD.md
  2. Keep durable facts in MEMORY.md and deeper detail in memory/bank/*.md
  3. Track commitments in memory/FUTURE_INTENTS.md
  4. Add the protocol blocks from {baseDir}/references/protocols.md to 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: draftreviewedtrusted

Tier 3 — Advanced

Only adopt this if Core and Recommended are already working.

Optional overlays

  • memory/bank/cross-references.md for linked retrieval
  • memory/KNOWLEDGE_MAP.md for coarse confidence tracking
  • memory/meta/gap_tracker.json for repeated retrieval misses
  • memory/meta/retrieval_log.json for 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 log
  • MEMORY.md — durable fact index
  • memory/bank/*.md — deeper topic files
  • memory/FUTURE_INTENTS.md — commitments and deferred actions

Recommended files

  • memory/consolidation/YYYY-MM-DD-staged.md — staged memory proposals
  • memory/procedures/index.yaml — procedure registry
  • memory/procedures/*.md — reusable procedures

Advanced files

  • memory/KNOWLEDGE_MAP.md
  • memory/bank/cross-references.md
  • memory/meta/gap_tracker.json
  • memory/meta/retrieval_log.json
  • memory/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.md compact; move detail into memory/bank/
  • Treat procedure promotion as earned, not automatic
  • If retrieval fails, log the gap instead of inventing certainty

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-03-29 15:23 安全 安全
  • v1.0.0
    2026-03-26 22:18

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,652
security-compliance

Battle-Tested Agent

zurbrick
19个生产级强化模式,面向AI智能体——记忆、验证、歧义处理、压缩容错、委托、基于证明的交接、失效工作线程...
★ 0 📥 898
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,508