Context · 2026-08-16

A long conversation is nearing the context-window limit and you must free space.

  1. ADrop the system prompt and the earliest tool results to make room, since the model has already absorbed what they said.
  2. BSummarise the older turns into a compact running summary and keep the recent turns verbatim.
  3. CTruncate the newest message so the history stays intact.
  4. DAlways switch to a bigger-context model instead.

Answer: B

Summarise the older turns into a compact running summary and keep the recent turns verbatim.

Why

Compress history by summarising the old turns while keeping recent turns and the system prompt verbatim. Dropping the system prompt or truncating the newest message loses the parts the model needs most; a bigger model just defers the same problem.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path