> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# changesets

Stage a group of edits to your AI Agent in a [change set](/docs/optimization/change-sets), test them, and promote or revert them as one unit. The dashboard shows each change set on the **Change sets** page.

## Commands

| Command                                          | What it does                                                                            |
| ------------------------------------------------ | --------------------------------------------------------------------------------------- |
| `changesets list`                                | Lists change sets, the most recent first.                                               |
| `changesets get <id>`                            | Shows a change set and its staged changes.                                              |
| `changesets stage`                               | Stages the changes in a JSON file, in a new change set or in an existing one.           |
| `changesets remove <changeset_id> <baseline_id>` | Removes one staged change from a change set.                                            |
| `changesets promote <id>`                        | Shows a preview of the promotion. With `--yes`, makes the changes live.                 |
| `changesets revert <id>`                         | Creates a new change set that undoes a promoted change set.                             |
| `changesets delete <id>`                         | Shows a preview of the deletion. With `--yes`, deletes a change set that is in testing. |
| `changesets set-rollout <id>`                    | Sends a percentage of new conversations to a change set that is in testing.             |
| `changesets stop-rollout <id>`                   | Stops the rollout of a change set.                                                      |
| `changesets compare <id>`                        | Compares the performance of a change set with the live configuration over a date range. |
| `changesets test start <changeset_id>`           | Runs the test cases of a metric on the change set and on the live AI Agent.             |
| `changesets test get <test_id>`                  | Shows the result of each test case on each side.                                        |
| `changesets objective draft <description...>`    | Drafts objectives from a description of good behavior. It saves nothing.                |
| `changesets objective create`                    | Creates an objective and pins it to a change set.                                       |
| `changesets objective evaluate <changeset_id>`   | Starts a job that scores the objective of a change set on up to 500 conversations.      |

## Examples

Stage the changes in a file in a new change set:

```bash
adacli acme changesets stage --name "Refund policy updates" --file changes.json
```

Show the live value and the staged value of each changed field:

```bash
adacli acme changesets get <changeset-id> --diff
```

Promote a change set. The preview prints the confirm command, with a warnings token when there are warnings:

```bash
adacli acme changesets promote <changeset-id>
adacli acme changesets promote <changeset-id> --yes --token <warnings-token>
```

Send 10% of new conversations to a change set, up to 500 conversations:

```bash
adacli acme changesets set-rollout <changeset-id> --percent 10 --max-conversations 500
```

Undo a promoted change set. Review the new change set, then promote it:

```bash
adacli acme changesets revert <changeset-id> --name "Restore refund policy"
adacli acme changesets get <new-changeset-id> --diff
```

## Details

* An AI Agent has at most 20 change sets in testing. A change set holds at most 20 changes.
* `stage` takes `--name` for a new change set, or `--changeset` for an existing one. All changes in one file stage together, or none stage.
* You cannot edit an imported Knowledge article in a change set.
* `promote` shows an `untested` warning when no test ran on the change set. A test run on the change set removes the warning. A chat does not.
* `revert` changes nothing live. The new change set undoes the changes when you promote it.
* In `set-rollout`, `--percent` is 1 to 90. The total of all active rollouts on the Agent must not be more than 90. Promotion ends the rollout.
* `test start` uses Ada's improvement quota. It runs at most 20 test cases, takes minutes, and prints a test ID at once.

For every option of a command, run it with `--help`, for example `adacli acme changesets stage --help`.

## Related commands

* [`testing`](/adacli/commands/testing): pin test runs to a change set.
* [`chat`](/adacli/commands/chat): chat with a change set before you promote it.
* [`loop`](/adacli/commands/loop): print the improvement loop that stages and tests each fix in a change set.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).