update_coding_agent
The CodePanel MCP tool that changes a coding agent's model, role, mode ceiling, rules or budget and returns it before and after, so a second call undoes it.
On this page›
update_coding_agent changes one coding agent and returns it before and after. It needs the agents:write scope.
When to call it
- To switch the model: pass
providerandmodelIdfromlist_models. - To tighten or loosen a run:
modeCeiling,rulesPresetorbudgetUsd. - To run it on another tool:
harness, such ascodexto compare Codex CLI with CodePanel's loop on the same tasks. - To undo your own change: pass the old values from
before.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
agentId |
string | yes | Id of a coding agent, from list_coding_agents |
name |
string | no | Unique per account, ignoring case |
role |
orchestrator or worker or tester or fixer or researcher |
no | |
provider |
string | no | Provider id, from list_models |
modelId |
string | no | Model id exactly as list_models reports it |
modeCeiling |
ask or auto or autopilot or full_access |
no | The most autonomous mode a run of this agent may use; default auto |
rulesPreset |
strict or standard or open |
no | Default standard |
reasoningEffort |
none or low or medium or high or xhigh or max or null |
no | |
instructions |
string or null | no | |
budgetUsd |
number or null | no | |
harness |
codepanel or claude_code or codex or gemini_cli or opencode |
no | What runs the agent: codepanel (CodePanel's own loop, the default) or an external agent CLI the local runner drives headless with its model calls through CodePanel's proxy: claude_code (Anthropic models), codex (OpenAI), gemini_cli (Google), opencode (any of the three) |
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.
agentId is required; every other field is optional and a field you leave out stays as it is. null clears reasoningEffort, instructions or budgetUsd. A new provider must still be one the agent's harness speaks; change both in one call to move an external agent to another provider. name must stay unique per account, ignoring case. An id that is not yours, or is malformed, answers "Agent not found."
What it returns
before and after, each as list_coding_agents shows an agent.
The same step without MCP
| Surface | Form |
|---|---|
| HTTP API | POST /autopilot/agents/update with the agents:write scope |
What the server tells your agent
The description your agent reads when it lists the tools:
Use it to change an existing agent's model, role, mode ceiling, rules, effort, instructions, budget or harness. Pass agentId and any of name (unique per account, ignoring case), role, provider and modelId (from list_models), modeCeiling, rulesPreset, reasoningEffort, instructions, budgetUsd and harness. Omitted fields stay as they are; null clears reasoningEffort, instructions or budgetUsd. The same call again changes nothing more. Needs the agents:write scope. Returns { before, after }: a second call with the values from before undoes the change.
Related
list_coding_agents: read the agents and their ids.- Scopes: what
agents:writeallows. - MCP server: install, sign-in and every other tool.