Files
nexus/wiki/concepts/交接协议.md
2026-04-14 16:02:50 +08:00

30 lines
821 B
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: "交接协议"
type: concept
tags: [AI, Agent, 记忆]
sources: [yang-long-xia-5-tian]
last_updated: 2026-04-14
---
## Definition
在模型切换或会话结束前Agent将当前上下文写入每日日志的协议解决模型切换时上下文丢失问题。
## 问题背景
OpenClaw Agent在切换模型时
- 新模型以新鲜上下文窗口开始
- 只看到自动加载的文件
- 不知道切换前发生了什么
## 解决方案
在任何模型切换或会话结束前:
1. Agent将当前上下文写入memory/YYYY-MM-DD.md
2. 新会话启动时读取该文件
3. 接上之前的工作
## 关键洞察
"交接协议是模型切换的修复。" — 比利哥
## Connections
- [[写入纪律]] ← 执行机制 ← [[交接协议]]
- [[Context-Window]] ← 问题根源 ← [[交接协议]]