Multi-agent systems
Splitting work across several agents that coordinate toward a goal.
A multi-agent system splits work across several agents that coordinate toward a goal. One agent might plan, another might edit code, a third might review the diff. This can help when the jobs are naturally different, or when you want a second look at a risky change. It can also multiply cost and confusion if the agents do not have clear roles.
Give each agent a job, a tool list, and a way to hand off a result. A shared trace and a shared memory beat a pile of private chats that nobody can reconstruct. Decide who is allowed to change the world — usually one writer at a time — and let the others comment or prepare work.
Start with two agents and a human in the loop, not a society. If a single agent with better tools would do, skip the orchestra. Multi-agent designs earn their keep when specialization or review actually improves the outcome, not when they only look impressive in a diagram.
When a run fails, you should be able to say which agent failed and on which step. If you cannot, the coordination is too implicit to ship.
Orchestrator-worker pattern
A design where a lead agent splits a task, delegates parts to sub-agents, and merges their results.
In the orchestrator-worker pattern, a lead agent breaks a task into pieces, hands each to a sub-agent that works in its own fresh context, and combines their condensed results. Each worker sees only its piece, which keeps contexts small and focused, and independent pieces can run in parallel.
It works well for broad, parallel, reading-heavy jobs such as research across many documents or reviewing many files. It costs more tokens, because each worker rebuilds context, and it is harder to debug, because failures can hide in handoffs. Give workers precise briefs and a fixed format for returning results, and trace each worker so a bad merge can be traced to its cause.