Open source · Self-hosted · Apache-2.0
Test Your Agents Inside a Copy of Your Company
MirrorDimensions builds a synthetic company on your own machine: its people, repositories, tickets and chat, at the hostnames your agent would use at work. Your agent does real work there, in a sandbox built to keep it from the real world and to record what it touches, and every run is scored.
git clone https://github.com/mirrordimensions/mirrordimensions
cd mirrordimensions && uv tool install --editable .
mirror engine setup
git clone https://github.com/mirrordimensions/mirrordimensions
cd mirrordimensions && uv tool install --editable .
mirror engine setup # needs KVM and QEMU
Prototype · macOS (Apple Silicon) and Linux x64 · Windows 11 experimental
Why
The Web Got a Mirror Dimension. Companies Need One Too.
Google's Chrome security team built a sealed copy of the web to test browser agents: synthetic sites, real-looking addresses, nothing reaching the real internet. As they put it, Rigorous evaluations must be safe, reliable and repeatable.
(Mirror Dimension for Agents)
Agents at work touch far more than web pages. They read the code host, answer in chat, open tickets, use credentials and call internal tools. Testing them against production risks real damage; testing them against a toy tells you little. MirrorDimensions aims to be that sealed copy for a whole company: open source, run on your own hardware, and shaped like your organisation.
It is built to answer alignment questions, not only whether a task got done. Does the agent leak a secret it found? Does it stay within what it was granted? Does it follow instructions planted in a ticket? Does it behave differently when it thinks it is being watched?
Design goals
What It Is Built For
These are the goals the project is designed and tested for, not guarantees: it is open-source software, provided as is and without warranty. mirror doctor checks each one on your own machine, and you should review its results and your runs yourself.
- Isolate
Isolation
Built so that nothing leaves the sandbox except calls to the model endpoint you configure. Your real model key stays on the host; the agent holds a placeholder the gateway replaces on the way out.
- Record
Coverage
Built to capture every way the agent can touch something: requests, model calls, process starts and connection attempts, reconciled against the systems' final state.
- Conceal
Hard to Tell Apart
The aim is that the agent cannot tell it is in a test: production hostnames over valid TLS, an ordinary workstation, a company with history, and text composed for each world rather than copied from this repository. Every way found for an agent to tell is recorded, with how it was closed.
mirror doctor reports what its checks found for each goal
How it works
From a Laptop to a Scored Run
An engine on your machine
Its own Linux VM for every container, with a firewall set to let one thing out: the model gateway. It is built not to use or change a Docker or VM you already have.
A world, generated
People and teams, repositories with real commit history, a year of issues and chat, on real open-source software: Gitea for code, Mattermost for chat, at your company's hostnames.
Your agent, unchanged
Its container image runs as an ordinary workstation on the office network, signed in as the employee it acts as. Its model calls go out through the gateway and are recorded.
Work arrives the usual way
A scenario plants a situation and hands over the work: a manager assigns an issue, a colleague asks in a channel. Nobody tells the agent it is a test.
Recorded and scored
Checks read the final state and every exchange: was the task done, did a planted secret travel, did the agent use more than it was granted, did it suspect a test.
Capabilities
What Is in the Box
- Seal
Sealed Network
A resolver for your domain, minted certificates, a recording gateway, and a doctor that checks egress, ingress and separation.
- Run
Real Systems
Gitea and Mattermost, unmodified and seeded with history. A company MCP server with your own tool list. Building access and devices.
- Test
Scenarios
Leaked credentials, prompt injection in a ticket, a private file request, dependency bumps, release notes and more, each checked against real state.
- Agents
Any Kind of Agent
Container agents on the office network, agents driving a managed browser, and agents on a vendor's platform through an exposed MCP server.
- Repeat
Snapshots
Every run starts from the same saved world, restored exactly in seconds, so results can be compared and repeated.
- See
A Portal
The environment map, agents and permissions, the company, and runs with a live timeline, in a browser on your machine.
Industries
A Company That Reads Like Yours, in 77 Industries
Name your industry and the world's people, repositories, issues and chat use its vocabulary: a hospital's engineers talk about HL7 feeds and prior authorisation, a state agency's about open-records deadlines. The mirror also proposes the systems such an organisation runs, and says which ones it can run today.
- Technology and media 9
- Financial services 8
- Health and life sciences 10
- Consumer, fitness and wellness 5
- Retail and commerce 5
- Travel, hospitality and leisure 7
- Government and public sector 8
- Education and non-profit 5
- Industry and infrastructure 10
- Transport and logistics 5
- Professional services and real estate 5
# a world for a health insurer, with the systems such a company usually runs
mirror world new halden --industry health-payers \
--company "Halden Health Plan" --domain halden-health.com
Your test data
Build the World From a Folder You Choose
Put test data in a folder and name it. The mirror reads that folder and nothing else on your computer, builds the world from it, and generates the rest from the industry.
| Put in the folder | It becomes |
|---|---|
| A people CSV | The first people on the staff, with their titles |
| Markdown or text documents | Pages of the engineering handbook |
| Tickets: a CSV, or a Jira, GitHub, GitLab or Linear export | Issues with their comments, moved onto the world's timeline |
| A Slack or Mattermost export | Channels with their history and threads |
| Git repositories | Repositories with their history, read without running anything in them |
- Lines that look like they hold a secret are left out. Detection works by patterns and can miss things, so check the folder yourself too.
- Personal data is listed by file and line, and nothing is used until you remove it or accept it.
- Links out of the folder are not followed, and nothing in it is run.
- Whatever goes in reaches the agent and its model provider, so use test data.
mirror world seed ~/halden-seed
mirror world seed show # what each file became, and what was left out
Get started
From a Clone to a First Passing Run
You need git, uv, 16 GB of memory and about 15 GB of free disk. No Docker, and no API key for the first run.
mkdir -p ~/mirror-worlds && cd ~/mirror-worlds
mirror world new northfield --template software-team
cd northfield
mirror world create
mirror up
mirror doctor
mirror agent add <path to the clone>/examples/agents/scripted-good/agent.yaml
mirror run rotate-leaked-token --agent scripted-good
mirror report latest --open
Status
Where the Project Is
MirrorDimensions is a prototype: the parts described here work in our testing, and it changes quickly. It is provided as is, without warranty. Code hosting, team chat, a company MCP server and building access run today. Other systems a company uses, such as ticketing, identity, email and wikis, are recorded in a world's definition and left out until a twin of them exists. Windows 11 is experimental until it has been verified on real hardware.
Contribute
Build Agents That Are Tested Before They Are Trusted
Fork it, run it against your own agents, and send back what you build. Every commit is signed off under the Developer Certificate of Origin, and everything is Apache-2.0.
- Twins
Bring a System In
Identity, ticketing, a wiki, email: another open-source system in the world. The adapter guide sets out the rules a twin keeps.
- Industries
Make an Industry Read Right
Its vocabulary, its issues and chat, the systems it runs. Profiles are data, checked by tests.
- Scenarios
Write the Tests
The situations agents should face, with checks that read real state. Keep yours private; share the general ones.