# Split big work into subtickets

One agent does best on one coherent change. When the work is bigger than that, split it: into
subtickets you create yourself, into a fresh agent that executes a plan, or into a pipeline
on the ticket itself. This page covers each, and where the children's work lands.

## Before you begin

- For orchestration: **Agent orchestration** on in **Settings > Models & runs > Orchestration**. The
  **Developer** profile turns it on; **Explorer** leaves it off.

## Group tickets under an epic

An epic runs no agent: it groups tickets.

1. Click **Create** and set **Type** to **Epic (no agent, groups subtickets)**.
2. Write what the epic is for and click **Create**.
3. Add its children (next section).

**Result:** the epic's **Subtickets** tab lists each child with its status, and its card
counts them. The children do the work; move the epic to Done yourself when they are.

## Add a subticket by hand

In the parent ticket:

1. On the **Subtickets** tab, type a title in **New subticket title, or search an existing ticket to
   attach...**.
2. Pick the type (**task** or **command**), the mode and the landing column (**backlog** or **to
   do**). **+ Description** adds a description; **More details...** opens the full **Create
   ticket** form with the parent filled in.
3. Click **Add**.

Or, from the **Create ticket** form, fill in **Parent ticket (optional)**.

**Result:** the child lands on the parent's board with the parent's working directory, model,
thinking level and priority, unless you change them. The parent's timeline records it.

To **attach an existing ticket**, type at least two characters of its title or id in the same
field, pick it (it reads **attach existing**) and click **Attach**. A ticket cannot move under
one of its own children or onto another board's ticket.

To **reorder** the list, drag a row by its handle. The filter pills above the list narrow it
by column.

## Read the Subticket map

On the **Subtickets** tab of a ticket with a parent or children, **Map** swaps the list for
the tree: each ticket with its status, title, a one-line summary and its branch. Click one to
open that ticket, and **List** to go back.

- **Full tree** redraws from the top ancestor, **Archived** adds archived children, and
  **Expand** opens the map full screen.
- With **Subticket map explanations (LLM)** on (**Settings > Features > Board features**), an
  **Explain** button writes a one-line purpose for each ticket and a short relationship label for
  each arrow. **Clear** removes them. Nothing is generated until you click **Explain**.

**Result:** you see the whole split and where each part stands.

## Execute a plan by subagent or by Loop

When a plan carries an executable pipeline, **Accept plan** starts it on that ticket
without another agent drawing it. Its steps, its reviews, the steps for you and its progress stay here, on the **Steps** tab
and in the timeline. A scheduled Loop still keeps a separate ticket for each run.

The arrow beside **Accept plan** offers two other ways to execute:

1. Open Accept's arrow and click **Execute by subagent** or **Execute by loop** (the second shows
   when orchestration is on).
2. Pick a **Model** and **Thinking** level, or keep **Same as this ticket**.
3. Click **Delegate** for a subagent, or **Use pipeline** for a pipeline on this ticket.

| Choice | What happens |
| --- | --- |
| **Execute by subagent** | A subticket, **Execute plan:** and the title, implements the plan from an empty context. |
| **Execute by loop** | This ticket's own agent draws the missing pipeline. Review its steps and models on the **Steps** tab, save any edits, then press **Start**. A pipeline already carried by the plan starts immediately. No intermediary ticket is created. |

**Result:** a subagent's verified work merges into the parent's branch and advances it to
In Review. A pipeline waits on its workers, takes your answers to the steps for you here, runs its
landing step, then gives this ticket's agent one closing turn to check the combined result. Its
checks run after that turn. Either way, you approve **one** merge, on this ticket.

While a pipeline waits on work, its card stays in In Progress. A step for you, or a worker that waits on
you, brings it to Your turn. The pipeline marks the worker and links directly to its
question or plan. **Stop pipeline** keeps the checkpoint; **Resume pipeline** continues it.

## Let an agent orchestrate

With orchestration on, an agent can decide to split its own ticket. It stays solo by default,
hands one strand to a single child, and builds a pipeline here for two or more independent strands; it
never fans out loose parallel tickets.

In **Settings > Models & runs > Orchestration**:

| Setting | Default | What it does |
| --- | --- | --- |
| **Agent orchestration** | on (Developer) | Gives agents the playbook for splitting work. Off keeps every ticket solo. |
| **Worker models per provider** | `sonnet` | The model a child gets unless the lead agent picks one: a frontier lead agent over cheaper workers. Blank inherits the parent's model. |
| **Max orchestration children** | 6 | How many steps one pipeline level runs at once (1 to 20). The graph itself has no size limit: ready steps beyond this wait, and the Steps tab counts them as waiting for a slot. |
| **Lead agent self-approval** | off | Lets the lead agent approve or correct its own children's plans and answer their questions, instead of you. |
| **Lead agent permission delegation** | on | The lead agent decides its children's permission asks: allow once for that exact call, or deny, with a reason. Pushes, merges, deletes and the other cases in [Approve a tool request](permission.md#when-a-subticket-asks) still come to you. |

An executable pipeline shows the actual order, its reviews and the steps for you. Edit a
step's model in its editor before starting. The older **Agents to dispatch** preview still works, but is not
what executes the pipeline.

Agents use `run_pipeline(ticket_id, graph)` and stop. Before approval, a graph can instead
ride `add_plan`, `add_flow_plan` or `add_spa_plan` as their `pipeline` argument; Accept starts
it. After approval, a graph waits on its start sheet until you press Start.

A pipeline an agent proposes this way reads **Pipeline to start** on its card and under
**Pipelines to start** in Your turn, next to **Plan to approve**. The proposal is on the
**Steps** tab of the ticket.
Its graph opens every phase in place, so each step shows with who acts on it, and a press
on a step reads its brief. **Edit graph** closes the phases to change a step, and **Open**
on a phase shows its steps again. Nothing runs until you press **Start**.

A plan an agent files after you accepted one parks again and reads **Plan changed, approve
again**. Accept the new plan, or press **Keep the accepted plan** to carry on with the old one.

With self-approval on, a child's question, plan or permission request goes to its
lead agent first. The lead agent answers it, or asks you once and passes your answer to
every child that needs it; you are notified only if it cannot decide.

**Result:** the executor handles worker completion wakes. Human messages, worker questions
and failed reviews reach the ticket's agent, which hands back with `resume_loop_run`.
When work has landed, one closing agent turn tests it before finishing.

## Plan phases, repositories and human tasks

For a large plan, a pipeline can use:

- **Phases.** A step with its own inline graph runs on its own ticket and branch with no free
  form agent turn. It merges its workers, passes verification, then counts as done. Nesting
  is limited by the pipeline depth (two levels by default).
- **Known repositories.** `repo_root` and `base_branch` send a step to another repository
  you already have, and its work lands there, not in the owner's branch. An unknown path is
  refused. A plan that names a repository asks you once to press **Start**.
- **Human tasks.** A step for you asks you to do a real world step in the ticket's browser and
  answer a form. Your answers go to every later step.
- **A task you want an agent to do.** On a task written for you, **Have an agent do it**
  turns it into a step an agent does, with the task as its brief and your note added. The
  pipeline goes on at once. The agent comes back to you only for a sign in, a payment or
  a consent.
- **A step you do not need.** On a step for you, **Skip this step** passes it with no answers and
  the pipeline goes on at once. Use it when the step is already done or no longer applies.
- **A step you want changed.** On a step for you, **Ask for changes** takes a note and ends
  nothing: the agent of the top ticket revises that step and the ones not started, and
  you press **Start** on the revised steps. An agent does this, so it can take a few
  minutes; the Steps tab says who is revising. **Stop pipeline** holds the pipeline
  with its progress kept, and **Resume pipeline** brings the step back. A note you write
  on a phase goes to the same agent.
- **Adopted tickets.** A step can take over a Backlog subticket you already made, keeping
  its identity, session and branch.
- **Amendments.** While the plan runs, send a whole replacement graph through
  `run_pipeline`. Only steps that have not started can change. A started step is refused
  with its name, and nothing is replayed.

See [Loop steps](../reference/loop-nodes.md#repositories-phases-and-adoption) for the params.

## Keep going on a project

A project does not end when its plan lands. All of this is on the **Steps** tab of the ticket
that owns the pipeline.

- **Ask for something more.** Write what you want in the box under the steps and press
  **Send**. Your words become one more step of the same pipeline, listed under **Follow ups**.
  In a repository you already approved for this project it starts at once. The step runs its
  own checks, and when they pass the board merges it into the branch of the project. The plan
  does not run again, and no new ticket asks you for Start. A step in a repository you have not
  approved waits for your **Start**.
- **Change a step that has not started.** Its row has **Have an agent do it** (on a task
  written for you), **Make it mine**, **Skip** and **Add a step after**. Skip first says what
  the steps behind it will receive. The board applies the change. You press Start again only
  when a change brings in a repository you have not approved.
- **Send a note to a running step.** Write on the ticket of the step. Its agent reads the
  note at its next pause, and the row of the step says when. An engine that cannot take a note
  while it runs keeps it for the end of the run, and the row says that instead.

A message on the project itself still goes to the lead agent, which can add a step with the
`add_step` tool.

## Where a child's work lands

A child a lead agent creates branches off the **parent's branch**, not the base branch, and
never opens a pull request or merges into the base by itself. The lead agent merges each
child into its own branch (the same merge as your **Merge** button, conflict resolution
included), tests the combined result and hands over one branch.

So you review and merge once, on the parent, and the parent's timeline says which child was
merged into its branch. A child you add by hand is an ordinary ticket: it branches off the base
and you merge it yourself.

## Show or hide orchestrated children

A child that reaches In Review while its lead agent still has to review it stays on the
board, saying **Waiting on** and the key of the lead agent's ticket, which reviews it first. Hide
those children when you want In Review to hold only what is waiting for you.

1. Open **Settings**, then **General**.
2. Under **Board display**, turn off **Show orchestrated tickets** (turn it on to bring them back).

**Result:** those children leave the board until you show them again. The choice is
remembered on this device. Once the lead agent's ticket
is Done or Discarded they come back by themselves. On the
board, children in the same column as their parent nest in a frame under it (**N
subtickets**), and **Group cards** by **Parent** groups a column by parent.

## If something goes wrong

### Steps are waiting for a slot

Not an error. More steps are ready than **Max orchestration children** runs at once, so the
rest wait and start as others finish. Raise the setting to run more at once.

### A pipeline ended on a rejected step

A pipeline that ended this way, from before a step for you could be held instead, shows
**Reopen pipeline** on its Steps tab. It comes back held, with the work its steps already did. Write what should
change in the box beside the button to have the agent revise it first.

### A pipeline edit is refused and names a step

Only steps that have not started can be changed. A step that has started, or finished, is
protected, and its result stays. Your draft stays on screen after a refused save: change the
named step back, or move your edit to a step that has not started, then save again.

### epics are containers and cannot be claimed or run by an agent

An epic runs no agent. Create a task under it for the work.

### cannot attach a ticket to a parent on a different board

Move the ticket to the parent's board first ([Organize the board](organize-the-board.md)).

## Related

- [Run a Loop](run-loop.md), for the pipeline a lead agent builds.
- [Which tool when](../explanation/which-tool-when.md), for when splitting pays.
- [Review and merge an agent's work](review-and-merge.md), for the one merge at the end.
