Skip to main content

Messaging

Named agents exchange structured messages — direct messages for fire-and-forget, request/reply for synchronous coordination.

msg

Send a direct message to a session. Target can be a session ID or name.

inbox

Read messages from a session’s inbox. Shows direct messages and pending requests.

request

Send a request and block until a reply arrives. Synchronous coordination between agents.

reply

Reply to a pending request. Request ID comes from cw inbox or message.request events.

listen

Stream all message traffic in real-time. Shows messages, requests, and replies as they happen.

Example: Coordinated Agents