AppliedAIPrep logoAppliedAI/Prep
Courses/Agent Engineering/Memory and context14 min read

What to drop when the context fills

Every long run eventually has more history than budget. The order in which you discard things decides whether the agent stays coherent or quietly loses the thread, and the default of dropping the oldest messages is close to the worst option available.

a free account unlocks the core curriculum tier · no card