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.

18.5 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["1837"],{89766(e,n,r){r.r(n),r.d(n,{metadata:()=>t,default:()=>p,frontMatter:()=>d,contentTitle:()=>l,toc:()=>a,assets:()=>c});var t=JSON.parse('{"id":"releases/1.2.3","title":"v1.2.3 \u2014 Unstoppable Mercury","description":"The release where Mercury Code stops dying and starts telling the truth. Completion contract, AUTO mode, the escalation harness, compact-on-pressure, live plan checklist, and security hardening across the tool surface.","source":"@site/docs/releases/1.2.3.mdx","sourceDirName":"releases","slug":"/releases/1.2.3","permalink":"/docs/releases/1.2.3","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/releases/1.2.3.mdx","tags":[],"version":"current","frontMatter":{"title":"v1.2.3 \u2014 Unstoppable Mercury","sidebar_label":"v1.2.3","description":"The release where Mercury Code stops dying and starts telling the truth. Completion contract, AUTO mode, the escalation harness, compact-on-pressure, live plan checklist, and security hardening across the tool surface.","keywords":["mercury","mercury-agent","unstoppable-mercury","mercury-code","completion-contract","auto-mode","release","1.2.3"]},"sidebar":"docsSidebar","previous":{"title":"v1.3.0","permalink":"/docs/releases/1.3.0"},"next":{"title":"v1.2.0","permalink":"/docs/releases/1.2.0"}}'),s=r(74848),i=r(28453),o=r(53572);let d={title:"v1.2.3 \u2014 Unstoppable Mercury",sidebar_label:"v1.2.3",description:"The release where Mercury Code stops dying and starts telling the truth. Completion contract, AUTO mode, the escalation harness, compact-on-pressure, live plan checklist, and security hardening across the tool surface.",keywords:["mercury","mercury-agent","unstoppable-mercury","mercury-code","completion-contract","auto-mode","release","1.2.3"]},l="v1.2.3 \u2014 Unstoppable Mercury",c={},a=[{value:"At a glance",id:"at-a-glance",level:2},{value:"The completion contract",id:"the-completion-contract",level:2},{value:"AUTO mode \u2014 no more mode switching",id:"auto-mode--no-more-mode-switching",level:2},{value:"The escalation harness \u2014 the agent makes things happen",id:"the-escalation-harness--the-agent-makes-things-happen",level:2},{value:"Reliability, borrowed and extended",id:"reliability-borrowed-and-extended",level:2},{value:"The live TUI",id:"the-live-tui",level:2},{value:"Security hardening",id:"security-hardening",level:2},{value:"Fixed",id:"fixed",level:2},{value:"Upgrade",id:"upgrade",level:2}];function h(e){let n={blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.A,{children:[(0,s.jsx)("meta",{property:"og:title",content:"Mercury Agent v1.2.3 \u2014 Unstoppable Mercury"}),(0,s.jsx)("meta",{property:"og:description",content:"Mercury Code stops dying and starts telling the truth: completion contract, AUTO mode, mechanical escalation, compact-on-pressure, and honest verdicts."}),(0,s.jsx)("meta",{property:"og:type",content:"article"}),(0,s.jsx)("meta",{property:"og:url",content:"https://mercuryagent.sh/docs/releases/1.2.3"}),(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.2.3 \u2014 Unstoppable Mercury"}),(0,s.jsx)("meta",{name:"twitter:description",content:"Completion contract \xb7 AUTO mode \xb7 Escalation harness \xb7 Compact-on-pressure \xb7 Honest verdicts."}),(0,s.jsx)("link",{rel:"canonical",href:"https://mercuryagent.sh/docs/releases/1.2.3"})]}),"\n",(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"v123--unstoppable-mercury",children:"v1.2.3 \u2014 Unstoppable Mercury"})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Mercury Code stops dying and starts telling the truth."})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"1.2.3"})," rebuilds Mercury Code's completion pipeline around one contract: ",(0,s.jsx)(n.strong,{children:"every task ends in a verdict"}),' \u2014 a verified completion, or an honest pause that names its blocker and resumes. Before this release, step-budget exhaustion produced green "Task complete" banners over half-done work, big file writes were severed mid-argument by the output cap, narration-locked models looped forever, and long builds died at memory pressure. Now every failure mode routes to a named recovery path, and no task can claim success without evidence.']}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:'Why "Unstoppable Mercury"?'})," This is the release where the agent stopped being a chat wrapper around an LLM and became an orchestrator with guarantees. When a model narrates instead of building, the agent grounds the work itself, mechanically forces the first tool call, rotates to another model, and issues a wake-up call \u2014 ten enforced rounds before it ever pauses. And when it pauses, it tells you exactly what blocked it."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"at-a-glance",children:"At a glance"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Area"}),(0,s.jsx)(n.th,{children:"What changed"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Completion contract"})}),(0,s.jsxs)(n.td,{children:["Turn-end verdicts (",(0,s.jsx)(n.code,{children:"text-stop"})," / ",(0,s.jsx)(n.code,{children:"steps-exhausted"})," / ",(0,s.jsx)(n.code,{children:"interrupted"})," / ",(0,s.jsx)(n.code,{children:"truncated"})," / ",(0,s.jsx)(n.code,{children:"aborted"}),") \u2014 budget exhaustion is a ",(0,s.jsx)(n.em,{children:"pause"}),", never a fake completion"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"AUTO mode"})}),(0,s.jsx)(n.td,{children:"Mercury Code's new default: plan + build in one flow; one confirmation only for large changes"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Escalation harness"})}),(0,s.jsx)(n.td,{children:"Grounding \u2192 forced mutating tool call \u2192 provider rotation \u2192 wake-up call; narration is mechanically impossible on forced steps"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Verification gate"})}),(0,s.jsx)(n.td,{children:'Build/test/typecheck evidence required before "Task complete" in execute/AUTO mode'})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Compact-on-pressure"})}),(0,s.jsx)(n.td,{children:"Memory pressure compacts the conversation in place and continues (OpenCode practice)"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Output size"})}),(0,s.jsx)(n.td,{children:"No Mercury-imposed cap \u2014 the model's native limit governs; adaptive halving for providers that reject it"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Honest verdicts"})}),(0,s.jsxs)(n.td,{children:['Pauses carry the blocker ("write_file: permission denied") and resume via "continue"; work-ledger ',(0,s.jsx)(n.code,{children:"paused"})," state persists across restarts"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Live TUI"})}),(0,s.jsxs)(n.td,{children:["Plan checklist, ",(0,s.jsx)(n.code,{children:"ask_user"})," choice picker (now visible in Mercury Code), thinking preview, wheel scrolling, file-change previews"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.strong,{children:"Security"})}),(0,s.jsxs)(n.td,{children:["SSRF guard on ",(0,s.jsx)(n.code,{children:"fetch_url"}),"/",(0,s.jsx)(n.code,{children:"install_skill"}),", credential files 0600, random initial web password, secret redaction in logs"]})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"the-completion-contract",children:"The completion contract"}),"\n",(0,s.jsx)(n.p,{children:"The heart of the release. Previously, the agent loop had one optimistic pass \u2014 and every ending, including half-done work, was celebrated as complete. Now:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Every turn end is classified"})," \u2014 ",(0,s.jsx)(n.code,{children:"text-stop"}),", ",(0,s.jsx)(n.code,{children:"steps-exhausted"}),", ",(0,s.jsx)(n.code,{children:"interrupted"}),", ",(0,s.jsx)(n.code,{children:"truncated"}),", ",(0,s.jsx)(n.code,{children:"aborted"})," (",(0,s.jsx)(n.code,{children:"src/core/completion-verdict.ts"}),")."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Budget exhaustion is a pause"}),", never a completion. The task pauses with a resumable work-ledger entry and a message that names the blocker \u2014 including the last failed tool result (e.g. ",(0,s.jsx)(n.code,{children:"write_file: permission denied"}),")."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Evidence-gated completion"})," \u2014 implementation tasks must run a build/test/typecheck command before the completion banner is allowed. No evidence \u2192 one forced verification round."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Honest banners"}),' \u2014 "Response delivered \xb7 no file changes" (git-verified), first-person pause messages, and a change summary with per-file +/\u2212 stats and verification evidence at completion.']}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"auto-mode--no-more-mode-switching",children:"AUTO mode \u2014 no more mode switching"}),"\n",(0,s.jsxs)(n.p,{children:["Mercury Code now starts in ",(0,s.jsx)(n.strong,{children:"AUTO"})," by default: read first, plan silently, implement immediately. Small and medium changes proceed without asking; large or consequential changes present a concise plan with a single ",(0,s.jsx)(n.code,{children:"ask_user"})," confirmation (recommended option default-selected), then build without re-asking. Manual ",(0,s.jsx)(n.code,{children:"plan"}),"/",(0,s.jsx)(n.code,{children:"execute"})," modes remain available (",(0,s.jsx)(n.code,{children:"/code plan"}),", ",(0,s.jsx)(n.code,{children:"/code execute"}),", ",(0,s.jsx)(n.code,{children:"/code toggle"}),"), and ",(0,s.jsx)(n.code,{children:"/code chat"})," (new) exits to regular chat instantly."]}),"\n",(0,s.jsx)(n.h2,{id:"the-escalation-harness--the-agent-makes-things-happen",children:"The escalation harness \u2014 the agent makes things happen"}),"\n",(0,s.jsx)(n.p,{children:"When a model narrates instead of building, Mercury Code escalates mechanically \u2014 none of it depends on the model's goodwill:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Grounding"})," \u2014 the agent executes a deterministic directory listing itself (no LLM) and injects it as verified state."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Forced action"})," \u2014 via ",(0,s.jsx)(n.code,{children:"prepareStep"}),", the first step of a guard round runs with ",(0,s.jsx)(n.code,{children:"toolChoice: 'required'"})," and ",(0,s.jsx)(n.strong,{children:"mutating tools only"}),". Narration is impossible on that step."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Provider rotation"})," \u2014 guard rounds walk the fallback chain; a narration-locked model isn't the only worker."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Wake-up call"}),' \u2014 after a full failed cycle, the bound doubles with a blunt directive ("your next response MUST begin with a mutating tool call, ZERO prose"). Ten mechanical rounds total across providers before any pause.']}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"reliability-borrowed-and-extended",children:"Reliability, borrowed and extended"}),"\n",(0,s.jsx)(n.p,{children:"OpenCode's session-pipeline practices were adopted where they make Mercury harder to kill \u2014 and extended with guarantees neither OpenCode nor Claude Code expose:"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Practice"}),(0,s.jsx)(n.th,{children:"OpenCode"}),(0,s.jsx)(n.th,{children:"Mercury 1.2.3"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Memory/context pressure"}),(0,s.jsx)(n.td,{children:"Compact and continue"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"Compact and continue"})," (",(0,s.jsx)(n.code,{children:"compactConversation"}),"), abort only if pressure persists"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Doom-loop protection"}),(0,s.jsx)(n.td,{children:"Threshold 3 \u2192 intervention"}),(0,s.jsx)(n.td,{children:"Loop detector \u2192 abort attempt \u2192 provider fallback"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Provider failures"}),(0,s.jsx)(n.td,{children:"Exponential backoff, retry-after, max 5"}),(0,s.jsx)(n.td,{children:"Fallback chain + durable retries + named per-provider failure ledger"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"Completion guarantees"}),(0,s.jsx)(n.td,{children:"None documented"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.strong,{children:"Completion contract"}),": forced action, wake-up calls, evidence-gated completion"]})]})]})]}),"\n",(0,s.jsxs)(n.p,{children:["Plus: a ",(0,s.jsx)(n.strong,{children:"stall watchdog"})," (3-min silence \u2192 visible pulse, 8-min \u2192 abort into resume machinery), ",(0,s.jsx)(n.strong,{children:"automatic continuation"})," (six fresh step budgets, provider hard-deadlines count as one attempt), and ",(0,s.jsx)(n.strong,{children:"write-truncation recovery"})," (sectioned writes with full-budget resume rounds)."]}),"\n",(0,s.jsx)(n.h2,{id:"the-live-tui",children:"The live TUI"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Live plan checklist"})," \u2014 the ",(0,s.jsx)(n.code,{children:"update_plan"})," tool maintains pending / \u25B6 active / \u2611 done steps in the transcript, so you always see which step is being implemented."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsxs)(n.strong,{children:[(0,s.jsx)(n.code,{children:"ask_user"})," choice picker"]})," \u2014 now renders inside Mercury Code (previously the tool blocked on a prompt that never rendered \u2014 an invisible hang) and owns the keyboard while pending."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Live thinking preview"})," \u2014 model reasoning streams as a quoted preview instead of dead air."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Wheel scrolling"})," \u2014 full-screen transcripts scroll with the trackpad via a filtered stdin proxy; mouse sequences never leak into input."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"File-change previews"})," \u2014 bounded, syntax-highlighted excerpts of every created/edited file, with per-file stats at completion."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Developer status line"})," \u2014 repo state, mode, token budget (\u26A1 %), and only the keys that matter."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"security-hardening",children:"Security hardening"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"SSRF guard"}),": ",(0,s.jsx)(n.code,{children:"fetch_url"})," and ",(0,s.jsx)(n.code,{children:"install_skill"})," validate scheme and private ranges (DNS-resolved) on every redirect hop; 512 KB payload caps. ",(0,s.jsx)(n.code,{children:"MERCURY_ALLOW_PRIVATE_FETCH=1"})," to opt out for local testing."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Credential files"})," (",(0,s.jsx)(n.code,{children:"web-config.json"}),", ",(0,s.jsx)(n.code,{children:"web-sessions.json"}),") written ",(0,s.jsx)(n.code,{children:"0600"})," and repaired on load; the initial web password is now random per install."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Secret redaction"}),": API keys masked in logs and command-output echoes; shell blocklist gains swapped-flag ",(0,s.jsx)(n.code,{children:"rm -fr"})," variants."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Mercury Cloud"}),": credential rotation failures now say ",(0,s.jsx)(n.code,{children:'run "mercury cloud connect"'})," instead of an opaque 401 loop."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"fixed",children:"Fixed"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:['Yoga WASM "memory access out of bounds" crashes \u2014 ink patched (freed-node reference hygiene + ',(0,s.jsx)(n.code,{children:"<Static>"})," identity dedup), shipped via patch-package."]}),"\n",(0,s.jsx)(n.li,{children:"Duplicate-message render loop (~30 s cadence) from still-mounted static children."}),"\n",(0,s.jsxs)(n.li,{children:["Scroll repair after long-session trims (",(0,s.jsx)(n.code,{children:"/mc scroll-set"})," was parsed as a NaN delta \u2014 dead code)."]}),"\n",(0,s.jsxs)(n.li,{children:["Prose questions no longer fight the narration guard; ",(0,s.jsx)(n.code,{children:"not-a-git-repo"}),' no longer false-claims "no file changes".']}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"/chat"})," from Mercury Code tears down state properly instead of half-exiting."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"upgrade",children:"Upgrade"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"npm install -g @cosmicstack/[email protected]\n"})}),"\n",(0,s.jsxs)(n.p,{children:["No config changes required. New optional environment variables: ",(0,s.jsx)(n.code,{children:"MERCURY_STALL_SOFT_MS"}),", ",(0,s.jsx)(n.code,{children:"MERCURY_STALL_HARD_MS"}),", ",(0,s.jsx)(n.code,{children:"MERCURY_ALLOW_PRIVATE_FETCH"}),", ",(0,s.jsx)(n.code,{children:"MERCURY_MAX_STEPS"})," (testing). ",(0,s.jsx)(n.code,{children:"patch-package"})," ships as a runtime dependency \u2014 the bundled ink patch applies automatically on install."]})]})}function p(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},28453(e,n,r){r.d(n,{R:()=>o,x:()=>d});var t=r(96540);let s={},i=t.createContext(s);function o(e){let n=t.useContext(i);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]);