The AI Gazette

Context and memory

Compact early and often: agents lose little at 16K to 50K context

An NVIDIA paper shows frequent compaction and grep-style reading hold accuracy while cutting cost several times over.

With mini-swe-agent, compacting whenever context hit 18K to 36K tokens kept Opus 4.5 and GPT 5.6 Sol within a few points of full history on SWE-bench Verified and Terminal-Bench, sometimes higher. Putting long documents in files and reading them with grep and bounded reads beat pasting them in, by up to 40 points on some long-input tests.

The appendix shows the compaction prompt that worked best: a handoff brief, not a summary.

From other editions

Say hi.