Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["2668"],{91610(e,n,t){t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>o,default:()=>l,frontMatter:()=>s,metadata:()=>a,toc:()=>g});var a=t(21423),r=t(74848),i=t(28453);let s={slug:"running-an-agent-overnight",title:"Running an agent overnight: what breaks first",description:"We read Mercury's scheduler and budget code and reproduced one behaviour, to find what fails during long unattended runs: skipped tasks, quiet errors, overlapping jobs and budget stops.",authors:["tashiriskhan"],tags:["runtime","engineering"],image:"./cover.jpg",keywords:["run ai agent overnight","unattended ai agent","ai agent scheduler failures","cron ai agent","ai agent token budget","long running agent"],draft:!1},o,u={image:t(11111).A,authorsImageUrls:[void 0]},g=[];function d(e){let n={p:"p",...(0,i.R)(),...e.components};return(0,r.jsx)(n.p,{children:"Most overnight agent failures are quiet. The agent doesn't crash. A job just doesn't run, or runs twice, and nobody is told. This post looks at where that happens in Mercury's scheduler and budget code."})}function l(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},11111(e,n,t){t.d(n,{A:()=>a});let a=t.p+"assets/images/cover-61d12eaab98994de1b8055f310523bc2.jpg"},28453(e,n,t){t.d(n,{R:()=>s,x:()=>o});var a=t(96540);let r={},i=a.createContext(r);function s(e){let n=a.useContext(i);return a.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),a.createElement(i.Provider,{value:n},e.children)}},21423(e){e.exports=JSON.parse('{"permalink":"/blog/running-an-agent-overnight","editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/blog/2026-10-27-running-an-agent-overnight/index.md","source":"@site/blog/2026-10-27-running-an-agent-overnight/index.md","title":"Running an agent overnight: what breaks first","description":"We read Mercury\'s scheduler and budget code and reproduced one behaviour, to find what fails during long unattended runs: skipped tasks, quiet errors, overlapping jobs and budget stops.","date":"2026-10-27T00:00:00.000Z","tags":[{"inline":false,"label":"Runtime","permalink":"/blog/tags/runtime","description":"The daemon, the attach client and everything that keeps Mercury running."},{"inline":false,"label":"Engineering","permalink":"/blog/tags/engineering","description":"How Mercury is built, what broke, and what we changed so it does not break again."}],"readingTime":5.93,"hasTruncateMarker":true,"authors":[{"name":"Tashir Khan","title":"Contributor, Mercury","description":"Writes about agent permissions, security and running Mercury safely.","url":"https://github.com/tashiriskhan","page":{"permalink":"/blog/authors/tashiriskhan"},"socials":{"github":"https://github.com/tashiriskhan"},"imageURL":"https://github.com/tashiriskhan.png","key":"tashiriskhan"}],"frontMatter":{"slug":"running-an-agent-overnight","title":"Running an agent overnight: what breaks first","description":"We read Mercury\'s scheduler and budget code and reproduced one behaviour, to find what fails during long unattended runs: skipped tasks, quiet errors, overlapping jobs and budget stops.","authors":["tashiriskhan"],"tags":["runtime","engineering"],"image":"./cover.jpg","keywords":["run ai agent overnight","unattended ai agent","ai agent scheduler failures","cron ai agent","ai agent token budget","long running agent"],"draft":false},"unlisted":false,"prevItem":{"title":"Your agent returned 200 OK. It may still have failed","permalink":"/blog/agent-observability-first-wrong-step"},"nextItem":{"title":"How Optimus works: an agent that uses your computer","permalink":"/blog/how-optimus-works"}}')}}]);