← Memory, Context & State
Sliding Window
The sliding window strategy retains only the most recent N tokens or turns of a conversation, discarding older content as new content arrives. It is the simplest form of context management: fast, predictable, and free of any summarization cost. The main drawback is that information outside the window is permanently forgotten, making it unsuitable for tasks that require referencing events from early in a long session.