---
title: "mirror world"
summary: "Define and create a world."
read_when: "the arguments or options of mirror world are needed"
url: https://mirrordimensions.com/docs/reference/world/
---

# mirror world

Define and create a world.

Its commands: `new`, `seed`, `industries`, `add`, `remove`, `expose`, `connect`, `unexpose`, `import`, `show`, `discriminate`, `status`, `create`, `clone`, `destroy`.

```sh
mirror world <command>
```

## mirror world new

Define a world from a template, from named systems, or from imported files. The portal's world wizard asks the same things and writes the same mirror.yaml.

```sh
mirror world new [directory] [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `directory` | No |   |

| Option | Takes | What it does |
| --- | --- | --- |
| `--template` | text | software-team |
| `--systems` | text | Comma-separated system names, matched against the catalog. |
| `--add-systems` | text | Systems to add to the template, the --systems list or the industry's proposal. |
| `--yes` | nothing (a switch) | With --industry: use the systems its profile proposes, without asking. |
| `--seed-folder` | path | Build the world from a folder you choose (tickets, documents, people...). |
| `--accept-personal-data` | nothing (a switch) | With --seed-folder: accept personal data. |
| `--people` | number; default `25` | Number of people. |
| `--history` | number; default `180` | Days of history. |
| `--seed` | number | Seed (default: random). |
| `--company` | text | The company's name (default: suggested from the seed). |
| `--domain` | text | Its domain, for hostnames and email. |
| `--industry` | text | Its industry (see: mirror world industries). |
| `--tidiness` | text; default `realistic` | How tidy its data is: tidy, realistic or messy. |
| `--repositories` | number; default `6` | Repositories. |
| `--issues` | number; default `150` | Issues. |
| `--messages` | number; default `2000` | Chat messages. |
| `--canaries` | number; default `3` | Planted secrets, to trace leaks. |
| `--announce`, `--no-announce` | nothing (a switch); default `True` | New issues and merges posted in chat. |
| `--incidents`, `--no-incidents` | nothing (a switch); default `True` | Incidents in chat and as issues. |
| `--substitute`, `--no-substitute` | nothing (a switch); default `True` | With --systems: run Gitea or Mattermost in place of a product of the same kind that has no twin yet (GitHub, Slack), at its hostname. |
| `--import` | list, repeatable | Start from files describing the company (repeat for each file). |
| `--as` | text | With --import: the kind of file, if not recognized. |
| `--decide` | list, repeatable | With --import: settle a disagreement or change a decision, as subject=value. |

## mirror world seed

Build this world from a folder you choose: tickets, documents, people and more, ideally test data. Only that folder is read; lines that look like secrets are left out (decision 0030).

```sh
mirror world seed <folder> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `folder` | Yes | The seed folder to read; `show` for the last review; `forget` to stop using it. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--accept-personal-data` | nothing (a switch) | Build with personal data the folder holds, if it is test data. |

## mirror world industries

The industry profiles a world can start from, by group (decision 0028).

```sh
mirror world industries
```

## mirror world add

Add systems to this world's mirror.yaml, keeping the rest of the file as it is. Run mirror world create afterwards to build them. With --spec, add a system of your own from its OpenAPI description: it keeps records and answers as the description says. With --published, do the same for a catalog product from the file its vendor publishes.

```sh
mirror world add [systems...] [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `systems` | No | Systems to add, by catalog name. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--substitute`, `--no-substitute` | nothing (a switch); default `True` | Run Gitea or Mattermost in place of a product of the same kind with no twin. |
| `--spec` | path | Add a system the world has no software for, built from its OpenAPI 3 file. |
| `--published` | nothing (a switch) | Build the named product from the description its vendor publishes, fetched once from the vendor's address. |
| `--id` | text | With --spec or --published: the system's id. |
| `--hostname` | text | With --spec or --published: its hostname (the description's own). |

## mirror world remove

Take a system out of this world's mirror.yaml, keeping the rest of the file as it is. Agents' grants on it go with it. A world already built keeps running the system until mirror world create builds the world again without it.

```sh
mirror world remove <system> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `system` | Yes | The system's id, from mirror system list. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--yes` | nothing (a switch) | Do not ask for confirmation. |

## mirror world expose

Expose a world MCP server to a remote agent: bring up the ingress, issue the agent's sign-in, print the reverse-proxy settings, and relay connections until Ctrl-C. With --local, for a desktop app on this computer: bring up the ingress and print what to add to the app. The app then starts `mirror world connect` itself.

```sh
mirror world expose <app_id> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `app_id` | Yes | The world MCP server to expose. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--agent` | text | The remote agent it is exposed for. |
| `--hostname` | text; default `` | The public name your reverse proxy serves. |
| `--local` | nothing (a switch) | For an app on this computer: no public name, reverse proxy or relay. |
| `--port` | number; default `7480` | The relay's port on 127.0.0.1. |

## mirror world connect

A local MCP server for a desktop app, over standard input and output. The app starts this itself, from the settings `mirror world expose --local` prints; it is not run by hand.

```sh
mirror world connect <app_id> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `app_id` | Yes | The world MCP server to reach. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--agent` | text | The agent the app is tested as. |

## mirror world unexpose

Stop exposing a world MCP server. The ingress goes at the next sandbox restart.

```sh
mirror world unexpose <app_id>
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `app_id` | Yes | The exposed MCP server. |

## mirror world import

Import a description of the company: read files into a draft, review it, apply it. mirror world import &lt;file or https address&gt;... read them into the draft mirror world import show [--conflicts] what was understood, with sources mirror world import decide &lt;subject&gt; &lt;value&gt; settle a conflict or change a decision mirror world import apply write it into mirror.yaml mirror world import discard delete the draft

```sh
mirror world import <items...> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `items` | Yes | Files or https addresses to read; or show, decide &lt;subject&gt; &lt;decision&gt;, apply, discard, provenance. |

| Option | Takes | What it does |
| --- | --- | --- |
| `--as` | text | The kind of file, when it is not recognized. |
| `--conflicts` | nothing (a switch) | show: only the disagreements to settle. |

## mirror world show

The definition in plain terms, or one part of the built company.

```sh
mirror world show [part]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `part` | No | people, projects or canaries: that part of the built company. |

## mirror world discriminate

Can a model tell this world's pages from real ones? Makes model calls you pay for; shows what it sends and the cost first (decision 0029).

```sh
mirror world discriminate [options]
```

| Option | Takes | What it does |
| --- | --- | --- |
| `--trials` | number; default `60` | How many pairs the model judges. |
| `--own` | path | A folder of your own real material (docs/, issues/, chat/) to compare with. Excerpts of it are sent to the model. |
| `--no-public` | nothing (a switch) | Compare with --own only; download nothing. |
| `--route` | text | The model route in mirror.yaml to ask. |
| `--model` | text | The model that judges. |
| `--why` | number; default `3` | Ask what gave it away, this many times. |
| `--yes` | nothing (a switch) | Do not ask for confirmation. |

## mirror world status

State, last finished stage, and whether the definition changed.

```sh
mirror world status
```

## mirror world create

Create the world in eight stages, one line per stage.

```sh
mirror world create [options]
```

| Option | Takes | What it does |
| --- | --- | --- |
| `--resume` | nothing (a switch) | Continue from the first unfinished stage. |
| `--from-stage` | number | Start at this stage (1 to 8). |

## mirror world clone

Copy a definition, optionally with a new seed.

```sh
mirror world clone <src> <dst> [options]
```

| Argument | Needed | What it is |
| --- | --- | --- |
| `src` | Yes |   |
| `dst` | Yes |   |

| Option | Takes | What it does |
| --- | --- | --- |
| `--new-seed` | nothing (a switch) | Same shape, a different company. |

## mirror world destroy

Remove this world's containers, volumes, snapshots and generated files. mirror.yaml, the agents, the runs and the root CA are kept.

```sh
mirror world destroy [options]
```

| Option | Takes | What it does |
| --- | --- | --- |
| `--yes` | nothing (a switch) | Do not ask for confirmation. |

## The same, from an AI agent

The operator MCP server offers these tools for it:

- [`list_worlds`](https://mirrordimensions.com/docs/reference/mcp-tools/#list_worlds): The worlds on this computer this server can work with, and which is chosen.
- [`use_world`](https://mirrordimensions.com/docs/reference/mcp-tools/#use_world): Choose the world the other tools work on, by its name.
- [`list_industries`](https://mirrordimensions.com/docs/reference/mcp-tools/#list_industries): The kinds of company a world can be. With `find` (a word such as telecom or hospital), each match comes with the systems it brings and which of them run now; without it, every industry by name and group.
- [`define_world`](https://mirrordimensions.com/docs/reference/mcp-tools/#define_world): Write a new world's definition and choose it. `industry` is an id from list_industries and brings the systems such a company usually runs; `systems` names them yourself instead. The company is made up: give a made-up name or leave it out for a suggested one. Nothing is built until create_world.
- [`world_definition`](https://mirrordimensions.com/docs/reference/mcp-tools/#world_definition): The chosen world's mirror.yaml as it stands, and whether it is valid.
- [`add_systems`](https://mirrordimensions.com/docs/reference/mcp-tools/#add_systems): Add systems to the chosen world by name (jira, okta, salesforce). One with a twin runs; one with a twin of the same kind runs as that; the rest are named and left out until described. Takes effect at the next build.
- [`describe_system`](https://mirrordimensions.com/docs/reference/mcp-tools/#describe_system): Give a system the world names and cannot build its description, so that it is simulated from it: `source` is an OpenAPI 3 file's path or an https address, or give the description as `text`. It keeps its id and hostname.
- [`add_described_system`](https://mirrordimensions.com/docs/reference/mcp-tools/#add_described_system): Add a system of the person's own from its OpenAPI 3 description (a file's path, an https address, or `text`). `system` is its id and `hostname` its address; both are taken from the description when left out.
- [`import_descriptions`](https://mirrordimensions.com/docs/reference/mcp-tools/#import_descriptions): Read files the person already has (an agent's tool list such as .mcp.json, an OpenAPI description, Terraform state, a CloudFormation template or AWS CDK's output) or https addresses, and report what was understood. Nothing is added to the world until import_apply.
- [`import_decide`](https://mirrordimensions.com/docs/reference/mcp-tools/#import_decide): Settle one question of the import's review: `subject` is the finding's id (or `<id>.hostname` to give a hostname) and `decision` one of its choices.
- [`import_apply`](https://mirrordimensions.com/docs/reference/mcp-tools/#import_apply): Write what the import understood into the world's definition. It stops, and says what is left, while a question of the review is open.
- [`create_world`](https://mirrordimensions.com/docs/reference/mcp-tools/#create_world): Run the world's creation stages (1 to 8), resuming from the first unfinished one. Stops whichever world's sandbox is running. Reports each stage.
