Files
nexus/wiki/entities/OpenClaw.md

52 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "OpenClaw"
type: entity
tags: [ai-agent, memory, context-management, framework]
last_updated: 2026-04-23
---
## Overview
开源多 Agent 框架358k stars。以 plain markdown 文件为核心记忆架构无隐藏状态Agent 读什么写什么,完全透明。
## Architecture
### Core Files
- `MEMORY.md` — 长期记忆存储
- `YYYY-MM-DD.md` — 每日运行上下文笔记
- `DREAMS.md` — 整合摘要dreaming 进程的产出)
### Dreaming Cycle三阶段背景整合
OpenClaw 的核心创新——夜间后台进程将每日笔记整合为长期记忆:
1. **Light Sleep**:筛选每日笔记,将相邻行分组为连贯块
2. **REM**:基于访问频率加权提升——频繁访问的信息成为"持久真理"
3. **Deep Sleep**:安全晋升到 MEMORY.md执行合并而非重复
**评分门控**:进入长期记忆需通过六个加权信号:
- 相关性0.30
- 频率0.24
- 查询多样性0.15
- 时效性0.15
- 整合度0.10
- 概念丰富度0.06
阈值要求:分数 ≥ 0.8 + 访问次数 ≥ 3 + 独立查询数 ≥ 3
### 与 Camp 1 的本质区别
Camp 1Mem0 等):对话 → 提取事实 → 存入向量库 → 检索召回
OpenClawAgent 读取结构化上下文 → 在上下文中工作 → 写回文件 → 上下文自然复合增长
核心哲学:**"The model only 'remembers' what gets saved to disk, there is no hidden state."**
## Aliases
- OpenClaw
- openclaw
## Connections
- [[OpenClaw]] ← implements ← [[Context Substrate]]Camp 2 的典型代表)
- [[Second Brain]] ← uses ← [[OpenClaw]]
- [[Personal Knowledge Base (RAG)]] ← uses ← [[OpenClaw]]
- [[semantic-memory-search]] ← extends ← [[OpenClaw]]MemSearch 为 Markdown 记忆添加语义搜索)
- [[Self-Improving-Skill]] ← integrates_with ← [[OpenClaw]]
- [[multi-channel-assistant]] ← based_on ← [[OpenClaw]]