create_team
The CodePanel MCP tool that makes a team: an orchestrator, the agents it may hand subtasks to, delegation rules, and caps every run is held to.
On this page›
create_team makes an agent app team: an orchestrator that splits a task, the coding agents it may hand subtasks to, rules that send a matching subtask to one of them, and the caps every run of the team is held to. It needs the agents:write scope, as editing a coding agent does: a team's caps decide what a run may spend.
When to call it
- To split work across models: a strong orchestrator handing subtasks to cheaper workers, or a tester on another provider.
- To give a repository its own team: pass
repo, and a task on that repository gets this team.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Unique per account, ignoring case |
orchestratorId |
string | yes | A coding agent with role orchestrator, from list_coding_agents |
memberIds |
array of strings | no | Coding agents it may hand subtasks to, from list_coding_agents; not the orchestrator |
delegation |
array of objects | no | Rules that send a matching subtask to a member; the first match decides, else the orchestrator picks |
maxDepth |
integer | no | How deep subagents may hand work down: 1 to 4, default 2 |
maxRunning |
integer | no | Subagents running at once: 1 to 10, default 3 |
maxSubtasks |
integer | no | Subtasks per run: 1 to 50, default 12 |
runUsd |
number | no | Hard cap on the whole tree's spend per run, USD: 0.01 to 1000, default 20 |
repo |
string or null | no | owner/name: the team a task on that repository gets; null for none |
isDefault |
boolean | no | The account's team for a task that names none |
reviewSubtasks |
off or blocking |
no | blocking: review each subtask's diff before it merges (a model call per subtask, metered to the run), and a finding at the gate level sends it up a step with the findings in its next brief; off (the default): merge on passing checks |
It writes: the server marks it readOnlyHint: false, so a client that asks before writes asks here.
name and orchestratorId are required; the orchestrator must be a coding agent with the orchestrator role. memberIds are the agents it may hand work to, each once, never the orchestrator. Each delegation rule is one of:
match |
Field | Matches a subtask that |
|---|---|---|
path |
glob |
writes only inside the glob, e.g. docs/** |
work |
work |
is that kind of work: code, tests, docs, fix or research |
context_over |
tokens |
needs more context than that |
cost_under |
usd |
is estimated below that many dollars |
Each rule names a member as agentId; the first that matches decides, and with none the orchestrator picks. The caps default to depth 2, 3 agents at once, 12 subtasks and $20 a run. The account's first team becomes its default.
What it returns
{ team }, with its id and problems. Undo it with remove_team.
The same step without MCP
| Surface | Form |
|---|---|
| HTTP API | POST /autopilot/teams with the agents:write scope |
| CLI | codepanel teams create --name <n> --orchestrator <agentId> [--members id,id] [--rules <json>] |
What the server tells your agent
The description your agent reads when it lists the tools:
Use it to have a task split across several agents. Pass name and orchestratorId; optional memberIds, delegation, the caps (maxDepth, maxRunning, maxSubtasks, runUsd; defaults apply), repo, isDefault and reviewSubtasks (off by default). The account's first team becomes its default. The caps are enforced in code on every run, never by prompt. Needs the agents:write scope. Returns { team }, with its id and problems. Undo with remove_team.
Related
list_coding_agents: agent ids and roles.update_team: change it later.- MCP server: install, sign-in and every other tool.