CodePanel
update_team

update_team

The CodePanel MCP tool that changes a team's agents, rules, caps or repository and returns it before and after, so a second call undoes it.

On this page›

update_team changes a team's orchestrator, members, delegation rules, caps, repository, default, or whether each subtask is reviewed before it merges. It needs the agents:write scope. A run reads its team once, when it starts, so an edit applies to the next run, not one already running.

When to call it

  • To tighten or loosen a team's caps: fewer agents at once, a lower run budget.
  • To move a repository to another team: clear repo on one (null), then set it on the other.
  • To review each subtask before it merges: set reviewSubtasks to blocking. The runner reviews each subtask's diff with the repository's review brief on the subtask's own model, through its grant, so the review costs a model call per subtask, metered to the run. A finding at the gate level moves the subtask one step up the team with the findings in its next brief. get_run shows each subagent's review: its verdict, cost and why. A review that cannot run (the member's budget is spent, or its model call fails) or whose reply cannot be read also blocks and moves the subtask up, so leave room for one review call in each member's budget. off, the default, merges a subtask on passing checks alone.

Inputs

Input Type Required Description
teamId string yes Id of a team, from list_teams
name string no Unique per account, ignoring case
orchestratorId string no 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 and destructiveHint: true (it can change what is already there), so a client that asks before writes asks here.

Pass teamId and only what changes. memberIds and delegation replace the lists whole. Removing a member also requires removing the rules that name it. repo: null clears the repository. Setting isDefault: true takes the default from the account's other team.

What it returns

{ before, after }. A second call with the values from before undoes it.

The same step without MCP

Surface Form
HTTP API POST /autopilot/teams/update with the agents:write scope
CLI codepanel teams update <teamId> [--max-running n] [--repo owner/name|none] [--review-subtasks off|blocking] ...

What the server tells your agent

The description your agent reads when it lists the tools:

Use it to change a team's orchestrator, members, rules, caps, repository, default, or whether each subtask is reviewed before it merges (reviewSubtasks: off or blocking). Pass teamId and any field to change; memberIds and delegation replace the lists whole; repo null clears it. Omitted fields stay. An edit applies to the next run, not one already running. Needs the agents:write scope. Returns { before, after }: a second call with the values from before undoes it.

Last updated