start_task
The CodePanel MCP tool that hands a coding agent a task on a connected repository and wakes the local runner to claim it.
On this page›
start_task hands one of your coding agents a task on one of your connected repositories, and wakes the local runner on this machine so it claims the task at once. It needs the tasks:write scope, which no other scope includes.
When to call it
- To hand off a change: a bug, a refactor, a follow-up a review left open.
- Before you wait on it:
get_taskgives the run id once a runner has claimed it; thenwait_for_run.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
repo |
string | yes | Repository as owner/name |
codingAgentId |
string | no | Id of a coding agent, from list_coding_agents; leave out for a team |
teamId |
string | no | Id of a team, from list_teams; with neither id, the repository's or default team |
title |
string | yes | One line naming the work |
prompt |
string | yes | What the agent should do, with whatever context it needs |
host |
local or cloud |
no | Where to run the task: local (default, local runner) or cloud (CodePanel cloud runner) |
prNumber |
integer | no | Optional pull request number this task acts on |
ticket |
string | no | The tracker ticket it works, such as TKT-008398: sent to the account's AI Gateway as metadata and held to the per-ticket cap |
It writes: the server marks it readOnlyHint: false, so a client that asks before writes asks here.
repo is a connected repository as owner/name. Name who works it: codingAgentId from list_coding_agents for one agent, or teamId from list_teams for a team led by its orchestrator. With neither, the task gets the repository's team, else the account's default team; naming both is refused. title is one line of up to 200 characters; prompt says what to do, up to 20,000 characters. ticket, optional, is the tracker ticket it works, such as TKT-008398 (letters and digits, a dash, a number): its runs carry it to the account's AI Gateway as metadata and are held to the per-ticket cap (AI Gateway). A disconnected repository, or another account's repository or agent, is refused. With billing on and no plan on the account, nothing is queued: the call is refused with reason: "plan_required" and a nextAction naming where the owner subscribes, since agent runs need a plan as reviews do (Billing).
What it returns
{ task, runnerWoken }: the task as list_tasks shows it, queued, and whether a runner on this machine answered. With none here, a runner with a checkout of the repository claims it on its next check. Undo it with cancel_task.
The same step without MCP
| Surface | Form |
|---|---|
| HTTP API | POST /tasks with the tasks:write scope |
| CLI | codepanel task start owner/name --coding-agent <id> [--ticket <key>] --title <title> <prompt> |
| Dashboard | Tasks → New task |
What the server tells your agent
The description your agent reads when it lists the tools:
Use it to hand work to a coding agent instead of doing it yourself. Give it: repo (owner/name, connected), who works it (codingAgentId from list_coding_agents for one agent, or teamId from list_teams for a team led by its orchestrator; with neither, the repository's team or the account's default team), title (one line) and prompt (what to do, up to 20,000 characters); optionally ticket (the tracker key it works, such as TKT-008398). Queues it and wakes a local runner on this machine, which claims it at once (runnerWoken: true); with none here, a runner with a checkout of the repository claims it on its next check. Needs tasks:write. Returns { task, runnerWoken }. Follow it with get_task (for the run id) then wait_for_run. Undo with cancel_task.
Related
list_coding_agents: the agents a task can name.- Scopes: what
tasks:writeallows. - MCP server: install, sign-in and every other tool.