Articles

Why a team of agents should be organised like a team of people

· First published on LinkedIn

With agents, the first instinct is one capable agent that does everything: it reads the request, writes the requirement, plans, codes, tests and says “done”. It works in a demo. On a real project it drifts. At best it duplicates code, at worst whole scenarios stop working. Either way, you stop being a vibe coder and become a vibe cleaner and debugger, which is not what you want.

There are three common ways to organise agents:

  • universal agent with a long prompt, or
  • multi-step (LangGraph) with transitions written in code, or
  • an organisation of roles, where every queue of work has an owner.

Why do so many agent setups end up with the third way? The short answer: it works, and people proved it long before agents did. Human teams are the oldest multi-agent systems there are, and teams of agents prove the point again. Research projects such as MetaGPT and ChatDev go as far as modelling a whole software company: a product manager, an architect, programmers, testers. So we set up these roles:

  • analysts read sources and write requirements;
  • an analysis coordinator decides what to analyse next and when the analysts agree;
  • a delivery coordinator plans the work and decides when it is ready to ship;
  • a coder changes the code;
  • a tester checks the acceptance criteria;
  • a devops builds and deploys.

Whatever falls outside every role goes to a person.

The names matter less than one rule: every decision has exactly one owner, and the owner is a role, not a line of code. Each role has its own memory and its own soul: a file a person writes about its character, priorities and way of working, plus the lessons it keeps from finished runs. A coordinator is a model that owns its queue. It reads the state, chooses from a closed set of decisions and writes down why. Underneath, a deterministic engine only moves events between queues, retries and keeps time. It never decides.

We learned this the hard way. Our first version was a pipeline runner with workers, and the decisions lived in the runner’s code: when to replan, when to give up, when to ask. Every surprising outcome had the same explanation, “the code did it”, and nobody could explain it better or improve it. Once the decisions moved into roles, each of them got an author, a reason in the log and a place to fix it.

Two old ideas explain why this works. Conway’s law (Melvin Conway) says that a system copies the communication structure of the organisation that builds it, so an organisation of agents deserves as much design as the code. And separation of duties says that whoever writes should not be the only one who checks.

The price is real. Coordinators are models, and every decision they make - costs tokens. One bad planning decision can be expensive, so we count what each decision costs. That will be the subject of a later post.

The next post will be about the first role in the chain, the analysts, and why they are required to agree with each other.

One agent for everything, or a team with owners. On the left, one agent hops between a requirement, a plan, code and a test; the cards pile up and "done" appears next to "checked by whom?". On the right, six roles light their decisions in turn, from drafted to deployed, and a question outside every role goes to a person.