Concept
Compaction 是一种在内存里的 handoff:把旧 session 的历史压缩成摘要,用来开启新的 session。它会丢失细节,但能换回 context window 空间。
English handle
Compaction is a lossy summary handoff that starts a fresh session with more context room.
Try saying it
请用英文要求 agent 在压缩前把关键决定和未完成事项写进摘要。
Compare
Before compacting, include the key decisions and unfinished tasks in the summary.
- 是否说明发生在 compacting 之前?
- 是否要求保留关键决定?
- 是否要求记录未完成事项?