# Pipelines

Chain experiments and deployments in one project, so each stage starts from the previous stage’s checkpoint.

A pipeline is an ordered list of stages. An **Experiment** stage trains an experiment from the project. A **Deployment** stage deploys a checkpoint from the experiment stage before it to **Agents**. Pipelines are only in the web app.

## Prerequisites

- A project with the experiments you want to chain, already set up in the wizard. See [Train a model](train-a-model.md).

## Build a pipeline

1. Open your project and click the **Pipelines** tab.
2. Click **New Pipeline**, enter a name and an optional description, and save.
3. Expand the pipeline’s row to open the builder, then add stages to the graph.
4. For each **Experiment** stage, pick an experiment from the project and where it starts:
   - The first stage starts from scratch (**Start from scratch**) or from an agent you saved (**Use saved Agent**).
   - Later stages start from the previous stage’s **Best checkpoint** or **Final checkpoint**.
   - Tick **Auto-add checkpoint to Agents when complete** to save the result as an agent.
5. For each **Deployment** stage, choose **Best checkpoint** or **Final checkpoint** from the experiment stage before it. A pipeline can’t start with a deployment.
6. Set each stage’s trigger:
   - **Manual** runs only when you click **Trigger stage**. The first stage is always manual.
   - **Auto** starts when the previous stage succeeds.

Arena only lists experiments that fit after the previous stage’s algorithm. If an experiment has already run, or is used elsewhere in the pipeline, Arena asks you to duplicate it first.

## Run and follow it

Click **Trigger stage** on the first stage. Each stage shows its status, and the builder refreshes about every five seconds. An experiment stage links to its **Results**. A stage marked **Stale** ran before an earlier stage was run again.

Resuming an experiment that belongs to a pipeline also triggers its stage.

## Manage pipelines

Each pipeline’s **⋮** menu has **Edit name**, **Duplicate** and **Delete**. A pipeline stays inside its project.
