---
title: "mirror agent"
summary: "Agents under test: register, inspect and check them."
read_when: "the arguments or options of mirror agent are needed"
url: https://mirrordimensions.com/docs/reference/agent/
---

# mirror agent

Agents under test: register, inspect and check them.

Its commands: `add`, `new`, `programs`, `list`, `rm`, `creds`, `check`.

```sh
mirror agent <command>
```

## mirror agent add

Register an agent file with the project and validate it against the world.

```sh
mirror agent add <file>
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `file` | Yes |   |

## mirror agent new

Onboard an agent in six steps, by prompts or by flags; a draft resumes where it stopped. With --program, say which agent program it is and the mirror fills in the rest. Sealed (the default): the files of its image are written into the world, to build and run there. Desktop: the app stays on this computer and reaches the world through an MCP server, with weaker protections.

```sh
mirror agent new [name] [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `name` | No | The agent's name. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--file` | path | A complete agent file: register and check it. |
| `--resume` | text | Resume the draft with this name. |
| `--mode` | text | hosted, browser or remote. |
| `--accept-reduced-guarantees` | nothing (a switch) | Remote: accept that leaks are detected, not blocked, and that its model and platform are outside the record. |
| `--image` | text | The agent's container image. |
| `--build` | path | Folder with a Dockerfile that builds the image. |
| `--model` | text | Where its model runs: cloud, self-hosted or none. |
| `--provider` | text | Cloud provider: anthropic, openai. |
| `--model-host` | text | The model's host name. |
| `--upstream` | text | Self-hosted: the one address:port it may reach. |
| `--credential-env` | text | Host variable holding the real model credential. |
| `--hosted-tools` | text; default `block` | block, flag or allow. |
| `--role` | text | The role it acts in. |
| `--person` | text | A specific person instead of a role. |
| `--grant` | list, repeatable | Access, repeatable: code.repos.NAME=write, chat.channels=a,b, tools. |
| `--wake` | text | command or poll. |
| `--command` | text | The command run when work arrives. |
| `--no-check` | nothing (a switch) | Skip the preflight. |
| `--program` | text | The agent program it is, such as claude-code or codex (mirror agent programs lists them), or other. |
| `--where` | text; default `sealed` | With --program: sealed (inside the world) or desktop (the app on this computer). |
| `--job` | text; default `engineer` | With --program: engineer, desk, or own (with --brief). |
| `--brief` | path | A file with what it is told when work arrives. |
| `--install` | text | --program other: the command that installs it in its image. |
| `--run` | text | --program other: the command that starts it on the brief. |
| `--route` | text | With --program: the model route it calls. |

## mirror agent programs

The agent programs the mirror knows: command-line agents it can run inside a world, and desktop apps it can connect. Those on this computer come first.

```sh
mirror agent programs
```

## mirror agent list

The project's agents.

```sh
mirror agent list
```

## mirror agent rm

Remove an agent: its file, the image built for it, and an exposure made for it alone.

```sh
mirror agent rm <name>
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `name` | Yes |   |

## mirror agent creds

The identity and credentials the agent would be issued, for debugging.

```sh
mirror agent creds <name>
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `name` | Yes |   |

## mirror agent check

Every preflight check; each failure names its fix.

```sh
mirror agent check <name> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `name` | Yes |   |

| Option | Takes | What it does |
| --- | --- | --- |
| `--allow-emulated` | nothing (a switch) | Run an image built for another architecture, at reduced isolation. |

## The same, from an AI agent

The operator MCP server offers these tools for it:

- [`list_agents`](https://mirrordimensions.com/docs/reference/mcp-tools/#list_agents): The agents under test: the person each acts as, its systems and its last run.
- [`list_agent_programs`](https://mirrordimensions.com/docs/reference/mcp-tools/#list_agent_programs): The agent programs that can be onboarded by name (Claude Code, Codex and others), and the jobs this world can give one.
- [`onboard_agent`](https://mirrordimensions.com/docs/reference/mcp-tools/#onboard_agent): Onboard an agent program into the chosen world under `name`: it acts as a `role` (or a named `person`) and gets the access that role usually has. `where` is sealed (runs inside the world) or desktop (an app on this computer, with weaker protections the person must accept, with confirm=true). `route` is a model route of the world.
