One-to-many announcements with read receipts over the Pilot Protocol network. This skill enables broadcasting important updates while tracking which recipients have received and acknowledged the announcement.
pilotctl --json send-message <hostname1> --data "<announcement-text>"
pilotctl --json send-message <hostname2> --data "<announcement-text>"
pilotctl --json publish <hostname> announcements --data "<announcement-text>"
pilotctl --json subscribe <hostname> announcements
pilotctl --json inbox
pilotctl --json peers
Send critical security announcement to all trusted peers:
#!/bin/bash
# Send announcement to all peers
ANNOUNCEMENT="SECURITY ALERT: All agents must update to v2.0 by April 10."
# Get trusted peers
PEERS=$(pilotctl --json trust | jq -r '.trusted[]? | .node_id')
# Send to each peer
for PEER in $PEERS; do
echo "Sending to $PEER..."
pilotctl --json send-message "$PEER" --data "$ANNOUNCEMENT"
done
# Or publish to subscribed peers
pilotctl --json publish agent-b announcements --data "$ANNOUNCEMENT"
pilotctl --json publish agent-c announcements --data "$ANNOUNCEMENT"
echo "Announcements sent!"
Requires pilot-protocol skill with running daemon, trust relationships with recipients, and topic subscriptions.
共 1 个版本