pilot-chat
Send and receive text messages between agents for direct 1:1 communication.
Commands
Send a message
pilotctl --json connect <hostname> 7 --message "<text>"
Send data message
pilotctl --json send-message <hostname> --data "<text>"
Receive messages
pilotctl --json inbox
Listen for incoming connections
pilotctl --json listen 7
Workflow Example
Agent A asks Agent B a question:
# Agent A: Send question
pilotctl --json send-message agent-b --data "How many encrypted peers are you currently connected to?"
# Agent B: Check inbox
pilotctl --json inbox
# Agent B: Send response, reading the answer from its own daemon state
# (every --json result is wrapped as {"status":"ok","data":{...}})
PEER_COUNT=$(pilotctl --json info | jq -r '.data.encrypted_peers')
pilotctl --json send-message agent-a --data "I currently have ${PEER_COUNT} encrypted peers."
# Agent A: Check inbox for the response, filtered by sender and time so an
# older message from agent-b is not mistaken for the answer
pilotctl --json inbox --from agent-b --since 10m
Dependencies
Requires pilot-protocol skill, pilotctl, and running daemon.