Scaffold, sanitize, or share an OpenClaw multi-agent memory system with a reusable workspace, memory-lancedb-pro configuration, role prompts, task-board conv...
记忆
Clawhub
试用为多智能体的分层记忆统一契约,避免路由漂移、越级写入与作用域扩张。
它能做什么
一个可复用的记忆治理内核,负责判断一条内容是否值得记住、归入哪一类抽象目标、何时可以晋升,以及哪些应当排除。它先于任何具体技能路径定义目标类(long_term_memory、daily_memory、learning_candidates、reusable_lessons、proactive_state、working_buffer、project_facts、system_rules、tool_rules),并规定路由顺序、带修正流水线与候选评审的晋升规则,以及针对编译产物的作用域与隐私边界。适配器负责把目标类映射到宿主环境的真实文件;OpenClaw 只是其中一份参考宿主配置,并非唯一宿主。
什么时候用它
- 当多个写记忆的技能对"该往哪里写"产生分歧时,用同一套契约消解冲突
- 判定一条观察属于长期事实、短期提示还是应当直接排除
- 把纠正类信息先放进 learning_candidates 暂存,再决定是否晋升为规则
- 约束 Dreaming、Memory Wiki、People Wiki 等编译产物不擅自扩大记忆作用域
技能文档
Memory Governor
Reusable memory-governance core for different host environments.
The OpenClaw integration in this repository is only a reference host profile, not the only host model.
It is not a second-brain system, sync bus, or knowledge manager. It governs what should be remembered, where it should go, when it should be promoted, and what should be excluded.
It is a governance kernel, not an execution-first productivity skill. Its value is highest when a host already has multiple memory layers, multiple memory-writing skills, or adapter drift.
When to Use
Use this skill when:
- you need to decide whether something should enter memory
- you need to choose the right memory layer or target class
- you need to promote daily, correction, or working state into durable rules
- multiple skills are starting to define memory differently and need governance
First Reading Path
If this is your first time opening memory-governor, start here:
SKILL.mdreferences/memory-routing.mdreferences/promotion-rules.mdreferences/exclusions.mdreferences/adapters.mdreferences/compiled-surfaces.md
The remaining reference files are optional on first read.
What Counts as Memory
Only information that improves future judgment, recovery, execution quality, or coordination consistency counts as memory.
Typical examples:
- stable long-term preferences
- stable long-term facts
- key same-day events
- explicit corrections
- unproven but promising candidate lessons
- reusable lessons
- current progress state
- short-term recovery hints
For content that should stay out of memory, see references/exclusions.md.
Core Rule
The thing being standardized is the memory contract, not every skill implementation.
That means:
- all skills should follow the same classification, routing, promotion, and exclusion rules
- each skill may keep its own internal logic, downstream tools, interaction style, and directory habits
In short:
standardize the core, not everything else
Target Classes
The kernel defines abstract target classes before it defines any optional skill path.
Recommended standard target classes:
long_term_memorydaily_memorylearning_candidatesreusable_lessonsproactive_stateworking_bufferproject_factssystem_rulestool_rules
Concrete file paths are adapter details, not the contract itself.
Notes:
learning_candidatesis a low-commitment staging layer for corrections and emerging lessons- it exists to prevent single observations from hardening too early
proactive_stateandworking_bufferare stateful targets- they should not become infinite append-only logs
- they need freshness, replace or merge, and retention rules by default
Routing Order
When evaluating a candidate memory, reason in this order:
- Is it worth remembering at all?
- What memory type is it?
- Which target class does that type belong to?
- Which adapter in the current host should store that target class?
- Is it still short-term, or is it ready for promotion?
- Does it match any exclusion rule?
See references/memory-routing.md for the routing table.
See references/routing-precedence.md for ambiguity resolution.
Promotion Rules
All promotion should extract and refine before it hardens.
Never:
- write raw logs directly into long-term memory
- treat a working buffer as long-term memory
- use system-governance files as temporary capture inboxes
See references/promotion-rules.md for details.
See references/correction-pipeline.md for the correction-to-candidate-to-rule flow.
See references/candidate-review.md for keep/promote/discard review workflow.
See references/dreaming-integration.md for how this kernel should coexist with OpenClaw Dreaming without duplicate promotion paths.
See references/stateful-targets.md for update semantics on stateful targets.
See references/schema-conventions.md if the host wants stronger structured constraints.
See references/retention-rules.md for lifecycle rules.
See references/read-order.md for recovery-time read order.
Compiled Surfaces
OpenClaw keeps adding runtime and compiled memory surfaces: Dreaming artifacts, Active Memory, Memory Wiki, People Wiki, Claim/Evidence, Memory Palace, Imported Insights, and Provenance Views.
None of them is a memory target class. They are downstream of the governance contract.
In short:
- capture into target classes first
- let official engines compile, recall, navigate, and index downstream
- canonical durable truth still lives in the target classes
Two governance rules that the contract adds on top:
- imported content (for example Imported Insights) is unverified and should stage through
learning_candidates, not jump to canonical truth - scoped memories (project, chat, agent) should record scope at capture time, so a compiled surface cannot widen them beyond what Active Memory Filters allow
See references/compiled-surfaces.md for the full surface inventory and the capture-vs-compile rule.
See references/dreaming-integration.md for the Dreaming-specific boundary.
Skill Integration
When another skill integrates with this kernel:
- the skill may declare which information types it emits
- the skill may declare where those types usually land
- the skill should not invent a new global memory-layer definition
- the skill should not bypass exclusion rules
- the skill should not confuse downstream storage rules with upstream memory rules
See references/skill-integration.md.
Adapters
memory-governor may provide default adapters, but those adapters are not the only truth.
Examples:
long_term_memory->MEMORY.mddaily_memory->memory/YYYY-MM-DD.mdreusable_lessons->~/self-improving/...ifself-improvingis installedreusable_lessons-> a local fallback file ifself-improvingis absent
See references/adapters.md for default adapter behavior.
See references/integration-checklist.md for integration checks.
See references/installation-integration.md for installation and host integration guidance.
See references/host-profiles.md for host differences.
Never Do
- do not turn this skill into a monolithic personal memory system
- do not embed Obsidian, Notion, or OmniFocus implementation details into the governance kernel
- do not force every skill into the same implementation style
- do not invent a new primary memory directory unless the governance layer explicitly approves it
- do not write secrets, raw long logs, or short-lived noise into memory
- do not model Dreaming, Memory Wiki, People Wiki, Memory Palace, or Imported Insights as target classes
- do not let skills write entity profiles directly into a
people/surface instead of capturing into target classes - do not treat imported or cross-platform content as already-verified long-term memory
- do not let a compiled surface widen the scope of a captured memory beyond its intended boundary
Phase Boundary
The current phase is governance core only.
That means:
- it may define contracts
- it may define references
- it may constrain how other skills write memory
- it may not quietly grow into a unified execution bus at this stage
If the project later wants an orchestration layer or a full personal memory system, that should be scoped separately after the governance layer is stable.
常见问题
- 这是不是第二大脑或知识管理工具?
- 不是。文档明确说明它不是第二大脑、同步总线或知识管理器,而是一个面向记忆契约的治理内核。
- 必须配合 OpenClaw 使用吗?
- 不必。OpenClaw 集成只是参考宿主配置,内核定义的契约与适配器可被其他宿主环境采用。
- 接入的技能还能保留自己的实现吗?
- 可以。内核只规范分类、路由、晋升、排除这一层记忆契约,技能内部的执行逻辑、下游工具和目录习惯保持各自独立。
相关技能
Manage OpenClaw Agent's built-in memory features — enable/disable/configure Dreaming (Light→REM→Deep auto memory consolidation) and Active Memory (proactive...
OpenClaw agent memory commons for shared memory and collective learning. Install from ClawHub as commons-memory-for-agents to search, validate, contribute, r...
Audit and maintain OpenClaw-style long-term memory. Use for MEMORY.md cleanup, daily-note digestion, duplicate detection, stale-memory review, and promoting...
Long-term memory for OpenClaw agents — SQLite hybrid recall (FTS5 + keyword + associative expansion + optional LLM embeddings), raw/curated anchors, session...
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。