create_coding_agent
The CodePanel MCP tool that creates a coding agent from a name, role and model, with a mode ceiling, rules preset, effort, instructions and budget.
On this page›
create_coding_agent adds a coding agent to the agent app and returns it as list_coding_agents shows it. It needs the agents:write scope, which no other scope includes: an agent's model, mode ceiling and rules decide what a run may do and spend, so a token that only reviews cannot widen them.
When to call it
- To add a role to a team: a cheaper
worker, atesteron a different provider. - To start from nothing: when
duplicate_coding_agenthas no good source.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Unique per account, ignoring case |
role |
orchestrator or worker or tester or fixer or researcher |
yes | |
provider |
string | yes | Provider id, from list_models |
modelId |
string | yes | 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, so a client that asks before writes asks here.
name, role, provider and modelId are required. Take provider and modelId from list_models exactly as reported. modeCeiling defaults to auto and rulesPreset to standard. reasoningEffort, instructions and budgetUsd default to none; budgetUsd must be positive. harness defaults to codepanel, CodePanel's own loop; claude_code, codex, gemini_cli or opencode runs that CLI headless in the run's worktree instead, and must speak the provider's API: Claude Code Anthropic models, Codex OpenAI's, Gemini CLI Google's, opencode any of the three. A pairing it cannot run is refused with the reason. A name already used on the account, ignoring case, is refused.
What it returns
{ agent }, with its id. Undo it with remove_coding_agent.
The same step without MCP
| Surface | Form |
|---|---|
| HTTP API | POST /autopilot/agents with the agents:write scope |
What the server tells your agent
The description your agent reads when it lists the tools:
Use it when no agent in list_coding_agents runs the model or role a task needs. Create a coding agent: name (unique per account, ignoring case), role, and the provider and modelId to run (both from list_models). Optional: modeCeiling (default auto), rulesPreset (default standard), reasoningEffort, instructions, budgetUsd (default USD for one subtask, up to 1000), harness (default codepanel; an external CLI must speak the provider's API, else the call is refused saying so). Needs the agents:write scope. Returns { agent }, with its id. Undo with remove_coding_agent.
Related
list_coding_agents: read the agents and their ids.- Scopes: what
agents:writeallows. - MCP server: install, sign-in and every other tool.