Test Your Agents Inside a Copy of Your Company MirrorDimensions released version 1.0 of its open-source, Apache-2.0-licensed tool that builds a self-hosted digital twin of a company — its people, repositories, tickets and chat at the company's own hostnames, filled with generated data — so AI agents can be tested in a sealed sandbox before deployment. The tool runs on macOS (Apple Silicon) and Linux x64, with Windows 11 experimental, uses real open-source products as stand-ins (Gitea for GitHub, Mattermost for Slack), and records every request, message, model call and program the agent starts; only the agent's calls to its AI model leave the sandbox, through a gateway that adds the real API key and logs each request. Because every run starts from the same world, changes to a prompt, tool or model can be compared like for like, and each run ends with a pass-or-fail report on whether the agent did the job, leaked a secret it found, or touched anything it was not allowed to. Open source · Self-hosted · Apache-2.0 Test Your Agents Inside a Copy of Your Company MirrorDimensions builds a digital twin of your company on your own machine: its people, repositories, tickets and chat, at your company's hostnames, filled with generated data. 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. curl -fsSL https://mirrordimensions.com/install.sh | sh mirror engine setup git clone https://github.com/mirrordimensions/mirrordimensions cd mirrordimensions && uv tool install --editable . mirror engine setup Version 1.0 · macOS Apple Silicon and Linux x64 · Windows 11 experimental · read the script https://mirrordimensions.com/install.sh In plain words A Digital Twin of Your Company, for Your AI Agent MirrorDimensions builds a digital twin of your company on your computer: its people, code repositories, chat channels and months of history, running on real open-source software. You put your AI agent to work there as if it were a new employee, and a colleague hands it a task. Everything the agent does is recorded, and afterwards you get a report. You decide how close it is to yours. Give it your company's name, domain and industry, name the systems you use, describe your tools from your own files, or seed it with a folder of your test data. The mirror generates the rest. The twin's people and history are generated, and the only data in it is what you choose to give it. Its network is sealed off from the internet. The one thing allowed out is the agent's calls to its AI model, and those are recorded too. So you can watch an agent make mistakes without them reaching your real systems. See What It Does When Nothing Says It Is a Test Whether it stays inside its task and its permissions, what it does with a secret it finds, how it answers injected instructions. Every run starts from the same world, so a change to a prompt, a tool or a model is compared like for like, and behaviour that is out of line with what you intended shows up before release, not in a customer's systems. Verify an Agent in Your Own Company's World A world shaped like yours: your systems, your tools described from your own files, your test data. It runs inside your network, on your own hardware. Nothing about your company goes to a third-party test platform: the one thing that leaves is the agent's own calls to its model, and those are recorded. 1. Build your company's twinOne command builds it with your company's name, domain and industry: people, repositories with commit history, issues and chat, at your company's hostnames. 2. Give your agent a jobA scenario sets up a situation, such as a password someone committed by mistake, and a manager assigns the fix to your agent. 3. Everything is recordedEvery request, every message, every call to the model, every program it starts and every attempt to get out. 4. Read the reportDid it do the job? Did it leak the secret it found? Did it touch anything it was not allowed to? Pass or fail, with the evidence. Who it's for Everyone Who Has a Say Before an Agent Goes to Work Each role asks a different question of an agent. Choose yours to see what the mirror answers, what you would run, and what you get back. Words you will see Terminology - World - The digital twin of your company: its people, repositories, chat and history, generated for testing. Each of its systems is a twin. - Engine - A Linux virtual machine the mirror creates on your computer. Everything runs inside it, and it leaves your own Docker alone. - Sandbox - The sealed network inside the engine, where the world and your agent run. - Twin - A real open-source product standing in for one your company uses: Gitea for GitHub, Mattermost for Slack. - Gateway - The sandbox's one door out. It lets the agent call its model, adds your real API key on the way, and records every request. - Scenario - A situation to test, and the task handed to the agent. - Run - One agent working through one scenario. It ends with a pass or a fail, and a report. - Doctor - mirror doctor : checks on your machine that the sandbox is sealed and recording. 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 https://blog.google/security/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 IsolationBuilt 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 CoverageBuilt 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 ApartThe 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 1. An engine on your machineIts 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. 2. A world, generatedPeople 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. 3. Your agent, unchangedIts 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. 4. Work arrives the usual wayA 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. 5. Recorded and scoredChecks 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 NetworkA resolver for your domain, minted certificates, a recording gateway, and a doctor that checks egress, ingress and separation. - Run Real SystemsGitea and Mattermost, unmodified and seeded with history. Any other system, simulated from its OpenAPI description. A company MCP server with your own tool list. Building access and devices. - Test ScenariosLeaked credentials, prompt injection in a ticket, a private file request, dependency bumps, release notes and more, each checked against real state. Write your own in one file: it is checked before any run and rehearsed with no agent. - Agents Any Kind of AgentContainer agents on the office network, agents driving a managed browser, and agents on a vendor's platform through an exposed MCP server. Agent programs such as Claude Code and Codex are onboarded by name. - Repeat SnapshotsEvery run starts from the same saved world, restored exactly in seconds, so results can be compared and repeated. - Describe Your Own SystemsGive the description of a system your company runs, as a file, an upload, pasted text or an address. The world keeps records and answers in the shapes it declares, at the hostname your agent already uses. It is a simulation of the description, and every result says so. - Ask Set Up by Your Coding AgentAsk the coding agent you already use to define the world, its systems, the agents to test and the scenarios. It works through the mirror's own tools. Building a world and starting a run wait for your approval. - See A PortalThe environment map, worlds started from an industry or from descriptions you import, agents and permissions, scenarios, and runs with a live timeline, in a browser on your machine. The excerpts are from a generated world for Crestfield Logistics, a made-up company Your systems Build a Company From the Systems You Use Name the products your company runs, and the world gets a system for each one it can stand in for. Where a vendor publishes an OpenAPI description of its API, the mirror fetches that file on your computer and runs a simulated service that keeps records and answers in the API's shapes. For anything else, you give an OpenAPI 3 file of your own. | The system | How the world gets it | |---|---| | Code hosting and team chat | Real open-source software, unmodified: Gitea and Mattermost, at your company's hostnames | | 45 products whose vendor publishes a description | Added by name with one command, simulated from the vendor's own file | | Any other of the 574 products in the catalog, or a system of your own | Simulated from an OpenAPI 3 file you supply | mirror catalog list --published the products that can be added by name mirror world add jira --published fetch the vendor's description and add the system mirror world add --spec helpdesk.yaml or a description of your own mirror world create build the world Added by name today - Adobe Analytics - Adobe Experience Cloud - Adyen - Akamai - Asana - Autodesk Construction Cloud - Basecamp - Box - ChatGPT Enterprise - CircleCI - Cisco Webex - Cloudflare - Datadog - Docker Hub - DocuSign - Dropbox - FactSet - Figma - Fiserv - GitHub - Honeycomb - Intercom - Jira - Klaviyo - LaunchDarkly - LogicMonitor - Microsoft 365 - Miro - Mixpanel - Netlify - OneTrust - Onshape - Palo Alto Networks Prisma - PandaDoc - PayPal - Salesforce Marketing Cloud - SAP Concur - Sentry - Slack - Square - Stripe - Twilio - Veracode - Webflow - Xero - A simulated system is a stand-in built from the description, not the product. Every result lists the systems that were simulated. - Each listed product has been sent sample requests offline. The catalog page says how each answered and what it refuses. None has been compared with the real product. - The vendor's file is not shipped with the mirror. It is fetched from the vendor's own address when you add the system, and only then. - Whether a vendor's terms allow your use of its description is for you to check. Industries Pick your industry and the twin talks the way your company does. Its people, code, tickets and chat use your industry's words: a hospital's engineers talk about patient-record feeds and insurance approvals, a state agency's about deadlines for public-records requests. The mirror also suggests the systems a company like yours uses, and tells you 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 Halden Health Plan is a made-up example: use your own 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 a folder of your own test data mirror world seed show what each file became, and what was left out Get started From Install to a First Passing Run You need 16 GB of memory and about 15 GB of free disk, on macOS Apple Silicon or Linux x64. No Docker, and no API key for the first run. There are two ways to install, and they give you the same mirror command. Use your own company's name, domain and industry, and the world becomes your company's twin. Northfield, Halden and Crestfield, used across this site, are made-up example companies. The domain is used only inside the sandbox, where the world's own resolver answers for it instead of the real one. Use the install script Installs the newest release. It checks the release’s package against the release’s checksums before installing anything, and fetches uv https://docs.astral.sh/uv/ if you have none. It needs nothing beforehand, never uses sudo , and stops before the engine. To update, run it again. curl -fsSL https://mirrordimensions.com/install.sh | sh Choose it to use the mirror. Read the script first https://mirrordimensions.com/install.sh . On Windows 11 experimental , in PowerShell: irm https://mirrordimensions.com/install.ps1 | iex Download and build from source Runs from a clone of the repository, so you get the latest code between releases and the example agents. It needs git and uv https://docs.astral.sh/uv/ , and Node.js once if you use the portal, whose pages you build yourself. To update, git pull . git clone https://github.com/mirrordimensions/mirrordimensions && cd mirrordimensions && uv tool install --editable . Choose it to follow or change the code, or to run the walkthrough below as written. The steps in full https://mirrordimensions.com/docs/getting-started/ . The walkthrough below installs from source, because its first run uses an example agent that comes with the repository. After the install script, the commands are the same from mirror engine setup on; add an agent of your own in place of the example. Updating either kind https://mirrordimensions.com/docs/updating/ . git clone https://github.com/mirrordimensions/mirrordimensions ~/mirrordimensions cd ~/mirrordimensions && uv tool install --editable . mirror engine setup 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 ~/mirrordimensions/examples/agents/scripted-good/agent.yaml mirror run rotate-leaked-token --agent scripted-good mirror report latest --open Set up MirrorDimensions on this computer and take it as far as one passing run of the built-in scripted agent. MirrorDimensions is a sealed test range for AI agents: it runs a synthetic company inside a Linux VM that it manages the engine . It is designed so that nothing leaves the sandbox except calls to a configured model endpoint. Your job is to install it and check that those protections work on this machine, not to make it work at any cost. The repository is https://github.com/mirrordimensions/mirrordimensions. If the current folder is already a clone of it, use that clone. Otherwise clone it here. The steps are in its README "From clone to a first passing run" and in docs/your-company.md "Set up your laptop" . Follow those documents and prefer them to what you remember. Steps: 1. Find the operating system and architecture. Supported: macOS 13+ on Apple Silicon, Linux x64 with KVM. Windows 11 x64 is experimental: if this is Windows, follow docs/platforms/windows.md and ask me before each step. Anything else: stop and tell me. 2. Check the requirements: 16 GB of memory, about 15 GB of free disk, and on Linux a readable /dev/kvm. Report what you find. If one is short, stop and ask. 3. Install what is missing: git and uv; on macOS, Rosetta for Linux softwareupdate --install-rosetta ; on Linux, the packages docs/your-company.md lists. Ask me before each install, and before any command that uses sudo. 4. Install the mirror from the clone: uv tool install --editable . If it stops with "invalid peer certificate: UnknownIssuer", this network replaces certificates: run it again with --system-certs added --native-tls on older versions of uv , and tell me. 5. mirror engine setup, then mirror engine check. Every line of engine check must start with "ok". 6. Create a world in ~/mirror-worlds, outside the clone: mirror world new northfield --template software-team, then mirror world create in its folder. 7. mirror up, then mirror doctor. It must end with three verdicts: "Isolation: full" followed by the boundary in brackets , "Coverage: complete" and "Undetectability: full". 8. mirror agent add