Docs / Reference
Reference
Every command, every operator tool and every file format, written from the program itself.
These pages are written from the program itself each time the site is built, so the names, arguments and options are the ones the program has.
- Operator MCP tools: what an AI agent can call.
- File formats:
mirror.yaml, the agent file, a scenario,result.jsonand an event.
Every command
| Command | What it does |
|---|---|
mirror init |
Create a project: a starter mirror.yaml with a generated company, and its root CA. |
mirror validate |
Check the manifest, agent files and scenarios; report every problem with file and line. |
mirror schema |
Print JSON Schema for the file formats. |
mirror status |
Project state, host platform and loaded plug-ins. |
mirror up |
Start the sealed network for this project: the resolver, the gateway and every system (a stand-in page for systems without a twin). |
mirror update |
Install the newest release in place of this one, with the install script's checks, then say what on this computer still runs the old code. Run it between runs, not during one. |
mirror down |
Stop and remove the sealed network for this project. |
mirror doctor |
Run the egress, separation, inside-out, naming, transparency and capture checks. |
mirror build |
Generate the world, seed every twin, and save and verify the base snapshot. |
mirror reset |
Restore a snapshot, and prove the state matches the moment it was saved. |
mirror changes |
Edits saved to mirror.yaml or agent files that are not in effect yet, and when each takes effect. |
mirror apply |
Put pending changes into effect now: rebuild from the first stage they affect, and hand a running gateway the current rules and visibility. |
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. |
mirror trace |
A run's timeline: every source in one ordered list. --json prints the raw events. |
mirror watch |
Follow a run step by step, as the portal's live view shows it: time, where, what. A finished run is printed whole. --json prints each step as a JSON line. |
mirror report |
Rebuild a run's report.html, one self-contained page, and optionally open it. |
mirror reach |
What the agent is granted, and what it used in a run (its latest, by default). |
mirror portal |
Start the local portal on 127.0.0.1 and print its address. Ctrl-C stops it. |
mirror snapshot |
Named snapshots of the world. |
mirror catalog |
The app catalog. |
mirror world |
Define and create a world. |
mirror agent |
Agents under test: register, inspect and check them. |
mirror model |
Model routes: the services an agent's model calls can go to. |
mirror system |
Systems: surfaces, settings, data and rules. |
mirror set |
Edit mirror.yaml and agent files. |
mirror unset |
Remove from mirror.yaml. |
mirror runs |
Past runs, oldest first. With rm, remove them. |
mirror scenario |
Scenarios, built-in and the project's own. |
mirror mcp |
The operator MCP server: drive the mirror from an AI tool (decision 0009). |
mirror usecase |
Built-in use cases for this world's industry: eight jobs, ready to run. |
mirror engine |
The engine: the Linux VM every world runs in. |
Options every command takes
Written before the command: mirror --json runs.
| Option | What it does |
|---|---|
--project |
Project folder (default: search upward from here). |
--json |
Print one JSON document on stdout. |
--no-color |
Never use color. |
--quiet |
Print only errors and the final line. |
--verbose |
Show underlying calls. |
--version |
Print the version. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. For mirror run: passed |
| 1 | A check failed. For mirror run: failed |
| 2 | A usage or configuration error |
| 3 | mirror run only: isolation failed |
| 4 | mirror run only: the mirror errored, or coverage is incomplete |
A run that ends in 3 or 4 says nothing about the agent: fix the mirror, then run again.
This page is written from the program itself when the site is built.