set_orchestrator
The CodePanel MCP tool that sets the model and reasoning effort of the orchestrator that merges reviews and posts them to GitHub.
On this page›
set_orchestrator chooses the model that merges the reviewers' findings and posts the review to GitHub, and its reasoning effort. It returns the orchestrator's agentId and saved member. It needs the panel:write scope. A panel has exactly one orchestrator, so this replaces its model rather than adding a seat.
When to call it
- To change the orchestrator's model or effort. Its prompt grows with what the reviewers report rather than with the diff, so it is the seat where a stronger model or higher effort is most often worth the cost.
- To give a panel an orchestrator when it has none. The call then creates one, named
Orchestrator. - Not to add instructions. Those go through
update_panel_memberwithinstructions. That tool also renames the seat and setsfollowTier.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
panelId |
string | yes | Panel id, from get_panel |
provider |
string | yes | Provider id, from list_models |
modelId |
string | yes | Model id exactly as list_models reports it |
reasoningEffort |
none or low or medium or high or xhigh or max |
no | How hard the model should think |
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.
The panelId comes from get_panel, and provider with modelId from list_models. Unlike update_panel_member, both are always required.
Leave out reasoningEffort and the existing orchestrator keeps its effort. A panel with none gets medium. If the model changes, the seat stops following a cost tier, because you picked the model yourself. Sending the model it already has leaves that as it was.
Errors a caller can hit:
| Message | Cause |
|---|---|
<model> is not available to your <provider> key. Refresh the model list in Settings. |
A model your key did not report |
No working API key for <provider>. Add one in Settings first. |
No valid key, and no credits, for that provider |
Unknown provider: <provider> |
A provider id CodePanel does not have |
Panel not found |
An unknown panelId, or one that is not yours |
What it returns
agentId: the orchestrator's id. It is the same id when a panel already had one.member: the orchestrator asget_panellists it, with the model, effort and review totals so far.
The change applies to later rounds.
Examples
These responses come from a test account on a local backend. The model is seed data.
Raise the orchestrator's effort
{
"panelId": "vs70ed0fnnwbezvqqcyskr6xvn8j7syc",
"provider": "anthropic",
"modelId": "claude-opus-5-5",
"reasoningEffort": "high"
}
{
"agentId": "k5775rqpcnqr3m3mz31d47xr5h8j7kcm",
"member": {
"_id": "k5775rqpcnqr3m3mz31d47xr5h8j7kcm",
"avatar": "detective",
"callable": true,
"description": "Consolidates the panel's reviews and posts to GitHub",
"isDefault": false,
"modelId": "claude-opus-5-5",
"name": "Orchestrator",
"priced": true,
"provider": "anthropic",
"providerName": "Anthropic",
"reasoningEffort": "high",
"slug": "orchestrator",
"systemPrompt": "You are consolidating several independent code reviews of the same change. Merge duplicates, note where reviewers disagree and say which view you find more credible, drop anything you judge to be a false positive, and order what remains by real-world impact. Be decisive: the author should be able to act on this without reading the individual reviews.",
"toolsSupported": true,
"totalCostUsd": 0.5279999999999999,
"totalReviews": 6,
"warnings": []
}
}
The agentId matches the orchestrator in get_panel's sample: the existing seat was edited, and its totalReviews carried over. The systemPrompt is the built-in one. You can add to it with instructions, never replace it.
The same step without MCP
| Surface | Form |
|---|---|
| CLI | codepanel panel orchestrator --provider <p> --model <m>, with --panel and --effort (CLI) |
| HTTP API | POST /panels/orchestrator |
What the server tells your agent
The description your agent reads when it lists the tools:
Choose the model that consolidates the panel's reviews and posts to GitHub.
Related
get_panel: the orchestrator's current model,readyandcallable.update_panel_member: change its instructions or tier following.apply_panel: sets the orchestrator's model along with the reviewers, from a goal.- Reviewers and panels: what the orchestrator does.
- MCP server: install, sign-in and every other tool.