Agent Memory Architecture Guide
- Source
- x.com
- Publisher
- Akshay Pachaar
- Author
- Akshay π
- Date

Context
Saving information and finding the right connection are different problems. Akshay's agent-memory tutorial illustrates this with a person assigned to a project, that project's database and a database outage. Answering whether the project was affected requires connecting those facts, rather than retrieving only passages that resemble the question.
The tutorial presents Cognee, an open-source memory system, as one answer. As described there, Cognee keeps three linked stores: a vector store that finds passages with similar meaning, a graph store that records how entities connect, and a relational store that tracks where each piece of data came from. A search can enter through similar text and then follow the graph to connected entities. The example illustrates the problem; it is not a measured guarantee that every dependency question will be answered correctly.
- Accuracy drops over 30% when the relevant fact sits in the middle of a long rather than near either end. Buying a bigger window does not buy reliable recall β it just moves where things get lost.
- A conversation list evicts strictly by age, so the user's name from turn one disappears before yesterday's throwaway joke. The flaw is not size, it is that chronology is standing in for importance.
- Flat markdown memory is genuinely good at four facts and useless at two thousand. Once the file outgrows the context window your only retrieval tool is keyword matching, which misses anything phrased differently.
- Consolidation is the piece people skip: repeated specific events should distill into a general rule, so noticing across dozens of sessions that users prefer executive summaries becomes a standing rather than dozens of replayed episodes.
- Dependency β Anything a program needs to run that its author did not write: the language, its standard library, or a separately installed package.
- Retrieval β Selecting evidence relevant to the current request.
- Context and context window β Context is the information available for a generation; the context window is the capacity available to hold it.
- Instruction β A statement in the context that tells the model how to behave or what to do; module 3's first layer.
βThe "memory" you feel when chatting with ChatGPT is an illusion created by re-sending the entire conversation history with every request.β
βAccuracy drops over 30% when relevant information sits in the middle of a long context.β
βMemory isn't about cramming more text into the prompt. It's about structuring what the agent remembers so it can find what matters.β
βStrip away the frameworks and an agent is a loop: perceive, think, act.β




