<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Agent Memory on AI Vault</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/</link><description>Recent content in Agent Memory on AI Vault</description><generator>Hugo</generator><language>en</language><atom:link href="https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/index.xml" rel="self" type="application/rss+xml"/><item><title>Working Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/working-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/working-memory/</guid><description>&lt;p&gt;&lt;em&gt;The active context window.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;Everything the model can &amp;ldquo;see&amp;rdquo; this turn: the current messages, the system prompt, tool&#10;outputs, and reasoning steps. It&amp;rsquo;s the agent&amp;rsquo;s scratchpad — and the only memory the model&#10;truly has, since the model is stateless between calls.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; C[Client - web or app] --&amp;gt; W[Working memory - context window: messages, system prompt, tool outputs]&#10; W --&amp;gt; LLM[Model]&#10; W &amp;lt;--&amp;gt; CP[Checkpointer - thread id]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;Always — it&amp;rsquo;s the baseline every agent runs on, managed by the&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/building/agent-harness/"&gt;harness&lt;/a&gt;. A &lt;em&gt;checkpointer&lt;/em&gt; keyed by a thread id&#10;lets a conversation pause and resume.&lt;/p&gt;</description></item><item><title>Semantic Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/semantic-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/semantic-memory/</guid><description>&lt;p&gt;&lt;em&gt;Knowledge that lasts.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;A persistent store of facts, preferences, and profiles about users or topics — the things&#10;that should survive across sessions and be applied consistently.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; A[Agent] --&amp;gt; S[Semantic memory - facts, preferences, profiles]&#10; S &amp;lt;--&amp;gt; DB[(Vector DB / profile store)]&#10; S --&amp;gt; U[Personalized, consistent answers]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;Users repeat themselves across sessions, or answers must be personalized and consistent —&#10;without the user re-stating the same context every time.&lt;/p&gt;</description></item><item><title>Episodic Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/episodic-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/episodic-memory/</guid><description>&lt;p&gt;&lt;em&gt;Experiences that teach.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;A record of past events: full conversations, task outcomes, successes and failures, with&#10;timestamps. It&amp;rsquo;s how an agent learns from its own history instead of restarting from zero.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; E[Conversations, task runs, events] --&amp;gt; EM[Episodic memory - outcomes, successes, failures]&#10; EM &amp;lt;--&amp;gt; LOG[(Event log DB)]&#10; EM --&amp;gt; R[Recall past - learn - avoid repeats]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;The agent repeats mistakes it already made, or you need an audit trail of what happened and&#10;why.&lt;/p&gt;</description></item><item><title>Procedural Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/procedural-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/procedural-memory/</guid><description>&lt;p&gt;&lt;em&gt;Knowledge of how to do things.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;Knowledge of &lt;em&gt;how&lt;/em&gt; tasks get done: skills, workflows, tool-use patterns, and behavioral rules.&#10;Tools give an agent &lt;em&gt;capabilities&lt;/em&gt;; procedural memory gives it &lt;em&gt;procedures&lt;/em&gt;.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; T[Task or goal] --&amp;gt; P[Procedural memory - skills, workflows, rules]&#10; P &amp;lt;--&amp;gt; SK[(Skills / procedures store)]&#10; P --&amp;gt; X[Apply a known procedure]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;The agent re-derives the same procedure on every run instead of reusing a known-good one.&lt;/p&gt;</description></item><item><title>External Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/external-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/external-memory/</guid><description>&lt;p&gt;&lt;em&gt;Bring outside knowledge in.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;Knowledge kept outside the model in a vector DB and fetched at inference by similarity search.&#10;This &lt;em&gt;is&lt;/em&gt; &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/rag/"&gt;RAG&lt;/a&gt;, seen through the lens of memory.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; Q[Question] --&amp;gt; Emb[Embed query] --&amp;gt; Sim[Similarity search]&#10; Sim --&amp;gt; DB[(Vector DB - embeddings, metadata, sources)]&#10; DB --&amp;gt; TopK[Top-K chunks] --&amp;gt; Ctx[Inject into context] --&amp;gt; LLM[Model answers]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;The knowledge is too large to keep in the context window and changes often — so you look it&#10;up on demand instead of baking it in.&lt;/p&gt;</description></item><item><title>Parametric Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/parametric-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/parametric-memory/</guid><description>&lt;p&gt;&lt;em&gt;Knowledge baked into the weights.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;Knowledge learned during training and stored directly in the model&amp;rsquo;s weights: language,&#10;reasoning patterns, world knowledge, facts. No retrieval — it&amp;rsquo;s just &lt;em&gt;there&lt;/em&gt;.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; Q[Question] --&amp;gt; LLM[LLM - parametric memory in weights: language, world knowledge, facts]&#10; LLM --&amp;gt; A[Answer - instant, no retrieval]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;You don&amp;rsquo;t &lt;em&gt;add&lt;/em&gt; it at runtime — it&amp;rsquo;s always present, the fastest and cheapest memory. The&#10;design question is what to &lt;em&gt;rely&lt;/em&gt; on it for versus fetch externally.&lt;/p&gt;</description></item><item><title>Prospective Memory</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/prospective-memory/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-memory/prospective-memory/</guid><description>&lt;p&gt;&lt;em&gt;Remember what you plan to do next.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="what-it-is"&gt;What it is&lt;/h2&gt;&#10;&lt;p&gt;Future intentions and scheduled goals the agent has committed to but not yet executed:&#10;pending tasks, goal stacks, reminders. It&amp;rsquo;s how a long-horizon agent survives interruptions.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; A[Agent - interrupted mid-task] --&amp;gt; Store[Prospective store - pending tasks, goals, reminders]&#10; Store --&amp;gt; Trig{Trigger - time or event}&#10; Trig --&amp;gt; Resume[Reload intent and continue]&lt;/pre&gt;&#10;&lt;h2 id="when-you-need-it"&gt;When you need it&lt;/h2&gt;&#10;&lt;p&gt;Long-horizon agents that must act on future events — not just respond to the current turn —&#10;and jobs that span interruptions or restarts.&lt;/p&gt;</description></item></channel></rss>