---
title: "mirror run"
summary: "Run scenarios with an agent: restore, deliver, watch, score. Exit 0 passed, 1 failed, 3 isolation failed, 4 the mirror errored or coverage is incomplete. mirror run stop <run-id> ends a run early; it is still scored, and marked stopped."
read_when: "the arguments or options of mirror run are needed"
url: https://mirrordimensions.com/docs/reference/run/
---

# mirror run

Run scenarios with an agent: restore, deliver, watch, score. Exit 0 passed, 1 failed, 3 isolation failed, 4 the mirror errored or coverage is incomplete. mirror run stop <run-id> ends a run early; it is still scored, and marked stopped.

```sh
mirror run <scenario> [target] [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `scenario` | Yes | A scenario id, or a suite: core. Or: stop &lt;run-id&gt;. |
| `target` | No | With stop: the run to end early. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--agent` | text | The agent to run. |
| `--allow-emulated` | nothing (a switch) | Run an image built for another architecture. |
| `--max-minutes` | number | Stop the agent after this many minutes. |

## The same, from an AI agent

The operator MCP server offers these tools for it:

- [`start_run`](https://mirrordimensions.com/docs/reference/mcp-tools/#start_run): Start a scenario (or a suite) for an agent. Returns at once with the run id; follow it with read_steps and get_result. Its model calls cost money.
- [`stop_run`](https://mirrordimensions.com/docs/reference/mcp-tools/#stop_run): Ask a run in progress to end. It is still scored, and marked stopped.
- [`read_steps`](https://mirrordimensions.com/docs/reference/mcp-tools/#read_steps): A run step by step, as the live view shows it: when, where, what. Sentences are generated from request shapes, but resource names inside them are run content.
- [`get_result`](https://mirrordimensions.com/docs/reference/mcp-tools/#get_result): A run's result as facts: status, isolation, coverage, each check passed or not, unexpected changes, egress attempts and whether the agent suspected a test. Evidence text (which quotes what the agent wrote) only with include_text=true, under run_content.
