hub_heartbeat
Record agent liveness each work cycle to update presence and snapshot files, enabling cross-node visibility without a human bridge.
Instructions
Record that an agent is alive — call it each work cycle (right after hub_report, before the next hub_queue_wait) so MCP/headless agents show up in hub_presence the same way screen-scraped ones do, no human bridge needed. Overwrites this agent's one presence record; freshness is judged at read time from ttlMin (default 15min), the same pattern hub_claim uses. Also refreshes this node's published snapshot (presence..json) at most once every 5 minutes, so agents on OTHER nodes can see you at all — the directory itself is node-local and never syncs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | your absolute working directory, optional | |
| role | No | the queue role you work under, e.g. "hubd" — lets hub_brief pair queue depth with who is listening | |
| agent | Yes | your stable identity, e.g. your agent name | |
| status | No | free text, e.g. "working" / "waiting" / "blocked" | |
| ttlMin | No | minutes before this record counts as stale, default 15 | |
| task_id | No | the task/id you are currently on, optional |