Skip to content
Finic
AI and agents

What is agent memory?

Agent memory is how an AI agent keeps information across steps and sessions, such as past conversations, user preferences and task progress, beyond one prompt.

Also called: AI agent memory, long-term memory, persistent memory

How it works

Short-term memory is what fits in the model's context window during a task. Long-term memory is stored outside the model, often as notes, records or embeddings in a vector database, and loaded back when relevant.

Some agents write memories on their own, such as remembering a user's address. Others let the user or developer control what is saved.

Why it matters for fraud and trust

Memory makes agents more useful, but it also stores sensitive data and creates a lasting place for attacks. If an attacker can get false instructions into memory, for example through a web page the agent read once, those instructions can affect later sessions long after the original page is gone. This is a form of memory poisoning.

Stored memories can also hold personally identifiable information, payment details or credentials, which raises privacy and breach risk.

Warning signs

Signs that memory has been tampered with include the following.

  • The agent follows a rule the user never set.
  • Saved memories that contain instructions rather than facts.
  • New payees, addresses or contacts that appear in memory without a clear source.

Good practice

Let users see and delete what an agent remembers, record where each memory came from, avoid storing secrets, and keep memories written from untrusted content apart from those the user confirmed.

← All glossary terms

Ship fraud, bot and KYB checks in minutes.

Start with $5 of free credit, or copy a prompt and let your coding agent set Finic up.

Sign up See pricing