Read any multi-agent framework in one paragraph

L1ScreenConcept6 minScreenML breadth

RolesAgent Systems EngineeringDeveloper Experience and Education

The question

A new multi-agent framework ships every few months, each with its own vocabulary. Give the method you use to understand a new one quickly, and name the part of every such system where the hard bugs live.

Answer it first, aloud or on paper. Then open the answer.

The answer

Show short answer

Map the framework onto four primitives: the agent, the handoff, the shared state and the orchestrator. Every framework picks a default on each axis, and the rest is surface syntax. The agent is a system prompt plus tools and is stateless, the handoff is a structured transfer of control, the orchestrator decides who runs next, and the shared state is the only stateful part of the system. That is where the difficult bugs sit: memory poisoning, message ordering, versioning and write contention.

Show full answer

The four axes

PrimitiveDefinitionCommon implementations
AgentA system prompt, a tool list and a model, with no memory of its ownInterchangeable with any agent that has the same prompt and tools
HandoffA structured transfer of control from one agent to anotherA tool that returns the next agent, a graph edge with a condition, or a speaker-selection function
Shared stateAny data that more than one agent reads, and sometimes writesA full message pool, a topic-keyed blackboard, a typed state with reducers, external memory
OrchestratorWhoever decides who speaks nextA static graph, a model that picks the speaker, the current agent's handoff call, or a scheduler over a queue

Three questions answer most of it

  1. Does the orchestrator trust the model to route, or does code pin the route?
  2. Is the shared state the full history, or a projected view per role?
  3. Can agents change each other's prompts, or only hand off?

The lesson claims these three answer about 80 percent of which framework fits a problem. You stop shopping for the best framework and start designing for the axis you care about.

The stateless insight

The agent is a function of its prompt and tools. The handoff is a function call. The orchestrator is a scheduler. Only the shared state carries anything from one step to the next, so every interesting bug is a shared-state bug. A framework that hides the state pushes the problem to the caller. A framework that centralizes it makes the state inspectable and moves the coordination cost into the state implementation.

What is not a primitive

Durable checkpointing, human approval of a handoff, per-agent token budgets and tracing are all built on top of the four. They are design decisions, not new axes. If a framework claims a fifth primitive, check whether it is a flavor of shared state you have not seen.

Follow-ups

  1. L1ScreenTwo agents have the same prompt and the same tools. How do they differ?

    Show expected answer

    they do not, because everything that looks like per-agent state is in the shared state or the handoff.

  2. L2WorkingName the three ways a handoff is implemented.

    Show expected answer

    a tool that returns the next agent, a graph edge selected by a condition, and a selector function that picks the next speaker from a pool.

  3. L2WorkingFull pool or projected state, which scales further and what does it cost?

    Show expected answer

    projected state scales further, and it costs an up-front schema so that each role's view is defined.

  4. L3SeniorBefore adopting a framework, what do you write first?

    Show expected answer

    its four-primitive mapping, and if you cannot write it, the docs are incomplete or the framework is inventing a primitive.

Wrong answers

Show the wrong answers that interviewers hear
  • “Each framework has its own architecture, so learn them one at a time.”

    The architectures are points in one four-axis space, and learning the axes once reads every release.

  • “The agents hold the memory.”

    The agent is stateless by definition, and memory lives in the shared state or in the handoff payload.

  • “The orchestrator is the smart part, so pick the framework with the best one.”

    The orchestrator is a scheduler with four flavors, and the choice depends on how much you trust the model to route.

Taught in

The primitive model lesson builds the four primitives and maps the current frameworks onto them.