/hive:publishfrom hive
Sends inter-agent messages, broadcasts notifications, and hands off work across hive sessions using the `hive msg pub` command.
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.
Send messages to other agents, broadcast to multiple sessions, or publish notifications to topic-based channels.
Messages are published to named topics. The sender is auto-detected from the current hive session context. Each message includes sender ID, timestamp, content, and topic(s).
Output: JSON confirmation line with status, resolved topics, and sender.
hive msg pub --topic <topic> -m "message content"
Examples:
# Send to specific agent's inbox
hive msg pub --topic agent.abc123.inbox -m "Task completed, ready for review"
# Send to multiple topics
hive msg pub -t agent.123.inbox -t agent.456.inbox -m "Important update"
echo "Status update" | hive msg pub --topic notifications
cat report.txt | hive msg pub --topic reports
hive msg pub --topic agent.abc.inbox -f handoff-context.md
hive msg pub --topic <topic> "message content"
Note: Prefer -m over positional args to avoid flag collision with single-character messages.
# Broadcast to all agent inboxes
hive msg pub -t "agent.*.inbox" -m "System maintenance in 5 minutes"
Wildcard * matches any characters within a segment. Topics are expanded at publish time.
Only one source may be used per publish:
-m / --message flag (recommended)-f / --file flagAn error is returned if multiple sources are provided.
Agent inboxes follow: agent.<session-id>.inbox
# Find session IDs
hive ls
# Send to specific agent
hive msg pub --topic agent.abc123.inbox -m "Message"
Create any topic name for specific use cases:
hive msg pub --topic deploy.started -m "Deployment initiated"
hive msg pub --topic build.events -m "Test suite running"
agent.<id>.inbox - Direct messages to agents<domain>.<event> - Event notifications (build.started, test.failed)<feature>.<channel> - Feature-specific channelsAvoid generic names, special characters besides ., -, _.
# Complete work and notify next agent
hive msg pub --topic agent.xyz789.inbox -m "Auth implementation complete. See PR #123. Tests passing."
hive msg pub \
-t agent.abc.inbox \
-t agent.xyz.inbox \
-t coordinator.updates \
-m "Feature X ready for review"
go test -v ./... | hive msg pub --topic test.results
hive msg pub --topic test.channel --sender "custom-agent-id" -m "Test message"
For troubleshooting, advanced patterns, and coordination workflows, see:
references/troubleshooting.md - Common issues and solutions/hive:inbox - Check inbox for messages/hive:wait - Wait for messages with timeout/hive:session-info - Get session details and inbox topicWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
inter-agent-messaging, publish, broadcast, notifications, hive, coordination
npx claudepluginhub colonyops/hive --plugin hive6 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./waitThis skill should be used when the user asks to "wait for message from agent X", "block until response", "wait for handoff", "synchronize with other agents", "wait for acknowledgment", or needs to block execution until messages arrive on specific topics with configurable timeout./session-infoThis skill should be used when the user asks "what's my session ID?", "show my inbox topic", "get session info", "what session am I in?", "my agent ID", or needs to retrieve current hive session details for messaging coordination or debugging.Other plugins' skills for the same job