hub_heartbeat
Send a heartbeat to update agent presence in hubd, making headless agents visible in hub_presence without a human bridge. Overwrites presence record with TTL-based freshness.
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.
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 |