Token burn
ROOT CAUSE IDENTIFIED
The "heartbeat prompt" is being automatically appended to system event messages (like "Exec completed", "Node connected", etc.)!
When the system sends notifications like:
β’ System: [timestamp] Exec completed (lucky-wi, code 0) ...
β’ System: [timestamp] Node: Tim's MacBook Pro ...
Those system messages are followed by the heartbeat prompt text. And each one triggers a full heartbeat run.
This means:
β’ Every time a background exec completes β heartbeat prompt β agent run
β’ Every time a node connects β heartbeat prompt β agent run
β’ Every time there's a system event β heartbeat prompt β agent run
That's why there were so many heartbeat runs!
Where is this coming from?
This is either:
1. Clawdbot's internal system - the gateway/session manager is automatically appending the heartbeat prompt to system events
2. A channel plugin/automation that's configured to send heartbeat checks after system events
