Eyes and hands for agentic mobile development
Install driftx, connect your agent, and it can see and interact with your running app on iOS simulators and Android emulators.
What you can do
driftx gives your agent the ability to see and interact with your app. What it does with that ability is up to you.
01
Agent compares your design against the running app, spots differences, writes code, rechecks.
02
Agent sees the problem, inspects the component tree, finds the offending component, fixes it.
03
Full component hierarchy with testIDs, bounds, and props.
04
Pixel-diff against designs. Contrast, labels, touch target audits.
05
Agent navigates, interacts, captures along the way.
How it works
Three systems working together to give your agent accurate, fast feedback.
4-tier fallback system: CDP fiber tree, XCUITest companion, accessibility query, fiber measureInWindow. If one path fails, the next takes over automatically.
Pre-built XCUITest server that auto-launches on your simulator. Ships in the npm package. No Xcode build step required.
Pixel-by-pixel comparison against designs, accessibility checks, and layout regression detection. Your agent sees what your users see.
Quick start
npm install -g driftx
driftx setup-claude
driftx doctor
Commands
Grouped by purpose. Your agent picks the right tool for the job.
See
| capture | Take a screenshot of the current screen |
| inspect | Get the full component hierarchy with testIDs, bounds, and props |
Interact
| tap | Tap an element by testID, text, or coordinates |
| type | Type text into the focused input |
| swipe | Swipe in a direction on the screen |
| go-back | Navigate back |
| open-url | Open a deep link in the app |
Compare
| compare --design <path> | Pixel-diff the current screen against a design file |
| compare --with a11y | Run accessibility checks on the current screen |
| compare --baseline | Compare against a layout regression baseline |
Platform support
| Platform | Status |
|---|---|
| iOS Simulator | Supported |
| Android Emulator | Supported |
| Physical Devices | Coming soon |