更新CLAUDE.md,删除wiki/concepts空文件
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
---
|
||||
title: "Compaction(内存压缩)"
|
||||
type: concept
|
||||
tags: [AI, Agent, 上下文]
|
||||
sources: [yang-xia-ri-ji-4, yang-long-xia-5-tian]
|
||||
last_updated: 2026-04-14
|
||||
---
|
||||
|
||||
## Definition
|
||||
OpenClaw在对话填满Context Window时,将旧消息压缩成摘要的机制。
|
||||
|
||||
## 问题
|
||||
- 摘要抓住要点,但丢失细节
|
||||
- 姓名、数字、具体决定统统消失
|
||||
- 所有消息一视同仁(重要指令和闲聊得到相同待遇)
|
||||
|
||||
## 解决方案:Memory Flush
|
||||
```json
|
||||
{
|
||||
"compaction": {
|
||||
"memoryFlush": {
|
||||
"enabled": true,
|
||||
"softThresholdTokens": 4000
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
在压缩运行前将重要上下文写入memory/YYYY-MM-DD.md
|
||||
|
||||
## 关键洞察
|
||||
"压缩不是敌人。未写入的上下文才是。" — 比利哥
|
||||
|
||||
## Connections
|
||||
- [[Context-Window]] ← 受限于 ← [[Compaction]]
|
||||
- [[Memory-Flush]] ← 保护机制 ← [[Compaction]]
|
||||
Reference in New Issue
Block a user