Before you start
A token and a model, as in the quickstart.One crew, one tree
Give each agent a session, and point the rest at the first one:?root=$ROOT means “this crew” everywhere — see Crews.
You do not have to keep your own membership list, and you do not have to invent
a metadata convention that will collide with someone else’s.
Give them a way to reach each other
A teammate is a function the agent can call. You answer it."coder" is
— is yours to decide; the agent only sees the description.
The switchboard
One stream carries the whole crew, and nothing else in your organization:Let the others listen without paying for it
When the person types into the room, only one agent should answer — but the others still have to know what was said, or the next handoff arrives without context.input.message cannot do this: it always starts a turn. Three agents would mean
three turns per sentence, two of them producing nothing. Use input.context:
Interrupting
A person changing their mind mid-turn is not a new message at the back of the queue:input.steer redirects the turn in flight. input.cancel stops it — and does
not undo what it already did, which is worth saying to the person before they
press it.
Passing work, not just words
Text is enough for “have a look at this”. For output, agents are on separate machines, so a file moves through you:What it cost
What this API does not do
It does not decide who speaks next. No@ syntax, no built-in router. That
is a product decision and it belongs in your switchboard, where you can log it,
change it, and explain it to a user.
It does not stop two agents editing the same file. They are on separate
machines, so they cannot — but two agents given the same job will still do it
twice. Name one owner per piece of work.
It will not scale past your session ceiling. A coordinator and three workers
are four sessions. Check GET /v1/sessions against limits before you
fan out wide.
Next
- Crews — the tree, and
?root=everywhere - Tools — what a function call can carry
- Required actions — the loop the switchboard runs on