Addressable Recall Compaction for Long Context-Window Control in AI Agents
Every long-running agent eventually overflows its window, and the standard repairs all destroy information for good: drop the oldest turns, paraphrase them into a summary, or push them to a vector store and hope a similarity search finds them again. This paper keeps every tool observation verbatim in an append-only log under a short id, and when the window fills it swaps the old ones in the transcript for a stub — first lines, last lines, byte count — plus that id and a recall command that puts the exact original back without re-running the tool. Asked later for a fact buried in the compacted history, it answered correctly 99.0% of the time on an 8B model against 79.6% for the best of the five baselines, while the summariser sat at 71.8%. The detail worth stealing: recall has a sweet spot, not a ceiling — accuracy fell when the agent could pull more back, because a transcript refilled with recalled text is just a full window again.