How to Implement Agent Orchestration: Executive, Reasoning, Memory
How do I implement agent orchestration without agents calling agents in circles? Order the work by layer, make every handoff explicit and bounded, and decide in advance what one failed branch does to the rest.
Direct Answer (Quick Summary)
Implement agent orchestration by fixing the order of work before choosing agents: an executive employee plans and splits the goal, reasoning employees do the independent parts in parallel and the dependent parts in sequence, each receiving earlier results as a bounded handoff, and a memory step records what the next run should know. Decide failure behaviour up front.
Key Takeaways
- Orchestration is an ordering problem before it is an agent problem: decide who plans, who executes and who remembers.
- Only work with no dependency on another step should run in parallel; everything else runs in rounds.
- A handoff should be a titled, size-capped result, not a forwarded transcript.
- When one parallel branch fails, let its siblings finish and record their work, then stop the run loudly rather than combining a partial answer.
- A planning failure should leave the goal with the planner, never lose it.
- The memory layer runs last and writes what the next run needs, which is different from a log of what happened.
"How do I implement agent orchestration?" is usually asked by a team that already has two or three agents that each work well alone and produce a muddle together. The fix is rarely a better agent. It is a fixed order of work: one employee plans, several execute, and one step records what was learned, with explicit handoffs between them. This guide walks through that shape as we built it in OneCo, including the part most write-ups skip: what happens when one branch fails.
Orchestration is an ordering problem first
Most orchestration bugs are sequencing bugs. A writer starts before the researcher has finished. Two employees fetch the same data and disagree. A summary is produced from a step that silently failed. None of these are reasoning failures, and a stronger model does not fix them.
So before choosing tools or frameworks, answer three questions in writing:
- Who decides how the goal is split? One employee, not a vote.
- Which parts genuinely do not depend on each other? Only those run at the same time.
- Where does the run's knowledge go when it ends? Somewhere the next run will actually read.
Those three answers map onto three layers. Anthropic's engineering team describes a similar orchestrator-workers pattern in Building effective agents; the layers below are how that pattern looks once it has to run against real tools and real approvals.
The three layers and what each one owns
| Layer | Owns | Receives | Hands on |
|---|---|---|---|
| Executive | The plan: how the goal splits, in what order, who does each part | The goal, its "Done when" checks, the roster of employees who can run | A list of tasks grouped into rounds |
| Reasoning | Doing one task with tools: research, drafting, analysis, files | Its task, plus results from earlier rounds when it depends on them | A titled result and any files saved under outputs/ |
| Memory | Continuity: what the next run should know | The finished results | A summary, a project brief entry, schedule context |
In OneCo every employee has a layer, and the worker sorts a run's tasks executive first, reasoning second, memory last. Each layer also gets a short role statement in its instructions, so an executive employee is told to plan and review rather than to do the research itself. The deeper reasoning behind layered teams is in how to build an AI employee hierarchy.
How do I implement agent orchestration in practice?
Here is the sequence in OneCo's own screens, using a goal like "Compare our three main competitors' pricing pages and write a one-page brief."
- Create the employees. On the Employees page, create a research employee and a writing employee in the reasoning layer, each with its own model and connected tools. Names and roles are yours; there are no preset job titles.
- Appoint a supervisor. From Employees, "Appoint Supervisor" opens the Workspace Leadership tab, where you appoint an executive-layer employee to lead the workspace.
- Give the goal to the supervisor. In the goal composer on the dashboard, write the goal, choose the supervisor as who does it, and add "Done when" lines such as
file_present: outputs/brief.md. Choose the run's authority: Ask me, Pre-approved, or Full autonomy. - Let it ask if the goal is vague. A new goal gets one cheap clarity check. If it is too vague to plan, the run ends with a single question instead of invented work, and your answer starts the real run.
- Read the plan. The supervisor splits the goal into at most five tasks across the employees who can actually run (active, with a saved model key, in scope for the project). Tasks with no dependency share a parallel step; dependent tasks come in later rounds. A final "Combine the results" task goes back to the supervisor.
- Watch it run. The live run page shows each step, and any external write waits in Needs you unless the run's authority lets it through.
- Check the result against the checks. The goal page shows each "Done when" line as satisfied, unsatisfied, or not judged yet.
If the supervisor's planning call fails or returns something unusable, the goal stays with the supervisor, who does it alone. A planning failure costs you parallelism, not the goal.
Handoff payloads: what actually moves between layers
The handoff is where orchestration quietly degrades. Forward everything and the next employee drowns in an earlier employee's tool output; forward too little and it redoes the work.
What we pass, and what we recommend you pass in any system:
- The earlier task's title and its result, under a heading, so the receiver knows which part of the plan it is reading.
- A size cap per result. In OneCo each earlier result is cut at 12,000 characters before it reaches the next task. If a result needs more than that, it should be a file.
- Files by path, not by content. A research employee that saves outputs/pricing.csv hands on a path the writer can open in the shared workspace.
- Open questions, stated as questions. "Competitor B hides enterprise pricing" is a fact the writer needs; burying it in paragraph nine loses it.
What not to pass: raw tool results, the earlier employee's reasoning, or its whole conversation. Inside a single task, OneCo already replaces older tool results with short stubs as the run goes on, so the handoff should not reintroduce them. Why context matters for AI employees explains why more input is not better input, and the sibling piece on RAG vs context engineering goes further into what each run should see.
What happens when one branch fails
Suppose the research step runs three branches in parallel, one per competitor, and the branch for competitor C fails because the site blocks it.
There are two defensible designs:
- Fail the step. Let the other branches finish, record their work, mark the failed branch with its reason, and stop the run.
- Combine what you have. Pass two of three results to the writer and let it note the gap.
We chose the first. In OneCo, every branch in a parallel step runs to its own end; a branch that errors is marked failed with the error recorded against it, its siblings' results are kept, and then the step fails the run with that error. Tasks already finished are skipped when the run is retried, so a retry redoes competitor C, not A and B.
The reason is that "combine what you have" produces a confident brief about three competitors that was written from two. That is the textbook silent failure. If partial results are acceptable for your goal, say so in the goal ("if a site blocks you, note it and continue"), so the branch reports a gap instead of throwing an error.
One case is different. If a branch reaches an action that needs approval, the run is held, not failed. A hold is a question waiting for a person, and treating it as an error would turn every approval into a retry. Recovery patterns for genuine failures are in how to recover from failed AI executions.
The memory layer is not a log
A log records what happened. Memory records what the next run should do differently. In OneCo, when a run completes, a summary of it is saved to the participating employees' memory, and later runs retrieve the most relevant past summaries. A run started with "Update the project brief when done" also appends its result summary to the project's brief, which every new run in that project reads. Scheduled runs keep their own conversation thread, so each tick sees what the last one did.
A useful test: if you deleted the memory step, would the next run behave any differently? If not, it is a log, and it belongs in the audit trail instead.
Mistakes we see most often
- Agents calling agents freely. Without a planner, you get loops and duplicate work. Coordination patterns that avoid this are in how AI employees coordinate across workflows.
- A supervisor that does the work. The executive layer should plan and combine. If it is also researching, you have one overloaded employee and no parallelism.
- Parallelising dependent work. Two branches that both need the same lookup will both do it, and may disagree.
- No cap on plan size. We cap a plan at five tasks. More than that is usually a sign the goal should be several goals.
When not to orchestrate at all
Orchestration has a cost: more model calls, more handoffs, more places to fail. A goal that one employee can finish with its tools in a few steps should go to one employee. The trade-off is laid out in when to use one AI employee vs multiple, and the mechanics of a single employee's run are in how AI employees actually work. Start with one, split when a task has parts that are genuinely independent, and add the memory step once runs start repeating each other. For a wider view of the patterns, see multi-agent workflows explained.
Frequently Asked Questions
Should every employee in an orchestrated run use the same model?
No. Each employee keeps its own provider and model, so a planner can run on a stronger model and research branches on a cheaper one. The main constraint is that every employee in the plan needs a saved key for its provider, otherwise it is left out of the roster the planner can assign.
How many tasks should a supervisor split a goal into?
Few. OneCo caps a plan at five tasks, and a plan limit on your subscription can lower that. If a goal seems to need more, it is usually several goals that each deserve their own Done when checks.
What happens if the planning step itself fails?
The goal stays with the supervisor, who does it alone. You lose parallelism for that run, but not the goal, and nothing is half-assigned to employees who never started.
Can a reasoning employee see what another branch is doing while both run?
No. Branches in the same parallel step run independently and only see results from earlier rounds. If one task needs another's output, put them in different rounds rather than in the same parallel step.