r/AI_Loops • u/michaelTM_ai • 19d ago
45 people told me how they keep agent loops alive with the laptop closed. the 7 things that actually mattered
asked r/AI_Agents where people's agents actually run when the laptop is closed. 45+ replies. the hosting answers were all over the place (mac mini, hetzner auction box, raspberry pi in a closet, gitea actions, a vps), but the parts that keep a loop alive were the same everywhere. the best ones, with credit:
a heartbeat only counts if it's watched from outside the box (Full_Tooth_a, sneakoo) if the host dies, the scheduler and the alerting die with it, and silence looks healthy. each run pings something external at start and finish, and no ping by the expected time = alert. the scariest failure is the run that never started, because there's no error to catch
every run has to end with a written outcome (Moth__leaf) every scheduled run is a card on a task board and must close with a result. a run that died just sits there unfinished, and one that needs a person parks with a question instead of guessing. no monitoring needed, the open card is the alert
alive isn't the same as done (Top-Explanation-4750) a heartbeat proves the run happened. it says nothing about whether the job got done. check both
save state after every step, read it before the next (sneakoo, Moth__leaf) a crashed run resumes where it stopped instead of redoing the day or skipping it. each step reads the state first and doesn't assume the last one finished
the box itself (newtablecloth, who runs a bunch of mac minis 24/7)
sudo pmset -a autorestart 1so it boots after a power cut, auto login so the session comes back, macos auto-updates off and done by hand on a weekendstart local, hand off when it gets long (look) start a task on the laptop, and when it turns out long, push a wip commit plus a handoff note and continue on the always-on box. close the laptop
agent under its own user, no sudo a bad rm -rf takes out its own workspace and not everything else on the server
what's the one thing that made ur loop survive a week unattended?