Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

48.3 KB
Raw Blame
<!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>How Optimus works: an agent that uses your computer | 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/how-optimus-works /><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="Inside Optimus, the Mercury plugin that sees your screen, moves the mouse and types: its processes, how it looks and acts, voice control, and the safety rails."/><meta data-rh=true property=og:description content="Inside Optimus, the Mercury plugin that sees your screen, moves the mouse and types: its processes, how it looks and acts, voice control, and the safety rails."/><meta data-rh=true name=keywords content="optimus,computer use agent,ai agent desktop control,mercury agent plugin,ai mouse and keyboard,voice controlled computer,mcp plugin"/><meta data-rh=true property=og:type content=article /><meta data-rh=true property=article:published_time content=2026-10-24T00:00:00.000Z /><meta data-rh=true property=article:author content=https://github.com/hotheadhacker /><meta data-rh=true property=article:tag content=Engineering,Product /><meta data-rh=true property=og:image content=https://mercuryagent.sh/img/og/how-optimus-works.jpg /><meta data-rh=true property=og:image:secure_url content=https://mercuryagent.sh/img/og/how-optimus-works.jpg /><meta data-rh=true property=og:image:alt content="How Optimus works: an agent that uses your computer. Engineering · 11 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/how-optimus-works.jpg /><meta data-rh=true name=twitter:image:alt content="How Optimus works: an agent that uses your computer. Engineering · 11 min read. Mercury Blog"/><meta data-rh=true property=og:title content="How Optimus works: an agent that uses your computer"/><meta data-rh=true name=twitter:title content="How Optimus works: an agent that uses your computer"/><meta data-rh=true property=article:section content=Engineering /><meta data-rh=true name=twitter:label1 content=Topic /><meta data-rh=true name=twitter:data1 content=Engineering /><meta data-rh=true name=twitter:label2 content="Reading time"/><meta data-rh=true name=twitter:data2 content="11 min read"/><link data-rh=true rel=icon href=/img/logo-light.png /><link data-rh=true rel=canonical href=https://mercuryagent.sh/blog/how-optimus-works /><link data-rh=true rel=alternate href=https://mercuryagent.sh/blog/how-optimus-works hreflang=en /><link data-rh=true rel=alternate href=https://mercuryagent.sh/blog/how-optimus-works hreflang=x-default /><link data-rh=true rel=alternate type=text/markdown href=/blog/how-optimus-works.md title="Markdown version"/><script data-rh=true type=application/ld+json>{"@context":"https://schema.org","@id":"https://mercuryagent.sh/blog/how-optimus-works","@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-24T00:00:00.000Z","description":"Inside Optimus, the Mercury plugin that sees your screen, moves the mouse and types: its processes, how it looks and acts, voice control, and the safety rails.","headline":"How Optimus works: an agent that uses your computer","image":{"@id":"https://mercuryagent.sh/assets/images/cover-7a0a0443c8a3402179638e608b24bb11.jpg","@type":"ImageObject","caption":"title image for the blog post: How Optimus works: an agent that uses your computer","contentUrl":"https://mercuryagent.sh/assets/images/cover-7a0a0443c8a3402179638e608b24bb11.jpg","url":"https://mercuryagent.sh/assets/images/cover-7a0a0443c8a3402179638e608b24bb11.jpg"},"isPartOf":{"@id":"https://mercuryagent.sh/blog","@type":"Blog","name":"Mercury Blog"},"keywords":["optimus","computer use agent","ai agent desktop control","mercury agent plugin","ai mouse and keyboard","voice controlled computer","mcp plugin"],"mainEntityOfPage":"https://mercuryagent.sh/blog/how-optimus-works","name":"How Optimus works: an agent that uses your computer","url":"https://mercuryagent.sh/blog/how-optimus-works"}</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/engineering","name":"Engineering","position":3},{"@type":"ListItem","item":"https://mercuryagent.sh/blog/how-optimus-works","name":"How Optimus works: an agent that uses your computer","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-7a0a0443c8a3402179638e608b24bb11.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="11 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>11 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/engineering>Engineering</a><h1 class=mj-post-title>How Optimus works: an agent that uses your computer</h1><p class=mj-post-dek>Inside Optimus, the Mercury plugin that sees your screen, moves the mouse and types: its processes, how it looks and acts, voice control, and the safety rails.<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-24T00:00:00.000Z>Oct 24, 2026</time><span aria-hidden=true>·</span><span>11<!-- --> min read</span></div></div></header><div class=mj-post-banner><img src=/assets/images/cover-7a0a0443c8a3402179638e608b24bb11.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>11 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=#mercury-is-the-brain-optimus-is-the-hands>Mercury is the brain, Optimus is the hands</a><li><a href=#seven-tools>Seven tools</a><li><a href=#how-it-sees>How it sees</a><li><a href=#how-it-acts>How it acts</a><li><a href=#sent-is-not-done>Sent is not done</a><li><a href=#talking-to-it>Talking to it</a><li><a href=#why-macos-gets-its-own-app>Why macOS gets its own app</a><li><a href=#the-safety-rails>The safety rails</a><li><a href=#platform-limits>Platform limits</a></ul></div></aside><article class="mj-prose markdown"><p>Optimus is the part of Mercury that uses your computer. It looks at the screen, moves the pointer, clicks, types and opens apps, the way you would. You can ask for something in chat, or hold a key and say it out loud. It runs on macOS, Windows and Linux, and it ships as a plugin, so nobody gets it unless they install it.</p>
<p>This post is about how it works underneath: the processes involved, how a screenshot becomes a click, why it says "sent" instead of "done", how voice reaches Mercury, and what stops it when you want it stopped. The current version is Optimus 0.4.8.</p>
<!-- -->
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=mercury-is-the-brain-optimus-is-the-hands>Mercury is the brain, Optimus is the hands<a href=#mercury-is-the-brain-optimus-is-the-hands class=hash-link aria-label="Direct link to Mercury is the brain, Optimus is the hands" title="Direct link to Mercury is the brain, Optimus is the hands" translate=no>​</a></h2>
<p>Mercury does the thinking. It holds the conversation, picks the model, decides the next step and asks you for permission. Optimus has no model of its own for deciding what to do. It is a tool provider: it gives Mercury eyes on the screen and hands on the mouse and keyboard, and it reports back what happened.</p>
<p>That split comes from the plugin rules we set in <a href=https://github.com/cosmicstack-labs/mercury-agent/blob/main/DECISIONS.md target=_blank rel="noopener noreferrer" class="">ADR-025</a> for Mercury 1.4. Features that only some people want ship as plugins, and a broken plugin must never take Mercury down. Optimus is one Rust binary, <code>mercury-optimus</code>. Mercury starts it as a child process and talks to it over MCP: JSON-RPC 2.0, one message per line, on stdin and stdout. Logs go to stderr so they can never corrupt the protocol.</p>
<p>Mercury supervises it like any other out-of-process plugin:</p>
<ul>
<li class="">Every request has a timeout, and a hung plugin is killed and restarted.</li>
<li class="">Crashes restart it with backoff from 1 second up to 60.</li>
<li class="">More than five crashes in ten minutes turns the plugin off, with a message saying why.</li>
<li class="">The child gets a minimal environment plus only the secrets its manifest declared.</li>
</ul>
<p>Install it from any chat:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-text codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class=codeBlockLines_e6Vv><div class=token-line style=color:#393A34><span class="token plain">/plugins install optimus</span><br/></div></code></pre></div></div>
<p>The catalog entry pins each platform build to a SHA-256 checksum. If the download doesn't match, Mercury says "Checksum mismatch" and installs nothing. Builds exist for macOS on Apple silicon and Intel, Windows x64, and Linux x64 and arm64.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=seven-tools>Seven tools<a href=#seven-tools class=hash-link aria-label="Direct link to Seven tools" title="Direct link to Seven tools" translate=no>​</a></h2>
<p>Mercury shows the model seven tools, namespaced as <code>optimus__look</code>, <code>optimus__act</code> and so on:</p>
<table><thead><tr><th>Tool<th>What it does<tbody><tr><td><code>look</code><td>Takes a screenshot of one display, or zooms into part of the last one<tr><td><code>act</code><td>Runs up to 60 mouse and keyboard actions in a row, then looks again<tr><td><code>act_consequential</code><td>The same as <code>act</code>, for steps that commit something: send, buy, delete, submit<tr><td><code>open</code><td>Opens an app, a URL or a file<tr><td><code>windows</code><td>Lists up to 30 visible windows, front first<tr><td><code>permissions</code><td>Checks or requests the OS permissions Optimus needs<tr><td><code>listen</code><td>Starts a voice session</table>
<p>An action is one of <code>click</code>, <code>double_click</code>, <code>triple_click</code>, <code>right_click</code>, <code>middle_click</code>, <code>move</code>, <code>drag</code>, <code>draw</code>, <code>mouse_down</code>, <code>mouse_up</code>, <code>type</code>, <code>paste</code>, <code>key</code>, <code>scroll</code> or <code>wait</code>.</p>
<p>There is no accessibility-tree tool and no OCR. Optimus works from pixels, like a person looking at the screen. That keeps it the same on every OS and in every app, including the ones with poor accessibility support.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=how-it-sees>How it sees<a href=#how-it-sees class=hash-link aria-label="Direct link to How it sees" title="Direct link to How it sees" translate=no>​</a></h2>
<p><code>look</code> captures the display and fits the image into 1280×800, which is the size computer-use models are trained on. It is resized and sent as a JPEG at quality 80. A 2880×1800 Retina screen becomes 1280×800, and a 4K screen becomes 1280×720.</p>
<p>The model never deals with Retina scaling or monitor layout. It clicks in the pixels of the screenshot it was given, and Optimus maps those back to real screen coordinates:</p>
<div class="language-rust codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockTitle_OeMC>plugins/optimus/companion/src/ops.rs</div><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-rust codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class=codeBlockLines_e6Vv><div class=token-line style=color:#393A34><span class="token keyword" style=color:#00009f>let</span><span class="token plain"> sx </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>self</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">x </span><span class="token keyword" style=color:#00009f>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>f64</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>+</span><span class="token plain"> px </span><span class="token operator" style=color:#393A34>*</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>self</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">w </span><span class="token keyword" style=color:#00009f>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>f64</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>/</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>self</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">img_w </span><span class="token keyword" style=color:#00009f>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>f64</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain"></span><span class="token keyword" style=color:#00009f>let</span><span class="token plain"> sy </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>self</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">y </span><span class="token keyword" style=color:#00009f>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>f64</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>+</span><span class="token plain"> py </span><span class="token operator" style=color:#393A34>*</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>self</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">h </span><span class="token keyword" style=color:#00009f>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>f64</span><span class="token plain"> </span><span class="token operator" style=color:#393A34>/</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>self</span><span class="token punctuation" style=color:#393A34>.</span><span class="token plain">img_h </span><span class="token keyword" style=color:#00009f>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>f64</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain"></span><span class="token class-name">Ok</span><span class="token punctuation" style=color:#393A34>(</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">sx</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>round</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>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>i32</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> sy</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>round</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>as</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>i32</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>)</span><br/></div></code></pre></div></div>
<p><code>self.x</code> and <code>self.y</code> are the monitor's origin, so a second display to the left, at x = -1920, works without the model knowing it exists. A coordinate outside the screenshot is an error rather than a guess. On Windows the process declares itself per-monitor DPI aware, so it sees real pixels everywhere.</p>
<p>By default <code>look</code> captures the display under the pointer. When text is too small to read, the model can ask for a zoom: Optimus crops the full-resolution capture and fits that region into the same box, but coordinates still refer to the full screenshot. Each look also reports the display number, the mouse position and the active window and its title.</p>
<p>On the Mercury side, images go only into what the model receives for that step. Logs, chat history and the learning engine never carry the base64. If the model can't take images, Mercury drops the picture and tells the model so, instead of failing.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=how-it-acts>How it acts<a href=#how-it-acts class=hash-link aria-label="Direct link to How it acts" title="Direct link to How it acts" translate=no>​</a></h2>
<p>Most input goes through the <code>enigo</code> crate. Optimus adds the parts that make it behave like a person and land reliably.</p>
<p><strong>The pointer glides.</strong> It follows a curve with a small random bow of 4 to 12 percent of the distance, eased in and out, and pauses briefly after arriving. In the default Natural pace a move takes 200 to 750 ms depending on distance. Fast pace cuts that to 70 to 220 ms.</p>
<p><strong>Typing is key by key.</strong> Natural pace waits 28 to 85 ms per key, a little longer after spaces and punctuation, and occasionally pauses as if thinking. One <code>type</code> action holds up to 3,000 characters. <code>paste</code> is there for long text: it saves your clipboard, pastes, and puts your clipboard back.</p>
<p><strong>Scrolling uses each OS's own API.</strong></p>
<ul>
<li class="">macOS: pixel-precise <code>CGEvent</code> scroll events, spread over eased steps.</li>
<li class="">Windows: <code>SendInput</code> with wheel events in small increments.</li>
<li class="">Linux: whole notches, which is what X11 offers.</li>
</ul>
<p><strong><code>open</code> forgives app names.</strong> On macOS, "Chrome" finds "Google Chrome". If nothing matches, the reply lists the installed apps so the model can try again. Windows uses <code>start</code>; Linux uses <code>xdg-open</code> for files and URLs and <code>gtk-launch</code> for apps.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=sent-is-not-done>Sent is not done<a href=#sent-is-not-done class=hash-link aria-label="Direct link to Sent is not done" title="Direct link to Sent is not done" translate=no>​</a></h2>
<p>An early build taught us something uncomfortable. Its logs showed 29 <code>act</code> calls rejected because the model sent its steps in a shape Optimus couldn't read. Nothing happened on screen, and Mercury reported success anyway. A model that is told "your call went through" tends to believe the job is done.</p>
<p>So every <code>act</code> reply now says exactly what it can vouch for:</p>
<div class="language-rust codeBlockContainer_Ckt0 theme-code-block" style=--prism-color:#393A34;--prism-background-color:#f6f8fa><div class=codeBlockTitle_OeMC>plugins/optimus/companion/src/ops.rs</div><div class=codeBlockContent_QJqH><pre tabindex=0 class="prism-code language-rust codeBlock_bY9V thin-scrollbar" style=color:#393A34;background-color:#f6f8fa><code class=codeBlockLines_e6Vv><div class=token-line style=color:#393A34><span class="token comment" style=color:#999988;font-style:italic>// "Sent", not "done": an input reaching the screen doesn't mean it had the intended effect.</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain"></span><span class="token keyword" style=color:#00009f>let</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>mut</span><span class="token plain"> text </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> done</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>is_empty</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 punctuation" style=color:#393A34>{</span><span class="token plain"> </span><span class="token string" style=color:#e3116c>"Nothing was sent."</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>to_string</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 punctuation" style=color:#393A34>}</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>else</span><span class="token plain"> </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"> </span><span class="token macro property" style=color:#36acaa>format!</span><span class="token punctuation" style=color:#393A34>(</span><span class="token string" style=color:#e3116c>"Sent: {}."</span><span class="token punctuation" style=color:#393A34>,</span><span class="token plain"> done</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>join</span><span class="token punctuation" style=color:#393A34>(</span><span class="token string" style=color:#e3116c>"; "</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 punctuation" style=color:#393A34>}</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain"></span><span class="token keyword" style=color:#00009f>if</span><span class="token plain"> </span><span class="token keyword" style=color:#00009f>let</span><span class="token plain"> </span><span class="token class-name">Some</span><span class="token punctuation" style=color:#393A34>(</span><span class="token plain">s</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 operator" style=color:#393A34>&</span><span class="token plain">stopped </span><span class="token punctuation" style=color:#393A34>{</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain">    text </span><span class="token operator" style=color:#393A34>=</span><span class="token plain"> </span><span class="token macro property" style=color:#36acaa>format!</span><span class="token punctuation" style=color:#393A34>(</span><span class="token string" style=color:#e3116c>"FAILED: {s} {text}"</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain"></span><span class="token punctuation" style=color:#393A34>}</span><span class="token plain"></span><br/></div><div class=token-line style=color:#393A34><span class="token plain">text</span><span class="token punctuation" style=color:#393A34>.</span><span class="token function" style=color:#d73a49>push_str</span><span class="token punctuation" style=color:#393A34>(</span><span class="token string" style=color:#e3116c>" This only means the input was sent: check the screenshot below to see whether it actually worked before saying so."</span><span class="token punctuation" style=color:#393A34>)</span><span class="token punctuation" style=color:#393A34>;</span><br/></div></code></pre></div></div>
<p>After the actions run, Optimus waits half a second for the screen to settle, takes a fresh screenshot and attaches it. Mercury's desktop guidance tells the model to look after each step, check it worked, and never claim it is finished without a fresh look. Actions in a batch run in order and stop at the first failure.</p>
<p>The action parser is deliberately lenient. Models send actions as JSON strings, double-encoded JSON, single-quoted pseudo-JSON, inside code fences, or as numbered objects. Optimus accepts all of them, because rejecting a well-meant call is how the 29 failures happened.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=talking-to-it>Talking to it<a href=#talking-to-it class=hash-link aria-label="Direct link to Talking to it" title="Direct link to Talking to it" translate=no>​</a></h2>
<p>Optimus can also be driven by voice. Press the talk key, <code>ctrl+alt+m</code> by default, and speak. A plain letter can't be the talk key, because it would fire while you type.</p>
<p>The key is caught differently on each OS:</p>
<ul>
<li class="">macOS: an event tap that swallows the key, so it never reaches the app you're in.</li>
<li class="">Windows: <code>RegisterHotKey</code>.</li>
<li class="">Linux: an X11 key grab, registered with and without CapsLock and NumLock.</li>
</ul>
<p>There are two ways to run a voice session:</p>
<ul>
<li class=""><strong>Speech to speech.</strong> A realtime voice model listens and talks: OpenAI Realtime by default, or Azure, Grok, ElevenLabs, Qwen-Omni or Gemini Live.</li>
<li class=""><strong>Your own Mercury model.</strong> Speech-to-text with Deepgram, AssemblyAI, ElevenLabs or Sarvam, then your Mercury model, then text-to-speech with Cartesia, ElevenLabs, MiniMax, Sarvam or Deepgram.</li>
</ul>
<p>Either way, the voice model doesn't control the computer itself. It has three tools: <code>ask_mercury</code>, <code>answer_approval</code> and <code>end_conversation</code>. When you ask for something, it hands the request to Mercury, which runs a normal turn with the same tools and rules as chat. If that turn takes longer than 90 seconds, Mercury says it will send the answer to the chat instead of keeping you waiting on the line.</p>
<p>While Mercury works, Optimus speaks a short line for each step ("Opening Safari", "Typing") and plays a soft tick, quiet enough not to trigger its own microphone. With speakers, the mic is silenced while Mercury talks so it doesn't hear itself. With headphones you can turn on barge-in and interrupt by speaking. A session ends after 60 seconds of silence, or after 30 minutes.</p>
<p>The status row at the bottom of Mercury's terminal shows what Optimus is doing: "🎙 Optimus listening", "🖱 Optimus working" or "🔇 Optimus muted". When the row is short on space, that segment is the last one dropped.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=why-macos-gets-its-own-app>Why macOS gets its own app<a href=#why-macos-gets-its-own-app class=hash-link aria-label="Direct link to Why macOS gets its own app" title="Direct link to Why macOS gets its own app" translate=no>​</a></h2>
<p>macOS charges Accessibility and Screen Recording permissions to the app that launched a process. If Mercury started Optimus from your terminal, the grant would go to Terminal and cover every script you ever run there. We didn't want that.</p>
<p>So on macOS the plugin builds <code>Optimus.app</code> from its own binary. It has no Dock icon, and it signs the app with a certificate created on your Mac, with no Apple account involved. It launches through LaunchServices, so the permissions belong to Optimus alone. The plugin and the app talk over a Unix socket, readable only by you.</p>
<p>Two details make this survive real use:</p>
<ul>
<li class=""><strong>Updates keep your permissions.</strong> macOS identifies a signed app by "this bundle id, signed by this certificate", not by the binary's hash. The certificate stays the same across updates, so you grant permissions once.</li>
<li class=""><strong>Your keychain is never touched.</strong> Signing uses a throwaway keychain that exists only for the <code>codesign</code> call. The app is rebuilt only when the version or binary changes, or when <code>codesign --verify</code> fails.</li>
</ul>
<p>LaunchServices starts the app with launchd's environment, not Mercury's. So the first message on the socket hands over the variables the app needs, such as API keys for voice. If the app quits, for example after you change a permission, the plugin relaunches it and retries once.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=the-safety-rails>The safety rails<a href=#the-safety-rails class=hash-link aria-label="Direct link to The safety rails" title="Direct link to The safety rails" translate=no>​</a></h2>
<p>Optimus is off until you turn it on. Until then, every tool except <code>permissions</code> answers "Optimus is off". Install shows a warning before you confirm: "Controls this computer: it can see your screen, move the mouse and type, in any app."</p>
<p><strong>Committing steps ask first.</strong> <code>act_consequential</code> is the one tool marked as not read-only, so in Ask Me mode Mercury asks before each send, purchase, delete or submit. In Allow All mode it doesn't ask. That is the point of Allow All, so choose it knowingly.</p>
<p><strong>Voice approvals need your voice.</strong> When Mercury asks for approval during a voice session, a "yes" counts only if your own transcribed words contain one after the question. If the voice model claims you agreed and the transcript shows nothing, the answer is "Not approved".</p>
<p><strong>You can always stop it.</strong></p>
<ul>
<li class=""><strong>Say "stop", or press the talk key while it works.</strong> Every screen action halts at its next step, new ones are refused for 8 seconds, and Mercury cancels the task. The stop words include "cancel", "ruko" and "bas".</li>
<li class=""><strong>Grab the mouse.</strong> If you move the pointer more than 12 pixels from where Optimus left it, it stops and hands control back. It checks between actions, during glides, and every 12 typed characters.</li>
</ul>
<p><strong>It shows when it's driving.</strong> A glowing ring follows the pointer with the label "Mercury · Optimus is driving". On macOS and Windows it is excluded from screen capture, so the model never sees it. On X11 it hides during capture.</p>
<p><strong>Some things are instructions, not walls.</strong> The tool descriptions tell the model never to type passwords, card numbers or 2FA codes, and to decline games with anti-cheat. Those are rules Mercury follows, not technical blocks, and the docs say so.</p>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id=platform-limits>Platform limits<a href=#platform-limits class=hash-link aria-label="Direct link to Platform limits" title="Direct link to Platform limits" translate=no>​</a></h2>
<table><thead><tr><th>Platform<th>What works<th>What doesn't<tbody><tr><td>macOS 12+<td>Everything, after granting Accessibility and Screen Recording<td>macOS asks again for Screen Recording about once a month<tr><td>Windows<td>Everything, nothing to grant<td>Windows running as administrator, such as Task Manager or installers<tr><td>Linux X11<td>Everything<td>Paste needs <code>xclip</code><tr><td>Linux Wayland<td>Screenshots, through the desktop's screen-sharing prompt<td>Input and the talk key reach only XWayland apps; no overlay</table>
<p>The 0.4.8 release fixed a Linux crash at start, "error while loading shared libraries: libwayland-client.so.0", on machines without Wayland installed. Optimus now loads that library only when needed. A small launcher adds bundled copies of any system library the machine lacks, and system libraries win whenever they exist. It shipped as a plugin-only update, so nobody had to upgrade Mercury.</p>
<p>The <a class="" href=/docs/integrations/optimus>Optimus docs</a> cover setup, every setting and the voice providers. The source is in the Mercury repository under <code>plugins/optimus</code>:</p>
<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></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/how-optimus-works.md>View .md</a><button type=button>Copy link</button><a href="https://x.com/intent/post?url=https%3A%2F%2Fmercuryagent.sh%2Fblog%2Fhow-optimus-works&text=How%20Optimus%20works%3A%20an%20agent%20that%20uses%20your%20computer" 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%2Fhow-optimus-works" target=_blank rel="noopener noreferrer">LinkedIn</a></div><div class=mj-post-tags><a href=/blog/tags/engineering>Engineering</a><a href=/blog/tags/product>Product</a></div><nav class=mj-pager aria-label="More posts"><a href=/blog/running-an-agent-overnight><small>Newer</small>Running an agent overnight: what breaks first</a><a class=is-next href=/blog/mercury-1-4><small>Older</small>Mercury 1.4: plugins, WhatsApp calls, and an agent at your desk</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>