Skip to content
Handbook navigation

Full-access lesson

Swarm Patterns

Two agents in a retail support swarm can each make the right decision and still trap a customer. The returns agent sees that the order the customer wants to "return" has not been delivered, and correctly hands the conversation to the order-changes agent. The order-changes agent sees the word "return" in the history and, just as reasonably, hands it back. Nobody supervises either choice, so the conversation bounces until a turn limit stops it. The obvious guard, stopping any conversation that returns to an agent it has just left, would also cut off one real customer in twenty: six of τ-bench's 115 retail test conversations legitimately go back to a specialist they already visited.

The complete curriculum

All 12 volumes, companion resources, interviews, and architecture reviews.

Executable engineering practice

Subscriber-only Python, Java, TypeScript, and SQL labs in the isolated runner.

Swarm Patterns | KnowledgeOS