Skip to main content

SimMirror

Mirror and drive the iOS Simulator from Claude Code, CLI agents and the browser.

CI License: Apache-2.0 Release

A Claude Code session tapping through Settings on an iPhone 17 Pro simulator in the viewer, its cursor named and drawn before each tap

A live iOS Simulator in any browser tab or web page, an animated cursor that shows exactly what your AI agent is about to tap, and token-efficient UI snapshots so agents read the screen as compact text instead of screenshots. Works with Claude Code, Codex, Cursor and any other MCP client.

Status: first public preview (v0.1). The tools, the viewer and the protocol work today; the embedding API and protocol become stable with v1.0.

Why SimMirror

  • See the simulator anywhere. A live H.264 or JPEG stream in a Chrome tab, an iframe or a <sim-mirror> web component, with touch, scrolling, typing, hardware buttons and light and dark mode.
  • Watch what the agent does. Every agent gesture is announced before it lands, and the viewer's cursor glides to the spot first -- so you can follow along, and step in: an agent waits for your hand to be still.
  • Spend fewer tokens. Agents read accessibility snapshots with stable element refs and diffs between screens, act in batches with waits, and reach for a screenshot only when a question is visual.

Install

Claude Code, with the plugin (tools, a skill that teaches snapshot-first use, and /sim-mirror:open):

/plugin marketplace add AndrewKochulab/sim-mirror
/plugin install sim-mirror@sim-mirror

Any MCP client, as a stdio server:

claude mcp add sim-mirror -- uvx --from git+https://github.com/AndrewKochulab/sim-mirror@v0.2.0 sim-mirror mcp

Configurations for Codex, Cursor and other clients.

The command, for sim-mirror open, doctor and the rest:

uv tool install git+https://github.com/AndrewKochulab/sim-mirror@v0.2.0

The viewer library, for your own pages: the npm package @andrewkochulab/sim-mirror, attached to each release. Homebrew and PyPI come with v1.0.

Requirements: an Apple Silicon Mac, Xcode 26 or later, uv, and for touching the screen, idb_companion (brew install facebook/fb/idb-companion). Details in Installation.

Quickstart

sim-mirror doctor     # check this Mac, ending with a real tap on a simulator
sim-mirror open       # this project's simulator, live in a browser tab

Then ask your agent:

Open Settings → General → About and tell me which iOS version this simulator runs. Use sim_snapshot rather than screenshots.

Getting started explains what happens along the way.

Features

Live viewer. H.264 through WebCodecs where the page can decode it, JPEG otherwise, negotiated per connection. Touch, drag, scroll, typing and paste, Home and Lock, light and dark, and a device picker. It reconnects by itself after a blip and says plainly when the simulator is off.

Agent cursor. Every agent gesture -- tap, long press, swipe, drag, typing -- reaches the viewer before it lands, and the viewer's own pointer glides there first (agent.cursor_lead_ms). Never the Mac's pointer.

Screen understanding. A snapshot is a few lines -- e2 button "General" (201,319) -- with refs that stay with their elements across scrolls, a digest, and diffs. sim_act plays up to 20 steps in one call and waits for text, its absence, or the screen to settle. See Screen understanding.

Connectors. idb_companion gives full control; without it the simctl connector still mirrors the screen, view-only, and says why. More connectors plug in through an entry point. See Connectors.

Embedding. An iframe with a one-shot ticket, the <sim-mirror> element themed with CSS custom properties, or SimMirror inside a Python application with its own sign-in.

Settings panel. sim-mirror open --settings puts every setting a click away in the viewer, a tab per section, saved for one project or all of them and applied before it says so. Settings that decide what runs or who may reach the daemon wait for a code from sim-mirror settings confirm. See The settings panel.

Doctor. Checks Xcode, its Simulator frameworks, runtimes, idb_companion, Device Hub and the desktop session, then proves a tap reaches a simulator. See the doctor.

Security. Loopback only, a Host allowlist, exact Origin checks, CORS and framing only for origins you list, hashed scoped tokens, and one-shot codes in URL fragments. See Security.

Build and test. sim_build_run and sim_test build with xcodebuild for the agent's simulator, install and launch, and answer with only what failed and where -- each failing test named so it can be run again alone, and on another simulator when asked. Off by default, since they run commands: sim-mirror config set build.tools true.

Measure the token cost

benchmarks/tool_budget.py calls each read-only tool through the same MCP relay a client uses and prints each answer's bytes, estimated tokens and latency on your own screens; see the token budget example. On an iPhone 17 Pro simulator (iOS 26.5, idb connector) showing Settings → General, 5 calls each (2026-09-16):

Call Tool Bytes Tokens (est.) p50 ms p95 ms
device info sim_device 265 46 2.9 3.6
snapshot, full sim_snapshot 561 112 64.8 76.4
snapshot, diff of an unchanged screen sim_snapshot 83 5 63.2 64.8
screenshot, 400 px wide sim_screenshot 62222 469 8.2 8.9
screenshot, 1200 px wide sim_screenshot 276472 4181 20.4 21.9

Bytes are the whole answer, an image's base64 included; tokens are estimates (text at about 4 characters a token, an image at about 750 pixels a token).

Compatibility

Expected to work
macOS 26 (15 with Xcode 16.4, view-only)
Xcode 26 and 27
Connectors idb_companion 1.5 (full control), simctl (view-only)
Clients Claude Code, Codex, Cursor, any stdio MCP client
Browsers Chrome, Safari, Firefox, Edge

Rows checked on real hardware are marked verified, with the date, in Compatibility.

While SimMirror is 0.x, the tools, the protocol and the embedding API can still change in a minor release, and the changelog says when they do; from 1.0 they are held to what SimMirror promises not to break. Pin an exact version either way.

Documentation

Everything: getting started, clients, embedding, screen understanding, connectors, security, architecture, and the reference for tools, configuration, the command line and the protocol.

Roadmap

Milestone What it brings
v0.1 (preview) Live viewer, agent cursor, person and agent control, MCP tools, sim-mirror doctor, idb and simctl connectors, build and test as a preview
v1.0 Stable protocol and embedding API, PyPI and npm packages, the MCP registry
v1.1 Build, run and test tools become stable
v1.2 Richer screen understanding, a native Swift helper, Xcode 27 mcpbridge connector, one shared daemon for many hosts
v2.0 Real iPhones: view, install and launch without signing; full control through WebDriverAgent
Android Android emulator support with the same viewer, cursor and tools
Homebrew brew install andrewkochulab/tap/sim-mirror, right after v1.0
Website & launch Landing page, video tutorials and guides

See ROADMAP.md and the milestones. How SimMirror relates to other tools is in Comparison.

Contributing

Contributions are welcome. Read CONTRIBUTING.md and the Code of Conduct; AI coding agents read AGENTS.md. Report security issues privately as described in SECURITY.md. Questions go to Discussions.

License

Apache-2.0. See NOTICE and THIRD_PARTY_LICENSES.md.

SimMirror is an independent project, not affiliated with Apple or Anthropic. iOS, iPhone, Xcode and Simulator are trademarks of Apple Inc.; Claude and Claude Code are trademarks of Anthropic PBC.

Release files for sim-mirror 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sim-mirror 0.2.0
File Size Uploaded
sim_mirror-0.2.0.tar.gz 286.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sim-mirror 0.2.0
File Interpreter ABI Platform
sim_mirror-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 647.9 kB

Release files / sim_mirror-0.2.0.tar.gz

Download URL sim_mirror-0.2.0.tar.gz
Size 286.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7f3de9695d577a51192abb5e71b424bf446a62873e16430e50b66422e263b12
BLAKE2b-256 checksum
How to use checksums
9921df7e5349129da2be901d7e50745e05c517ea31b1e2d11f48ea897d7fe140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / sim_mirror-0.2.0-py3-none-any.whl

Download URL sim_mirror-0.2.0-py3-none-any.whl
Size 361.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c3d6417036f736cd574f37780437cdab0b7304b8e253e1206d7dbe0d2e49ca9
BLAKE2b-256 checksum
How to use checksums
6788883c9b0640001ada7b83dbf412fba1bdb87ffe38b0914963a7729468ae06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.0

2 release files

1.0.0

2 release files

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page