跳到主要内容Skip to main content

上下文压缩Compaction

Compaction

  • 智能体Agents
  • 第三站 · 用深Station 3 · Going Deeper
  • 引用核验 2026-11-03refs checked 2026-11-03
解决什么问题What problem it solves

对话长到快装不下时,把前面内容总结一遍再重新开始。When a conversation nearly fills the window, summarize it and start again.

这是什么What it is

Anthropic 的定义:把接近窗口上限的对话做摘要,再用它开启新窗口。

官方同时把结构化笔记列为应对窗口限制的配套做法。

Anthropic's definition: summarize a conversation nearing the window limit, then reinitiate a new window with the summary.

Compaction loses detail, so it is usually paired with external notes.

为什么需要知道Why it matters

长任务跑一半「忘了前面」,多半是这一步没做好。A long task that "forgets" halfway is usually a compaction failure.

别名Chinese aliases

压缩 · 对话压缩

出处Sources
  • Anthropic《Effective context engineering for AI agents》Anthropic, Effective context engineering for AI agents ↗