Exact Thinks Your App's Primary User Is an AI Agent
The Expo team's Rust runtime compiles one interface into web, macOS, iOS, and Linux, then hands an agent ten operations to build, see, and test it. Its most radical choice: the app has no clock of its own.
- Exact treats the coding agent, not the human, as the app's primary user, and writes its documentation as a briefing for a machine.
- The runtime exposes exactly ten operations on every host and keeps them small on purpose, because an agent API grows one reasonable addition at a time until no one can hold it in mind.
- The app owns no clock: time is a state value the agent sets and steps, which is what makes screenshots, state dumps, and performance runs reproducible.
- One Contract interface compiles to a plan that drives the real DOM on web and runs through a Rust runner with native painting on macOS, iOS, and Linux.
The Agent Is the User
"Write an app once. It runs natively on the web, macOS, iOS, and Linux, and an AI agent can build it, run it, see it, and test it on every one of them." That is the pitch in the expo/exact README. The second half is the part worth pausing on.
Every cross-platform framework of the last decade was designed for a person at a keyboard and retrofitted for automation. Exact inverts the assumption. Its primary user is a coding agent, with a human directing it, and the repository is built around that fact.
The clearest evidence is a file called AGENTS.md, written not for a person but as a briefing for a machine. It names which files are "the only required reading," marks others as lookup-only, tells the agent to file feedback with bun exact.mjs feedback note, and even dictates prose style. The docs assume the reader is a model with a limited context window, and they spend it carefully.
The runtime exposes ten operations, identical on every host:
tree: read the current view hierarchyscreenshot: capture the rendered frametap: drive a touch or clicktype: enter textstate: read and set app statelayout: inspect computed boxeslogs: pull runtime outputclock: set and step timeprefer: adjust preferencesperf: measure the frame
Ten is not an arbitrary number. The README argues that an agent API "grows one reasonable addition at a time until no one can hold it in mind." A small, fixed surface is a design constraint, not an oversight. It is also what makes the same automation work whether the app is running in a browser or on a phone.
Context worth keeping in mind: this comes from the expo organization, the team behind the most widely used React Native toolchain, and the project reads as a deliberate swing away from React Native entirely. Evan Bacon's essay Farewell Expo describes the same pendulum from the other end, the moment Expo's runtime stopped being a fixed bundle and started generating itself per project.
Write an app once. It runs natively on the web, macOS, iOS, and Linux, and an AI agent can build it, run it, see it, and test it on every one of them.
The Clock Belongs to the Agent
Here is the choice that makes the ten operations actually work. In Exact, the app does not own a clock. Time is a state value, and the agent sets it.
The bundled Caltrain demo makes this concrete. It seeds a fixed day and holds the current time as ordinary state:
state seededEpoch = 1787915400000
state nowMs = seededEpoch
// The seeded schedule's day; `tick` reads the clock from it, so a tick a
// suspension skipped leaves the time right
Nothing reads Date.now(). The schedule is synthetic and deterministic by construction: three service tiers with fixed offsets, train numbers generated by formula, no clock and no randomness. A countdown is a pure function of the clock the runner supplies. The comment above is the tell. A tick that a suspended device skipped does not corrupt the time, because the app never advanced the time on its own.
This is why screenshot, state, and perf are reproducible. An agent can set time, step it, and get the same frame twice. A human developer can too. Determinism is not a feature bolted onto the testing layer. It is baked into the model of time itself, and that is the piece almost no other framework offers.
One Contract, Four Hosts
With that mechanism in hand, the rest of the architecture is easier to read. The interface is written in a small declarative language called Contract, which compiles to a compact plan. A short entry point per app shows the whole pipeline:
pub fn compile() -> Result<Plan, contract::CompileError> {
contract::compile_path(Path::new(concat!(env!("CARGO_MANIFEST_DIR"), "/app.contract")))
}
pub fn build() -> Result<Plan, Box<dyn std::error::Error>> {
let plan = compile()?;
let entries = contract::snapshot::entries(Path::new(env!("CARGO_MANIFEST_DIR")))?;
contract::snapshot::bake_app(&entries, plan, caltrain_data::Caltrain, caltrain_data::Caltrain)
...
}
pub fn boot(plan: Plan, kernel: Kernel) -> Result<Runner<caltrain_data::Caltrain>, RunnerError> {
Runner::boot(plan, caltrain_data::Caltrain, kernel, Default::default(), "/")
}
The bake_app call is where the "no app JavaScript before the first pixel" claim comes from. At build time, Exact evaluates every resource's boot value and writes it into the plan, so the first frame is compiled data rather than a script that has to run first. The plan then travels to a host.
On web, the plan becomes one ES module over a runtime near 20 KB that drives the real DOM. On macOS, iOS, and Linux, a Rust runner executes the plan and a Rust layout kernel computes boxes using CSS rules, then AppKit, UIKit, or a GPU painter draws. Business logic is written once in Rust and reached by non-Rust runners through a stable ABI via exact_logic_abi::export!, so the web host can call the same data crate instead of reimplementing it. The workspace holds more than 200 crates, and each app is a shared logic core plus one thin shell per platform.
The project states plainly: "There is no webview and no JavaScript bridge in the UI, and no app JavaScript runs before the first pixel." That is a large claim, and it is Exact's own. It is not independently benchmarked.
When a Command and a Fact Disagree
If the design were only about compiling layout, it would be ordinary. The Caltrain demo shows something harder. When the user starts a Live Activity, two things happen at once. The action produces a reply, a mutation that names the activity it created. Separately, the device produces a fact, the authoritative list of running activities, which eventually shows the same entry. For a moment, the reply and the fact disagree.
The reconciliation is a derived value called trackedId, and it reads like a small distributed-systems problem solved inside a UI language:
derive tracked = first(activities.activities.filter(a => a.kind == "departure" and (a.activityState == "active" or a.activityState == "stale")))
derive trackedId = match tracked { case some(a) => a.id, case none => following ? match activitySend { ... } : "" }
The device list wins when it has the entry. The mutation reply fills the gap until then. After an end, the reply names nothing, so a later tap cannot send an id the app no longer owns. The source comment says it directly: "The start's reply names the activity until the source lists it; after an end it names nothing, so a later tap sends no id it no longer owns."
This is the pattern that separates Exact from a layout compiler. It treats asynchronous device facts and command replies as first-class, and it folds them into a single derived value that the rest of the interface can trust.
What Exact Is Not
Exact is not a replacement for React Native, and the people behind it say so. It is a different bet: a shared declarative plan with different execution paths, plus an agent-first workflow. Against the established options, the shape is clear.
| Project | UI model | Native UI | Agent API |
|---|---|---|---|
| Exact | Contract compiled to a plan | Rust runner + layout kernel, native painting | Ten fixed operations on every host |
| React Native / Expo | React with JS/TS | Platform native components | Large and growing tooling surface |
| Flutter | Dart with its own renderer | Custom rendering | Not agent-first |
| Tauri | Web frontend in a platform webview | Webview-based | None built in |
| Electron | HTML/CSS/JS in Chromium | Webview-based | None built in |
| Slint | Declarative UI language | Native-oriented rendering | None built in |
| Compose Multiplatform | Kotlin declarative UI | Platform rendering | None built in |
The caveats matter as much as the table. Exact is pre-1.0 and MIT-licensed. Android appears as a per-app crate in the workspace but is not part of the headline platform claim of web, macOS, iOS, and Linux. The no-webview and no-JavaScript-before-first-pixel claims are the project's own and have not been independently benchmarked. Production maturity, accessibility, and ecosystem breadth are all open questions.
Even the community reaction keeps the "why not just use what we have" question honest. The creator of Expo answered it directly when a reader worried that Exact signaled the end of the existing framework.
What Exact is, precisely, is a bet that the next generation of app tooling should be designed for a machine that reads, writes, and verifies code. The owned clock and the ten operations are the proof that the bet is more than branding. Whether the four hosts hold up under real workloads is the question the benchmarks have not yet answered.





