Agent Memory
The Library · Context Engineering & MemoryLetting agents keep and recall information across sessions.
Also called: long-term memory, memory system, episodic memory, memory layer, persistent memory, memory tool. In the glossary.
Agent Memory is cooling this week (×0.4 against the eight weeks before). What is moving.
How it works, as a machineThe Handover Station · memory notes
Follow one memory note from a moment in one session to the start of the next session, in a hospital ward's handover station at shift change.
- Write the memory note
- File the note
- Check it against the log
- Link the notes
- Pin it to the index
- Load the index
Agent Memory in plain words
Agent memory lets an agent keep information between sessions. Notes are written to a store outside the model, and the relevant ones are brought back into context when a later task needs them. The agent stops starting from zero each time, and stale or wrong notes become a new way to fail.
An analogy
A detective's notebook. The detective forgets each case overnight, but the notebook does not, so every morning begins with yesterday's pages. A wrong entry made on Monday is believed again on Friday unless somebody crosses it out.