# Memory and personalization

> Memory keeps what the agent learns from one conversation to the next: preferences, facts, decisions. It makes the agent more useful. It also builds a profile of the person, who must be able to view, correct and delete it.

There are three kinds of memory: the current conversation’s, a person’s kept from one session to the next, and a team’s or project’s, shared.

Memory meets a real need. The MIT NANDA report notes that tools dropped after the pilot keep neither feedback nor context, while employees expect a tool that learns.

It also carries risks. The CNIL and CIANum note (July 2026) points out that persistent memory increases the data kept and enables highly personalized profiles. Memory can also be poisoned by booby-trapped content, a risk in OWASP’s agentic Top 10, or leak from one person to another.

A few rules keep these risks down. The person sees and edits their memory. A retention period is set. Memories are separated by person and by space. Sensitive data is excluded by default, and no outside document can write to memory.

Team memory holds procedures, decisions and validated answers. It has an owner who reviews it, like a knowledge base.

**When**: Worth it for an assistant used daily by the same person or team, and for agents that must learn from corrections. Not justified on sensitive data (health, HR) until viewing and deletion are in place.

**Trade-offs**: The more the agent remembers, the less you repeat yourself, and the more what it keeps becomes personal data to protect.

## Where to start

- Choose the useful memories per use case
- Make memory visible and editable
- Set the retention period
- Exclude sensitive data

## Common mistakes

- Turning on memory the person cannot see
- Mixing several people’s memories
- Letting an outside document write to memory
- Leaving agents’ memory in a platform with no way to export it

## Metrics

- Deletion requests handled and time taken
- Answers corrected once and right afterwards
- Cross-person leak incidents

## Sources

- [CNIL and CIANum, Agentic AI and personal data (in French)](https://cnil.fr/fr/ia-agentique-cnil-cianum-note)
- [MIT NANDA, The GenAI Divide, as reported by Fortune](https://fortune.com/2025/08/18/mit-report-95-percent-generative-ai-pilots-at-companies-failing-cfo/)
- [OWASP, Top 10 for Agentic Applications 2026](https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/)
- [LangChain, Your harness, your memory](https://www.langchain.com/blog/your-harness-your-memory)
