Skip to content

Commit 89f41d7

Browse files
Bill-Billionclaude
andcommitted
fix: add missing change table and fix duplicate text in s08
- Add "相对 s07 的变更" table - Remove duplicate paragraph in "接下来" section Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 2dcd74c commit 89f41d7

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

s08_context_compact/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,19 @@ CC 源码中还有两个机制本教学版没有展开:
278278

279279
---
280280

281-
## 接下来
281+
## 相对 s07 的变更
282+
283+
| 组件 | 之前 (s07) | 之后 (s08) |
284+
|------|-----------|-----------|
285+
| 上下文管理 | 无(上下文无限膨胀) | 四层压缩管线 + 应急 |
286+
| 新函数 || snipCompact, microCompact, toolResultBudget, compactHistory, reactiveCompact |
287+
| 工具数量 | 8 (含 skills/task) | 9 (+compact) |
288+
| 循环 | LLM 调用 → 工具执行 | 每轮前跑三层预处理器 + 阈值触发 autoCompact |
289+
| 设计原则 || 便宜的先跑,贵的后跑 |
282290

283-
上下文压缩让 Agent 能跑很久不会崩。但每次"失忆"(被压缩)之后,用户之前告诉它的偏好、约束也跟着丢了。
291+
---
292+
293+
## 接下来
284294

285295
上下文压缩让 Agent 能跑很久不会崩。但每次压缩后,用户之前告诉它的偏好、约束也跟着丢了。能不能让 Agent **有选择地记住**重要的事?
286296

0 commit comments

Comments
 (0)