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
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
<!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>Do More With Less: Smart Model Routing Across Agents — Munder Difflin Blog</title>
<meta name="description" content="Why a hive of agents shouldn't all run the biggest model — and how routing the right task to the right model cuts cost and latency without losing quality." />
<link rel="canonical" href="https://munderdiffl.in/blog/do-more-with-less-model-routing/" />
<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="Do More With Less: Smart Model Routing Across Agents — Munder Difflin Blog" />
<meta property="og:description" content="Why a hive of agents shouldn't all run the biggest model — and how routing the right task to the right model cuts cost and latency without losing quality." />
<meta property="og:url" content="https://munderdiffl.in/blog/do-more-with-less-model-routing/" />
<meta property="og:image" content="https://munderdiffl.in/blog/assets/media/do-more-with-less-model-routing/hero.png" />
<meta property="og:image:width" content="1600" />
<meta property="og:image:height" content="900" />
<meta property="og:image:alt" content="Illustration: Do More With Less: Smart Model Routing Across Agents" />
<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="Model Routing" />
<meta property="article:tag" content="Cost" />
<meta property="article:tag" content="Orchestration" />
<meta property="article:tag" content="Multi-Agent" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Do More With Less: Smart Model Routing Across Agents — Munder Difflin Blog" />
<meta name="twitter:description" content="Why a hive of agents shouldn't all run the biggest model — and how routing the right task to the right model cuts cost and latency without losing quality." />
<meta name="twitter:image" content="https://munderdiffl.in/blog/assets/media/do-more-with-less-model-routing/hero.png" />
<meta name="twitter:image:alt" content="Illustration: Do More With Less: Smart Model Routing Across Agents" />
<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&family=Source+Serif+4:opsz,[email protected],400;8..60,600;8..60,700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600&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": "Do More With Less: Smart Model Routing Across Agents",
"description": "Why a hive of agents shouldn't all run the biggest model — and how routing the right task to the right model cuts cost and latency without losing quality.",
"image": ["https://munderdiffl.in/blog/assets/media/do-more-with-less-model-routing/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/do-more-with-less-model-routing/" },
"keywords": "ai model routing, model routing, llm cost optimization, sonnet vs opus, ai agent cost",
"articleSection": "Concepts",
"inLanguage": "en-US",
"url": "https://munderdiffl.in/blog/do-more-with-less-model-routing/"
}
</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": "Do More With Less: Smart Model Routing Across Agents", "item": "https://munderdiffl.in/blog/do-more-with-less-model-routing/" }
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{ "@type": "Question", "name": "What is AI model routing?", "acceptedAnswer": { "@type": "Answer", "text": "Model routing is the practice of sending each task to the model that fits it, rather than running everything on one model. A cheap, fast model handles routine work — formatting, classification, simple edits — and a heavier, more capable model is reserved for the hard reasoning. In a multi-agent system the router is usually the orchestrator, deciding per task which model an agent should use." } },
{ "@type": "Question", "name": "Does using a smaller model hurt quality?", "acceptedAnswer": { "@type": "Answer", "text": "Only if you use it for the wrong tasks. Most of what an agent does on any given hour is routine — and a smaller model does routine work just as well for a fraction of the cost and latency. Quality drops when you under-power genuinely hard reasoning, not when you right-size the easy stuff. The skill is matching task difficulty to model capability." } },
{ "@type": "Question", "name": "How much can model routing actually save?", "acceptedAnswer": { "@type": "Answer", "text": "It depends on your task mix, but the economics are stark: the gap between a small and a large model is often 10–20x per token. If most of your agents' work is routine and you route only the hard fraction to the big model, you can cut spend by more than half while keeping — sometimes improving — quality, because cheaper calls also run faster." } },
{ "@type": "Question", "name": "Who decides which model to use in a multi-agent hive?", "acceptedAnswer": { "@type": "Answer", "text": "The orchestrator. It sees the task before it's assigned, so it's the natural place to pick the model: default everyone to a lean model, and escalate to a heavier one only for tasks flagged as hard, ambiguous, or high-stakes. Individual agents can also request an escalation when they detect they're out of their depth." } }
]
}
</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-concepts">
<header class="post-head wrap">
<nav class="crumbs" aria-label="Breadcrumb">
<a href="/blog/">Blog</a>
<span>/</span>
<a href="/blog/topics/concepts/">Concepts</a>
</nav>
<h1>Do More With Less: Smart Model Routing Across Agents</h1>
<p class="dek">Why a hive of agents shouldn't all run the biggest model — and how routing the right task to the right model cuts cost and latency without losing quality.</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">Concepts</span>
</div>
</header>
<div class="hero-wrap wrap"><figure class="fig fig-hero"><img src="/blog/assets/media/do-more-with-less-model-routing/hero.png" alt="Illustration: Do More With Less: Smart Model Routing Across Agents" 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>Running every agent on the biggest model is
the most common way to waste money on a hive. Most agent work is <strong>routine</strong> — and a
small, fast model does routine work just as well for a fraction of the cost. <strong>Model routing</strong>
means defaulting to the lean model and <strong>escalating to a heavyweight only when the task is
genuinely hard</strong>. The orchestrator is the natural router because it sees the task before it's
assigned. Done right, you cut spend by more than half <em>and</em> get faster answers — doing more with
less.</p></div>
<p>There’s a reflex when you wire up a team of AI agents: give all of them the best model you can afford,
because more capability is always better, right? It feels safe. It’s also the fastest way to turn a
useful hive into an expensive one. The truth that experienced operators learn quickly is that <strong>most of
what agents do all day doesn’t need a frontier model at all</strong> — and paying frontier prices for routine
work is pure waste. The fix is <strong>model routing</strong>: matching the task to the model instead of flattening
everything onto one.</p>
<h2 id="the-work-isnt-uniform-so-why-is-the-model" tabindex="-1">The work isn’t uniform — so why is the model? <a class="anchor" href="#the-work-isnt-uniform-so-why-is-the-model" aria-hidden="true">#</a></h2>
<p>Watch a hive for an hour and you’ll see a huge range of task difficulty. An agent reformatting a file,
classifying a message, renaming variables, or summarizing a short log is doing <strong>routine</strong> work — the
kind a small model handles perfectly. Another agent untangling a subtle race condition, designing an
architecture, or reasoning through an ambiguous spec is doing <strong>hard</strong> work that genuinely rewards a
bigger model.</p>
<p>If you run both on the same heavyweight model, you’re overpaying for the first kind every single time.
The distribution matters: in most real workloads the routine tasks vastly outnumber the hard ones. So
the single biggest cost lever isn’t a discount — it’s <strong>not using the expensive model for the 80% of
work that doesn’t need it</strong>.</p>
<h2 id="the-economics-plainly" tabindex="-1">The economics, plainly <a class="anchor" href="#the-economics-plainly" aria-hidden="true">#</a></h2>
<p>The price gap between model tiers is not small. A lean model and a frontier model can differ by
<strong>10–20x per token</strong>, and the cheaper one usually answers <strong>faster</strong> too. Put those together and the
arithmetic is hard to ignore:</p>
<ul>
<li>Run <strong>everything</strong> on the big model → you pay the premium on every task, routine or not.</li>
<li>Run <strong>everything</strong> on the small model → you save money but botch the genuinely hard tasks, and a wrong
answer on a hard task is far more expensive than the tokens you saved.</li>
<li><strong>Route</strong> → default to the lean model, escalate the hard fraction → you pay the premium only where it
buys you something.</li>
</ul>
<p>The third option typically cuts total spend by more than half while <em>keeping</em> quality, because you only
spend big where capability actually changes the outcome. “Do more with less” isn’t a slogan here; it’s
just what falls out of matching price to need.</p>
<figure class="fig fig-inline"><img src="/blog/assets/media/do-more-with-less-model-routing/note-1.png" alt="Hand-drawn sketch from “Do More With Less: Smart Model Routing Across Agents”" loading="lazy" decoding="async" /></figure>
<h2 id="the-orchestrator-is-the-natural-router" tabindex="-1">The orchestrator is the natural router <a class="anchor" href="#the-orchestrator-is-the-natural-router" aria-hidden="true">#</a></h2>
<p>In a single-agent setup, routing is a manual choice you make per session. In a hive, you can do better,
because there’s already a component that sees every task before it’s handed out: the
<a href="/blog/how-the-god-orchestrator-works/">orchestrator</a>. It’s the natural place to decide which model each
task deserves.</p>
<p>A simple, durable policy:</p>
<ol>
<li><strong>Default lean.</strong> Every agent starts on the small, fast model. Most tasks never need more.</li>
<li><strong>Escalate on signal.</strong> When the orchestrator (or the agent itself) detects that a task is hard,
ambiguous, high-stakes, or has already failed once on the lean model, it bumps that task to the
heavyweight.</li>
<li><strong>De-escalate after.</strong> A hard task often has easy sub-steps. Once the reasoning is done, routine
follow-up work drops back to the lean model.</li>
</ol>
<p>Notice this mirrors how a good human team works: you don’t put your most senior engineer on every ticket;
you route the gnarly ones to them and let the rest flow to whoever’s available. A lean orchestrator
<a href="/blog/coordinating-ai-coding-agents/">coordinating specialists</a> and escalating only when needed is the
same idea applied to models.</p>
<h2 id="reading-the-signals" tabindex="-1">Reading the signals <a class="anchor" href="#reading-the-signals" aria-hidden="true">#</a></h2>
<p>Routing well means knowing <em>when</em> a task deserves the expensive model. You don’t need a perfect predictor —
a few cheap heuristics catch most of it:</p>
<ul>
<li><strong>Stakes.</strong> Anything touching spend, destructive operations, or shipped output earns a heavier model
and usually <a href="/blog/human-in-the-loop-ai-agents/">a human check too</a>.</li>
<li><strong>Ambiguity.</strong> A vague or open-ended request (design, root-cause, “figure out why”) rewards reasoning
power; a precise mechanical request doesn’t.</li>
<li><strong>Failure.</strong> If the lean model tried and got it wrong, escalate instead of retrying at the same tier —
retrying a too-small model is just paying twice for the same miss.</li>
<li><strong>Length and dependency.</strong> Tasks that chain many steps or hold a lot of state benefit from the stronger
model’s coherence over long runs.</li>
</ul>
<p>Everything that trips none of these — the bulk of the day — stays lean.</p>
<figure class="fig fig-inline"><img src="/blog/assets/media/do-more-with-less-model-routing/note-2.png" alt="Hand-drawn sketch from “Do More With Less: Smart Model Routing Across Agents”" loading="lazy" decoding="async" /></figure>
<h2 id="you-cant-route-what-you-cant-see" tabindex="-1">You can’t route what you can’t see <a class="anchor" href="#you-cant-route-what-you-cant-see" aria-hidden="true">#</a></h2>
<p>The honest caveat: routing decisions are only as good as your visibility into cost. If you don’t know
which agents and tasks are burning the most tokens, you’re guessing. The teams that get the most out of
routing are the ones that <strong>measure first</strong> — per-agent and per-task token spend, attributed and trended
over time — and then tune the escalation policy against real data instead of vibes. Measurement turns
routing from a hunch into a control you can actually steer. (It’s the same instinct as
<a href="/blog/why-local-first-matters-for-ai-agents/">keeping the work local and observable</a>: you can’t manage
what you can’t watch.)</p>
<h2 id="the-bottom-line" tabindex="-1">The bottom line <a class="anchor" href="#the-bottom-line" aria-hidden="true">#</a></h2>
<p>A hive that runs everything on the biggest model isn’t being careful — it’s being wasteful, and slowly.
The better posture is <strong>lean by default, heavy on purpose</strong>: route the routine majority to a small fast
model, reserve the frontier model for the hard minority, and measure enough to know which is which. You
end up spending less, answering faster, and — because you’re no longer drowning genuinely hard tasks in
the same undifferentiated pool — often getting <em>better</em> results where it counts.</p>
<p>Munder Difflin is built for exactly this posture: a lean <a href="/#how">orchestrator</a> that routes work across a hive and
escalates only when a task earns it. <a href="https://munderdiffl.in/#install">Download Munder Difflin</a> to run an
agent team that does more with less — 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 AI model routing?</p>
<p class="a">Model routing is the practice of sending each task to the model that fits it, rather than running everything on one model. A cheap, fast model handles routine work — formatting, classification, simple edits — and a heavier, more capable model is reserved for the hard reasoning. In a multi-agent system the router is usually the orchestrator, deciding per task which model an agent should use.</p>
</div>
<div class="qa">
<p class="q">Does using a smaller model hurt quality?</p>
<p class="a">Only if you use it for the wrong tasks. Most of what an agent does on any given hour is routine — and a smaller model does routine work just as well for a fraction of the cost and latency. Quality drops when you under-power genuinely hard reasoning, not when you right-size the easy stuff. The skill is matching task difficulty to model capability.</p>
</div>
<div class="qa">
<p class="q">How much can model routing actually save?</p>
<p class="a">It depends on your task mix, but the economics are stark: the gap between a small and a large model is often 10–20x per token. If most of your agents' work is routine and you route only the hard fraction to the big model, you can cut spend by more than half while keeping — sometimes improving — quality, because cheaper calls also run faster.</p>
</div>
<div class="qa">
<p class="q">Who decides which model to use in a multi-agent hive?</p>
<p class="a">The orchestrator. It sees the task before it's assigned, so it's the natural place to pick the model: default everyone to a lean model, and escalate to a heavier one only for tasks flagged as hard, ambiguous, or high-stakes. Individual agents can also request an escalation when they detect they're out of their depth.</p>
</div>
</section>
<hr />
<div class="share">
<span class="lbl">Tags</span>
<a class="tag" href="/blog/tags/model-routing/">Model Routing</a><a class="tag" href="/blog/tags/cost/">Cost</a><a class="tag" href="/blog/tags/orchestration/">Orchestration</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-work-isnt-uniform-so-why-is-the-model">The work isn’t uniform — so why is the model?</a></li><li class="lvl-2"><a href="#the-economics-plainly">The economics, plainly</a></li><li class="lvl-2"><a href="#the-orchestrator-is-the-natural-router">The orchestrator is the natural router</a></li><li class="lvl-2"><a href="#reading-the-signals">Reading the signals</a></li><li class="lvl-2"><a href="#you-cant-route-what-you-cant-see">You can’t route what you can’t see</a></li><li class="lvl-2"><a href="#the-bottom-line">The bottom line</a></li>
</ol>
</aside>
</div>
<footer class="post-foot wrap"><div class="prevnext">
<a class="pn prev" href="/blog/evaluating-ai-agent-reliability/"><span class="k">← Older</span><span class="t">Evaluating AI Agent Reliability: How to Measure What You Can Trust</span></a>
<a class="pn next" href="/blog/debugging-multi-agent-systems/"><span class="k">Newer →</span><span class="t">How to Debug a Multi-Agent System</span></a>
</div>
<section class="related">
<h2>Related in Concepts</h2>
<div class="post-grid">
<article class="card t-concepts">
<a class="thumb t-concepts" href="/blog/gpt-6-1-terra/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/gpt-6-1-terra/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-10-27">Oct 27, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>4 min</span>
</div>
<h3><a href="/blog/gpt-6-1-terra/">GPT-6.1 Terra: Price, Specs and How to Use It in Codex (Oct 2026)</a></h3>
<p class="dek">GPT-6.1 Terra is OpenAI's fast new model for images, computer use and writing: price, specs and how to pick it in Codex, checked 27 Oct 2026.</p>
<div class="foot">
<span class="tag kind">Concepts</span>
<a class="more" href="/blog/gpt-6-1-terra/" aria-label="Read: GPT-6.1 Terra: Price, Specs and How to Use It in Codex (Oct 2026)">Read →</a>
</div>
</div>
</article>
<article class="card t-concepts">
<a class="thumb t-concepts" href="/blog/what-is-claude-duet/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/what-is-claude-duet/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-10-22">Oct 22, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>5 min</span>
</div>
<h3><a href="/blog/what-is-claude-duet/">What Is Claude Duet? Anthropic's Proactive Agent App, Explained</a></h3>
<p class="dek">Claude Duet is Anthropic's proactive agent app, in research preview since 21 Oct 2026: who can join, how it works, what it asks first and its limits.</p>
<div class="foot">
<span class="tag kind">Concepts</span>
<a class="more" href="/blog/what-is-claude-duet/" aria-label="Read: What Is Claude Duet? Anthropic's Proactive Agent App, Explained">Read →</a>
</div>
</div>
</article>
<article class="card t-concepts">
<a class="thumb t-concepts" href="/blog/deepseek-v4-1-flash-1017/" aria-hidden="true" tabindex="-1"><img src="/blog/assets/media/deepseek-v4-1-flash-1017/hero.png" alt="" loading="lazy" decoding="async" /></a>
<div class="body">
<div class="meta">
<time datetime="2026-10-17">Oct 17, 2026</time>
<span class="dot" aria-hidden="true"></span>
<span>4 min</span>
</div>
<h3><a href="/blog/deepseek-v4-1-flash-1017/">DeepSeek V4.1 Flash 1017: What Changed, the Price and Claude Code Setup</a></h3>
<p class="dek">DeepSeek V4.1 Flash 1017, released 17 Oct 2026 under MIT: what changed, DeepSeek's benchmarks, the API price and Claude Code setup.</p>
<div class="foot">
<span class="tag kind">Concepts</span>
<a class="more" href="/blog/deepseek-v4-1-flash-1017/" aria-label="Read: DeepSeek V4.1 Flash 1017: What Changed, the Price and Claude Code Setup">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 & 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>