Skip to content
AgenticAIWiki
  1. Learn
  2. Part 10. Memory for agents
  3. Chapter 55

Working memory

4 lessons · 17 min

A conversation scrolling through the window

Full screen
Context window (fixed size)System prompt + toolspinnedTurn 1user asks about order 1042Window use (illustrative, k tokens of 40)System + tools6Turns2Tool results0Free32

Swipe to change step

Step 1 of 9. The context window is the agent's working memory: everything the model can see right now. Nothing outside it exists for this call. The system prompt and tools sit at the top. System prompt + tools (pinned), highlighted. Turn 1 (user asks about order 1042).

In this chapter

  1. 55.1The context window as working memory4 min read
  2. 55.2Session state and scratchpads4 min read
  3. 55.3What to keep in context and what to store4 min read
  4. 55.4Sliding windows and recursive summaries5 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…