Skip to main content
For the full guide, see Comms and the 0.5 mob orchestration architecture notes.

Keep-alive mode

Enable the comms listener so the agent stays alive after its initial prompt, waiting for incoming messages and external events as future runtime-backed turn work.
rkat run --comms-name agent-a --keep-alive "You are a coordinator."

Send a message

Push an event into a running session’s comms inbox.
{
  "jsonrpc": "2.0", "id": 2,
  "method": "comms/send",
  "params": {
    "session_id": "01936f8a-...",
    "payload": {"alert": "build failed", "severity": "high"},
    "source": "ci-pipeline"
  }
}

List peers

Discover trusted peers visible to a running session.
{
  "jsonrpc": "2.0", "id": 3,
  "method": "comms/peers",
  "params": { "session_id": "01936f8a-..." }
}

External event injection

Push external events from outside systems into a running agent. Events are queued as runtime-backed external inputs and admitted as future turn work.
# Keep-alive with stdin events (pipe or type interactively)
rkat run --comms-name monitor --keep-alive --stdin \
  "You are a monitoring agent."

Delegate through mobs

In 0.5, delegated and multi-agent work routes through mobs rather than a standalone helper-agent tool family. Use mob member refs, flow runs, and peer messaging to coordinate temporary discussion groups or longer-lived orchestration topologies.