RECAP Uses Reinforcement Learning for Context Compaction
October 18, 2026
RECAP is a reinforcement learning framework that trains agents to use compressed summaries instead of full interaction histories. It uses a behavior distortion objective to ensure that summaries preserve the same task-driven behavior as the original context.
HOW THIS AFFECTS YOU
●
builderYou can build agents that handle much longer tasks by replacing messy histories with smart, compressed summaries.
●
researcherThe behavior distortion objective provides a way to train compaction policies that maintain agent performance.