When to reach for it
- Perspectives must be visibly merged.
- Discussion is part of the solution process.
- Roles need to interact flexibly.
A shared thread. Everyone speaks.
Agents communicate in a shared conversation space, building upon each other's inputs in a round-robin, random, or simultaneous manner.
Agents broadcast into a shared conversation thread. Turns are round-robin or dynamic, but every message is visible to all.
| Turn | Speaker | Message | Builds on |
|---|---|---|---|
| 1 | Product | Proposes saving the card after the first purchase | The task |
| 2 | Engineering | Store a token from the payment provider, never the card number | Turn 1 |
| 3 | Legal | Needs explicit consent and a way to delete the card | Turns 1 and 2 |
| 4 | Product | Revised proposal: opt-in checkbox, token only, “remove card” in the account | Turns 2 and 3 |
| 5 | Manager | All three agree. The chat ends | The whole thread |
def group_chat(agents, task, max_rounds=3):
thread = [("user", task)] # one shared thread, visible to all
for _ in range(max_rounds):
# round-robin; a manager could pick the speaker
for name, agent in agents.items():
# every agent reads the whole thread
thread.append((name, agent(thread)))
if manager_says_done(thread):
break
return summarize(thread)When to reach for it
When it backfires
Each agent sees the full history of every other agent. After 10 turns, every message carries 10 prior responses.
Countermeasure
Use a rolling summary window. Keep only the last K messages or a compressed narrative of earlier turns.
An eager agent replies to every message, crowding out quieter specialists. The final answer reflects one voice.
Countermeasure
Implement turn-taking rules or a speaking budget per agent. Require explicit mentions to invite a response.
Threat exposure
Adopting this pattern opens these attack surfaces. Each links to its entry in the threat model.
Full threat model →Search patterns, frameworks, and pages.