Exact: one app on web, Mac, iPhone and Linux, tested by an agent (the repo and the prompt)
The short version
Exact (github.com/expo/exact) is a new open-source project from Expo, MIT licensed. You describe your app's screens once, in a small declarative language called Contract, and it runs natively on the web, macOS, iOS and Linux: the browser's own page on the web, Apple's own AppKit and UIKit controls on Mac and iPhone, and its own GPU painter on Linux. The README says there is no webview and no JavaScript bridge in the UI.
It is built so a coding agent can make the app, run it, look at it and test it on every platform. This page is the setup, the prompt Expo gives for trying it, and what to know before you rely on it. It is early: pre-1.0, it changes daily, and Android and Windows are still in progress.
| Idea | What it means |
|---|---|
| Write the screen once | One app.contract describes the interface for every platform |
| Ten operations | tree, screenshot, tap, type, state, layout, logs, clock, prefer, perf work the same on every host through one script, scripts/agent.mjs |
| The agent owns the clock | It says clock +60000 or clock settle instead of waiting, so animations never make a test fail at random |
| Tests are scripts | An app.test.contract file runs unchanged on any host |
Expo's own run: a fresh agent given the earlier version of the prompt below finished in about 57 minutes, and its tests passed on web, macOS and the iOS Simulator. About 25 of those minutes were the first macOS and iOS builds, on a machine with warm caches.
What you need
| Need | Notes |
|---|---|
| A Mac with Xcode 27.1 or later | For the Apple builds; exact setup --check checks it |
| Rust (rustup) and Bun 1.4.2 | The version the repo pins; Node and npm are not needed |
| Google Chrome | The agent drives the web through headless Chrome |
| Time for the first build | Ten to fifteen minutes natively; later builds take a minute or two |
Set it up
| Step | What you do | Done when |
|---|---|---|
| 1 | Clone github.com/expo/exact | The repo is on your machine |
| 2 | Run bun scripts/exact.mjs setup once |
Setup finishes without errors |
| 3 | Make an app: bun scripts/exact.mjs new <path> |
A new app folder exists; read docs/start-here.md |
| 4 | Run it: bun host/apple/build.mjs --run (Mac) or --ios --run (iPhone Simulator) |
The app opens |
Copy these prompts
Paste them into Claude Code on the Mac that has the tools installed.
1. The README's own prompt
Clone https://github.com/expo/exact and follow its README to make a new Exact app with `exact new`. Run `bun scripts/exact.mjs setup` once first. Make a todo list where I can add items, check them off, delete them, and see how many are left. Put the view in Contract and keep the list in `app.ts`. Write an `app.test.contract`, pass it on web, macOS, and the iOS Simulator with `scripts/agent.mjs`, then open the app for me on all three.
2. Check your machine first
Before I try Exact (github.com/expo/exact), check this Mac for what it needs: Xcode 27.1 or later, Rust through rustup, Bun 1.4.2 and Google Chrome. Tell me what is missing and the command to install each, but do not install anything until I say so.
3. Read what the clock does
Read the "Agent native" section of the README at github.com/expo/exact. In plain words, explain what "the clock belongs to the agent" means, how `clock +60000` and `clock settle` differ, and show me one short example of a test that uses them.
If you are building something like this
Two ideas are worth copying. First, a small fixed set of agent operations that are identical on every platform: the README says the predecessor's agent API grew to eighty wire names, and this one stays at ten on purpose. Second, giving the agent control of time, so a test never waits on an animation and cannot fail at random. If you ship an app on more than one platform, ask which of your tests would stop being flaky if nothing moved between two steps.
What to know before you rely on it
- Pre-1.0 and it changes daily: no API stability, no backwards compatibility and no migration guide, by design.
- Android and Windows are early and in progress. An app builds and runs on both; the README lists what each still lacks.
- Feedback: an app's agent notes friction in a local
.exact/folder. It goes to Expo only if the project's answer allows it (always, or a yes to the defaultask, afterbun exact.mjs feedbackshows exactly what would be sent).bun exact.mjs feedback neverstops it for a project, andEXACT_FEEDBACK=0blocks every send on the machine. - The 57-minute figure is Expo's own run with warm caches, not a promise for your machine.
Run this on your codebase
Look at my project's tests. Which ones wait on a timer, an animation or a network call, and which have failed at random in the last month? For each, tell me what would have to be controlled (the clock, the network, the data) for the test to run the same way every time, and which platform each one runs on.