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

28.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>Munder Difflin&#39;s Architecture: Two Data Planes, One Renderer — Munder Difflin Blog</title>
<meta name="description" content="A walkthrough of the multi-agent harness architecture: a node-pty terminal plane and a hooks/hive event plane feeding one React + Pixi.js renderer." />
<link rel="canonical" href="https://munderdiffl.in/blog/architecture-two-planes-one-renderer/" />

<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="Munder Difflin&#39;s Architecture: Two Data Planes, One Renderer — Munder Difflin Blog" />
<meta property="og:description" content="A walkthrough of the multi-agent harness architecture: a node-pty terminal plane and a hooks/hive event plane feeding one React + Pixi.js renderer." />
<meta property="og:url" content="https://munderdiffl.in/blog/architecture-two-planes-one-renderer/" />
<meta property="og:image" content="https://munderdiffl.in/blog/assets/media/architecture-two-planes-one-renderer/hero.png" />
<meta property="og:image:width" content="1600" />
<meta property="og:image:height" content="900" />
<meta property="og:image:alt" content="Illustration: Munder Difflin&#39;s Architecture: Two Data Planes, One Renderer" />
<meta property="og:locale" content="en_US" />
<meta property="article:published_time" content="2026-06-04T00:00:00.000Z" />
<meta property="article:author" content="Chaitanya Giri" />
<meta property="article:tag" content="Internals" />
<meta property="article:tag" content="Architecture" />
<meta property="article:tag" content="Electron" />
<meta property="article:tag" content="Multi-Agent" />


<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Munder Difflin&#39;s Architecture: Two Data Planes, One Renderer — Munder Difflin Blog" />
<meta name="twitter:description" content="A walkthrough of the multi-agent harness architecture: a node-pty terminal plane and a hooks/hive event plane feeding one React + Pixi.js renderer." />
<meta name="twitter:image" content="https://munderdiffl.in/blog/assets/media/architecture-two-planes-one-renderer/hero.png" />
<meta name="twitter:image:alt" content="Illustration: Munder Difflin&#39;s Architecture: Two Data Planes, One Renderer" />

<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": "Munder Difflin's Architecture: Two Data Planes, One Renderer",
  "description": "A walkthrough of the multi-agent harness architecture: a node-pty terminal plane and a hooks/hive event plane feeding one React + Pixi.js renderer.",
  "image": ["https://munderdiffl.in/blog/assets/media/architecture-two-planes-one-renderer/hero.png"],
  "datePublished": "2026-06-04T00:00:00.000Z",
  "dateModified": "2026-06-04T00: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/architecture-two-planes-one-renderer/" },
  "keywords": "multi-agent harness architecture, electron architecture, ipc, agent harness design",
  "articleSection": "Internals",
  "inLanguage": "en-US",
  "url": "https://munderdiffl.in/blog/architecture-two-planes-one-renderer/"
}
</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": "Munder Difflin's Architecture: Two Data Planes, One Renderer", "item": "https://munderdiffl.in/blog/architecture-two-planes-one-renderer/" }
  ]
}
</script>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    { "@type": "Question", "name": "What are the two data planes in Munder Difflin?", "acceptedAnswer": { "@type": "Answer", "text": "The terminal plane carries raw pseudo-terminal bytes from each agent's shell (node-pty) to an xterm.js view. The event plane carries structured agent state — Claude Code hook events and routed hive messages — to the office-floor visualization. One is byte-for-byte authentic; the other is event-driven." } },
    { "@type": "Question", "name": "Why separate the terminal stream from the event stream?", "acceptedAnswer": { "@type": "Answer", "text": "Each answers a different question. The raw terminal stream shows exactly what the agent output; the event stream tells you which tool is running without parsing that output. Hooks alone miss the stream the user expects to see; the stream alone can't reliably say what's happening. Together they cover both." } },
    { "@type": "Question", "name": "How do the planes reach the UI?", "acceptedAnswer": { "@type": "Answer", "text": "Through Electron IPC. The main process owns the PTYs, a hook socket, and the hive; it forwards terminal bytes and structured events to the renderer, where React and Pixi.js draw the terminals and the office floor." } }
    
  ]
}
</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-internals">
  <header class="post-head wrap">
    <nav class="crumbs" aria-label="Breadcrumb">
      <a href="/blog/">Blog</a>
      <span>/</span>
      <a href="/blog/topics/internals/">Internals</a>
    </nav>
    <h1>Munder Difflin&#39;s Architecture: Two Data Planes, One Renderer</h1>
    <p class="dek">A walkthrough of the multi-agent harness architecture: a node-pty terminal plane and a hooks/hive event plane feeding one React + Pixi.js renderer.</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-06-04">Jun 4, 2026</time>
      <span class="dot" aria-hidden="true">·</span>
      <span>5 min read</span>
      <span class="tag kind">Internals</span>
    </div>
  </header>

  <div class="hero-wrap wrap"><figure class="fig fig-hero"><img src="/blog/assets/media/architecture-two-planes-one-renderer/hero.png" alt="Illustration: Munder Difflin's Architecture: Two Data Planes, One Renderer" 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>The
<strong>multi-agent harness architecture</strong> rests on one decision: <strong>two data
planes</strong>. A <strong>terminal plane</strong> streams raw node-pty bytes to xterm.js (authentic
shells), and an <strong>event plane</strong> carries structured Claude Code hook events plus routed
hive messages to a Pixi.js office floor (what's happening, at a glance). Both flow over Electron IPC
into <strong>one React + Pixi renderer</strong>. The terminal plane is the truth; the event plane is
the story.</p></div>
<p>Most of what Munder Difflin does follows from a single architectural choice, so it’s worth walking
through. The harness runs many real Claude Code agents and shows you two things about each: the exact
terminal output, and a live picture of what it’s doing. Those are different kinds of data, so they
travel on <strong>two separate planes</strong> that meet in one renderer. Here’s the whole shape.</p>
<h2 id="the-load-bearing-decision-two-planes" tabindex="-1">The load-bearing decision: two planes <a class="anchor" href="#the-load-bearing-decision-two-planes" aria-hidden="true">#</a></h2>
<pre><code>┌──────────────────── Electron Renderer (React + Pixi) ───────────────────┐
│   Office floor (Pixi.js)            Terminal view (xterm.js)             │
│        ▲ avatar state                     ▲ pty bytes                    │
└────────┼──────────────────────────────────┼────────────────────────────┘
         │ IPC                               │ IPC
   ┌─────┴───────────────┐            ┌──────┴──────────────┐
   │   Event Plane       │            │  Terminal Plane     │
   │ hooks + hive router │            │     node-pty        │
   └─────▲───────────────┘            └──────▲──────────────┘
         │ JSON events                       │ raw bytes
   ┌─────┴───────────────────────────────────┴──────────────┐
   │            Claude Code processes (one per agent)        │
   └────────────────────────────────────────────────────────┘
</code></pre>
<p>Each agent is one real <code>claude</code> process. From it we read two streams:</p>
<ul>
<li>a <strong>byte stream</strong> — exactly what the shell printed, and</li>
<li>an <strong>event stream</strong> — structured “I’m about to use this tool,” “a message routed,” “I stopped.”</li>
</ul>
<p>Keeping them separate is the whole trick. Let’s take each plane, then how they converge.</p>
<h2 id="the-terminal-plane-node-pty" tabindex="-1">The terminal plane (node-pty) <a class="anchor" href="#the-terminal-plane-node-pty" aria-hidden="true">#</a></h2>
<p>The terminal plane is about <em>fidelity</em>. Each agent runs in a real pseudo-terminal via
<a href="/blog/node-pty-electron-real-terminals/">node-pty</a>, so its shell behaves byte-for-byte like a normal
terminal — colors, prompts, full-screen TUIs, all authentic. The main process owns the PTY and
forwards its output to the renderer over IPC on a per-session channel; keystrokes from the UI travel
back the same way. The renderer paints it with a pooled xterm.js terminal per agent (the technique
behind <a href="/blog/rendering-many-live-terminals-performance/">rendering many live terminals</a>).</p>
<p>What the terminal plane gives you: the unfiltered truth of what each agent did. What it <em>can’t</em> easily
give you: a reliable “which tool is running right now?” without scraping and guessing at output. That’s
the other plane’s job.</p>
<figure class="fig fig-inline"><img src="/blog/assets/media/architecture-two-planes-one-renderer/note-1.png" alt="Hand-drawn sketch from “Munder Difflin's Architecture: Two Data Planes, One Renderer”" loading="lazy" decoding="async" /></figure>
<h2 id="the-event-plane-hooks-hive" tabindex="-1">The event plane (hooks + hive) <a class="anchor" href="#the-event-plane-hooks-hive" aria-hidden="true">#</a></h2>
<p>The event plane is about <em>structure</em>. It has two sources, both feeding the main process:</p>
<p><strong>Claude Code hooks.</strong> Each agent is launched with lifecycle hooks wired through a tiny shim that
forwards every event — <code>PreToolUse</code>, <code>PostToolUse</code>, <code>Stop</code>, <code>Notification</code> — to a Unix domain socket
the main process listens on. These are clean, typed signals: “about to run Bash,” “finished editing,”
“idle and waiting.” No output parsing required. (See
<a href="/blog/claude-code-hooks-explained/">Claude Code hooks, explained</a>.)</p>
<p><strong>The hive.</strong> The coordination layer — per-agent mailboxes, a message router, single-committer git, and
shared memory — emits its own events as it works: a message routed from A to B, an item escalated to
the human. The <a href="/blog/how-the-god-orchestrator-works/">GOD orchestrator</a> lives here as the
intelligence; the main process is the mechanism that moves messages and commits state.</p>
<p>Both sources land in the main process, which forwards structured events to the renderer. There they
drive the office floor: avatars walk to stations on tool events, envelopes fly on message events.</p>
<h2 id="why-both-planes-the-rationale" tabindex="-1">Why both planes (the rationale) <a class="anchor" href="#why-both-planes-the-rationale" aria-hidden="true">#</a></h2>
<p>The temptation is to pick one. Each alone is insufficient:</p>
<ul>
<li><strong>Hooks alone</strong> don’t give you the raw stream the user expects to <em>see</em> — you’d know an agent ran a
command but not what it printed.</li>
<li><strong>The terminal stream alone</strong> can’t tell you which tool is running without fragile output parsing —
you’d see bytes but have to guess at meaning.</li>
</ul>
<p>Together they’re complementary: the office floor is <strong>event-driven</strong> (precise, structured, cheap to
render), and the terminal view is <strong>byte-for-byte authentic</strong> (the full detail when you want it). Two
planes, two questions, both answered well.</p>
<figure class="fig fig-inline"><img src="/blog/assets/media/architecture-two-planes-one-renderer/note-2.png" alt="Hand-drawn sketch from “Munder Difflin's Architecture: Two Data Planes, One Renderer”" loading="lazy" decoding="async" /></figure>
<h2 id="one-renderer-convergence" tabindex="-1">One renderer convergence <a class="anchor" href="#one-renderer-convergence" aria-hidden="true">#</a></h2>
<p>Both planes terminate in a single Electron renderer running React and Pixi.js:</p>
<ul>
<li><strong>React</strong> owns the app shell, panels, and the xterm.js terminal views (the terminal plane).</li>
<li><strong>Pixi.js</strong> owns the office floor — avatars, the Tiled map, flying envelopes (the event plane), in
one camera-controlled world updated by a single ticker (the design in
<a href="/blog/visualizing-ai-agents-pixijs/">visualizing AI agents with Pixi.js</a>).</li>
</ul>
<p>The bridge between the main process and the renderer is a typed <strong>preload API</strong> exposed over Electron’s
context bridge — the renderer calls into it to spawn/write/resize PTYs and read hive state, and
subscribes to it for incoming terminal bytes and hive events. Crucially, the renderer never touches the
filesystem, git, or the agents directly; it only talks to the main process. That keeps a hard line
between <em>mechanism</em> (main process: PTYs, sockets, git, routing) and <em>presentation</em> (renderer: React +
Pixi).</p>
<h2 id="why-this-architecture-holds-up" tabindex="-1">Why this architecture holds up <a class="anchor" href="#why-this-architecture-holds-up" aria-hidden="true">#</a></h2>
<p>A few properties fall out of the two-plane design:</p>
<ul>
<li><strong>Separation of concerns.</strong> Fidelity and structure are independent problems solved independently. You
can improve terminal rendering without touching the event pipeline, and vice versa.</li>
<li><strong>The main process is the single source of authority.</strong> PTYs, the hook socket, the hive’s git repo,
and the memory layer all live in one place; the renderer is a consumer. That’s what makes the
<a href="/blog/single-committer-git-pattern/">single-committer git pattern</a> and safe IPC possible.</li>
<li><strong>Real, not simulated.</strong> Because the event plane carries actual hook and router events, the
visualization can’t drift from reality — it <em>is</em> reality, rendered.</li>
</ul>
<p>It’s the architecture that lets “a hive of Claude Code agents” be both something you can <em>read</em> (the
terminals) and something you can <em>watch</em> (the floor) — which is the heart of what a
<a href="https://munderdiffl.in/#what">multi-agent harness</a> is.</p>
<h2 id="faq" tabindex="-1">FAQ <a class="anchor" href="#faq" aria-hidden="true">#</a></h2>
<p><strong>Where does memory fit in the two planes?</strong> Alongside the event plane’s hive layer. The shared
semantic memory is driven by the main process (a CLI it points each agent at), and recall happens in
the agents themselves — it’s part of the coordination mechanism, not a third UI plane.</p>
<p><strong>Could you add a third plane?</strong> You could, but the discipline is to keep planes orthogonal. New
signals usually fit the event plane (more structured events) or the terminal plane (more byte
streams) rather than needing a new one.</p>
<hr>
<p>Munder Difflin’s two-plane architecture — authentic node-pty terminals plus an event-driven Pixi.js
floor, converging in one renderer — is what makes a hive both legible and real.
<a href="https://munderdiffl.in/#install">Download Munder Difflin</a> to see the architecture in action; 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 are the two data planes in Munder Difflin?</p>
          <p class="a">The terminal plane carries raw pseudo-terminal bytes from each agent&#39;s shell (node-pty) to an xterm.js view. The event plane carries structured agent state — Claude Code hook events and routed hive messages — to the office-floor visualization. One is byte-for-byte authentic; the other is event-driven.</p>
        </div>
        
        <div class="qa">
          <p class="q">Why separate the terminal stream from the event stream?</p>
          <p class="a">Each answers a different question. The raw terminal stream shows exactly what the agent output; the event stream tells you which tool is running without parsing that output. Hooks alone miss the stream the user expects to see; the stream alone can&#39;t reliably say what&#39;s happening. Together they cover both.</p>
        </div>
        
        <div class="qa">
          <p class="q">How do the planes reach the UI?</p>
          <p class="a">Through Electron IPC. The main process owns the PTYs, a hook socket, and the hive; it forwards terminal bytes and structured events to the renderer, where React and Pixi.js draw the terminals and the office floor.</p>
        </div>
        
      </section>
      

      
      <hr />
      <div class="share">
        <span class="lbl">Tags</span>
        <a class="tag" href="/blog/tags/internals/">Internals</a><a class="tag" href="/blog/tags/architecture/">Architecture</a><a class="tag" href="/blog/tags/electron/">Electron</a><a class="tag" href="/blog/tags/multi-agent/">Multi-Agent</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="#the-load-bearing-decision-two-planes">The load-bearing decision: two planes</a></li><li class="lvl-2"><a href="#the-terminal-plane-node-pty">The terminal plane (node-pty)</a></li><li class="lvl-2"><a href="#the-event-plane-hooks-hive">The event plane (hooks + hive)</a></li><li class="lvl-2"><a href="#why-both-planes-the-rationale">Why both planes (the rationale)</a></li><li class="lvl-2"><a href="#one-renderer-convergence">One renderer convergence</a></li><li class="lvl-2"><a href="#why-this-architecture-holds-up">Why this architecture holds up</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/best-claude-code-multi-agent-tools/"><span class="k">← Older</span><span class="t">The Best Tools to Run Multiple Claude Code Agents (2026)</span></a>
      <a class="pn next" href="/blog/agents-rule-of-two/"><span class="k">Newer →</span><span class="t">The Agents Rule of Two: A Simple Safety Rule for Coding Agents</span></a>
    </div>
    <section class="related">
      <h2>Related in Internals</h2>
      <div class="post-grid">
        <article class="card t-internals">
  <a class="thumb t-internals" href="/blog/the-spend-counter-that-went-back-to-zero/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/the-spend-counter-that-went-back-to-zero/hero.png" alt="" loading="lazy" decoding="async" /></a>
  <div class="body">
    <div class="meta">
      <time datetime="2026-08-22">Aug 22, 2026</time>
      <span class="dot" aria-hidden="true"></span>
      <span>10 min</span>
    </div>
    <h3><a href="/blog/the-spend-counter-that-went-back-to-zero/">The Spend Counter That Went Back to Zero</a></h3>
    <p class="dek">Our own floor was under reporting what it cost by 59 percent. The counter was cumulative since process start, the app restarts, and the session id stayed the same. Here is how a monotonic invariant let us recover the real number from an append-only log.</p>
    <div class="foot">
      <span class="tag kind">Internals</span>
      <a class="more" href="/blog/the-spend-counter-that-went-back-to-zero/" aria-label="Read: The Spend Counter That Went Back to Zero">Read →</a>
    </div>
  </div>
</article>
<article class="card t-internals">
  <a class="thumb t-internals" href="/blog/the-newline-that-silenced-windows-agents/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/the-newline-that-silenced-windows-agents/hero.png" alt="" loading="lazy" decoding="async" /></a>
  <div class="body">
    <div class="meta">
      <time datetime="2026-08-19">Aug 19, 2026</time>
      <span class="dot" aria-hidden="true"></span>
      <span>4 min</span>
    </div>
    <h3><a href="/blog/the-newline-that-silenced-windows-agents/">The Newline That Silenced Every Windows Agent</a></h3>
    <p class="dek">A cmd.exe parsing rule from the 1980s meant Windows agents received exactly one line of their multi-line startup protocol — and nothing errored. The anatomy of our worst silent failure, and the fix.</p>
    <div class="foot">
      <span class="tag kind">Internals</span>
      <a class="more" href="/blog/the-newline-that-silenced-windows-agents/" aria-label="Read: The Newline That Silenced Every Windows Agent">Read →</a>
    </div>
  </div>
</article>
<article class="card t-internals">
  <a class="thumb t-internals" href="/blog/why-our-auto-update-never-ran/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/why-our-auto-update-never-ran/hero.png" alt="" loading="lazy" decoding="async" /></a>
  <div class="body">
    <div class="meta">
      <time datetime="2026-08-08">Aug 8, 2026</time>
      <span class="dot" aria-hidden="true"></span>
      <span>5 min</span>
    </div>
    <h3><a href="/blog/why-our-auto-update-never-ran/">Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace</a></h3>
    <p class="dek">Munder Difflin shipped auto-update in v0.3.4 and it silently never worked in a single packaged build. The cause was one destructuring assignment across the CommonJS/ESM boundary — and a catch block that threw the evidence away. Here&#39;s how we found it, and what v0.3.7 changes.</p>
    <div class="foot">
      <span class="tag kind">Internals</span>
      <a class="more" href="/blog/why-our-auto-update-never-ran/" aria-label="Read: Our Auto-Update Never Ran Once: A CommonJS Export That Vanished Into an ESM Namespace">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>