Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
<!doctype html><html lang=en dir=ltr class="blog-wrapper blog-post-page mj-root plugin-blog plugin-id-default" data-has-hydrated=false><head><meta charset=UTF-8><meta name=generator content="Docusaurus v3.10.0"><title data-rh=true>Mercury Bots: an agent fleet that runs on your machine | Mercury Agent</title><meta data-rh=true name=viewport content="width=device-width, initial-scale=1.0"/><meta data-rh=true property=og:url content=https://mercuryagent.sh/blog/mercury-bots /><meta data-rh=true property=og:locale content=en /><meta data-rh=true name=docusaurus_locale content=en /><meta data-rh=true name=docusaurus_tag content=default /><meta data-rh=true name=docsearch:language content=en /><meta data-rh=true name=docsearch:docusaurus_tag content=default /><meta data-rh=true name=theme-color content=#0a0d10 media="(prefers-color-scheme: dark)"/><meta data-rh=true name=theme-color content=#fbfbf8 media="(prefers-color-scheme: light)"/><meta data-rh=true name=description content="Always-on agents shipped everywhere this autumn. How Mercury Bots work, what we measured, how they compare with Grok Bot, OpenAI dots, Meta Muse, OpenClaw and Hermes Agent, and the commits behind it."/><meta data-rh=true property=og:description content="Always-on agents shipped everywhere this autumn. How Mercury Bots work, what we measured, how they compare with Grok Bot, OpenAI dots, Meta Muse, OpenClaw and Hermes Agent, and the commits behind it."/><meta data-rh=true name=keywords content="mercury bots,always-on ai agents,ai agent fleet,self-hosted ai agent,openclaw alternative,hermes agent comparison,grok bot,openai dots,meta muse"/><meta data-rh=true property=og:type content=article /><meta data-rh=true property=article:published_time content=2026-10-16T00:00:00.000Z /><meta data-rh=true property=article:author content=https://github.com/hotheadhacker /><meta data-rh=true property=article:tag content=Product,Engineering,Runtime /><meta data-rh=true property=og:image content="https://mercuryagent.sh/img/og/blog/mercury-bots.jpg?v=2"/><meta data-rh=true property=og:image:secure_url content="https://mercuryagent.sh/img/og/blog/mercury-bots.jpg?v=2"/><meta data-rh=true property=og:image:type content=image/jpeg /><meta data-rh=true property=og:image:width content=1200 /><meta data-rh=true property=og:image:height content=630 /><meta data-rh=true property=og:image:alt content="Mercury Bots: an agent fleet that runs on your machine. Product · 18 min read. Mercury Blog"/><meta data-rh=true name=twitter:card content=summary_large_image /><meta data-rh=true name=twitter:image content="https://mercuryagent.sh/img/og/blog/mercury-bots.jpg?v=2"/><meta data-rh=true name=twitter:image:alt content="Mercury Bots: an agent fleet that runs on your machine. Product · 18 min read. Mercury Blog"/><meta data-rh=true property=og:title content="Mercury Bots: an agent fleet that runs on your machine"/><meta data-rh=true name=twitter:title content="Mercury Bots: an agent fleet that runs on your machine"/><meta data-rh=true property=article:section content=Product /><meta data-rh=true name=twitter:label1 content=Topic /><meta data-rh=true name=twitter:data1 content=Product /><meta data-rh=true name=twitter:label2 content="Reading time"/><meta data-rh=true name=twitter:data2 content="18 min read"/><link data-rh=true rel=icon href=/img/logo-light.png /><link data-rh=true rel=canonical href=https://mercuryagent.sh/blog/mercury-bots /><link data-rh=true rel=alternate href=https://mercuryagent.sh/blog/mercury-bots hreflang=en /><link data-rh=true rel=alternate href=https://mercuryagent.sh/blog/mercury-bots hreflang=x-default /><link data-rh=true rel=alternate type=text/markdown href=/blog/mercury-bots.md title="Markdown version"/><script data-rh=true type=application/ld+json>{"@context":"https://schema.org","@id":"https://mercuryagent.sh/blog/mercury-bots","@type":"BlogPosting","author":{"@type":"Person","description":"Founder, Cosmic Stack","image":"https://github.com/hotheadhacker.png","name":"Salman Qureshi","url":"https://github.com/hotheadhacker"},"datePublished":"2026-10-16T00:00:00.000Z","description":"Always-on agents shipped everywhere this autumn. How Mercury Bots work, what we measured, how they compare with Grok Bot, OpenAI dots, Meta Muse, OpenClaw and Hermes Agent, and the commits behind it.","headline":"Mercury Bots: an agent fleet that runs on your machine","image":{"@id":"https://mercuryagent.sh/assets/images/cover-36d9be74b9993ac7bc58ba21b70d94d8.jpg","@type":"ImageObject","caption":"title image for the blog post: Mercury Bots: an agent fleet that runs on your machine","contentUrl":"https://mercuryagent.sh/assets/images/cover-36d9be74b9993ac7bc58ba21b70d94d8.jpg","url":"https://mercuryagent.sh/assets/images/cover-36d9be74b9993ac7bc58ba21b70d94d8.jpg"},"isPartOf":{"@id":"https://mercuryagent.sh/blog","@type":"Blog","name":"Mercury Blog"},"keywords":["mercury bots","always-on ai agents","ai agent fleet","self-hosted ai agent","openclaw alternative","hermes agent comparison","grok bot","openai dots","meta muse"],"mainEntityOfPage":"https://mercuryagent.sh/blog/mercury-bots","name":"Mercury Bots: an agent fleet that runs on your machine","url":"https://mercuryagent.sh/blog/mercury-bots"}</script><script data-rh=true type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","item":"https://mercuryagent.sh/","name":"Mercury","position":1},{"@type":"ListItem","item":"https://mercuryagent.sh/blog","name":"Blog","position":2},{"@type":"ListItem","item":"https://mercuryagent.sh/blog/tags/product","name":"Product","position":3},{"@type":"ListItem","item":"https://mercuryagent.sh/blog/mercury-bots","name":"Mercury Bots: an agent fleet that runs on your machine","position":4}]}</script><link rel=alternate type=application/rss+xml href=/blog/rss.xml title="Mercury Blog RSS Feed"><link rel=alternate type=application/atom+xml href=/blog/atom.xml title="Mercury Blog Atom Feed"><link rel=alternate type=application/json href=/blog/feed.json title="Mercury Blog JSON Feed"><meta name=twitter:site content=@mercuryagent><meta property=og:site_name content="Mercury Agent"><meta name=application-name content="Mercury Agent"><link rel=preconnect href=https://fonts.googleapis.com><link rel=preconnect href=https://fonts.gstatic.com crossorigin=anonymous><link rel=stylesheet href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap"><link rel=apple-touch-icon href=/img/logo-light.png><script src=https://analytics.cosmicstack.org/js/pa--flkUFvdfmsPSUtRivKAK.js async></script><script src=/js/plausible-init.js></script><link rel=stylesheet href=/assets/css/styles.b525f68d.css /><script src=/assets/js/runtime~main.c3075c62.js defer></script><script src=/assets/js/main.69097411.js defer></script></head><body><svg style="display: none;"><defs>
<symbol id=theme-svg-external-link viewBox="0 0 24 24"><path fill=currentColor d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></symbol>
</defs></svg>
<script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme-ebb")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")),document.documentElement.setAttribute("data-theme-choice",t||"system")}(),function(){try{for(var[t,e]of new URLSearchParams(window.location.search).entries())if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}(),document.documentElement.setAttribute("data-announcement-bar-initially-dismissed",function(){try{return"true"===localStorage.getItem("docusaurus.announcement.dismiss-ebb")}catch(t){}return!1}())</script><div id=__docusaurus><link rel=preload as=image href=/img/logo-light.png /><link rel=preload as=image href=/img/logo-dark.png /><link rel=preload as=image href=https://github.com/hotheadhacker.png /><link rel=preload as=image href=/assets/images/cover-36d9be74b9993ac7bc58ba21b70d94d8.jpg fetchpriority=high /><div role=region aria-label="Skip to main content"><a class=skipToContent_fXgn href=#__docusaurus_skipToContent_fallback>Skip to main content</a></div><div class="theme-announcement-bar announcementBar_mb4j" role=banner><div class=announcementBarPlaceholder_vyr4></div><div class="content_knG7 announcementBarContent_xLdY">☿ Mercury 1.5.0 is out with <strong>Mercury Desktop</strong> for macOS, Windows and Linux, remote access you control, and updates that roll back on their own. <a href=/download>Download it →</a></div><button type=button aria-label=Close class="clean-btn close closeButton_CVFx announcementBarClose_gvF7"><svg viewBox="0 0 15 15" width=14 height=14><g stroke=currentColor stroke-width=3.1><path d="M.75.75l13.5 13.5M14.25.75L.75 14.25"/></g></svg></button></div><nav aria-label=Main class="theme-layout-navbar navbar navbar--fixed-top"><div class=navbar__inner><div class="theme-layout-navbar-left navbar__items"><button aria-label="Toggle navigation bar" aria-expanded=false class="navbar__toggle clean-btn" type=button><svg width=30 height=30 viewBox="0 0 30 30" aria-hidden=true><path stroke=currentColor stroke-linecap=round stroke-miterlimit=10 stroke-width=2 d="M4 7h22M4 15h22M4 23h22"/></svg></button><a class=navbar__brand href=/><div class=navbar__logo><img src=/img/logo-light.png alt="Mercury Agent" class="themedComponent_mlkZ themedComponent--light_NVdE"/><img src=/img/logo-dark.png alt="Mercury Agent" class="themedComponent_mlkZ themedComponent--dark_xIcU"/></div><b class="navbar__title text--truncate">Mercury</b></a><a class="navbar__item navbar__link" href=/docs>Docs</a><a class="navbar__item navbar__link" href=/docs/integrations/coding-workspace>Code</a><a class="navbar__item navbar__link" href=/docs/integrations/mercury-bots>Bots</a><a class="navbar__item navbar__link" href=/cloud>Cloud</a><a href=https://skills.mercuryagent.sh target=_blank rel="noopener noreferrer" class="navbar__item navbar__link">Skills<svg width=13.5 height=13.5 aria-label="(opens in new tab)" class=iconExternalLink_nPIU><use href=#theme-svg-external-link /></svg></a><a aria-current=page class="navbar__item navbar__link navbar__link--active" href=/blog>Blog</a><a class="navbar__item navbar__link" href=/docs/releases>Changelog</a></div><div class="theme-layout-navbar-right navbar__items navbar__items--right"><a href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer" class="navbar__item navbar__link navbar-github" aria-label="Mercury Agent on GitHub"></a><a class="navbar__item navbar__link navbar-cta" href=/download>Download</a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type=button disabled title="system mode" aria-label="Switch between dark and light mode (currently system mode)"><svg viewBox="0 0 24 24" width=24 height=24 aria-hidden=true class="toggleIcon_g3eP lightToggleIcon_pyhR"><path fill=currentColor d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"/></svg><svg viewBox="0 0 24 24" width=24 height=24 aria-hidden=true class="toggleIcon_g3eP darkToggleIcon_wfgR"><path fill=currentColor d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"/></svg><svg viewBox="0 0 24 24" width=24 height=24 aria-hidden=true class="toggleIcon_g3eP systemToggleIcon_QzmC"><path fill=currentColor d="m12 21c4.971 0 9-4.029 9-9s-4.029-9-9-9-9 4.029-9 9 4.029 9 9 9zm4.95-13.95c1.313 1.313 2.05 3.093 2.05 4.95s-0.738 3.637-2.05 4.95c-1.313 1.313-3.093 2.05-4.95 2.05v-14c1.857 0 3.637 0.737 4.95 2.05z"/></svg></button></div><div class=navbarSearchContainer_Bca1><div class="navbar__search searchBarContainer_NW3z" dir=ltr><input placeholder=Search aria-label=Search class="navbar__search-input searchInput_YFbd" value="" /><div class="loadingRing_RJI3 searchBarLoadingRing_YnHq"><div></div><div></div><div></div><div></div></div></div></div></div></div><div role=presentation class=navbar-sidebar__backdrop></div></nav><div id=__docusaurus_skipToContent_fallback class="theme-layout-main main-wrapper mainWrapper_z2l0"><main class=mj-post><div class=mj-progress role=progressbar aria-label="Reading progress" aria-valuemin=0 aria-valuemax=100 aria-valuenow=0><span style=transform:scaleX(0)></span></div><button type=button class=mj-progress-pill aria-label="18 min left. Back to top" tabindex=-1><svg viewBox="0 0 20 20" width=18 height=18 aria-hidden=true><circle cx=10 cy=10 r=8 class=mj-ring-bg /><circle cx=10 cy=10 r=8 class=mj-ring style=stroke-dashoffset:50.27 /></svg><span>18 min left</span></button><header class=mj-post-head><a class=mj-back href=/blog>← Blog</a><a class=mj-post-cat href=/blog/tags/product>Product</a><h1 class=mj-post-title>Mercury Bots: an agent fleet that runs on your machine</h1><p class=mj-post-dek>Always-on agents shipped everywhere this autumn. How Mercury Bots work, what we measured, how they compare with Grok Bot, OpenAI dots, Meta Muse, OpenClaw and Hermes Agent, and the commits behind it.<div class=mj-post-byline><div class=mj-post-authors><a class=mj-post-author href=/blog/authors/salman><img src=https://github.com/hotheadhacker.png alt="" width=36 height=36 /><span><strong>Salman Qureshi</strong><em>Founder, Cosmic Stack</em></span></a></div><div class=mj-meta><time datetime=2026-10-16T00:00:00.000Z>Oct 16, 2026</time><span aria-hidden=true>·</span><span>18<!-- --> min read</span></div></div></header><div class=mj-post-banner><img src=/assets/images/cover-36d9be74b9993ac7bc58ba21b70d94d8.jpg alt="" width=1600 height=900 fetchpriority=high decoding=async /></div><div class="mj-post-layout has-toc"><aside class=mj-post-toc aria-label="On this page"><div class=mj-toc-head><p>On this page</p><span class=mj-toc-left>18 min left</span></div><div class=mj-toc-meter aria-hidden=true><span style=transform:scaleX(0)></span></div><div class=tableOfContentsInline_prmo><ul class=table-of-contents><li><a href=#what-a-mercury-bot-is>What a Mercury bot is</a><li><a href=#one-process-many-bots>One process, many bots</a><li><a href=#bots-never-ask-they-fail-closed>Bots never ask, they fail closed</a><li><a href=#budgets-are-on-before-you-set-anything>Budgets are on before you set anything</a><li><a href=#every-run-is-judged-by-what-it-did>Every run is judged by what it did</a><li><a href=#fleets-work-in-typed-tasks-and-leads-wake-once>Fleets work in typed tasks, and leads wake once</a><li><a href=#results-are-files-you-own-and-the-fleet-fits-in-your-pocket>Results are files you own, and the fleet fits in your pocket</a><li><a href=#how-mercury-bots-compares>How Mercury Bots compares</a><ul><li><a href=#where-the-others-are-ahead>Where the others are ahead</a></ul><li><a href=#the-commits>The commits</a><li><a href=#sources>Sources</a></ul></div></aside><article class="mj-prose markdown"><p>Between August 11 and September 29, three of the largest AI companies launched always-on agents. xAI shipped Grok Bot, Meta shipped Muse and OpenAI shipped dots. Each one keeps working after you close the app. The two big open-source projects in this space, OpenClaw and Hermes Agent, have about 646,000 GitHub stars between them.</p>
<p>Mercury Bots is our answer to the same question: what should an agent that runs without you actually look like? Our answer differs from the others in four places. It runs as a fleet on your own machine. It never asks for permission in the middle of a run. It has spending limits that are on before you configure anything. And it judges every run by what it did, not by what it said.</p>
<!-- -->
<p>This post explains how that works, shows the code, and compares Mercury Bots honestly with the five products above, including the places where they are ahead of us. Every claim about another product links to its own documentation or to reporting about it. We checked all of them on October 16, 2026.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=what-a-mercury-bot-is>What a Mercury bot is<a href=#what-a-mercury-bot-is class=hash-link aria-label="Direct link to What a Mercury bot is" title="Direct link to What a Mercury bot is" translate=no></a></h2>
<p>A bot is a folder. Each one lives at <code>~/.mercury/bots/<id>/</code> and holds four files:</p>
<ul>
<li class=""><strong><code>bot.yaml</code></strong> sets its identity, model, schedules and fleet position.</li>
<li class=""><strong><code>persona.md</code></strong> holds its character and standing instructions.</li>
<li class=""><strong><code>permissions.yaml</code></strong> is the only file that decides what it may touch.</li>
<li class=""><strong><code>.env</code></strong> holds credentials that only this bot can read.</li>
</ul>
<p>Bots form fleets. A lead bot owns a goal and has a crew of specialists, and crews can have their own crews. A typical fleet is a lead that plans a weekly report, a researcher, a writer and a fact-checker. Each one can run on a different model from a different provider, because the model is a per-bot setting.</p>
<p>We studied Hermes Agent and OpenClaw closely before writing the first line. Our design notes credit both, and you can read them in <a href=https://github.com/cosmicstack-labs/mercury-agent/blob/main/BOTS-ARCHITECTURE.md target=_blank rel="noopener noreferrer" class=""><code>BOTS-ARCHITECTURE.md</code></a>. The first runtime landed on September 16:</p>
<figure class="mj-embed mj-embed--github" data-provider=github><a class="mj-ecard mj-gh mj-gh-commit" href=https://github.com/cosmicstack-labs/mercury-agent/commit/69417f08d0bfcdc3f21a6ee2e3e9057921c5cd3b target=_blank rel="noopener noreferrer"><div class=mj-gh-repo><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span>cosmicstack-labs/mercury-agent<span class="mj-gh-ref is-sha">69417f0</span></div><strong class="mj-gh-title mj-gh-commit-title">feat(bots): P0 — persistent persona-scoped bot runtime</strong><p class=mj-gh-desc>Implements the Mercury Bots P0 milestone per BOTS-ARCHITECTURE.md and ADR-012: multiple persistent persona-scoped agents (own character, model, scoped memory, tool permissions) running as in-process coroutines that never touch Agent.processQueue, fail-closed and near-zero-intera…<div class=mj-gh-meta><img src="https://avatars.githubusercontent.com/u/18418340?v=4" alt="" width=18 height=18 loading=lazy /><span><b>hotheadhacker</b> committed <!-- -->Sep 16, 2026</span><span>17<!-- --> file<!-- -->s<!-- --> changed</span><span class=mj-gh-diff><ins>+<!-- -->2.7K</ins> <del>−<!-- -->1</del></span></div><ul class=mj-gh-files><li><code>src/bots/bot-manager.ts</code><span class=mj-gh-bar aria-label="506 added, 0 removed"><i class=is-add style=width:100%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->506</ins> <del>−<!-- -->0</del></span><li><code>src/bots/bot-manager.test.ts</code><span class=mj-gh-bar aria-label="359 added, 0 removed"><i class=is-add style=width:70.94861660079052%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->359</ins> <del>−<!-- -->0</del></span><li><code>BOTS-ARCHITECTURE.md</code><span class=mj-gh-bar aria-label="334 added, 0 removed"><i class=is-add style=width:66.00790513833992%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->334</ins> <del>−<!-- -->0</del></span><li><code>src/bots/store.ts</code><span class=mj-gh-bar aria-label="315 added, 0 removed"><i class=is-add style=width:62.25296442687747%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->315</ins> <del>−<!-- -->0</del></span><li><code>src/bots/store.test.ts</code><span class=mj-gh-bar aria-label="263 added, 0 removed"><i class=is-add style=width:51.976284584980235%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->263</ins> <del>−<!-- -->0</del></span></ul></a></figure>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=one-process-many-bots>One process, many bots<a href=#one-process-many-bots class=hash-link aria-label="Direct link to One process, many bots" title="Direct link to One process, many bots" translate=no></a></h2>
<p>The whole fleet runs inside the Mercury daemon, the background service that starts when you log in. There is no process per bot and no thread per bot. A bot turn is asynchronous work in the same Node.js process, scheduled through one lane with a concurrency cap. That choice comes from the hardware our users run Mercury on: a Raspberry Pi, a small VPS, or a phone under Termux. A separate Node.js process costs tens of megabytes before it does anything, and a fleet of fifteen bots should not need fifteen of them.</p>
<figure class=mj-diagram><header class=mj-diagram-head><span class=mj-diagram-kind>Flowchart</span><strong class=mj-diagram-title>One process, many bots</strong><span class=mj-diagram-actions><button type=button>Copy source</button><button type=button disabled>Expand</button></span></header><div class=mj-diagram-canvas><div class=mj-diagram-loading aria-hidden=true></div></div><figcaption>Everything here runs inside the Mercury daemon on your machine. The terminal, the web dashboard and Telegram only attach to it.</figcaption></figure>
<p>Work is written to the queue before the trigger is acknowledged, so a crash between "accepted" and "running" loses nothing. Jobs are claimed on a lease. If the daemon dies mid-turn, the lease expires and the job runs again. Failures are typed. A provider timeout is retried with backoff, and a permission denial goes straight to a dead-letter queue you can inspect and replay. The queue uses SQLite when the platform has it and falls back to a JSON file store when it doesn't, so it works on the same devices as the rest of Mercury.</p>
<p>We learned the hard way that "one process" has to mean exactly one. Until a fix earlier this month, the launcher could start a second full copy of the runtime, and both copies ran the fleet. We wrote that story up in <a class="" href=/blog/we-were-running-mercury-twice>We were running Mercury twice and didn't know it</a>.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=bots-never-ask-they-fail-closed>Bots never ask, they fail closed<a href=#bots-never-ask-they-fail-closed class=hash-link aria-label="Direct link to Bots never ask, they fail closed" title="Direct link to Bots never ask, they fail closed" translate=no></a></h2>
<p>An agent that runs at 3 a.m. can't wait for you to tap "Allow". Most products in this space solve that with approval prompts that time out, or with a second model that reviews actions. We chose a stricter rule. A bot has no ask handler at all. Anything granted in its <code>permissions.yaml</code> runs without a prompt, and everything else is denied and written to the journal:</p>
<figure class="mj-embed mj-embed--github mj-gh-code" data-provider=github><header class="mj-gh mj-gh-code-head"><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span><a href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer" class=mj-gh-code-repo>cosmicstack-labs/mercury-agent</a><span class="mj-gh-ref is-sha" title="Pinned to commit 705f6c017874f734743206781e788ecfe898d8c3">@ <!-- -->705f6c0</span><a class=mj-gh-code-link href=https://github.com/cosmicstack-labs/mercury-agent/blob/705f6c017874f734743206781e788ecfe898d8c3/src/bots/registry-factory.ts#L114-L123 target=_blank rel="noopener noreferrer">View on GitHub ↗</a></header><div class="language-typescript codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockTitle_OeMC>src/bots/registry-factory.ts · L114–123</div><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-typescript codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class="codeBlockLines_e6Vv codeBlockLinesWithNumbering_o6Pm" style="counter-reset:line-count 113"><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token comment" style=color:#999988;font-style:italic>// Fail-closed core: no ask handler, no allow-all, non-internal context.</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// Granted scopes apply without prompting; everything else denies.</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain">pm</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>setAutoApproveAll</span><span class="token punctuation" style=color:#393A34>(</span><span class="token boolean" style=color:#36acaa>false</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain">pm</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>setFailClosed</span><span class="token punctuation" style=color:#393A34>(</span><span class="token boolean" style=color:#36acaa>true</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain">pm</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>setCurrentContext</span><span class="token punctuation" style=color:#393A34>(</span><span class="token string" style=color:#e3116c>'bot'</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> deps</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">botId</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain" style=display:inline-block></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// Relative paths and shell commands resolve inside the bot's workspace,</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// never the daemon's cwd (a bot with a wide grant wrote "sandbox/…" files</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// into whatever repo the daemon happened to be started from).</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain">registry</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>setCwd</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">deps</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">sandbox</span><span class="token operator" style=color:#393A34>?.</span><span class="token plain">workspace </span><span class="token operator" style=color:#393A34>??</span><span class="token plain"> process</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>cwd</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span></span><br/></div></code></pre></div></div><figcaption class=mj-gh-code-foot>At <a href=https://github.com/cosmicstack-labs/mercury-agent/commit/705f6c017874f734743206781e788ecfe898d8c3 target=_blank rel="noopener noreferrer"><code>705f6c0</code></a> · <!-- -->feat(bots): budgets by default, routine gate, 3-strike pause, visible deliverables (ADR-020)<!-- --> · Oct 10, 2026</figcaption></figure>
<p>Three details matter here:</p>
<ul>
<li class=""><strong>No allow-all for bots.</strong> A bot can never inherit the "Allow All" mode you might switch on in your own session, and a literal <code>*</code> in a bot's command allowlist is dropped.</li>
<li class=""><strong>The deny list wins.</strong> The global blocklist and the bot's own blocked commands always beat an allowlist entry.</li>
<li class=""><strong>The workspace is the default.</strong> Relative paths and shell commands resolve inside the bot's own workspace, never inside whatever directory the daemon was started from. We added that after a bot with a wide grant wrote its sandbox files into a real repository.</li>
</ul>
<p>You choose a permission tier when you create the bot, and the tier is written out as a complete <code>permissions.yaml</code>. If a bot keeps getting denied, the journal shows you exactly which action was refused, and you widen the grant on purpose.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=budgets-are-on-before-you-set-anything>Budgets are on before you set anything<a href=#budgets-are-on-before-you-set-anything class=hash-link aria-label="Direct link to Budgets are on before you set anything" title="Direct link to Budgets are on before you set anything" translate=no></a></h2>
<p>In early October we audited two real fleets that had been running for eleven days. The numbers were bad enough that we published them in the decision record:</p>
<figure class=mj-stats><dl><div><dt>Bots across two fleets<dd>13</div><div><dt>Runs in eleven days<dd>≈1,150</div><div><dt>Input tokens<dd>617M</div><div><dt>Lead runs that failed<dd>38%</div></dl><figcaption>Source: ADR-020 in DECISIONS.md, an audit of two production fleets before turn governance shipped.</figcaption></figure>
<p>The median bot turn read 750,000 tokens of context, and one turn read 6.6 million. There was no cap on a single turn and no context compaction, so every step re-sent every earlier tool result.</p>
<figure class=mj-chart><header><strong>Tokens in a single bot turn, before governance</strong><span>Measured across the same two fleets. The dashed line is the per-turn cap that ships today.</span></header><div class=mj-bars role=img aria-label="Tokens in a single bot turn, before governance. Median turn: 750K tokens; Largest turn: 6.6M tokens; Cap per turn now: 300K tokens."><div class=mj-ref style="left:calc(var(--mj-label-w) + (100% - var(--mj-label-w) - var(--mj-value-w)) * 0.043706293706293704)"><span>Cap per turn now<!-- --> · <!-- -->300K tokens</span></div><div class="mj-bar-row tone-base" tabindex=0><span class=mj-bar-label>Median turn</span><span class=mj-bar-track><i style=width:10.926573426573427%></i></span><span class=mj-bar-value>750K tokens</span><span class=mj-bar-tip role=tooltip>Median turn<!-- -->: <!-- -->750K tokens<!-- -->. <!-- -->Half of all turns read more context than this.</span></div><div class="mj-bar-row tone-warm" tabindex=0><span class=mj-bar-label>Largest turn</span><span class=mj-bar-track><i style=width:96.15384615384616%></i></span><span class=mj-bar-value>6.6M tokens</span><span class=mj-bar-tip role=tooltip>Largest turn<!-- -->: <!-- -->6.6M tokens<!-- -->. <!-- -->One run, with no per-turn cap and no compaction.</span></div></div><details class=mj-chart-table><summary>View as table</summary><table><thead><tr><th>Measure<th>Value<th>Note<tbody><tr><td>Median turn<td>750,000<!-- --> tokens<td>Half of all turns read more context than this.<tr><td>Largest turn<td>6,600,000<!-- --> tokens<td>One run, with no per-turn cap and no compaction.<tr><td>Cap per turn now<td>300,000<!-- --> tokens<td>Reference line</table></details><figcaption>Source: ADR-020, DECISIONS.md. The cap is DEFAULT_TURN_LIMITS in src/bots/bot-turn.ts.</figcaption></figure>
<p>The fix went in as hard limits, at three levels:</p>
<figure class="mj-embed mj-embed--github mj-gh-code" data-provider=github><header class="mj-gh mj-gh-code-head"><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span><a href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer" class=mj-gh-code-repo>cosmicstack-labs/mercury-agent</a><span class="mj-gh-ref is-sha" title="Pinned to commit fad01f23e550812dc53545a7d85f51d2f5419652">@ <!-- -->fad01f2</span><a class=mj-gh-code-link href=https://github.com/cosmicstack-labs/mercury-agent/blob/fad01f23e550812dc53545a7d85f51d2f5419652/src/bots/bot-turn.ts#L70-L76 target=_blank rel="noopener noreferrer">View on GitHub ↗</a></header><div class="language-typescript codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockTitle_OeMC>src/bots/bot-turn.ts · L70–76</div><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-typescript codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class="codeBlockLines_e6Vv codeBlockLinesWithNumbering_o6Pm" style="counter-reset:line-count 69"><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token keyword" style=color:#00009f>export</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> </span><span class="token constant" style=color:#36acaa>DEFAULT_TURN_LIMITS</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> BotTurnLimits </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> maxTokensPerTurn</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>300_000</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> maxTurnMinutes</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>20</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> keepRecentToolResults</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>8</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> maxToolResultChars</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>24_000</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> sharedWrites</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> softFiles</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>2</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> softBytes</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>32</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>*</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>1024</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> hardFiles</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>6</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> hardBytes</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>128</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>*</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>1024</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>;</span></span><br/></div></code></pre></div></div><figcaption class=mj-gh-code-foot>At <a href=https://github.com/cosmicstack-labs/mercury-agent/commit/fad01f23e550812dc53545a7d85f51d2f5419652 target=_blank rel="noopener noreferrer"><code>fad01f2</code></a> · <!-- -->feat(bots): typed tasks with fan-in, pipelines as data, continuity and memory (ADR-021)<!-- --> · Oct 10, 2026</figcaption></figure>
<ul>
<li class=""><strong>Per turn:</strong> 300,000 tokens or 20 minutes, whichever comes first. Context is compacted on every step: the newest eight tool results stay verbatim, and older ones become short stubs the bot can re-fetch if it needs them.</li>
<li class=""><strong>Per bot, per day:</strong> 5 million tokens by default. You get a warning at 80%. Setting the budget to <code>0</code> is the only way to make a bot unlimited.</li>
<li class=""><strong>Per fleet, per day:</strong> 20 million tokens by default. Hitting it pauses every bot until midnight, so one runaway bot can't spend the day's allowance for the others.</li>
</ul>
<p>All three are pauses, not failures. A bot that hits its daily cap picks up its queued work the next day. <code>/bots cost</code> shows where the tokens went, by fleet and by bot. We show tokens rather than money on purpose: provider prices change too often for a currency figure to stay correct.</p>
<figure class="mj-embed mj-embed--github" data-provider=github><a class="mj-ecard mj-gh mj-gh-commit" href=https://github.com/cosmicstack-labs/mercury-agent/commit/705f6c017874f734743206781e788ecfe898d8c3 target=_blank rel="noopener noreferrer"><div class=mj-gh-repo><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span>cosmicstack-labs/mercury-agent<span class="mj-gh-ref is-sha">705f6c0</span></div><strong class="mj-gh-title mj-gh-commit-title">feat(bots): budgets by default, routine gate, 3-strike pause, visible deliverables (ADR-020)</strong><p class=mj-gh-desc>Manager and surfaces for the governed turn: - Daily caps on by default: per bot (suggestedDailyTokenBudget, 5M; 0 = unlimited via `/bots budget <id> none`) and per fleet (bots.fleetDailyTokenBudget, 20M). 80% warns once a day. - Routine gate: a cron tick is skipped — busy / too_…<div class=mj-gh-meta><span><b>Salman Qureshi</b> committed <!-- -->Oct 10, 2026</span><span>18<!-- --> file<!-- -->s<!-- --> changed</span><span class=mj-gh-diff><ins>+<!-- -->811</ins> <del>−<!-- -->104</del></span></div><ul class=mj-gh-files><li><code>src/bots/bot-manager.ts</code><span class=mj-gh-bar aria-label="244 added, 62 removed"><i class=is-add style=width:79.73856209150327%></i><i class=is-del style=width:20.26143790849673%></i></span><span class=mj-gh-diff><ins>+<!-- -->244</ins> <del>−<!-- -->62</del></span><li><code>src/bots/bot-manager.test.ts</code><span class=mj-gh-bar aria-label="173 added, 3 removed"><i class=is-add style=width:56.5359477124183%></i><i class=is-del style=width:0.9803921568627451%></i></span><span class=mj-gh-diff><ins>+<!-- -->173</ins> <del>−<!-- -->3</del></span><li><code>src/bots/store.ts</code><span class=mj-gh-bar aria-label="132 added, 5 removed"><i class=is-add style=width:43.13725490196079%></i><i class=is-del style=width:1.6339869281045754%></i></span><span class=mj-gh-diff><ins>+<!-- -->132</ins> <del>−<!-- -->5</del></span><li><code>src/core/commands/bots-command.ts</code><span class=mj-gh-bar aria-label="78 added, 10 removed"><i class=is-add style=width:25.49019607843137%></i><i class=is-del style=width:3.2679738562091507%></i></span><span class=mj-gh-diff><ins>+<!-- -->78</ins> <del>−<!-- -->10</del></span><li><code>src/bots/journal.ts</code><span class=mj-gh-bar aria-label="30 added, 3 removed"><i class=is-add style=width:9.803921568627452%></i><i class=is-del style=width:0.9803921568627451%></i></span><span class=mj-gh-diff><ins>+<!-- -->30</ins> <del>−<!-- -->3</del></span></ul></a></figure>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=every-run-is-judged-by-what-it-did>Every run is judged by what it did<a href=#every-run-is-judged-by-what-it-did class=hash-link aria-label="Direct link to Every run is judged by what it did" title="Direct link to Every run is judged by what it did" translate=no></a></h2>
<p>The same audit found a subtler problem. Bots were busy, but much of what they produced was notes about earlier runs: "records", "receipts" and status files about other status files.</p>
<figure class=mj-chart><header><strong>Files in the fleet-shared folder after eleven days</strong><span>637 files in total</span></header><div class=mj-bars role=img aria-label="Files in the fleet-shared folder after eleven days. Notes about earlier runs: 372 files; Everything else: 265 files."><div class="mj-bar-row tone-warm" tabindex=0><span class=mj-bar-label>Notes about earlier runs</span><span class=mj-bar-track><i style=width:96.15384615384616%></i></span><span class=mj-bar-value>372 files</span><span class=mj-bar-tip role=tooltip>Notes about earlier runs<!-- -->: <!-- -->372 files<!-- -->. <!-- -->Records, receipts and status files, not finished work.</span></div><div class="mj-bar-row tone-muted" tabindex=0><span class=mj-bar-label>Everything else</span><span class=mj-bar-track><i style=width:68.49669148056245%></i></span><span class=mj-bar-value>265 files</span><span class=mj-bar-tip role=tooltip>Everything else<!-- -->: <!-- -->265 files<!-- -->. <!-- -->Data and drafts other bots actually consumed.</span></div></div><details class=mj-chart-table><summary>View as table</summary><table><thead><tr><th>Measure<th>Value<th>Note<tbody><tr><td>Notes about earlier runs<td>372<!-- --> files<td>Records, receipts and status files, not finished work.<tr><td>Everything else<td>265<!-- --> files<td>Data and drafts other bots actually consumed.</table></details><figcaption>Source: ADR-020, DECISIONS.md.</figcaption></figure>
<p>A model that is told to report its progress will report progress. So Mercury no longer asks the model whether it did anything. It reads the tool trace of the run and decides:</p>
<figure class="mj-embed mj-embed--github mj-gh-code" data-provider=github><header class="mj-gh mj-gh-code-head"><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span><a href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer" class=mj-gh-code-repo>cosmicstack-labs/mercury-agent</a><span class="mj-gh-ref is-sha" title="Pinned to commit fad01f23e550812dc53545a7d85f51d2f5419652">@ <!-- -->fad01f2</span><a class=mj-gh-code-link href=https://github.com/cosmicstack-labs/mercury-agent/blob/fad01f23e550812dc53545a7d85f51d2f5419652/src/bots/bot-turn.ts#L639-L657 target=_blank rel="noopener noreferrer">View on GitHub ↗</a></header><div class="language-typescript codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockTitle_OeMC>src/bots/bot-turn.ts · L639–657</div><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-typescript codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class="codeBlockLines_e6Vv codeBlockLinesWithNumbering_o6Pm" style="counter-reset:line-count 638"><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token keyword" style=color:#00009f>export</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>function</span><span class="token plain"> </span><span class="token function" style=color:#d73a49>computeOutcome</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">input</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> trace</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> BotToolTraceEntry</span><span class="token punctuation" style=color:#393A34>[</span><span class="token punctuation" style=color:#393A34>]</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> deliveries</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token builtin">string</span><span class="token punctuation" style=color:#393A34>[</span><span class="token punctuation" style=color:#393A34>]</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> expects</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> BotExpectedOutcome</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> text</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token builtin">string</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> sandbox</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> workspace</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token builtin">string</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"> shared</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token builtin">string</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>)</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> BotOutcome </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">deliveries</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">length </span><span class="token operator" style=color:#393A34>></span><span class="token plain"> </span><span class="token number" style=color:#36acaa>0</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'deliverable'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> roots </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>[</span><span class="token plain">input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">sandbox</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">workspace</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">sandbox</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">shared</span><span class="token punctuation" style=color:#393A34>]</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>for</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> t </span><span class="token keyword" style=color:#00009f>of</span><span class="token plain"> input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">trace</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token operator" style=color:#393A34>!</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">ok</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>continue</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token constant" style=color:#36acaa>ACTION_TOOLS</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>has</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">name</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'action'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token constant" style=color:#36acaa>FILE_WRITE_TOOLS</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>has</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">name</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">arg </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>!</span><span class="token function" style=color:#d73a49>insideAny</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">arg</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> roots</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'action'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">name </span><span class="token operator" style=color:#393A34>===</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'run_command'</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">arg </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>!</span><span class="token function" style=color:#d73a49>isReadOnlyCommand</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">arg</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'action'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">trace</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>some</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">t</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>=></span><span class="token plain"> t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">ok </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">name </span><span class="token operator" style=color:#393A34>===</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'bot_send'</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> t</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">task</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'delegated'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">expects </span><span class="token operator" style=color:#393A34>===</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'message'</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> input</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">text</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>trim</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">length </span><span class="token operator" style=color:#393A34>></span><span class="token plain"> </span><span class="token number" style=color:#36acaa>0</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'message'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'none'</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token punctuation" style=color:#393A34>}</span></span><br/></div></code></pre></div></div><figcaption class=mj-gh-code-foot>At <a href=https://github.com/cosmicstack-labs/mercury-agent/commit/fad01f23e550812dc53545a7d85f51d2f5419652 target=_blank rel="noopener noreferrer"><code>fad01f2</code></a> · <!-- -->feat(bots): typed tasks with fan-in, pipelines as data, continuity and memory (ADR-021)<!-- --> · Oct 10, 2026</figcaption></figure>
<p>A run produced a <strong>deliverable</strong> if it handed over a finished file, or an <strong>action</strong> if it changed something outside its own sandbox or ran a command that isn't read-only. It <strong>delegated</strong> if it sent a typed task to another bot, and it produced a <strong>message</strong> if a reply was what the trigger asked for. Anything else is <strong>none</strong>. Writing notes into its own sandbox doesn't count, and the journal flags any reply that claims work the trace doesn't show.</p>
<p>A scheduled run that ends at <code>none</code> gets one nudge: deliver something, do the action, or say plainly that there was nothing to do. If a routine comes back empty three times in a row, it cools down for six hours, then twelve, up to a day, and then resumes by itself. Routine ticks also pass through a gate before they cost anything:</p>
<figure class="mj-embed mj-embed--github mj-gh-code" data-provider=github><header class="mj-gh mj-gh-code-head"><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span><a href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer" class=mj-gh-code-repo>cosmicstack-labs/mercury-agent</a><span class="mj-gh-ref is-sha" title="Pinned to commit 8b2078b8e238a3e15bf2823794c0394526bc1d5d">@ <!-- -->8b2078b</span><a class=mj-gh-code-link href=https://github.com/cosmicstack-labs/mercury-agent/blob/8b2078b8e238a3e15bf2823794c0394526bc1d5d/src/bots/bot-manager.ts#L404-L425 target=_blank rel="noopener noreferrer">View on GitHub ↗</a></header><div class="language-typescript codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockTitle_OeMC>src/bots/bot-manager.ts · L404–425</div><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-typescript codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class="codeBlockLines_e6Vv codeBlockLinesWithNumbering_o6Pm" style="counter-reset:line-count 403"><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token comment" style=color:#999988;font-style:italic>// Routine gate (ADR-020): a cron tick is an opportunity, not an order.</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// It is skipped — never stacked — when the bot is still busy, when the</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// routine ran too recently, or when the routine was paused for</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token comment" style=color:#999988;font-style:italic>// producing nothing. The next tick tries again.</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">job</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">trigger </span><span class="token operator" style=color:#393A34>===</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'cron'</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> key </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> job</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">routineId </span><span class="token operator" style=color:#393A34>??</span><span class="token plain"> </span><span class="token template-string template-punctuation string" style=color:#e3116c>`</span><span class="token template-string string" style=color:#e3116c>bot:</span><span class="token template-string interpolation interpolation-punctuation punctuation" style=color:#393A34>${</span><span class="token template-string interpolation">botId</span><span class="token template-string interpolation interpolation-punctuation punctuation" style=color:#393A34>}</span><span class="token template-string string" style=color:#e3116c>:cron</span><span class="token template-string template-punctuation string" style=color:#e3116c>`</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> routineState </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>this</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">store</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>readRoutineState</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">botId</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> pausedEntry </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> routineState</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">paused</span><span class="token punctuation" style=color:#393A34>[</span><span class="token plain">key</span><span class="token punctuation" style=color:#393A34>]</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">pausedEntry</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> until </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> pausedEntry</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">until </span><span class="token operator" style=color:#393A34>?</span><span class="token plain"> Date</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>parse</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">pausedEntry</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">until</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> Number</span><span class="token punctuation" style=color:#393A34>.</span><span class="token constant" style=color:#36acaa>POSITIVE_INFINITY</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">Date</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>now</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token operator" style=color:#393A34><</span><span class="token plain"> until</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> jobId</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>''</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> accepted</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token boolean" style=color:#36acaa>false</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> reasonCode</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'routine_paused'</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token comment" style=color:#999988;font-style:italic>// Cooldown over: the routine is live again with a clean streak (liveness contract).</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>delete</span><span class="token plain"> routineState</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">paused</span><span class="token punctuation" style=color:#393A34>[</span><span class="token plain">key</span><span class="token punctuation" style=color:#393A34>]</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>delete</span><span class="token plain"> routineState</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">noOutcomeStreak</span><span class="token punctuation" style=color:#393A34>[</span><span class="token plain">key</span><span class="token punctuation" style=color:#393A34>]</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>this</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">store</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>writeRoutineState</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">botId</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> routineState</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> logger</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>info</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> botId</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> routineKey</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> key </span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'Bot routine cooldown over — resuming'</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">queue</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">length </span><span class="token operator" style=color:#393A34>></span><span class="token plain"> </span><span class="token number" style=color:#36acaa>0</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>||</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token keyword" style=color:#00009f>this</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">running</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>get</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">botId</span><span class="token punctuation" style=color:#393A34>)</span><span class="token operator" style=color:#393A34>?.</span><span class="token plain">size </span><span class="token operator" style=color:#393A34>??</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>0</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>></span><span class="token plain"> </span><span class="token number" style=color:#36acaa>0</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> jobId</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>''</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> accepted</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token boolean" style=color:#36acaa>false</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> reasonCode</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'busy'</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> lastEnd </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>this</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">routineLastEnd</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>get</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">key</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>const</span><span class="token plain"> minGapMs </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>this</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>routineConfig</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">manifest</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> key</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">minIntervalMinutes </span><span class="token operator" style=color:#393A34>*</span><span class="token plain"> </span><span class="token number" style=color:#36acaa>60_000</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">lastEnd </span><span class="token operator" style=color:#393A34>!==</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>undefined</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>&&</span><span class="token plain"> Date</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>now</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>-</span><span class="token plain"> lastEnd </span><span class="token operator" style=color:#393A34><</span><span class="token plain"> minGapMs</span><span class="token punctuation" style=color:#393A34>)</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>return</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> jobId</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>''</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> accepted</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token boolean" style=color:#36acaa>false</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> reasonCode</span><span class="token operator" style=color:#393A34>:</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>'too_soon'</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span></span><br/></div><div class="token-line codeLine_lJS_" style=color:#393A34><span class=codeLineNumber_Tfdd></span><span class=codeLineContent_feaV><span class="token plain"></span><span class="token punctuation" style=color:#393A34>}</span></span><br/></div></code></pre></div></div><figcaption class=mj-gh-code-foot>At <a href=https://github.com/cosmicstack-labs/mercury-agent/commit/8b2078b8e238a3e15bf2823794c0394526bc1d5d target=_blank rel="noopener noreferrer"><code>8b2078b</code></a> · <!-- -->fix(providers): bots always get a provider that works; rejected keys are skipped; doctor flags malformed keys (1.3.3)<!-- --> · Oct 12, 2026</figcaption></figure>
<figure class=mj-diagram><header class=mj-diagram-head><span class=mj-diagram-kind>Flowchart</span><strong class=mj-diagram-title>The life of a scheduled routine</strong><span class=mj-diagram-actions><button type=button>Copy source</button><button type=button disabled>Expand</button></span></header><div class=mj-diagram-canvas><div class=mj-diagram-loading aria-hidden=true></div></div><figcaption>A tick is an opportunity, not an order. Skipped ticks cost no tokens, and a cooled-down routine resumes by itself.</figcaption></figure>
<p>The point is that the bot stays alive. "Always-on" doesn't mean calling a model all day. It means idle between runs, never silently dead, and never spending money to tell you it had nothing to do.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=fleets-work-in-typed-tasks-and-leads-wake-once>Fleets work in typed tasks, and leads wake once<a href=#fleets-work-in-typed-tasks-and-leads-wake-once class=hash-link aria-label="Direct link to Fleets work in typed tasks, and leads wake once" title="Direct link to Fleets work in typed tasks, and leads wake once" translate=no></a></h2>
<p>When a lead delegated to five crew members, it used to get five free-text emails and run five full turns to read them. Now delegation is data. A task has a goal, acceptance criteria, an assignee, a status and a typed result. Tasks travel in batches with a wake policy and a deadline, and the lead is woken once, with a digest, when the batch is done:</p>
<figure class=mj-diagram><header class=mj-diagram-head><span class=mj-diagram-kind>Sequence</span><strong class=mj-diagram-title>A lead delegates a batch and wakes up once</strong><span class=mj-diagram-actions><button type=button>Copy source</button><button type=button disabled>Expand</button></span></header><div class=mj-diagram-canvas><div class=mj-diagram-loading aria-hidden=true></div></div><figcaption>The crew works in parallel. The lead spends one turn to dispatch and one to synthesise, however many crew members there are.</figcaption></figure>
<p>A fleet's standard job can be written down as a pipeline in <code>bot.yaml</code>. Stages chain themselves, each one gets the previous stage's result, and the lead isn't woken between stages at all. A five-member crew now costs the lead one turn to dispatch and one to synthesise.</p>
<p>Bots also remember, without writing status files. Every prompt carries the bot's last five journal rows and its own short working note. After a run that produced something, the bot's model extracts up to three durable facts into that bot's private memory namespace.</p>
<figure class="mj-embed mj-embed--github" data-provider=github><a class="mj-ecard mj-gh mj-gh-commit" href=https://github.com/cosmicstack-labs/mercury-agent/commit/fad01f23e550812dc53545a7d85f51d2f5419652 target=_blank rel="noopener noreferrer"><div class=mj-gh-repo><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span>cosmicstack-labs/mercury-agent<span class="mj-gh-ref is-sha">fad01f2</span></div><strong class="mj-gh-title mj-gh-commit-title">feat(bots): typed tasks with fan-in, pipelines as data, continuity and memory (ADR-021)</strong><p class=mj-gh-desc>- Tasks (src/bots/tasks.ts): durable, typed delegated work — requester, assignee, goal, acceptance, stage, status, typed result — grouped in batches with a wake policy (all | each) and a deadline (120 min). Deduplicated by open goal, pruned after 7 days. - Fan-in: fleet_delegate…<div class=mj-gh-meta><span><b>Salman Qureshi</b> committed <!-- -->Oct 10, 2026</span><span>17<!-- --> file<!-- -->s<!-- --> changed</span><span class=mj-gh-diff><ins>+<!-- -->1.1K</ins> <del>−<!-- -->15</del></span></div><ul class=mj-gh-files><li><code>src/bots/fleet-tasks.test.ts</code><span class=mj-gh-bar aria-label="272 added, 0 removed"><i class=is-add style=width:100%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->272</ins> <del>−<!-- -->0</del></span><li><code>src/bots/bot-manager.ts</code><span class=mj-gh-bar aria-label="239 added, 11 removed"><i class=is-add style=width:87.86764705882352%></i><i class=is-del style=width:4.044117647058823%></i></span><span class=mj-gh-diff><ins>+<!-- -->239</ins> <del>−<!-- -->11</del></span><li><code>src/bots/tasks.ts</code><span class=mj-gh-bar aria-label="220 added, 0 removed"><i class=is-add style=width:80.88235294117648%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->220</ins> <del>−<!-- -->0</del></span><li><code>src/bots/memory-extract.ts</code><span class=mj-gh-bar aria-label="88 added, 0 removed"><i class=is-add style=width:32.35294117647059%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->88</ins> <del>−<!-- -->0</del></span><li><code>src/bots/tools/fleet-tasks.ts</code><span class=mj-gh-bar aria-label="83 added, 0 removed"><i class=is-add style=width:30.514705882352942%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->83</ins> <del>−<!-- -->0</del></span></ul></a></figure>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=results-are-files-you-own-and-the-fleet-fits-in-your-pocket>Results are files you own, and the fleet fits in your pocket<a href=#results-are-files-you-own-and-the-fleet-fits-in-your-pocket class=hash-link aria-label="Direct link to Results are files you own, and the fleet fits in your pocket" title="Direct link to Results are files you own, and the fleet fits in your pocket" translate=no></a></h2>
<p>Finished work goes to <code>~/Documents/Mercury/<Bot name>/</code>, with final results at the top and crew work under <code>work/</code>. It's a normal folder in your Documents directory, not a hidden one under <code>~/.mercury</code>, and nothing in it is deleted automatically.</p>
<p>Most people run their fleet from a phone, so Telegram is a full control surface. <code>/bots</code> shows the roster with Stop, Start and Run buttons. A task you start from your phone comes back as an attached file, because a path on a computer you can't see is useless. A button tap is turned into the same slash command you'd have typed, so it goes through exactly the same routing and permission checks.</p>
<figure class="mj-embed mj-embed--github" data-provider=github><a class="mj-ecard mj-gh mj-gh-commit" href=https://github.com/cosmicstack-labs/mercury-agent/commit/9975db46c5a7f4862b56c8a55bb0de2395fc4e0b target=_blank rel="noopener noreferrer"><div class=mj-gh-repo><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span>cosmicstack-labs/mercury-agent<span class="mj-gh-ref is-sha">9975db4</span></div><strong class="mj-gh-title mj-gh-commit-title">feat(bots): control the fleet from Telegram — tappable roster, files not paths, every /bots command listed (ADR-023)</strong><p class=mj-gh-desc>Telegram: `/bots` and `/bot` in the command menu; `sendWithActions` renders inline buttons whose taps are emitted as the slash command behind them (`ba:<token>`, approved users only) — same routing, permissions and reply as typing. `/bots` roster gets Stop/Start, Run, Runs per l…<div class=mj-gh-meta><span><b>Salman Qureshi</b> committed <!-- -->Oct 10, 2026</span><span>14<!-- --> file<!-- -->s<!-- --> changed</span><span class=mj-gh-diff><ins>+<!-- -->447</ins> <del>−<!-- -->49</del></span></div><ul class=mj-gh-files><li><code>src/channels/telegram-actions.test.ts</code><span class=mj-gh-bar aria-label="90 added, 0 removed"><i class=is-add style=width:100%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->90</ins> <del>−<!-- -->0</del></span><li><code>src/channels/telegram.ts</code><span class=mj-gh-bar aria-label="80 added, 1 removed"><i class=is-add style=width:88.88888888888889%></i><i class=is-del style=width:1.1111111111111112%></i></span><span class=mj-gh-diff><ins>+<!-- -->80</ins> <del>−<!-- -->1</del></span><li><code>src/core/commands/bots-command.ts</code><span class=mj-gh-bar aria-label="76 added, 1 removed"><i class=is-add style=width:84.44444444444444%></i><i class=is-del style=width:1.1111111111111112%></i></span><span class=mj-gh-diff><ins>+<!-- -->76</ins> <del>−<!-- -->1</del></span><li><code>website/docs/integrations/mercury-bots.mdx</code><span class=mj-gh-bar aria-label="31 added, 23 removed"><i class=is-add style=width:34.44444444444444%></i><i class=is-del style=width:25.555555555555554%></i></span><span class=mj-gh-diff><ins>+<!-- -->31</ins> <del>−<!-- -->23</del></span><li><code>src/bots/bot-manager.test.ts</code><span class=mj-gh-bar aria-label="52 added, 0 removed"><i class=is-add style=width:57.77777777777777%></i><i class=is-del style=width:0%></i></span><span class=mj-gh-diff><ins>+<!-- -->52</ins> <del>−<!-- -->0</del></span></ul></a></figure>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=how-mercury-bots-compares>How Mercury Bots compares<a href=#how-mercury-bots-compares class=hash-link aria-label="Direct link to How Mercury Bots compares" title="Direct link to How Mercury Bots compares" translate=no></a></h2>
<p>Here is the same set of questions asked of all six products. Where a vendor hasn't published an answer, we say so instead of guessing. Facts come from each project's own docs, repository or announcement, listed under <a href=#sources class="">Sources</a>, and were checked on October 16, 2026.</p>
<figure class="mj-compare hl-2"><div class=mj-compare-scroll tabindex=0 role=region aria-label="Checked October 16, 2026. Closed products change quickly; follow the sources for current terms."><table><thead><tr><th><th>Mercury Bots<th>Grok Bot<th>OpenAI dots<th>Meta Muse<th>OpenClaw<th>Hermes Agent<tbody><tr><td>Where it runs<td>Your machine: macOS, Linux, Windows or Termux, in one background process<td>One xAI cloud computer per user, shared by all your Bots, hosted in the US<td>A cloud computer per dot, run by OpenAI<td>A Meta-hosted Linux VM per user ("Muse Secure VM")<td>Your machine, in one Gateway process<td>Your machine or server, with seven terminal backends<tr><td>Source code<td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>MIT</span><td class="mj-cell is-no"><span class=mj-mark aria-hidden=true>✕</span><span class=mj-cell-text>Closed</span><td class="mj-cell is-no"><span class=mj-mark aria-hidden=true>✕</span><span class=mj-cell-text>Closed</span><td class="mj-cell is-no"><span class=mj-mark aria-hidden=true>✕</span><span class=mj-cell-text>Closed</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>MIT</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>MIT</span><tr><td>Choose your model<td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Per bot, any configured provider, your own keys</span><td class="mj-cell is-no"><span class=mj-mark aria-hidden=true>✕</span><span class=mj-cell-text>"No customer-facing model picker"</span><td class="mj-cell is-unknown"><span class=mj-mark aria-hidden=true>?</span><span class=mj-cell-text>Runs on GPT-6 Astra; no choice documented</span><td class="mj-cell is-unknown"><span class=mj-mark aria-hidden=true>?</span><span class=mj-cell-text>Runs on Muse Spark; no choice documented</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>About 75 providers, your own keys</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>40+ providers, your own keys</span><tr><td>Several named agents<td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Fleets: lead bots with crews, nested</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Named Bots, often a "chief of staff" over specialists</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>One dot today; teams of dots announced</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>One Muse per user, with internal sub-agents</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Isolated agents per channel binding, plus sub-agents</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Profiles, plus up to 10 parallel sub-agents</span><tr><td>Delegation that reports back<td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Typed tasks in batches; lead woken once with a digest</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>Hand-offs in shared threads</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>Can hand work to Codex</span><td class="mj-cell is-unknown"><span class=mj-mark aria-hidden=true>?</span><span class=mj-cell-text>Not exposed to users</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Sub-agents announce results to the parent</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Sub-agent summaries return to the parent</span><tr><td>Runs on a schedule<td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Routines, gated when busy or too recent</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Routines on a schedule or an event</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Scheduled tasks</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Schedules and events</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Heartbeat every 30 min by default, plus automations</span><td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>Cron inside the gateway</span><tr><td>Unattended approval model<td>Fail closed: only what <code>permissions.yaml</code> grants runs, the rest is denied and journaled<td>Allow once, Always allow or Deny; unattended approvals expire after about 10 minutes<td>Custom Rules decide what needs your approval; admin policy overrides<td>A separate component, Sentinel, approves connector actions and network access; confirms before email, messages and purchases<td>Exec modes from deny to full; sandbox off by default<td><code>smart</code> mode: a second model approves low-risk commands; unattended runs deny dangerous ones<tr><td>Built-in spend limits<td class="mj-cell is-yes"><span class=mj-mark aria-hidden=true>✓</span><span class=mj-cell-text>On by default: per turn, per bot per day, per fleet per day</span><td class="mj-cell is-no"><span class=mj-mark aria-hidden=true>✕</span><span class=mj-cell-text>"A separate Grok Bot spend cap is not available today"</span><td class="mj-cell is-unknown"><span class=mj-mark aria-hidden=true>?</span><span class=mj-cell-text>Usage terms not yet published</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>Weekly token allowance set by plan</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>Optional token budget per goal</span><td class="mj-cell is-partial"><span class=mj-mark aria-hidden=true>◐</span><span class=mj-cell-text>Optional time budget; turn limit unlimited by default</span><tr><td>Where results land<td>Files in a folder you own, and as Telegram attachments<td>Thread messages, drafts, files and actions in your apps<td>The dot's conversation and profile, Slack or Teams<td>Chat messages and artifacts, with an activity log<td>Replies in the chat channel, or a webhook<td>The originating chat, files or platform targets<tr><td>Chat channels<td>Terminal, web, Telegram with buttons, Discord, Slack, Signal<td>Desktop and mobile apps; Slack for Team Bots<td>ChatGPT apps; Slack and Teams when an admin enables them<td>Muse app, web and WhatsApp<td>33 listed in the docs<td>20+ listed in the gateway docs<tr><td>Price<td>Free; you pay your model provider<td>Included in SuperGrok and Cursor plans<td>One dot included with Pro or Business Premium<td>Free tier, $20 or $100 a month<td>Free; no paid tier<td>Free; optional Nous Portal subscription<tr><td>GitHub stars<td>3,421<td>Not open source<td>Not open source<td>Not open source<td>392,171<td>254,339</table></div><div class=mj-compare-legend aria-hidden=true><span class=is-yes><b>✓</b> Yes</span><span class=is-partial><b>◐</b> Partly or opt-in</span><span class=is-no><b>✕</b> No</span><span class=is-unknown><b>?</b> Not documented</span></div><figcaption>Checked October 16, 2026. Closed products change quickly; follow the sources for current terms.</figcaption></figure>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id=where-the-others-are-ahead>Where the others are ahead<a href=#where-the-others-are-ahead class=hash-link aria-label="Direct link to Where the others are ahead" title="Direct link to Where the others are ahead" translate=no></a></h3>
<p>Honesty cuts both ways, so here is where each of them beats us today.</p>
<ul>
<li class=""><strong>A computer of their own.</strong> Grok Bot, dots and Muse give your agents a cloud computer with a real browser they can drive, which you can watch and take over. The work continues with your laptop closed. A Mercury fleet runs where you install it. If that machine sleeps, the fleet sleeps, which is why many of our users run it on a home server or a small VPS.</li>
<li class=""><strong>Reach.</strong> OpenClaw lists 33 chat channels and Hermes lists more than 20. Our tappable fleet controls exist on Telegram today. Discord and Slack get the same commands as text.</li>
<li class=""><strong>Scale.</strong> OpenClaw and Hermes have far larger communities, a larger skills ecosystem and many more people finding their edge cases.</li>
<li class=""><strong>Consumer polish.</strong> Muse pays for things with single-use cards and asks before each purchase. dots connects to a much larger catalogue of apps than we do.</li>
</ul>
<p>Every project in this table is candid about the same unsolved problem. Meta writes that "prompt injection remains an open problem in the industry." The system card for GPT-6 Astra, the model behind dots, reports test runs in which the agent overstepped its authorisation. Hermes Agent's own security policy says that "the only security boundary against an adversarial LLM is the operating system." OpenClaw's skills registry had a wave of malicious uploads in February. Our answer isn't that Mercury is immune. It's that a bot can only do what one file says it may, that it spends inside a budget it can't raise, and that every run leaves a record you can read.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=the-commits>The commits<a href=#the-commits class=hash-link aria-label="Direct link to The commits" title="Direct link to The commits" translate=no></a></h2>
<p>Mercury is MIT-licensed, and all of this is in the open. The work above landed in these commits on <code>main</code>:</p>
<table><thead><tr><th>Commit<th>Date<th>What it did<tbody><tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/69417f08d0bfcdc3f21a6ee2e3e9057921c5cd3b target=_blank rel="noopener noreferrer" class=""><code>69417f0</code></a><td>2026-09-16<td>The first persistent, persona-scoped bot runtime<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/82eb5a42b77664106293f6ac71541aea313938c0 target=_blank rel="noopener noreferrer" class=""><code>82eb5a4</code></a><td>2026-09-22<td>Fleets: lead bots and crews<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/9b71f235951edb01126bf064347a3ec72d8f93e2 target=_blank rel="noopener noreferrer" class=""><code>9b71f23</code></a><td>2026-10-10<td>The governed turn: caps, compaction, failure classes, outcome gate<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/705f6c017874f734743206781e788ecfe898d8c3 target=_blank rel="noopener noreferrer" class=""><code>705f6c0</code></a><td>2026-10-10<td>Budgets by default, routine gate, deliverables folder (ADR-020)<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/fad01f23e550812dc53545a7d85f51d2f5419652 target=_blank rel="noopener noreferrer" class=""><code>fad01f2</code></a><td>2026-10-10<td>Typed tasks with fan-in, pipelines, memory (ADR-021)<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/918a852b2a4281b1be785ddcddafbf7471ed1224 target=_blank rel="noopener noreferrer" class=""><code>918a852</code></a><td>2026-10-10<td>Cost view, run viewer, kill switch (ADR-022)<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/acfe89bcf80f9980dbccc372dacc8518a5fca51a target=_blank rel="noopener noreferrer" class=""><code>acfe89b</code></a><td>2026-10-10<td>The liveness contract: idle, never dead<tr><td><a href=https://github.com/cosmicstack-labs/mercury-agent/commit/9975db46c5a7f4862b56c8a55bb0de2395fc4e0b target=_blank rel="noopener noreferrer" class=""><code>9975db4</code></a><td>2026-10-10<td>Fleet control from Telegram (ADR-023)</table>
<p>To try it, install Mercury and run <code>/bots onboard</code>. It walks you through the persona, the model, the permission tier, the schedule and the budget, and names the folder where the bot's work will land. The <a class="" href=/docs/integrations/mercury-bots>Mercury Bots guide</a> covers fleets, pipelines and every <code>/bots</code> command.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class=codeBlockLines_e6Vv><div class=token-line style=color:#393A34><span class="token function" style=color:#d73a49>curl</span><span class="token plain"> </span><span class="token parameter variable" style=color:#36acaa>-fsSL</span><span class="token plain"> https://mercuryagent.sh/install.sh </span><span class="token operator" style=color:#393A34>|</span><span class="token plain"> </span><span class="token function" style=color:#d73a49>sh</span><br/></div></code></pre></div></div>
<figure class="mj-embed mj-embed--github" data-provider=github><a class="mj-ecard mj-gh mj-gh-repo-card" href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer"><div class=mj-gh-body><div class="mj-gh-repo is-big"><span class=mj-gh-mark><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 0C3.58 0 0 3.58 0 8a8 8 0 0 0 5.47 7.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.8.06 1.23.83 1.23.83.72 1.22 1.88.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></span><span class=mj-gh-dim>cosmicstack-labs<!-- -->/</span><b>mercury-agent</b></div><p class=mj-gh-desc>Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.<div class=mj-gh-topics><span>ai-agent</span><span>ai-assistant</span><span>llm</span></div><div class=mj-gh-meta><span><i style=background:#3178c6></i>TypeScript</span><span><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M8 .25a.75.75 0 0 1 .67.42l1.88 3.8 4.2.61a.75.75 0 0 1 .41 1.28l-3.04 2.96.72 4.18a.75.75 0 0 1-1.09.79L8 12.32l-3.75 1.97a.75.75 0 0 1-1.09-.79l.72-4.18L.84 6.36a.75.75 0 0 1 .41-1.28l4.2-.61L7.33.67A.75.75 0 0 1 8 .25Z"/></svg>3.9K</span><span><svg viewBox="0 0 16 16" aria-hidden=true><path fill=currentColor d="M5 5.37v.25A2.25 2.25 0 0 0 7.25 7.9h1.5A2.25 2.25 0 0 0 11 5.62v-.25a2.25 2.25 0 1 1 1.5 0v.25a3.75 3.75 0 0 1-3.75 3.75h-.5v1.26a2.25 2.25 0 1 1-1.5 0V9.37h-.5A3.75 3.75 0 0 1 3.5 5.62v-.25a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.75 12.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"/></svg>397</span><span>MIT</span></div></div><img class=mj-gh-owner src="https://avatars.githubusercontent.com/u/277752932?v=4" alt="" width=72 height=72 loading=lazy /></a></figure>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=sources>Sources<a href=#sources class=hash-link aria-label="Direct link to Sources" title="Direct link to Sources" translate=no></a></h2>
<p>All checked on October 16, 2026.</p>
<ul>
<li class=""><strong>Grok Bot:</strong> <a href=https://x.ai/news/introducing-grok-bot target=_blank rel="noopener noreferrer" class="">Introducing Grok Bot</a> (Aug 11, 2026), <a href=https://x.ai/news/grok-bot-more-plans target=_blank rel="noopener noreferrer" class="">more plans</a>, <a href=https://x.ai/news/team-bots target=_blank rel="noopener noreferrer" class="">Team Bots</a>, <a href=https://docs.x.ai/grok-bot/faq target=_blank rel="noopener noreferrer" class="">FAQ</a>, <a href=https://docs.x.ai/grok-bot/approvals-security-and-privacy target=_blank rel="noopener noreferrer" class="">approvals and security</a>, <a href=https://docs.x.ai/grok-bot/teams-and-enterprises target=_blank rel="noopener noreferrer" class="">teams and enterprises</a>, <a href=https://cursor.com/docs/grok-bot/security target=_blank rel="noopener noreferrer" class="">security</a>.</li>
<li class=""><strong>OpenAI dots:</strong> <a href=https://openai.com/index/introducing-dots/ target=_blank rel="noopener noreferrer" class="">Introducing dots</a> (Sep 29, 2026), <a href=https://help.openai.com/en/articles/20001530-getting-started-with-your-dot target=_blank rel="noopener noreferrer" class="">getting started</a>, <a href=https://help.openai.com/en/articles/20001529-dots-privacy-security-and-safety-faqs target=_blank rel="noopener noreferrer" class="">privacy, security and safety</a>, <a href=https://deploymentsafety.openai.com/gpt-6-astra target=_blank rel="noopener noreferrer" class="">GPT-6 Astra system card</a>.</li>
<li class=""><strong>Meta Muse:</strong> <a href=https://about.fb.com/news/2026/09/introducing-muse-personal-ai-agent/ target=_blank rel="noopener noreferrer" class="">Introducing Muse</a> (Sep 8, 2026), <a href=https://www.meta.com/help/subscriptions/1021145227643680/ target=_blank rel="noopener noreferrer" class="">plans</a>, <a href=https://research.meta.ai/blog/security-and-safety-for-ai-agents-our-approach-with-muse target=_blank rel="noopener noreferrer" class="">security and safety</a>, <a href=https://www.meta.com/help/artificial-intelligence/1047255454427887/ target=_blank rel="noopener noreferrer" class="">AI training controls</a>.</li>
<li class=""><strong>OpenClaw:</strong> <a href=https://github.com/openclaw/openclaw target=_blank rel="noopener noreferrer" class="">repository</a>, <a href=https://docs.openclaw.ai target=_blank rel="noopener noreferrer" class="">docs</a>, <a href=https://www.bitdefender.com/en-us/blog/labs/helpful-skills-or-hidden-payloads-bitdefender-labs-dives-deep-into-the-openclaw-malicious-skill-trap target=_blank rel="noopener noreferrer" class="">Bitdefender on ClawHub skills</a> (Feb 5, 2026).</li>
<li class=""><strong>Hermes Agent:</strong> <a href=https://github.com/NousResearch/hermes-agent target=_blank rel="noopener noreferrer" class="">repository</a>, including its <code>SECURITY.md</code> and <code>website/docs</code>.</li>
<li class=""><strong>Mercury:</strong> <a href=https://github.com/cosmicstack-labs/mercury-agent/blob/main/DECISIONS.md target=_blank rel="noopener noreferrer" class=""><code>DECISIONS.md</code></a> (ADR-020 to ADR-024) and <a href=https://github.com/cosmicstack-labs/mercury-agent/blob/main/BOTS-ARCHITECTURE.md target=_blank rel="noopener noreferrer" class=""><code>BOTS-ARCHITECTURE.md</code></a>.</li>
<li class=""><strong>Star counts:</strong> the GitHub API on October 16, 2026.</li>
</ul></article></div><footer class=mj-post-foot><div class=mj-tools aria-label="Share and export"><button type=button>Copy as Markdown</button><a href=/blog/mercury-bots.md>View .md</a><button type=button>Copy link</button><a href="https://x.com/intent/post?url=https%3A%2F%2Fmercuryagent.sh%2Fblog%2Fmercury-bots&text=Mercury%20Bots%3A%20an%20agent%20fleet%20that%20runs%20on%20your%20machine" target=_blank rel="noopener noreferrer">Share on X</a><a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fmercuryagent.sh%2Fblog%2Fmercury-bots" target=_blank rel="noopener noreferrer">LinkedIn</a></div><div class=mj-post-tags><a href=/blog/tags/product>Product</a><a href=/blog/tags/engineering>Engineering</a><a href=/blog/tags/runtime>Runtime</a></div><nav class=mj-pager aria-label="More posts"><a href=/blog/agent-permissions-least-privilege><small>Newer</small>Agents exceeded their permissions: how to scope them</a><a class=is-next href=/blog/the-wizard-that-quit-at-the-menu><small>Older</small>The setup wizard that quit at the first menu</a></nav><section class=mj-more><h2>More from the blog</h2><ul><li><a href=/blog/what-is-a-personal-ai-assistant>What Is a Personal AI Assistant? 10 Real Tasks in 2026</a><time datetime=2026-11-11T00:00:00.000Z>Nov 11, 2026</time><li><a href=/blog/six-ai-agents-compared-for-real-work>9 Safest, Most Secure, and Permission-Aware AI Agents for Real-World Tasks</a><time datetime=2026-11-05T00:00:00.000Z>Nov 5, 2026</time><li><a href=/blog/mercury-1-5>Mercury 1.5: Mercury Desktop</a><time datetime=2026-11-03T00:00:00.000Z>Nov 3, 2026</time></ul></section></footer></main></div><footer class="theme-layout-footer footer"><div class="container container-fluid"><div class="row footer__links"><div class="theme-layout-footer-column col footer__col"><div class=footer__title>Product</div><ul class="footer__items clean-list"><li class=footer__item><a class=footer__link-item href=/download>Download</a><li class=footer__item><a class=footer__link-item href=/#install>Install on a server</a><li class=footer__item><a class=footer__link-item href=/docs/integrations/coding-workspace>Mercury Code</a><li class=footer__item><a class=footer__link-item href=/docs/integrations/mercury-bots>Mercury Bots</a><li class=footer__item><a class=footer__link-item href=/cloud>Mercury Cloud</a><li class=footer__item><a class=footer__link-item href=/blog>Blog</a><li class=footer__item><a class=footer__link-item href=/docs/releases>Changelog</a></ul></div><div class="theme-layout-footer-column col footer__col"><div class=footer__title>Trust</div><ul class="footer__items clean-list"><li class=footer__item><a class=footer__link-item href=/docs/reference/permissions>Permissions model</a><li class=footer__item><a class=footer__link-item href=/docs/reference/second-brain>Second Brain memory</a><li class=footer__item><a class=footer__link-item href=/docs/reference/completion-architecture>Completion contract</a><li class=footer__item><a class=footer__link-item href=/#compare>Honest comparison</a></ul></div><div class="theme-layout-footer-column col footer__col"><div class=footer__title>Docs</div><ul class="footer__items clean-list"><li class=footer__item><a class=footer__link-item href=/docs>Getting started</a><li class=footer__item><a class=footer__link-item href=/docs/cli-commands/cli-commands>CLI commands</a><li class=footer__item><a class=footer__link-item href=/docs/reference/built-in-tools>Built-in tools</a><li class=footer__item><a class=footer__link-item href=/docs/reference/configuration>Configuration</a></ul></div><div class="theme-layout-footer-column col footer__col"><div class=footer__title>Community</div><ul class="footer__items clean-list"><li class=footer__item><a href=https://github.com/cosmicstack-labs/mercury-agent target=_blank rel="noopener noreferrer" class=footer__link-item>GitHub<svg width=13.5 height=13.5 aria-label="(opens in new tab)" class=iconExternalLink_nPIU><use href=#theme-svg-external-link /></svg></a><li class=footer__item><a href=https://github.com/cosmicstack-labs/mercury-agent/issues target=_blank rel="noopener noreferrer" class=footer__link-item>Issues<svg width=13.5 height=13.5 aria-label="(opens in new tab)" class=iconExternalLink_nPIU><use href=#theme-svg-external-link /></svg></a><li class=footer__item><a href=https://skills.mercuryagent.sh target=_blank rel="noopener noreferrer" class=footer__link-item>Skills registry<svg width=13.5 height=13.5 aria-label="(opens in new tab)" class=iconExternalLink_nPIU><use href=#theme-svg-external-link /></svg></a><li class=footer__item><a href=https://www.npmjs.com/package/@cosmicstack/mercury-agent target=_blank rel="noopener noreferrer" class=footer__link-item>npm<svg width=13.5 height=13.5 aria-label="(opens in new tab)" class=iconExternalLink_nPIU><use href=#theme-svg-external-link /></svg></a></ul></div></div><div class="footer__bottom text--center"><div class=footer__copyright>© 2026 Cosmic Stack · Mercury Agent is MIT-licensed open source.</div></div></div></footer></div></body>