OpenClaw
The personal agent that made "always on" feel real. A gateway, a heartbeat and markdown files for soul, memory and goals.
OpenClaw is the open-source personal agent project created by Peter Steinberger, who later coined much of the loop-engineering vocabulary and is now at OpenAI (Wikipedia). It approaches loops from the opposite direction to coding agents: it has no finish line, just a heartbeat.
The architecture in one paragraph
A gateway takes input from every channel (chat apps, email, schedules), routes it to an agent, runs the agent and sends the output where it needs to go. The heartbeat is a timer, 30 minutes by default, that sends the agent one more input: "read HEARTBEAT.md and act if needed." Personality and long-term context live in files ("Soul", Memory), and goals live in a markdown file too (Bibek Poudel, heartbeat guide, HEARTBEAT.md explainer).
Why it matters for loops
- It's the clearest example of a standing goal. Goals aren't completed, they're watched. A sample checklist even asks the agent to review
memory/goals.mdand suggest outdated goals to remove. - It made silence a protocol.
HEARTBEAT_OKat the start or end of a reply means "nothing to report"; the token is stripped and short replies are dropped. - It showed what "alive" feels like. "Why OpenClaw feels alive even though it's not (this AI has a heartbeat but not a brain)" (Claire Vo on X).
Costs and risks
- Idle wake-ups cost money. Guides contrast the heartbeat with cron for routine checks, and describe configurations that skip the model call entirely when there's nothing to check (guide, SFAI Labs).
- Files that get re-executed are an attack surface.
HEARTBEAT.mdand memory files are ordinary workspace files read on every heartbeat. An arXiv paper shows how injected content in persistent personal agents can persist and act silently. Security write-ups also cite research finding OpenClaw-style agents highly susceptible to sandbox escape, with an average defence rate of only 17% (SoftwareSeni; see also arXiv 2603.10387). secondary reporting See Security. - The platform changes under you. A DEV post says that after OAuth access for OpenClaw was shut down, the author rebuilt a heartbeat inside Claude Code with a shell loop (DEV). anecdotal
Further reading
Google (Antigravity, Gemini)
Google is consolidating its agents into Antigravity, with a goal mode, schedules, async sub-agents, multi-day Teamwork and Managed Agents in the Gemini API.
SDKs, frameworks and DIY
Build your own loop with agent SDKs, managed runtimes, graph frameworks or plain shell scripts, and the infrastructure every loop eventually needs.