Working memory is the information an agent keeps in its current prompt context for immediate processing. It preserves continuity across multistep work, such as carrying trend research into roadmap suggestions, even though language models otherwise reset with each prompt. section 9.2.3
Working memory may contain:
- Interaction history, including conversations and human-in-the-loop inputs. section 9.2.3
- Personalization details, completed tasks and outcomes, or retrieved data from RAG sources. section 9.2.3
- An activity traceback, synthesized summary, or selected relevant thoughts and interactions. section 9.2.3
Roadmap research
An agent researching trends can place its findings in working memory so a later step can synthesize roadmap suggestions. Designers must balance retained usefulness against context size: larger prompts increase latency, token count, and potential inaccuracies. section 9.2.3
Figure 9.14 Agents need short-term memory for the current session and long-term memory for learning and improvement over time.
Compare working memory for the current session with long-term memory stored externally for later retrieval and improvement. section 9.2.3






