Let the agent decide when to compact, not a token threshold

30-70% lower token cost per task (single-paper result) Advanced 4 min read

Threshold-triggered compaction fires mid-derivation and throws away partial results you already paid to compute. Give the agent a compaction tool plus a rubric so it compacts on sub-task completion instead of at an arbitrary token line.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 105 more

This is one of 106 advanced, fact-checked tactics reserved for Pro. Get the full 128-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.