Skip to main content

Loading the visual lab…

#multi-agentsAgentic AI

Multi-agents: planner, workers, verifier. A DAG that beats the monolithic agent.

What you'll play with

  1. Welcome to #multi-agents. A monolithic agent (see #react-loop) is a LLM that loops on its own. Here you decompose: a Planner (indigo, on top) splits the goal; N specialized Workers (green, in the middle) run in parallel; a Verifier (gold, at the bottom) checks and aggregates. This pattern (AutoGen, CrewAI, LangGraph, Claude Sub-agents) beats the monolithic on long tasks, in both quality and time. On screen: the DAG at rest — three dim nodes, fan-out and fan-in edges as dashed grey lines.
  2. Let's load a goal. Type /scenario article: the Planner receives 'Write a blog article about RLHF', and three Workers appear (researcher, writer, critic).
  3. The Planner steps up. Type /plan: it pulses indigo, dispatches roles to the Workers (small pink dots streak along the edges) and hands off.
  4. The Workers get to work. Type /step: the green spheres pulse blue (busy), in parallel by default — so at the same time, one tick for the three.
  5. Another /step. The Workers finish (solid green = success) and their dots streak toward the Verifier (fan-in). The banner switches to VERIFICATION.
  6. /step one last time. The Verifier accepts, the phase moves to AGGREGATION and then DONE (green banner). The final output is the assembled article.
  7. Let's switch to a richer scenario. Type /scenario code-review: three new Workers appear (syntax, security, style) to audit a Python file.
  8. Let's simulate a Verifier reject. Type /retry: on the next round the Verifier will reject the output, the red feedback edge will light up, and the Workers will loop back for iteration 2.
  9. Your turn. Try: /run to play the whole retry through; /workers 5 then /strategy parallel then /run to see a massive fan-out (5 Workers in a single tick); /strategy sequential to measure the cost without parallelism; /inspect worker-2 to read an agent's output; /reset to start over. Next: the #planning-reflection channel (Premium) — the Planner becomes reflective — and #slash-commands (Premium) — how these patterns become shortcuts in Claude Code and Cursor.

Channel commands

  • /scenario <article|translation|code-review>Loads a full scenario (goal + specialty pool).
  • /planThe Planner splits the goal and assigns roles to the Workers.
  • /stepAdvances one notch in the orchestration.
  • /runPlays the whole orchestration through to done or failure.
  • /workers <n=2..5>Changes the number of active Workers (2..5).
  • /strategy <parallel|sequential>Simultaneous fan-out (parallel) or one after the other (sequential).
  • /retryForces the Verifier to reject on the next check (retry).
  • /inspect <id>Shows an agent's last message (planner, worker-1..N, verifier).
  • /resetResets the DAG (article, 3 workers, parallel).

Glossary

multi-agents
Orchestration pattern where several LLMs (or several roles of a single LLM) cooperate on a complex task. Each agent has a role (planner, worker, verifier, critic…) and a specialty. On long tasks, a multi-agents DAG beats a monolithic agent in both quality and time.
planner
Agent at the top of the DAG that splits the goal into sub-tasks and assigns roles to the Workers. Does not do the work itself: it steers. Anthropic calls this pattern orchestrator-workers in Building effective agents (2024).
worker
Executor agent, single-minded: researcher, writer, tester, translator, security auditor… Receives a sub-task from the Planner and returns a partial deliverable. Can be a distinct LLM, the same LLM with a role prompt, or a plain deterministic function.
verifier
Agent at the bottom of the DAG that checks and aggregates the Workers' outputs. If it spots a defect (consistency, schema, tone) it sends a directive back to the Planner: that is the retry loop. A LLM Verifier is often a smaller and cheaper model than the Workers.
DAG
Directed graph with no cycle: nodes are the agents, edges are message exchanges. Being acyclic guarantees we can unroll it in a finite number of steps. A cycle (feedback / retry) is modeled as an extra iteration, not as a cyclic edge of the DAG.
fan-out / fan-in
Fan-out: one node (the Planner) sends a task to N nodes in parallel. Fan-in: N nodes converge their outputs onto one (the Verifier). This is the pattern that yields the time saving of multi-agents.
AutoGen
Microsoft framework (2023) that popularized multi-agent conversation: each agent has a role system prompt and they exchange messages until they converge. Often cited as the first mainstream multi-agent framework.
CrewAI
Python framework (2024) inspired by AutoGen but process-oriented: you define a Crew with roles (Researcher, Writer, Reviewer), tasks and a flow. Pragmatic approach, widely used in production.
LangGraph
LangChain library (2024) that explicitly models orchestration as a state graph. Well-suited to conditional workflows (retry, branching, human-in-the-loop). Used by many agent stacks in production.
Claude Sub-agents
Claude Code feature (Anthropic, 2024) that lets you define specialized sub-agents (test-runner, refactor, doc-writer…) invoked by the main agent through /agent. A direct application of the orchestrator-workers pattern.

Other channels in Agentic AI

  • #react-loopAn agent's ReAct loop: Thought → Action → Observation, live.
  • #tool-callingTool calling (function calling / MCP): the JSON that makes the LLM act.
  • #slash-commandsSlash commands, Claude Code / Cursor style: templates, arguments, chaining.
  • #context-memoryContext window and agent memory: count, truncate, summarize, index.
  • #planning-reflectionPlanning, reflection and self-correction: from 60% to 90% success.
  • #multi-agentsMulti-agents: planner, workers, verifier. A DAG that beats the monolithic agent.