Memory & Context
Context is the agent’s working memory
Everything the model knows right now sits in its context window: the system prompt, the history, the tool results. Think of a desk covered in papers. The desk is small. Once it’s cluttered, the important page gets lost even before space runs out. So much of agent work is deciding what goes on the desk and what comes off.
Start with memory in files
The simplest memory for an agent is plain files: notes.md, plan.md. The agent writes its conclusions there and reads them at the start of the next session. It’s a notebook you can open and check: you see exactly what the agent “remembers.” No extra infrastructure needed. Most agents can live on this for a long time.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Daily drill casesReal situations from building agents - with the answer and why.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Still in this lesson: 3 more cards, a quiz of 5 questions, XP and stars - in the course.
Continue the lesson on the Path