Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

29.7 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<!-- Google tag (gtag.js), Google Ads AW-18388216863. Loaded only when Do Not Track is
     off, so it follows the same rule as the PostHog block on this site. -->
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){ dataLayer.push(arguments); }
  if (navigator.doNotTrack !== '1') {
    var gtagScript = document.createElement('script');
    gtagScript.async = true;
    gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=AW-18388216863';
    document.head.appendChild(gtagScript);
    gtag('js', new Date());
    gtag('config', 'AW-18388216863');
  }
</script>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Semantic Memory for AI Agents: Recall in Milliseconds — Munder Difflin Blog</title>
<meta name="description" content="What semantic memory for AI agents is, why a markdown-first store beats a heavy DB, and how a shared palace lets a hive recall a note by meaning, fast." />
<link rel="canonical" href="https://munderdiffl.in/blog/semantic-memory-for-ai-agents/" />

<link rel="icon" type="image/png" href="https://munderdiffl.in/logo.png" />
<link rel="apple-touch-icon" href="https://munderdiffl.in/logo.png" />
<meta name="theme-color" content="#F5F2E8" />

<!-- Open Graph -->
<meta property="og:site_name" content="Munder Difflin Blog" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Semantic Memory for AI Agents: Recall in Milliseconds — Munder Difflin Blog" />
<meta property="og:description" content="What semantic memory for AI agents is, why a markdown-first store beats a heavy DB, and how a shared palace lets a hive recall a note by meaning, fast." />
<meta property="og:url" content="https://munderdiffl.in/blog/semantic-memory-for-ai-agents/" />
<meta property="og:image" content="https://munderdiffl.in/blog/assets/media/semantic-memory-for-ai-agents/hero.png" />
<meta property="og:image:width" content="1600" />
<meta property="og:image:height" content="900" />
<meta property="og:image:alt" content="Illustration: Semantic Memory for AI Agents: Recall in Milliseconds" />
<meta property="og:locale" content="en_US" />
<meta property="article:published_time" content="2026-05-26T00:00:00.000Z" />
<meta property="article:author" content="Chaitanya Giri" />
<meta property="article:tag" content="Memory" />
<meta property="article:tag" content="MemPalace" />
<meta property="article:tag" content="Multi-Agent" />
<meta property="article:tag" content="Claude Code" />


<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Semantic Memory for AI Agents: Recall in Milliseconds — Munder Difflin Blog" />
<meta name="twitter:description" content="What semantic memory for AI agents is, why a markdown-first store beats a heavy DB, and how a shared palace lets a hive recall a note by meaning, fast." />
<meta name="twitter:image" content="https://munderdiffl.in/blog/assets/media/semantic-memory-for-ai-agents/hero.png" />
<meta name="twitter:image:alt" content="Illustration: Semantic Memory for AI Agents: Recall in Milliseconds" />

<link rel="alternate" type="application/atom+xml" title="Munder Difflin Blog" href="https://munderdiffl.in/blog/feed.xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],500;9..144,600;9..144,700;9..144,900&amp;family=Source+Serif+4:opsz,[email protected],400;8..60,600;8..60,700&amp;family=Space+Grotesk:wght@500;600;700&amp;family=JetBrains+Mono:wght@400;600&amp;display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/blog/assets/blog-press.css" />

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "Semantic Memory for AI Agents: Recall in Milliseconds",
  "description": "What semantic memory for AI agents is, why a markdown-first store beats a heavy DB, and how a shared palace lets a hive recall a note by meaning, fast.",
  "image": ["https://munderdiffl.in/blog/assets/media/semantic-memory-for-ai-agents/hero.png"],
  "datePublished": "2026-05-26T00:00:00.000Z",
  "dateModified": "2026-05-26T00:00:00.000Z",
  "author": { "@type": "Person", "name": "Chaitanya Giri" },
  "publisher": {
    "@type": "Organization",
    "name": "Munder Difflin",
    "logo": { "@type": "ImageObject", "url": "https://munderdiffl.in/logo.png" }
  },
  "mainEntityOfPage": { "@type": "WebPage", "@id": "https://munderdiffl.in/blog/semantic-memory-for-ai-agents/" },
  "keywords": "semantic memory for ai agents, semantic memory, vector recall, agent memory layer",
  "articleSection": "Memory",
  "inLanguage": "en-US",
  "url": "https://munderdiffl.in/blog/semantic-memory-for-ai-agents/"
}
</script>
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://munderdiffl.in/" },
    { "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://munderdiffl.in/blog/" },
    { "@type": "ListItem", "position": 3, "name": "Semantic Memory for AI Agents: Recall in Milliseconds", "item": "https://munderdiffl.in/blog/semantic-memory-for-ai-agents/" }
  ]
}
</script>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    { "@type": "Question", "name": "What is semantic memory for an AI agent?", "acceptedAnswer": { "@type": "Answer", "text": "It's a layer that lets an agent recall past knowledge by meaning rather than exact keywords. Notes are embedded into vectors; at recall time the agent's query is embedded too and the closest notes are returned — so 'how do we build the web bundle?' finds a note about electron-vite even if it never used those words." } },
    { "@type": "Question", "name": "Why markdown-first instead of a vector database?", "acceptedAnswer": { "@type": "Answer", "text": "Markdown notes are human-readable, diffable in git, and degrade gracefully — if the index breaks, the files still work. A heavyweight vector DB wants to own the agent runtime and adds operational weight you don't need for a handful of agents. The index sits on top of the markdown, not in place of it." } },
    { "@type": "Question", "name": "How does shared memory help a team of agents?", "acceptedAnswer": { "@type": "Answer", "text": "Each agent's notes are mined into a shared store, so one agent can recall what another learned. The team stops re-discovering the same facts, and the human stops re-explaining context every session." } }
    
  ]
}
</script>


<script>
  // Anonymous blog analytics (PostHog) — same posture as the main site and the
  // app's TELEMETRY.md: public write-only token ('' = inert), anonymous-only
  // (person_profiles 'never'), no autocapture/recording, DNT respected.
  (function () {
    var PH_KEY = 'phc_qJzsokwcbtTGHemnvywR3nSqivNNgMjHeNVEWkZNydFB';
    if (!PH_KEY || navigator.doNotTrack === '1') return;
    var s = document.createElement('script');
    s.async = true;
    s.src = 'https://us-assets.i.posthog.com/static/array.js';
    s.onload = function () {
      if (!window.posthog) return;
      window.posthog.init(PH_KEY, {
        api_host: 'https://us.i.posthog.com',
        person_profiles: 'never',
        autocapture: false,
        before_send: function (event) {
          // PostHog fills $ip from the connection unless the event carries one.
          // Null it here and disable the GeoIP lookup so no IP, city, postal
          // code or lat/long is ever derived or stored for this page view.
          if (event && event.properties) {
            event.properties.$ip = null;
            event.properties.$geoip_disable = true;
          }
          return event;
        },
        disable_session_recording: true,
        respect_dnt: true
      });
    };
    document.head.appendChild(s);
  })();
</script>
</head>
<body class="theme-press">
<a class="skip-link" href="#main">Skip to content</a>
<nav id="nav">
  <a class="brand" href="https://munderdiffl.in" aria-label="Munder Difflin home">
    <img class="brand-logo" src="https://munderdiffl.in/logo.png" width="1318" height="840" alt="Munder Difflin, Inc. — Multi-Agent Harness" />
  </a>
  <span class="spacer"></span>
  <div class="links">
    <a href="/blog/">Latest</a>
    <a href="/blog/topics/">Topics</a>
    <a href="/blog/about/">About</a>
    <a href="https://munderdiffl.in">↗ Product</a>
  </div>
  <div class="nav-actions">
    <a class="btn sm" href="https://munderdiffl.in/blog/feed.xml" aria-label="RSS feed">⤵ RSS</a>
    <a class="btn sm primary" href="https://munderdiffl.in/#install">⤓ Download</a>
  </div>
</nav>

<main id="main">

<article class="t-memory">
  <header class="post-head wrap">
    <nav class="crumbs" aria-label="Breadcrumb">
      <a href="/blog/">Blog</a>
      <span>/</span>
      <a href="/blog/topics/memory/">Memory</a>
    </nav>
    <h1>Semantic Memory for AI Agents: Recall in Milliseconds</h1>
    <p class="dek">What semantic memory for AI agents is, why a markdown-first store beats a heavy DB, and how a shared palace lets a hive recall a note by meaning, fast.</p>
    <div class="byline">
      <span class="av" aria-hidden="true">CG</span>
      <strong>Chaitanya Giri</strong>
      <span class="dot" aria-hidden="true">·</span>
      <time datetime="2026-05-26">May 26, 2026</time>
      <span class="dot" aria-hidden="true">·</span>
      <span>6 min read</span>
      <span class="tag kind">Memory</span>
    </div>
  </header>

  <div class="hero-wrap wrap"><figure class="fig fig-hero"><img src="/blog/assets/media/semantic-memory-for-ai-agents/hero.png" alt="Illustration: Semantic Memory for AI Agents: Recall in Milliseconds" loading="lazy" decoding="async" /></figure></div>

  <div class="post-wrap wrap">
    <div class="prose">
      <div class="callout tldr"><span class="ic">TL;DR</span><p><strong>Semantic memory</strong> lets an
agent recall past knowledge by <strong>meaning</strong>, not exact keywords. The durable approach is
<strong>markdown-first</strong>: agents write plain notes; a semantic index sits on top so they recall
the few relevant ones instead of re-reading everything. Make it <strong>shared</strong> across a hive
and one agent can use what another learned — recall stays fast and the context window stays small even
as the knowledge base grows.</p></div>
<p>An agent’s working memory is its context window, and the context window is wiped at the end of every
session. So “memory” for agents is really two problems: <em>storing</em> what they learn durably, and
<em>recalling</em> the right piece at the right time without dragging everything back into context. Semantic
memory solves the second. This post explains what it is, why markdown-first is the right foundation,
and how a shared memory layer changes how a team of agents behaves.</p>
<h2 id="keyword-recall-isnt-enough" tabindex="-1">Keyword recall isn’t enough <a class="anchor" href="#keyword-recall-isnt-enough" aria-hidden="true">#</a></h2>
<p>The first instinct is to store notes and grep them. It works until it doesn’t. An agent that learned</p>
<blockquote>
<p>“The web bundle is built with electron-vite, not plain vite.”</p>
</blockquote>
<p>won’t be found by a query like <em>“how do we compile the front-end?”</em> — no shared keywords. Keyword
search matches strings; agents think in concepts. The gap between “compile the front-end” and
“build the web bundle with electron-vite” is exactly where keyword recall fails and the agent
re-discovers something it already knew.</p>
<h2 id="what-semantic-recall-actually-does" tabindex="-1">What semantic recall actually does <a class="anchor" href="#what-semantic-recall-actually-does" aria-hidden="true">#</a></h2>
<p>Semantic memory closes that gap with <strong>embeddings</strong>. The idea, in three steps:</p>
<ol>
<li><strong>Embed each note</strong> into a vector — a list of numbers that captures its meaning, so notes about
similar things land near each other in vector space.</li>
<li><strong>At recall time, embed the query</strong> the same way.</li>
<li><strong>Return the nearest notes</strong> by vector similarity.</li>
</ol>
<p>Now <em>“how do we compile the front-end?”</em> lands near the electron-vite note even though they share no
words, because they mean the same thing. The agent recalls by meaning, pulls the two or three most
relevant notes into context, and acts — instead of either re-reading its whole history or missing the
note entirely.</p>
<p>The payoff compounds: recall stays <strong>near-instant</strong> and the context window stays <strong>small</strong> even as the
note collection grows into the hundreds. You inject the few notes that matter, not the whole archive.</p>
<figure class="fig fig-inline"><img src="/blog/assets/media/semantic-memory-for-ai-agents/note-1.png" alt="Hand-drawn sketch from “Semantic Memory for AI Agents: Recall in Milliseconds”" loading="lazy" decoding="async" /></figure>
<h2 id="why-markdown-first-beats-a-heavyweight-db" tabindex="-1">Why markdown-first beats a heavyweight DB <a class="anchor" href="#why-markdown-first-beats-a-heavyweight-db" aria-hidden="true">#</a></h2>
<p>There’s a strong temptation to reach for a dedicated vector database or a full agent-memory framework.
For a handful of agents, that’s the wrong trade. The more robust foundation is <strong>markdown-first</strong>:
agents write durable facts to plain markdown files, and a semantic index is built <em>on top</em> of those
files. Three reasons this wins:</p>
<ul>
<li><strong>Human-readable.</strong> You can open an agent’s <code>memory.md</code> and see exactly what it “knows.” Memory you
can’t read is memory you can’t trust.</li>
<li><strong>Diffable.</strong> The notes live in git. You watch memory change over time, and you can review it like
any other artifact.</li>
<li><strong>Degrades gracefully.</strong> If the fancy index breaks or isn’t installed, the markdown files still
work — the agent reads them directly. A database that won’t open takes the memory with it; a folder
of markdown never does.</li>
</ul>
<p>There’s also an architectural reason. Heavyweight memory frameworks tend to want to <em>own the agent
runtime</em> — they assume they’re the thing running the loop. But when your agents are real <code>claude</code>
sessions, the runtime is already Claude Code. The memory layer should be a lightweight companion to
that, not a replacement for it. Markdown files plus a CLI-driven index fit that shape; a framework that
wants to be in charge doesn’t. (For the full argument, see
<a href="/blog/markdown-first-agent-memory/">why we built agent memory markdown-first</a>; for the plain-English
version, <a href="/blog/give-claude-code-long-term-memory/">how to give Claude Code long-term memory</a>.)</p>
<h2 id="the-shape-of-a-shared-memory-layer" tabindex="-1">The shape of a shared memory layer <a class="anchor" href="#the-shape-of-a-shared-memory-layer" aria-hidden="true">#</a></h2>
<p>Here’s how Munder Difflin implements semantic memory for a whole hive, via the <strong>MemPalace</strong> layer.
It’s worth walking the moving parts because they show what “fast, shared recall” requires in practice.</p>
<h3 id="one-palace-many-wings" tabindex="-1">One palace, many wings <a class="anchor" href="#one-palace-many-wings" aria-hidden="true">#</a></h3>
<p>The harness keeps a single shared <strong>palace</strong> for the whole team and points every agent’s environment
at it. Each agent’s own notes go into its own <strong>wing</strong> of that palace. The result: agents have private
authorship (each writes only its own <code>memory.md</code>, keeping the single-writer rule intact) but <strong>shared
recall</strong> — a query can search the whole palace or scope to one agent’s wing.</p>
<p>That shared recall is what turns a pile of agents into a team that learns. When the researcher figures
out a build quirk, the coder can recall it later without anyone copy-pasting. The human stops being the
courier of context between sessions.</p>
<h3 id="mining-notes-become-searchable-automatically" tabindex="-1">Mining: notes become searchable automatically <a class="anchor" href="#mining-notes-become-searchable-automatically" aria-hidden="true">#</a></h3>
<p>Agents don’t manage the index by hand. The harness <strong>mines</strong> each agent’s <code>memory.md</code> into its wing on
a schedule, and — crucially — only when the file has actually changed (it checks the modification
time and skips unchanged memories, so it doesn’t reload the embedding model for nothing). Write a
durable fact to your markdown, and it becomes searchable by the whole team a few minutes later, with no
extra step.</p>
<h3 id="recall-search-and-wake-up" tabindex="-1">Recall: search and wake-up <a class="anchor" href="#recall-search-and-wake-up" aria-hidden="true">#</a></h3>
<p>Agents recall in two ways:</p>
<ul>
<li><strong><code>search &quot;&lt;query&gt;&quot;</code></strong> returns the most relevant notes by meaning, optionally scoped to one wing or
widened to more results. This is targeted recall: “what do we know about X?”</li>
<li><strong><code>wake-up</code></strong> returns a short digest — a few hundred tokens of what matters — meant to be read at the
<em>start</em> of a task, so an agent boots with the team’s relevant knowledge already in hand.</li>
</ul>
<p>Both are plain CLI calls the agent can run itself. There’s no MCP server to stand up, no database to
administer — the index is a companion to the markdown, driven by a command.</p>
<h3 id="degrade-and-detect" tabindex="-1">Degrade-and-detect <a class="anchor" href="#degrade-and-detect" aria-hidden="true">#</a></h3>
<p>If the semantic layer isn’t installed at all, none of this errors — it’s a no-op, and agents fall back
to reading their markdown directly. The fast path is an upgrade, not a dependency. That’s the
markdown-first principle paying off: the floor never falls out from under the team.</p>
<figure class="fig fig-inline"><img src="/blog/assets/media/semantic-memory-for-ai-agents/note-2.png" alt="Hand-drawn sketch from “Semantic Memory for AI Agents: Recall in Milliseconds”" loading="lazy" decoding="async" /></figure>
<h2 id="how-fast-is-fast" tabindex="-1">How fast is “fast”? <a class="anchor" href="#how-fast-is-fast" aria-hidden="true">#</a></h2>
<p>The “milliseconds” promise is about the <em>experience</em>, and it’s worth being precise. Recall feels
instant because the expensive work — turning notes into vectors — happens ahead of time, during
mining. At recall time you embed one short query and compare it against pre-computed vectors, which is
cheap. The agent gets its handful of relevant notes back without a perceptible wait, and without
dragging its whole history into context. Compared to the alternative — re-reading everything, or worse,
re-discovering it — it’s the difference between remembering and relearning.</p>
<p>A practical note: lighter embedding models keep recall snappy on modest hardware, which matters when
everything runs locally. A small, fast model is the sensible default; a larger multilingual one is
there when you need it. The point is that <em>local</em> and <em>fast</em> aren’t in tension here.</p>
<h2 id="what-shared-memory-changes-day-to-day" tabindex="-1">What shared memory changes day to day <a class="anchor" href="#what-shared-memory-changes-day-to-day" aria-hidden="true">#</a></h2>
<p>The abstract benefit is “agents remember.” The concrete one shows up in your habits:</p>
<ul>
<li>Your briefs get <strong>shorter</strong> every week, because the team stops needing context re-explained.</li>
<li>Agents stop <strong>contradicting</strong> each other, because they recall the same shared decisions.</li>
<li>A new agent added to the team is <strong>useful immediately</strong> — it wakes up into the hive’s accumulated
knowledge instead of a blank slate.</li>
</ul>
<p>That’s the quiet superpower of a memory layer: it makes a <a href="/blog/coordinating-ai-coding-agents/">coordinated team</a>
get better over time instead of starting cold every run. It’s also what lets the
<a href="/blog/how-the-god-orchestrator-works/">GOD orchestrator</a> route well — it can recall what’s been tried
and who knows what.</p>
<h2 id="faq" tabindex="-1">FAQ <a class="anchor" href="#faq" aria-hidden="true">#</a></h2>
<p><strong>Does semantic memory replace the markdown notes?</strong> No — it sits on top of them. The markdown is the
source of truth; the index is a recall accelerator built from it. That ordering is the whole point.</p>
<p><strong>Who decides what gets remembered?</strong> The agents do, by writing durable facts to their own memory as
they work. Good memory hygiene — small, atomic, factual notes — makes recall sharp; rambling notes make
it fuzzy.</p>
<hr>
<p>Munder Difflin gives every Claude Code agent markdown memory plus
<a href="https://munderdiffl.in/#how">a shared semantic palace the whole hive can recall from</a> — local, fast,
and graceful when offline.
<a href="https://munderdiffl.in/#install">Download Munder Difflin</a> to give your agents memory that actually
sticks; it’s free and open source.</p>


      
      <section class="faq" aria-label="Frequently asked questions">
        <h2 id="faq">FAQ</h2>
        
        <div class="qa">
          <p class="q">What is semantic memory for an AI agent?</p>
          <p class="a">It&#39;s a layer that lets an agent recall past knowledge by meaning rather than exact keywords. Notes are embedded into vectors; at recall time the agent&#39;s query is embedded too and the closest notes are returned — so &#39;how do we build the web bundle?&#39; finds a note about electron-vite even if it never used those words.</p>
        </div>
        
        <div class="qa">
          <p class="q">Why markdown-first instead of a vector database?</p>
          <p class="a">Markdown notes are human-readable, diffable in git, and degrade gracefully — if the index breaks, the files still work. A heavyweight vector DB wants to own the agent runtime and adds operational weight you don&#39;t need for a handful of agents. The index sits on top of the markdown, not in place of it.</p>
        </div>
        
        <div class="qa">
          <p class="q">How does shared memory help a team of agents?</p>
          <p class="a">Each agent&#39;s notes are mined into a shared store, so one agent can recall what another learned. The team stops re-discovering the same facts, and the human stops re-explaining context every session.</p>
        </div>
        
      </section>
      

      
      <hr />
      <div class="share">
        <span class="lbl">Tags</span>
        <a class="tag" href="/blog/tags/memory/">Memory</a><a class="tag" href="/blog/tags/mempalace/">MemPalace</a><a class="tag" href="/blog/tags/multi-agent/">Multi-Agent</a><a class="tag" href="/blog/tags/claude-code/">Claude Code</a>
      </div>
      
    </div>

    
    <aside class="toc-rail" aria-label="Table of contents">
      <div class="tt">On this page</div>
      <ol>
        <li class="lvl-2"><a href="#keyword-recall-isnt-enough">Keyword recall isn’t enough</a></li><li class="lvl-2"><a href="#what-semantic-recall-actually-does">What semantic recall actually does</a></li><li class="lvl-2"><a href="#why-markdown-first-beats-a-heavyweight-db">Why markdown-first beats a heavyweight DB</a></li><li class="lvl-2"><a href="#the-shape-of-a-shared-memory-layer">The shape of a shared memory layer</a></li><li class="lvl-3"><a href="#one-palace-many-wings">One palace, many wings</a></li><li class="lvl-3"><a href="#mining-notes-become-searchable-automatically">Mining: notes become searchable automatically</a></li><li class="lvl-3"><a href="#recall-search-and-wake-up">Recall: search and wake-up</a></li><li class="lvl-3"><a href="#degrade-and-detect">Degrade-and-detect</a></li><li class="lvl-2"><a href="#how-fast-is-fast">How fast is “fast”?</a></li><li class="lvl-2"><a href="#what-shared-memory-changes-day-to-day">What shared memory changes day to day</a></li><li class="lvl-2"><a href="#faq">FAQ</a></li>
      </ol>
    </aside>
    
  </div>

  <footer class="post-foot wrap"><div class="prevnext">
      <a class="pn prev" href="/blog/manage-multiple-claude-code-sessions/"><span class="k">← Older</span><span class="t">How to Manage Multiple Claude Code Sessions Like a Pro</span></a>
      <a class="pn next" href="/blog/markdown-first-agent-memory/"><span class="k">Newer →</span><span class="t">Why We Built Agent Memory Markdown-First</span></a>
    </div>
    <section class="related">
      <h2>Related in Memory</h2>
      <div class="post-grid">
        <article class="card t-memory">
  <a class="thumb t-memory" href="/blog/how-agents-remember-semantic-memory/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/how-agents-remember-semantic-memory/hero.png" alt="" loading="lazy" decoding="async" /></a>
  <div class="body">
    <div class="meta">
      <time datetime="2026-06-04">Jun 4, 2026</time>
      <span class="dot" aria-hidden="true"></span>
      <span>5 min</span>
    </div>
    <h3><a href="/blog/how-agents-remember-semantic-memory/">How AI Agents Remember: Semantic Memory in a Hive</a></h3>
    <p class="dek">A code-grounded guide to how AI agents remember — the MemPalace mine loop, per-agent wings, and wake-up digest that give a Claude Code hive shared recall.</p>
    <div class="foot">
      <span class="tag kind">Memory</span>
      <a class="more" href="/blog/how-agents-remember-semantic-memory/" aria-label="Read: How AI Agents Remember: Semantic Memory in a Hive">Read →</a>
    </div>
  </div>
</article>
<article class="card t-memory">
  <a class="thumb t-memory" href="/blog/keep-agent-semantic-memory-clean/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/keep-agent-semantic-memory-clean/hero.png" alt="" loading="lazy" decoding="async" /></a>
  <div class="body">
    <div class="meta">
      <time datetime="2026-06-04">Jun 4, 2026</time>
      <span class="dot" aria-hidden="true"></span>
      <span>6 min</span>
    </div>
    <h3><a href="/blog/keep-agent-semantic-memory-clean/">Keep Your Agent&#39;s Semantic Memory Clean: Don&#39;t Index the Config</a></h3>
    <p class="dek">A semantic memory layer is only as good as what you feed it — how an agent&#39;s recall got swamped by config and logs, and the .gitignore + prune fix.</p>
    <div class="foot">
      <span class="tag kind">Memory</span>
      <a class="more" href="/blog/keep-agent-semantic-memory-clean/" aria-label="Read: Keep Your Agent&#39;s Semantic Memory Clean: Don&#39;t Index the Config">Read →</a>
    </div>
  </div>
</article>
<article class="card t-memory">
  <a class="thumb t-memory" href="/blog/give-claude-code-long-term-memory/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/give-claude-code-long-term-memory/hero.png" alt="" loading="lazy" decoding="async" /></a>
  <div class="body">
    <div class="meta">
      <time datetime="2026-05-27">May 27, 2026</time>
      <span class="dot" aria-hidden="true"></span>
      <span>3 min</span>
    </div>
    <h3><a href="/blog/give-claude-code-long-term-memory/">How to Give Claude Code Long-Term Memory</a></h3>
    <p class="dek">Claude Code forgets between sessions. Here&#39;s how a markdown-first memory layer with semantic recall lets your agents remember across runs.</p>
    <div class="foot">
      <span class="tag kind">Memory</span>
      <a class="more" href="/blog/give-claude-code-long-term-memory/" aria-label="Read: How to Give Claude Code Long-Term Memory">Read →</a>
    </div>
  </div>
</article>

      </div>
    </section>
    
  </footer>
</article>

</main>
<footer class="site-foot">
  <div class="wrap">
    <div class="foot-top">
      <a class="foot-brand brand" href="https://munderdiffl.in" aria-label="Munder Difflin home">
        <img class="brand-logo" src="https://munderdiffl.in/logo.png" width="1318" height="840" alt="Munder Difflin, Inc. — Multi-Agent Harness" />
      </a>
      <div class="foot-links">
        <a href="/blog/">Latest</a>
        <a href="/blog/topics/">Topics</a>
        <a href="/blog/about/">About</a>
        <a href="https://munderdiffl.in/blog/feed.xml">RSS</a>
        <a href="https://github.com/chaitanyagiri/munder-difflin">GitHub</a>
        <a href="https://munderdiffl.in">munderdiffl.in ↗</a>
      </div>
    </div>
    <div class="foot-meta">
      © 2026 Munder Difflin · Local-first · MIT-licensed ·
      Built on <a href="https://munderdiffl.in">Electron, React, Pixi.js, xterm.js &amp; node-pty</a>.
      Run an office of agents while you sleep.
    </div>
  </div>
</footer>

<script>
  // sticky-nav border on scroll
  (function () {
    var nav = document.getElementById('nav');
    if (!nav) return;
    var onScroll = function () { nav.classList.toggle('scrolled', window.scrollY > 8); };
    onScroll(); window.addEventListener('scroll', onScroll, { passive: true });
  })();
  // YouTube click-to-load: thumbnail button → youtube-nocookie iframe
  (function () {
    document.addEventListener('click', function (e) {
      var btn = e.target.closest('.yt-load');
      if (!btn) return;
      var box = btn.closest('.yt');
      var id = box && box.getAttribute('data-yt');
      // Only an 11 character YouTube video id may reach the iframe URL.
      if (!id || !/^[A-Za-z0-9_-]{11}$/.test(id)) return;
      var frame = document.createElement('iframe');
      frame.src = 'https://www.youtube-nocookie.com/embed/' + encodeURIComponent(id) + '?autoplay=1';
      frame.title = box.getAttribute('data-title') || 'YouTube video';
      frame.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
      frame.setAttribute('allowfullscreen', '');
      box.replaceChildren(frame);
    });
  })();
</script>

</body>
</html>