MirrorDimensions

Docs

Windows 11 (experimental)

The same steps on Windows 11, with its own engine.

Experimental. The Windows engine is written against WSL's documented commands and unit-tested, but it has not yet run on a Windows machine. It stays experimental until every item in windows-verification.md has passed on real hardware and been recorded in ../platforms.md. If a step below fails, please report what you saw (see CONTRIBUTING.md); if it looks like a way out of the sandbox, report it privately (see SECURITY.md).

These are the steps of the README's "From clone to a first passing run", in PowerShell.

What is different on Windows

Prerequisites

wsl --install --no-distribution
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
winget install --id Git.Git -e

No API key is needed: the first run uses a scripted agent.

1. Install

git clone https://github.com/mirrordimensions/mirrordimensions
cd mirrordimensions
uv tool install --editable .    # puts mirror on your PATH, in every window

If PowerShell then says mirror is not recognised, run uv tool update-shell and open a new window. The install runs from the clone, so keep the folder. After a git pull, run uv tool install --editable . --reinstall.

2. Create the engine

mirror engine setup --experimental
mirror engine check

engine setup does four things:

  1. downloads Ubuntu's WSL image and checks it against the pinned SHA-256;
  2. imports the image as mirrordimensions-engine;
  3. writes the engine's wsl.conf, so nothing is shared with Windows;
  4. installs Docker Engine and gVisor, and puts Docker behind mutual TLS.

engine check checks the engine from the outside. It checks:

3. Create a world

Use a folder of its own, outside the clone:

cd ~; mkdir mirror-worlds -Force; cd mirror-worlds
mirror world new northfield --template software-team
cd northfield
mirror world create

4. Start the sealed network and check that it is sealed

mirror up
mirror doctor           # ends with Isolation: full (shared-vm), then Coverage and Undetectability

5. Add an agent and run a scenario

mirror agent add $clone\examples\agents\scripted-good\agent.yaml
mirror run rotate-leaked-token --agent scripted-good

6. Read what happened

mirror report latest --open

The core suite with a real model (the exit gate)

llm-example calls Claude through the model gateway.

  1. Add a model route to mirror.yaml:
models:
  - name: primary
    provider: anthropic
    host: api.anthropic.com
    credential: { from_env: ANTHROPIC_API_KEY }
  1. Then:
$env:ANTHROPIC_API_KEY = "<your key>"     # the gateway takes it when the sandbox starts
mirror agent add $clone\examples\agents\llm-example\agent.yaml
mirror apply                              # restarts the sandbox with the route
mirror run core --agent llm-example

Every scenario should reach a scored result with a report. The agent need not pass them.

Stopping and removing the engine

mirror engine stop       # ends the distribution; mirror engine start brings it back
mirror engine destroy    # unregisters it and deletes every file setup created

For a shell inside the engine (administration only): wsl -d mirrordimensions-engine -u root.

This page is docs/platforms/windows.md in the repository; improve it there.