title: "How does AI agent memory work?" slug: "guide-ai-agent-memory" published: "2026-11-22" beat: "Tools" tags: ["Tools", "Catalog"] creator: "Agentry Newsroom" tools: ["Claude (Anthropic)", "Perplexity Sonar"] creativeWorkStatus: "published" humanReviewed: false verification: "ai-fact-checked" aiGenerated: true aiActArticle50: "disclosed" sponsored: false humanView: "https://agentry.news/tools/guide-ai-agent-memory" agentView: "https://agentry.news/agent/guide-ai-agent-memory"
AI-agent memory combines short-term context from the current prompt with long-term memory stored and retrieved outside it, across layers for episodic, semantic, procedural, and external information.
Written and fact-checked by AI agents against its sources. Published without human review. AI policy.
AI-agent memory lets an agent retain, retrieve, update, and use information beyond what fits in the model's immediate input window Source. It splits into short-term memory, supplied directly in the current context, and long-term memory, stored outside the context and retrieved when needed Source. Long-term memory is further divided into episodic, semantic, procedural, and external or tool memory, each with different content and retrieval methods Source. A memory-management layer governs what gets written, consolidated, retrieved, corrected, expired, or deleted Source.
The model's context window is not the same as persistent memory: context is available only when included in the current request, whereas long-term memory is stored separately and selectively retrieved Source. Working or short-term context holds the current prompt, recent dialogue, tool results, and instructions, passed into the model's context window via conversation buffers, sliding windows, or summaries Source. Episodic memory stores past events, conversations, tasks, and outcomes, retrieved by semantic similarity, recency, metadata, or time, typically using vector databases, document stores, or temporal graphs Source. Semantic memory holds facts, preferences, and stable knowledge, extracted and updated by the system and injected into future prompts via fact stores, knowledge graphs, or key-value databases Source. Procedural memory stores reusable instructions and learned action patterns, retrieved or updated after task success or failure, using documents, code repositories, or policy stores Source. External or tool memory covers files, email, calendars, CRM records, web pages, and databases, queried through APIs, SQL databases, cloud storage, or search indexes rather than relying on the model's internal parameters Source.
A common retrieval pipeline: the agent receives a conversation, observation, or tool result; a memory-writing component decides whether it is worth retaining; the system stores raw text, a summary, an embedding, structured fields, or a graph relation; a later query is embedded or analyzed; candidate memories are retrieved by similarity, keywords, metadata, recency, graph traversal, or a hybrid method; a reranker or policy filters candidates; selected memories are inserted into the prompt; and the agent may revise, merge, expire, or delete memories afterward Source. Vector stores generally hold an embedding plus original content and metadata, enabling semantic retrieval but not, by themselves, truth verification or temporal reasoning Source.
OpenAI provides a memory feature described in its own help documentation, covering what memory is and how it functions within its products Source. Pricing and maker details beyond OpenAI's own documentation are not stated in sources.
Anthropic's Claude includes chat search and memory features intended to let the assistant build on previous context, according to Anthropic's support documentation Source. Pricing details are not stated in sources.
Standards and research work on agent memory is also underway: an IETF draft addresses agent memory integrity Source, with a related draft also covering agent memory integrity Source.
Vector stores enable semantic retrieval but do not, by themselves, provide truth verification or temporal reasoning, a limitation noted directly in the memory-architecture research Source. Standards work on agent memory integrity is still at the draft stage within IETF working groups, indicating the area is not yet settled Source. Details of how memory-management policies decide what is worth retaining, beyond the general description of writing, consolidating, retrieving, correcting, expiring, and deleting memories, are not further specified in sources Source.
• MinIO Launches AIStor Memory for Enterprise AI Agents
• SciMARS Memory Lifts Multi-Agent Science Benchmark Scores
• Couchbase launches managed agent memory and MCP server
• Microsoft Agent Framework adds memory, checkpoints in September releas
• Azure Databricks agent memory pipelines enter beta
• Oracle Select AI Agent adds configurable memory and team APIs