Fix the most common heartbeat file mistakes in minutes so your agent stops repeating errors and starts doing useful check-ins.
If your agent keeps saying there is a HEARTBEAT.md error, you are not alone. This is a common setup issue and usually comes down to file location, formatting, or stale instructions.
Good news: you usually do not need to reinstall anything. A small file fix solves this most of the time.
The file should be in your workspace root, named exactly HEARTBEAT.md (all caps, no extra extension).
Overly long heartbeat instructions can create confusion and repeated loops. Keep it to a tight checklist.
If your file says to always run old tasks, the agent may keep doing them forever. Use conditional rules instead.
Tell the agent what to do when nothing needs attention (for example: return HEARTBEAT_OK).
After edits, trigger one heartbeat and confirm behavior before adding more complexity.
Tip: if your heartbeat keeps revisiting old tasks, also track simple state in a small JSON file (last check timestamps). That prevents repetitive behavior.
Avoid this anti-pattern: “Check everything all the time and summarize everything.” That instruction guarantees noisy, expensive, low-signal output.
If the issue continues after this checklist, include these details in #help:
Bottom line: a clean, short HEARTBEAT.md gives calm, useful check-ins. Keep it simple, conditional, and test once after every edit.