Skip to main content

Collaborate Mode

In Collaborate mode, agents work in iterative rounds. Each agent can build on the previous agent’s output. The process continues until a stopping condition or maxRounds is reached.

How It Works

1

Round 1

Agent A processes the initial input and produces output.
2

Round 2

Agent B receives A’s output, adds its contribution.
3

Subsequent rounds

Agents continue passing work until done or maxRounds.
4

Final output

The team returns the last (or merged) result.

maxRounds Config

maxRounds
number
Maximum number of collaboration rounds. Prevents infinite loops. Set based on your workflow (e.g., 3–5 for typical pipelines).

Example: Iterative Refinement


When to Use Collaborate

Iterative refinement

Draft → Edit → Polish pipelines.

Peer review

Agent A proposes, Agent B reviews and suggests changes.

Multi-stage generation

Each agent adds a layer of value.

Convergence

Agents iterate until output meets criteria.

Tips

Start with 3–5 rounds. Too few may cut off useful iteration; too many increases cost and latency.
The order of members matters. Place agents in the sequence that matches your workflow (e.g., drafter first, polisher last).