/hive:waitfrom hive
Blocks execution until messages arrive on specified topics, enabling agent synchronization and handoff workflows with configurable timeout.
Ships in hive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Wait for messages on specific topics, enabling synchronization between agents and coordinated handoff workflows.
The hive msg sub --wait command polls the specified topic every 500ms until:
Default timeout is 24h for --wait mode. Messages are NOT acknowledged unless --ack is used.
hive msg sub --wait --topic <topic>
Examples:
# Wait for handoff message (24h default timeout)
hive msg sub --wait --topic agent.abc.inbox
# Wait for build completion
hive msg sub --wait --topic build.main.status
hive msg sub --wait --topic <topic> --timeout <duration>
Timeout format: s (seconds), m (minutes), h (hours)
# Short timeout for quick checks
hive msg sub --wait --topic notifications --timeout 5s
# Moderate timeout for typical handoffs
hive msg sub --wait --topic agent.abc.inbox --timeout 2m
# Long timeout for slow operations
hive msg sub --wait --topic build.production --timeout 10m
hive msg sub --wait --topic <topic> --ack
Mark the received message as read so it won't appear in unread queries.
# Wait for any agent to respond
hive msg sub --wait --topic "agent.*.response"
# Wait for any build event
hive msg sub --wait --topic "build.*.status"
Use --listen mode for continuous message monitoring (outputs ALL messages until timeout):
hive msg sub --listen --topic notifications --timeout 1h
Key difference: --wait returns after ONE message. --listen continues polling and outputs ALL messages.
hive msg inbox --wait
hive msg inbox --wait --timeout 2m --ack
Equivalent to hive msg sub --wait --topic agent.<id>.inbox but auto-detects the inbox topic.
All output is JSON Lines on stdout. On timeout, a JSON status line is printed:
{"status":"timeout","topic":"agent.abc.inbox","duration":"30s"}
Exit code is 1 on timeout.
| Duration | Use Case |
|---|---|
| 5-30s | Quick handoffs between active agents |
| 1-5m | Normal agent handoffs, human review |
| 10m-1h | Build/test operations, background processing |
| 1-24h | Overnight jobs, asynchronous collaboration |
# Complete work, notify, and wait for acknowledgment
hive msg pub --topic agent.bob.inbox -m "Feature X ready. Branch: feat/x"
hive msg sub --wait --topic agent.bob.inbox.ack --timeout 2m
# Send request
hive msg pub --topic coordinator.requests -m "Need assignment: task-type-X"
# Wait for response
hive msg sub --wait --topic agent.myself.inbox --timeout 1m
if hive msg sub --wait --topic agent.bob.inbox --timeout 30s; then
echo "Message received"
else
echo "Timeout: no message received"
fi
For advanced patterns and troubleshooting, see:
references/troubleshooting.md - Common issues and solutions/hive:inbox - Check inbox for messages/hive:publish - Send messages to other agents/hive:session-info - Get session details and inbox topicWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/configThis skill should be used when the user asks to "configure hive", "setup hive for my workflow", "customize session windows", "add tmux integration", "create custom keybindings", "add user commands", or needs guidance on hive configuration, rules, windows, terminal integration, or keybindings./hcUse `hive hc` commands to track tasks and epics for agent workflows.
Like GitHub Issues but scoped to a repository and designed for machine consumption.
Use when:
- Creating work items (epics, tasks)
- Checking item status or listing open work
- Recording progress via comments
- Claiming the next actionable task for a session
- Querying epic context as a structured summary
/inboxThis skill should be used when the user asks to "check my inbox", "read my messages", "any unread messages?", "check for new messages", "see my inbox", or needs to read inter-agent messages from other hive sessions. Provides guidance on reading, filtering, and managing inbox messages.npx claudepluginhub colonyops/hive --plugin hiveOther plugins' skills for the same job