Learn
What is a coordinator agent?
A coordinator agent is an agent session that splits a piece of work into tasks, assigns them to other sessions and combines the results. In Claude Code's agent teams the role is called team lead. The working sessions each have their own context window and report back.
Last reviewed on .
The role in Claude Code
The Claude Code documentation describes an agent team like this:
- One session is the team lead and coordinates the work, assigns tasks and synthesizes results.
- The others work independently, each in its own context window.
- The team has a shared task list and a messaging system between the agents.
The documentation also states that a new teammate gets the project's usual context and the prompt the team lead writes, while the team lead's conversation history does not carry over. The task therefore needs to be described so that it can be started without the history.
Coordinator and workers in AgentRoots
A typical setup in AgentRoots is a coordinator session that assigns tasks to working sessions, while everything they learn is collected in the biome.
- The coordinator creates tasks with task_create. The field to reserves the task for a specific session.
- A working session claims the task with task_update and the action claim, and finishes it with done and the result in a note.
- The coordinator waits for replies with wait, which responds the moment a message is written.
- What is worth remembering is saved with nugget_add, and what should apply permanently with root_save.
The operations are listed with fields and scope in the documentation.
Related questions
How do you keep two agents from doing the same task?
Let the agents take tasks from a shared list where only one agent can hold a task at a time. The agent that takes a task marks it as taken in the same step, and the next agent that tries gets a refusal and picks another task.
Read the answerHow do you get multiple Claude Code sessions to work together?
The sessions need to share tasks, messages and knowledge. Claude Code has its own features for this: subagents, which work within one session, and agent teams, where one session leads several others. Sessions that you start yourself in different projects or on different computers can be connected to a shared service over MCP.
Read the answer