Files
nexus/wiki/concepts/写入纪律.md
2026-04-14 16:02:50 +08:00

40 lines
983 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将任务结果、决策、错误记录到磁盘的纪律是临时上下文变成永久记忆的方式。
## 核心观点
"写入纪律比读取纪律更重要。" — 比利哥
## 为什么重要
- 临时上下文存在于对话窗口中
- 对话窗口会被压缩
- 写盘的内容才能在压缩中存活
## 实践要点
- 任务结果必须记录到磁盘
- 每个错误变成一条规则写入LEARNINGS.md
- 交接协议:在模型切换前将当前上下文写入每日日志
## 自动加载文件7个
只有这些文件自动加载:
1. AGENTS.md
2. SOUL.md
3. TOOLS.md
4. IDENTITY.md
5. USER.md
6. HEARTBEAT.md
7. MEMORY.md
其他一切需要明确读取指令。
## Connections
- [[交接协议]] ← 模型切换保护 ← [[写入纪律]]
- [[LEARNINGS.md]] ← 写入目标 ← [[写入纪律]]