💬Context Compaction
Also known as Conversation Compaction, Context Summarization
Summing up a long chat so it fits in the window again.
Think of it like
It is like packing for a trip. You fold a big pile of clothes into one small bag.
Example
In Claude Code, typing /compact swaps the chat so far for a short summary. The task goes on with lots of free space.
Why it matters
Long agent tasks fill the window fast. Compaction lets them keep going without starting over.
Definition
Common mistake
Key takeaways
- 1Sum up the past. Old turns become one note.
- 2Free space. Room for new work.
- 3Some loss. Details can drop out.