Context · 2026-08-17

As the context grows you must decide what MUST always stay in the window.

  1. AEvery raw tool output, verbatim, forever.
  2. BThe system prompt and the current goal/state - summarising or dropping the rest.
  3. COnly the latest user message and the last tool result - everything older has already been acted on and can go.
  4. DThe full chat history, always, with no compression.

Answer: B

The system prompt and the current goal/state - summarising or dropping the rest.

Why

The system prompt (who the agent is + rules) and the live task state/goal are load-bearing and must persist; raw logs and old turns can be summarised. Keeping only the last message loses the goal; keeping everything just overflows.

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