ONE · Heartbeat
Bump bump. I am alive.
Give every agent a heartbeat. It keeps watch every second, wakes the work a dropped connection stopped, and beats in rhythm with the rest. When something needs you, you hear about it once.
beating since 23 Nov 2026
Agents should not wait for you to press enter
A connection drops for one second. An agent's call fails, it stops with
API Error, and it waits,
marked "needs you", until somebody notices. A machine can see the line is back and the
agent is stuck. So now a machine does.
What each beat brings
One loop, eight rhythms
One tick a second. The slower jobs ride on every fifth, thirtieth and sixtieth tick, like breathing under a heartbeat.
- Every second Pulse
It says "I am here".
If the pulse stops for two minutes, a second watcher starts the heart again.
- Every 5 seconds Breath
It checks it can still reach the AI.
When the connection drops, it holds still. When the line returns, it looks at every agent.
- Every 30 seconds Look
It reads every agent's screen.
An agent stopped by a dropped connection is told to carry on, and picks up where it left off.
- Every minute Body
It keeps the server up and watches the battery.
Below 20% on battery, it asks for the charger, louder at 10%.
- Every 5 minutes Count
It finds sessions that ended badly.
Nothing is lost quietly. A crash is written down, never run twice by accident.
- Every hour Report
It sends one message, or none.
Everything that needs a person, in one place, on time.
- Every day Rest
It trims its own log and writes the day down.
It can run for years without filling the disk.
- After sleep Wake
It notices the gap and looks again from scratch.
It never acts on a picture of the world from before it slept.
In rhythm
Many hearts, one beat
A heart does not fire every cell at once. Its chambers beat in order. So do the agents: each hour has four phases, and each one starts only after the one before it closes.
- :00 Sense Scouts read the world. Free checks, no model.
- :05 Act Workers do what the scouts found.
- :40 Judge Judges check what was done.
- :55 Report One message for the hour, or silence.
If the computer slept through :00, it senses first and acts on the next beat, never both at once.
Any agent
Five lines give an agent a heartbeat
Add a block to the agent's description. The rhythm finds it on the next beat: no server to set up, no schedule to keep.
heartbeat: every: 1h # or 1d phase: sense # sense · act · judge · report check: bash .claude/scripts/beat-checks.sh doctor wake: report # into the hour's one message
- The check is free A script, no model. Silent means nothing to do, and the beat costs nothing.
- A finding wakes the agent Each line the check prints is one thing to act on. Only then does the agent wake.
- It learns its own pace Six empty beats in a row and it rests a cycle, up to three. One finding and it is wide awake again.
- Nothing is said twice A finding already told stays quiet until it changes. A broken check is reported, never hidden.
Its first day
Mostly, it said nothing
Read from its own log, 23 November 2026. A heart that beats loudly is a heart in trouble.
- 12 h beating since its first pulse
- 11 hourly reports, each on the hour
- 5 network drops, held until the line came back
- 0 agents stalled while it watched
- 1 battery warning, at 4% with 12 minutes left
- 1 restart after the Mac slept, by the second watcher
What it will never do
A heartbeat that oversteps is worse than none. These are written into it.
- Type into a message someone has half written.
- Push past a usage limit. It waits for the reset.
- Wake an agent while the network is down.
- Try more than four times on one agent, or revive more than twenty an hour.
- Run a crashed job again on its own.
- Move money. That always takes a person's fingerprint.
Next
A heart that looks after you, too
Keeping the agents alive is half of it. The other half beats for the person they work for. It is not built yet, and it will be one line at a time, each easy to wave away.
- Late at night One line: the agents are held, go to sleep.
- Hours heads-down One line: time to eat. It keeps watch.
- Each morning What moved, what broke, what waits for you.
- When it is heavy A note drafted to someone you choose. Never sent without you.
It never locks the screen or stands between you and your work. When it is a person you need, it points you to one.
A heart needs a body
Today it lives on one computer. Close the lid on battery and it stops with it, then starts again on waking. A crashed agent is written down, not yet brought back. Those are the next things to grow.