AI / MLAgents & ProtocolsDiagramIntermediate
Agent Memory
KO: 에이전트 메모리·EN: Agent Memory·JA: エージェントメモリ
A memory architecture enabling AI agents to persist and recall short-term working state alongside long-term episodic history, semantic user facts, and procedural rules across sessions
Table of Contents
Structure Diagram
Hierarchical Agent Memory ArchitectureTap a node
HUBAgent (Context)
4 linksQuick Answer
What is Agent Memory?
A memory architecture enabling AI agents to persist and recall short-term working state alongside long-term episodic history, semantic user facts, and procedural rules across sessions. It is a core concept in Agents & Protocols within AI / ML.
Core Principles
LLMs are stateless between API calls. Agent Memory bridges sessions using four complementary tiers: Working Memory (active context and summaries), Semantic Memory (structured user facts and preferences), Episodic Memory (past interaction trajectories), and Procedural Memory (learned rules and playbooks).
Practical Takeaways
- Build memory consolidation and conflict resolution: Appending every fact blindly creates contradictions when user preferences change. Run an upsert/merge step that updates or expires stale facts.
- Compact working memory proactively: Summarize verbose tool outputs and older turns before they crowd out the context window.
- Provide user visibility and isolation: Enforce strict per-user/tenant isolation and give users UI controls to inspect or delete stored memories.
Notable Examples
- Personal AI Assistants: Retain user role, coding preferences, and tone settings across conversations.
- Mem0, Zep & Letta (MemGPT): Dedicated memory layers handling fact extraction, temporal updates, and semantic recall.
- Coding Agent Repo Memory: Stores build scripts, style rules, and past bug fixes for instant reuse in future tasks.