Learn

GuideInstructions & context

Context and memory: what your bot can use right now

Context is the information supplied to an AI model for the step it is taking now. Memory is information retained for later use. A saved detail helps only when the system makes that detail available at the right time. [1][2]

That distinction explains a familiar frustration: “I already told the bot this.” The detail may still exist somewhere, yet be missing from the information used for the current reply.

Four things that sound similar

TermPlain meaningExample
Current contextInformation included for this stepYour request, the latest page draft, and the approved event date
Saved memoryInformation kept beyond the immediate exchangeA retained preference to use short sentences
RetrievalFinding and loading relevant stored informationOpening the note that contains the venue address
CompactionShortening earlier working context into a more manageable formKeeping key decisions from a long conversation in a summary

These are general concepts. Products implement them differently. Some supply memories automatically; others need files, tools, or explicit setup. Compaction can omit details, so a summary is not a complete archive. [1][2]

The current request, loaded preferences, retrieved file excerpts, and selected earlier messages can enter the current context. Stored information stays outside unless the application loads it.

Swipe sideways to see the whole diagram, or open it full size.

What reaches the current step?. Saving information and supplying it to the next model step are separate operations.

Figure explanation: The current request enters the current context. A stored preference also enters if the application loads it. A project file goes through retrieval, producing relevant excerpts that enter the context. Earlier conversation can be selected or summarized before entering. The current context is supplied to the next model step. Which paths exist depends on the product and its configuration.

Sources

  1. Anthropic, Effective context engineering for AI agents, published September 29, 2025; checked September 25, 2026. Supports finite context, selective retrieval, compaction, and saved notes.
  2. Anthropic, Context engineering: memory, compaction, and tool clearing, checked September 25, 2026. Supports the distinct roles of stored memory and context management. It documents Claude implementations; it is not evidence of Grok Bot features.
  3. OpenAI, Conversation state, checked September 25, 2026. Supports context/output limits and the need to manage conversation state. The event note and handoff are original teaching examples.

Cookie preferences