上下文压缩Compaction
Compaction
对话长到快装不下时,把前面内容总结一遍再重新开始。When a conversation nearly fills the window, summarize it and start again.
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.
长任务跑一半「忘了前面」,多半是这一步没做好。A long task that "forgets" halfway is usually a compaction failure.
压缩 · 对话压缩
去 Agent 图谱:看有哪些装得上的客户端、运行时与工具Agent atlas: which clients, runtimes and tools you can install ↗
回到名词地图看第3段的其他 75 个词 →Back to the map: the other 75 terms in stage 3 →
- Anthropic《Effective context engineering for AI agents》Anthropic, Effective context engineering for AI agents ↗
别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.
任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →