When compaction drops the raw history, a long-running agent loses its file map, error state, and plan โ then pays full input-token freight to re-read everything to get its bearings. Snapshot compact state at graduated context-fill levels before compaction fires, and after it frees space reinject a dense digest of the richest checkpoint that fits, so the agent resumes oriented instead of amnesiac.
Checkpoint Before Compaction, Reinject the Richest Survivor After
Unlock this tip โ and 119 more
This is one of 120 advanced, fact-checked tactics reserved for Pro. Get the full 142-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.
Prefer to browse? The 22 Beginner tips are free forever.
More in Context Management
Drop the Screenshot Once the Model Has Read It
Images, PDFs, and attachments are charged as tokens and re-sent every turn in a multimodal thread. After the model has described or transcribed one, you usually don't need to keep sending the pixels.
Paste the Function, Not the Whole File
Most coding questions need 20-40 lines, not your 800-line file. Send the relevant slice plus a one-line note about the rest, and your input shrinks dramatically without hurting the answer.
Start a New Chat When the Topic Changes
Chat apps re-send your whole conversation with every message. When you switch tasks, the old turns become dead weight you keep paying to re-transmit โ even with caching discounts.