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.

15.8 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["1344"],{10891(e,t,n){n.r(t),n.d(t,{metadata:()=>r,default:()=>u,frontMatter:()=>d,contentTitle:()=>i,toc:()=>c,assets:()=>l});var r=JSON.parse('{"id":"releases/1.3.1","title":"v1.3.1 \u2014 Steady Mercury","description":"One process runs the fleet and your channels; the terminal attaches to it instantly. Bots do real work, deliver files you can find, stay online without burning tokens, and run from your phone. Node 22, patched Ink 8, and the whole unpublished 1.3.1 line.","source":"@site/docs/releases/1.3.1.mdx","sourceDirName":"releases","slug":"/releases/1.3.1","permalink":"/docs/releases/1.3.1","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/releases/1.3.1.mdx","tags":[],"version":"current","frontMatter":{"title":"v1.3.1 \u2014 Steady Mercury","sidebar_label":"v1.3.1","description":"One process runs the fleet and your channels; the terminal attaches to it instantly. Bots do real work, deliver files you can find, stay online without burning tokens, and run from your phone. Node 22, patched Ink 8, and the whole unpublished 1.3.1 line.","keywords":["mercury","mercury-agent","release","1.3.1","bots","fleet","telegram","node 22","ink","attach","daemon"]},"sidebar":"docsSidebar","previous":{"title":"v1.4.0","permalink":"/docs/releases/1.4.0"},"next":{"title":"v1.3.0","permalink":"/docs/releases/1.3.0"}}'),s=n(74848),o=n(28453),a=n(53572);let d={title:"v1.3.1 \u2014 Steady Mercury",sidebar_label:"v1.3.1",description:"One process runs the fleet and your channels; the terminal attaches to it instantly. Bots do real work, deliver files you can find, stay online without burning tokens, and run from your phone. Node 22, patched Ink 8, and the whole unpublished 1.3.1 line.",keywords:["mercury","mercury-agent","release","1.3.1","bots","fleet","telegram","node 22","ink","attach","daemon"]},i="v1.3.1 \u2014 Steady Mercury",l={},c=[{value:"At a glance",id:"at-a-glance",level:2},{value:"One runtime \u2014 the terminal attaches",id:"one-runtime--the-terminal-attaches",level:2},{value:"Bots that do work",id:"bots-that-do-work",level:2},{value:"Fleets that coordinate",id:"fleets-that-coordinate",level:2},{value:"Operate it \u2014 from the terminal or a phone",id:"operate-it--from-the-terminal-or-a-phone",level:2},{value:"Honest Mercury \u2014 the earlier 1.3.1 work, folded in",id:"honest-mercury--the-earlier-131-work-folded-in",level:2},{value:"Node 22 and a patched Ink 8",id:"node-22-and-a-patched-ink-8",level:2},{value:"Known limitations",id:"known-limitations",level:2},{value:"Upgrade",id:"upgrade",level:2}];function h(e){let t={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.A,{children:[(0,s.jsx)("meta",{property:"og:title",content:"Mercury Agent v1.3.1 \u2014 Steady Mercury"}),(0,s.jsx)("meta",{property:"og:description",content:"One runtime \xb7 Instant attach \xb7 Bots that do work and stay online \xb7 Fleets with typed tasks \xb7 Telegram control \xb7 Node 22 + patched Ink 8"}),(0,s.jsx)("meta",{property:"og:type",content:"article"}),(0,s.jsx)("meta",{property:"og:url",content:"https://mercuryagent.sh/docs/releases/1.3.1"}),(0,s.jsx)("meta",{property:"og:site_name",content:"Mercury Agent \u2014 Soul-driven"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:site",content:"@mercuryagent"}),(0,s.jsx)("meta",{name:"twitter:title",content:"Mercury Agent v1.3.1 \u2014 Steady Mercury"}),(0,s.jsx)("meta",{name:"twitter:description",content:"One runtime \xb7 Instant attach \xb7 Bots that do work and stay online \xb7 Fleets with typed tasks \xb7 Telegram control \xb7 Node 22 + patched Ink 8"}),(0,s.jsx)("link",{rel:"canonical",href:"https://mercuryagent.sh/docs/releases/1.3.1"})]}),"\n",(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"v131--steady-mercury",children:"v1.3.1 \u2014 Steady Mercury"})}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"The release where Mercury stays out of your way."})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"1.3.1"})," is about the shape of the thing: ",(0,s.jsx)(t.strong,{children:"one process"})," runs your bots and your channels, and the terminal is a window onto it \u2014 open in under a second, closed without consequence. Bots now ",(0,s.jsx)(t.strong,{children:"do work"})," instead of writing notes about work, ",(0,s.jsx)(t.strong,{children:"deliver files"})," where you can find them, ",(0,s.jsx)(t.strong,{children:"stay online"})," without burning tokens, and can be run ",(0,s.jsx)(t.strong,{children:"from your phone"}),'. Underneath, Node 22 and a patched Ink 8 renderer; alongside, everything from the earlier, unpublished "Honest Mercury" work \u2014 chat that answers, "done" that means verified, and six security fixes.']}),"\n",(0,s.jsx)(t.h2,{id:"at-a-glance",children:"At a glance"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{}),(0,s.jsx)(t.th,{})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{children:[(0,s.jsx)(t.strong,{children:"One runtime"})," (ADR-024)"]}),(0,s.jsxs)(t.td,{children:["The daemon owns channels, bots and the web port; ",(0,s.jsx)(t.code,{children:"mercury"})," attaches to it. No second copy of the fleet in your terminal."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Instant attach"})}),(0,s.jsxs)(t.td,{children:["Listener binds first at boot; ",(0,s.jsx)(t.code,{children:"/api/health"})," answers with pid/version; a foreign process on the port is named, not restarted around."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{children:[(0,s.jsx)(t.strong,{children:"Bots that do work"})," (ADR-020)"]}),(0,s.jsxs)(t.td,{children:["Per-turn caps, outcome judged from the tool trace, daily budgets on by default, deliverables in ",(0,s.jsx)(t.code,{children:"~/Documents/Mercury/<Bot>/"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{children:[(0,s.jsx)(t.strong,{children:"Fleets that coordinate"})," (ADR-021)"]}),(0,s.jsx)(t.td,{children:"Typed tasks with one digest wake, pipelines as data, bots that remember."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{children:[(0,s.jsx)(t.strong,{children:"Operate the fleet"})," (ADR-022)"]}),(0,s.jsxs)(t.td,{children:[(0,s.jsx)(t.code,{children:"/bots cost"}),", ",(0,s.jsx)(t.code,{children:"/bots show"}),", ",(0,s.jsx)(t.code,{children:"/bots stop all"}),", DLQ clear, budget presets."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{children:[(0,s.jsx)(t.strong,{children:"Bots in your pocket"})," (ADR-023)"]}),(0,s.jsx)(t.td,{children:"Telegram command menu, tappable roster, files pushed to the chat, onboarding with native buttons."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Bots stay online"})}),(0,s.jsxs)(t.td,{children:["No-outcome routines cool down and auto-resume; declared cadence honoured; ",(0,s.jsx)(t.code,{children:"doctor"})," flags stale bots."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Node 22 + Ink 8"})}),(0,s.jsx)(t.td,{children:"Required for npm installs; binaries unaffected. Four Mercury hunks on Ink 8, upstreaming."})]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"one-runtime--the-terminal-attaches",children:"One runtime \u2014 the terminal attaches"}),"\n",(0,s.jsxs)(t.p,{children:["Launching ",(0,s.jsx)(t.code,{children:"mercury"})," with no daemon used to spawn one ",(0,s.jsx)(t.strong,{children:"and"})," boot a second full runtime in the terminal. Both ran the fleet on one queue, both polled Telegram (409 conflicts), and the terminal copy ran every bot turn on the thread that paints your keystrokes. Now the terminal spawns the daemon and attaches; a foreground runtime beside a live daemon (",(0,s.jsx)(t.code,{children:"mercury code"}),") is a terminal for the main agent only. The event loop is measured: ",(0,s.jsx)(t.code,{children:"/api/health.loopLag"}),", and stalls \u2265250 ms are logged."]}),"\n",(0,s.jsxs)(t.p,{children:["Your ",(0,s.jsx)(t.strong,{children:"login service follows the install"}),": after a reinstall (npm \u2192 binary, stable \u2192 dev, new Node) the old LaunchAgent/systemd unit/Task used to keep resurrecting the old daemon. Mercury now re-points it on launch, on macOS, Linux and Windows. ",(0,s.jsx)(t.code,{children:"mercury doctor"})," \u2192 ",(0,s.jsx)(t.em,{children:"Login service: points at this install"}),"."]}),"\n",(0,s.jsx)(t.h2,{id:"bots-that-do-work",children:"Bots that do work"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Caps and compaction"})," \u2014 300k tokens / 20 min per turn; context compacted automatically."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Judged by the trace"})," \u2014 a run is ",(0,s.jsx)(t.code,{children:"deliverable"}),", ",(0,s.jsx)(t.code,{children:"action"}),", ",(0,s.jsx)(t.code,{children:"delegated"}),", ",(0,s.jsx)(t.code,{children:"message"})," or ",(0,s.jsx)(t.code,{children:"none"}),"; a reply that claims more than the trace shows is flagged."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Budgets by default"})," \u2014 5M tokens/day per bot, 20M per fleet; warned at 80%, paused until tomorrow at 100%."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Deliverables you can find"})," \u2014 ",(0,s.jsx)(t.code,{children:"bot_deliver"})," files land in ",(0,s.jsx)(t.code,{children:"~/Documents/Mercury/<Bot name>/"}),", finals on top, crew work under ",(0,s.jsx)(t.code,{children:"work/"}),", README index. Legacy outputs migrate on first start."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.strong,{children:"Routines honoured"})," \u2014 a bot.yaml cadence runs as written; bot-created routines \u226530 min; three empty runs cool a routine down (6 h \u2192 24 h) and it resumes by itself."]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"fleets-that-coordinate",children:"Fleets that coordinate"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"fleet_delegate"})," hands several typed tasks to the crew and wakes the lead ",(0,s.jsx)(t.strong,{children:"once"})," with a digest. Pipelines are data in ",(0,s.jsx)(t.code,{children:"bot.yaml"})," (",(0,s.jsx)(t.code,{children:"research \u2192 draft \u2192 check \u2192 package"}),"), stages chain themselves, finals are promoted. Every turn starts with a digest of the last five runs and the bot's own working-state note; durable facts go into the bot's memory."]}),"\n",(0,s.jsx)(t.h2,{id:"operate-it--from-the-terminal-or-a-phone",children:"Operate it \u2014 from the terminal or a phone"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"/bots cost [days]"}),", ",(0,s.jsx)(t.code,{children:"/bots show <id> [runId]"}),", ",(0,s.jsx)(t.code,{children:"/bots stop all"})," / ",(0,s.jsx)(t.code,{children:"start all"}),", ",(0,s.jsx)(t.code,{children:"/bots dlq clear"}),", ",(0,s.jsx)(t.code,{children:"/bots doctor"}),", ",(0,s.jsx)(t.code,{children:"/bots outputs"}),", ",(0,s.jsx)(t.code,{children:"/bots fetch"}),". On ",(0,s.jsx)(t.strong,{children:"Telegram"}),": ",(0,s.jsx)(t.code,{children:"/bots"})," and ",(0,s.jsx)(t.code,{children:"/bot"})," in the command menu; the roster arrives with ",(0,s.jsx)(t.strong,{children:"Stop/Start \xb7 Run \xb7 Runs"})," per bot and ",(0,s.jsx)(t.strong,{children:"Cost \xb7 Outputs \xb7 Doctor \xb7 Stop all"})," \u2014 a tap runs the real command. Delivered files come back to the chat as attachments. ",(0,s.jsx)(t.code,{children:"/bots create"})," on Telegram runs the full onboarding \u2014 persona, permissions tier, solo/fleet, budget \u2014 as native buttons that settle in place."]}),"\n",(0,s.jsx)(t.h2,{id:"honest-mercury--the-earlier-131-work-folded-in",children:"Honest Mercury \u2014 the earlier 1.3.1 work, folded in"}),"\n",(0,s.jsxs)(t.p,{children:['Never published on its own; everything from it ships here: chat no longer forced through tool rounds, "done" means a check actually passed, one feedback contract on every channel, ',(0,s.jsx)(t.code,{children:"/trace"}),", ",(0,s.jsx)(t.code,{children:"/new"})," everywhere, context window v2, memory bounds, Telegram prompt timeouts that say what they defaulted to, per-agent permission contexts, the replay eval harness, and six published security advisories (GHSA-hj5j-2689-x8r2, -xc4h-859q-mq79, -gc84-h2g2-h54w, -h2c6-h3vx-mqwh, -qjx7-rw28-6hxq, -r27w-9m8h-qwg8)."]}),"\n",(0,s.jsx)(t.h2,{id:"node-22-and-a-patched-ink-8",children:"Node 22 and a patched Ink 8"}),"\n",(0,s.jsxs)(t.p,{children:["Mercury's terminal renderer moves to ",(0,s.jsx)(t.strong,{children:"Ink 8 + React 19"}),", which needs ",(0,s.jsx)(t.strong,{children:"Node 22"}),". Stock Ink's ",(0,s.jsx)(t.code,{children:"<Static>"})," is positional \u2014 a bounded transcript remounted the whole subtree every frame \u2014 and tall frames stamped copies into scrollback on every repaint. Mercury vendors Ink 8 with four hunks (keyed static, scrollback guard, freeze gate, IME cursor anchor), verified in CI as ",(0,s.jsx)(t.em,{children:"tarball + hunks"}),", and is proposing them upstream from ",(0,s.jsx)(t.a,{href:"https://github.com/cosmicstack-labs/ink",children:"cosmicstack-labs/ink"}),"."]}),"\n",(0,s.jsx)(t.h2,{id:"known-limitations",children:"Known limitations"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["The attach TUI (what ",(0,s.jsx)(t.code,{children:"mercury"})," now opens) does not yet have bot threads (",(0,s.jsx)(t.code,{children:"/bots open"}),") or the ",(0,s.jsx)(t.code,{children:"/telegram"})," / ",(0,s.jsx)(t.code,{children:"/discord"})," / ",(0,s.jsx)(t.code,{children:"/slack"})," menus. Use ",(0,s.jsx)(t.code,{children:"/bots send <id> <message>"}),", ",(0,s.jsx)(t.code,{children:"mercury telegram \u2026"})," from the shell, or ",(0,s.jsx)(t.code,{children:"mercury code"})," for the in-process TUI. First item of the next release."]}),"\n",(0,s.jsxs)(t.li,{children:["Bots share the daemon's thread with the main agent \u2014 bounded, not isolated. ",(0,s.jsx)(t.code,{children:"loopLag"})," will tell you if it ever matters."]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"upgrade",children:"Upgrade"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Standalone binaries"})," \u2014 nothing to think about:"]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"curl -fsSL https://mercuryagent.sh/install.sh | sh   # macOS / Linux\nirm https://mercuryagent.sh/install.ps1 | iex          # Windows\n"})}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"npm"})," \u2014 check Node first:"]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"node -v                                   # must be 22+\nnvm install 22 && nvm alias default 22    # if it is not\nnpm i -g @cosmicstack/[email protected]\nmercury                                   # re-points your login service, migrates bot outputs, attaches\n"})}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"mercury upgrade"})," checks the Node requirement before it removes anything; the package refuses to install on an older Node with a readable message. ",(0,s.jsx)(t.code,{children:"~/.mercury"})," carries over untouched."]})]})}function u(e={}){let{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},28453(e,t,n){n.d(t,{R:()=>a,x:()=>d});var r=n(96540);let s={},o=r.createContext(s);function a(e){let t=r.useContext(o);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:t},e.children)}}}]);