To verify an AI coding agent’s change in a mobile app, make the agent run the changed flow in a live debug or QA build, record that run as a session, and review the evidence yourself. With Ansight, a session holds screenshots, UI trees, touches, logs, network requests, crashes and performance metrics from one run. You review the session instead of taking “done” on trust.
You have probably lived the alternative. You ask the agent to fix one screen, it reports “done”, and an hour later you open the app and find a different screen broken. This guide covers why that happens, what counts as proof, an eight-step workflow with commands, a review checklist, how the main approaches compare, and how to catch performance regressions. It ends with security notes and an FAQ.
Last verified against the Ansight docs and pricing on 26 November 2026.
Why do AI-generated mobile changes break silently?
AI-generated mobile changes break silently because the agent edits code and reports success without running the app the way a user would. Unit tests pass, the build is green, and the checkout button still does nothing. A message saying “done” describes what the agent intended, not what the app did.
Three kinds of damage get past the usual checks:
- Broken flows. The agent renames a route or reorders a view hierarchy. Each screen still compiles, but the path from cart to confirmation no longer completes.
- Regressions in neighbouring features. A shared component changes for one screen and shifts layout, state or navigation on three others. Unit tests cover the component, not the screens that use it.
- Performance drops. A new image loader or list rebuild works correctly and makes scrolling stutter or memory climb. Functional tests have no opinion about frame rate.
The agent can only judge its work by the evidence it has. If that evidence is a clean compile and a passing unit suite, it will report success with total confidence, and it will be wrong in exactly the places you care about. A sharper prompt does not fix that. Evidence from a real run of the app does, for the agent and for you.
What counts as proof of an agent’s change?
Proof is a record of a run that you can inspect without trusting the agent’s summary. A screenshot alone shows how one screen looked at one moment. An Ansight session is one recorded run of the app with screenshots, UI trees, touches, logs, network requests, crashes and performance metrics, all tied together on a single timeline.
| Question you need answered | Screenshot alone | Ansight session |
|---|---|---|
| Did the screen render? | Yes, for that frame | Yes, for every captured frame |
| Is the right element on screen, with the right label? | You guess from pixels | The UI tree lists the elements |
| What did the agent tap or swipe? | Not shown | Touches are recorded |
| Did the app log an error or warning? | Not shown | Logs sit on the same timeline |
| Did the right request go out, and did it succeed? | Not shown | Network requests are recorded |
| Did the app crash or hang? | Only if it happened on screen | Crashes are recorded |
| Did memory or frame rate get worse? | Not shown | Performance metrics are recorded |
Ansight’s own definition is blunt: a recording shows pixels, and a pass or fail says the agent reached the end. The evidence is what lets you confirm the app did the right thing, the right way, at an acceptable speed. The capture modes guide explains which of these evidence types each setup provides.

How do you verify an agent’s change step by step?
Verification takes eight steps, seven of them local, with Ansight Cloud as an optional final step. You add the SDK to a development build, start the host on your machine, enrol the app, install skills for your agent, let the agent run the flow, review the session, and save the check as a repeatable test. The workflow below works with Cursor, Claude Code and Codex.
Step 1: Add the Ansight SDK to a debug or QA build
Add the SDK to a development or QA build of your app. It supports .NET MAUI (iOS, Android, Mac Catalyst), native iOS (SwiftUI and UIKit), native Android (Jetpack Compose and Views), React Native and Expo development builds, Flutter, and Capacitor. Setup differs by stack, so follow the SDK docs for yours.
The SDK is not for production builds. Keep it, enrollment and remote tools behind a developer-only guard:
- iOS: imports and initialization behind
#if DEBUG, linked to a development target only. - Android:
debugImplementationandsrc/debug, so release variants never compile it. - React Native: startup guarded by
__DEV__. - Flutter: guarded by
kDebugModeor a development flavor. - .NET MAUI: Debug-only
PackageReferenceitems and#if DEBUG; protected builds setAnsightRemoteToolsPolicy=Disallowed. - Capacitor: plugin wiring in a development-only native target.
The quickest route is to let your agent do it. In the app repository, send:
Use https://www.ansight.ai/skills/ansight-install.md to set up Ansight in this project and verify a connected development build.
The install skill keeps Ansight behind your developer-build guard. Read the diff before you commit. Then build your production variant in CI and fail the job if the finished app contains any Ansight package.
Step 2: Start the resident host
Install the CLI (curl -fsSL https://www.ansight.ai/install.sh | bash on macOS and Linux, or irm https://www.ansight.ai/install.ps1 | iex in Windows PowerShell), run ansight doctor, then start the host on your dev machine:
ansight host run
The host is a resident process that receives the SDK’s evidence, stores it as local files and serves the local player. Keep it running. Add --open to open the player in your browser straight away.
Step 3: Enrol the app
Enrollment (also called pairing) connects an app installation to your host.
- Simulators and emulators enrol automatically over loopback. Launch the development build and it finds the host. No camera or QR code is involved.
- Physical devices scan a one-use QR invite. Open the pairing screen the SDK exposes from a developer-only screen in your app, then run:
ansight pairing issue --qr
Scan the code in the terminal. Later development launches reconnect automatically while the registration stays active. On iOS, add NSCameraUsageDescription and NSLocalNetworkUsageDescription to the development variant only (enrollment permissions). Treat the QR as a credential.
Check the connection:
ansight session list --connected --json
ansight app tools <session-id> --detail summary --include-unavailable --json
Step 4: Install the Ansight skills
Skills are Markdown instruction files that teach your agent which ansight commands to run. The CLI installer can install the core set, or you can point your agent at a skill URL. There is no MCP server. The resident host does not expose an MCP listener. Cursor, Claude Code and Codex run ansight commands with --json, like any other CLI. See the skills docs for the list.
Step 5: Have the agent operate the live app
Now ask the agent to perform the changed flow. A prompt that works well names the flow, the expected end state and the evidence you want back:
I changed the checkout flow. Use the Ansight skills to operate the connected
app: add an item to the cart, enter a shipping address, pay with the test
card and reach the confirmation screen. Then investigate the session and
report: which screens were reached, any errors in the logs, any failed
network requests, and whether memory or frame rate looks worse than a
normal run. Leave the session ID in your answer.
The agent drives the app through the CLI and inspects it with remote tools, which are in-app operations the SDK exposes, such as reading the UI tree or app state. Remote tools are capped by a policy: read for inspection, write for ordinary UI actions and app-state changes, and critical for deletes, secrets and arbitrary code. The ceiling comes from enrollment and from the SDK guard in your app, and both must allow a tool before it runs. If a tool the agent needs is missing, the --include-unavailable listing above shows the denial state.
Step 6: Review the captured session
Open the session in the local player, a browser UI served on 127.0.0.1:
ansight session list
ansight session serve <session-id> --open
Scrub the timeline to compare what the screen showed with what the app logged and requested. Or inspect from the terminal: ansight session show, logs, metrics, images, touches and trees, each with --json. The replay and review docs cover the player. The checklist in the next section says what to look for.
Step 7: Save the check as a repeatable test
A one-off session proves one change. To check the same flow after the next agent commit, save it as a source-controlled test in your workspace, an ansight/ folder beside your app:
ansight workspace init . --app-id com.example.app
ansight workspace add test . checkout.smoke \
--app-id com.example.app \
--prompt "Add an item to the cart and complete checkout with the test card." \
--assertion "The order confirmation screen is visible"
ansight test validate .
ansight test run . checkout.smoke
You can also cut a test from a session you already recorded with ansight task extract <session-id> --start 12.5 --end 24.8 --format test --workspace .. The workspace holds tests (YAML scenarios), tasks (TypeScript workflows), triggers, Trends definitions and sanitizers. Tasks and sanitizers are trusted local code, so review them as you would any script. A test that names only a task runs deterministically. A test with a prompt runs through an agent and may send prompts and selected evidence to the configured model provider. See workspace tests.
Step 8 (optional): Share the session through Ansight Cloud
If a teammate needs to see the run, sign in with ansight account login and share it. Ansight Cloud is opt-in. The steps above need no account. Cloud adds session sharing, Trends history, test tracking and hosted AI runs, and plans start at US$19 a month with a seven-day trial (pricing). Note that ansight session share uploads the raw capture by default. Add --sanitize, or --sanitizer <module.ts> for your own rules, to share a redacted copy.
What should you review in a session?
Review a session the way you would review a diff: with a short, fixed checklist. Developers should work through every item. Engineering managers can sample the same list to confirm that “tested by the agent” means something.
- UI tree and screens reached. Does the sequence of screens match the flow you asked for? Are the expected elements present, with the right labels, and nothing unexpected on screen at the end?
- Touches performed. Did the agent tap the real controls, in a sensible order? A flow that “passed” because the agent skipped a step is a failed flow.
- Logs and errors. Look for exceptions, warnings and error-level lines near the moment the flow ran. Compare against a session from before the change.
- Network requests. Did each expected request go out once, to the right endpoint, and succeed? Watch for repeated calls, failed calls and calls that never fired.
- Crashes. Any crash in the session fails the check, even if the agent recovered and carried on.
- Performance metrics. Compare memory and frame rate across the flow with an earlier session. A single odd spike matters less than a trend, which the next section covers.
- Final state. Does the last screenshot and UI tree show the outcome the change promised, not just a screen that looks plausible?
If any item fails, add an annotation at that moment in the player and hand the session ID back to the agent. It can inspect the same evidence and fix with context.
How do the approaches to verifying mobile changes compare?
Each approach answers a different question, and most teams end up using more than one. The table sorts them by class, not by vendor.
| Approach | What it gives you | When it fits | Where it falls short |
|---|---|---|---|
| Manual re-testing | A human’s judgement on a real flow | Exploratory checks, visual polish, last-mile sign-off | Slow, inconsistent, and repeated after every agent commit |
| Screen recording | A video of what appeared | Showing a stakeholder a bug or a demo | Pixels only: no logs, requests, UI state or metrics to explain what happened |
| Hand-written scripted E2E suites | Deterministic, repeatable pass or fail in CI | Release gating, stable critical paths, compliance evidence | Costly to write and maintain; selectors break when UI changes; a pass says little about speed or what the app logged |
| Real-device clouds | Many real devices, OS versions and form factors | Broad device coverage, release gating, hardware-specific bugs | Slower feedback in the edit-test loop; usually built for scripted runs, not for an agent that is mid-change |
| Agent-driven sessions with runtime evidence | The agent runs the changed flow and leaves a full session for review | The inner loop on dev and QA builds, reproducing bugs, spotting performance drift per commit | Needs the SDK in a debug or QA build; covers the simulators and devices you connect, not a device matrix |
Real-device clouds and scripted suites remain the right tools for broad device coverage and release gating, and nothing here replaces them. Agent-driven sessions cover the stretch before that stage: the minutes after an agent commit, when you need to know whether the change works and what it did to the app. How Ansight compares goes deeper.
How do you catch performance regressions in agent commits?
Use the performance metrics captured in every session, then use Trends to compare runs over time. Trends are performance checks you define in your workspace. Each one watches a window between two events your app already emits, such as login started and login completed, and measures values like memory and frame rate inside it.
The mechanics, from the Trends docs:
- Budgets. Set an acceptable limit per metric, for example a minimum frame rate during login. Each run is checked against it when the session ends.
- Baselines. Add a regression rule and Ansight compares the metric against comparable earlier runs. By default the baseline is the median of up to 10 comparable runs, and it needs at least 5 before it decides. Different platforms, device models and major OS versions are kept separate.
- Statuses. A first result beyond the limit is Suspect. It becomes Regressed after a configured number of consecutive affected runs, and Recovered once a later run is back within the limit. Warmup means more reference runs are needed.
- History. Trends history is stored locally. Uploading it to Ansight Cloud (
ansight cloud trends sync <app-id> --team-id <org-id>) gives your team a shared performance history across runs and machines, which you can read withansight trends history --app-id <app-id>.
Put together, every agent commit that touches a hot screen produces a session. When that session breaches a budget or drifts from its baseline, the Trends status points at the commit to suspect, and the session shows what the app was doing at the time.
This is a development and QA practice. Ansight runs in debug and QA builds, so Trends tell you about the builds your team is working on. They are not production monitoring.
Security and data: where does the evidence go?
By default, evidence stays on your side. The data path is app, then SDK, then the host on the same machine or local network, then local files. Nothing goes to Ansight Cloud unless you take an explicit action, such as sharing a session, uploading Trends history or running hosted workspace tests.
Points worth knowing before you adopt it:
- Sanitizers redact before sharing. A sanitizer is local TypeScript that produces a redacted copy of a capture before export or sharing, and it leaves the original capture unchanged. Test it on representative data first. See sanitizers.
- Remote tools are capped. The
read,writeandcriticalpolicy limits what an agent can do in the app, and protected builds should deny tools entirely. - The development transport is clear-text. Enrollment uses UDP and an unencrypted WebSocket. Use Ansight only on a trusted development or QA network, and treat the QR invite as a credential.
- Captures are ordinary files. They are protected by your operating system account and disk encryption, not by an encrypted vault.
- Agents have their own data path. Evidence an agent reads can be forwarded to that agent’s model provider. The agent only receives what it asks the CLI for.
- Usage analytics are separate. The CLI and local player send pseudonymous usage analytics that exclude session content.
Companion, a separate account-backed remote simulator connection, is not part of this local path and is not enabled by SDK enrollment. Full detail is in the data handling docs and the security docs.
FAQ
How do I know if my AI coding agent broke something in my iOS app?
Run the changed flow in a development build and review the recorded session. Check that the expected screens were reached, the logs hold no new errors, the expected network requests succeeded, no crash occurred, and memory and frame rate match an earlier run. A passing unit suite alone does not show that the app still works.
How do I verify an AI agent’s code change didn’t silently break my app?
Make the agent operate the live app and leave a session, then review the session instead of the agent’s summary. Ansight records screenshots, UI trees, touches, logs, network requests, crashes and performance metrics for the run. Save the flow as a workspace test so the same check repeats after the next change.
What’s the difference between screen recording and runtime evidence?
A screen recording shows what appeared on screen. Runtime evidence shows what the app did: the UI tree behind each screen, the touches performed, logs, network requests, crashes and performance metrics, all on one timeline. Recording tells you something looked wrong. Evidence helps you find out why.
Do I need an MCP server?
No. Ansight has no MCP server and the host does not expose an MCP listener. Your agent, whether Cursor, Claude Code or Codex, runs ansight commands with --json. Installed skills teach it which commands to use for inspecting a live app and investigating a session.
Does Ansight work in production?
No. Ansight is for development and QA builds only. Keep the SDK, enrollment and remote tools behind a developer-only guard, and check in CI that your production build contains no Ansight packages. Trends and performance metrics describe dev and QA builds, not production traffic.
Does my data leave my machine?
Not by default. The SDK sends evidence to the host on your machine or local network, and captures are stored as local files. Data leaves only through explicit actions such as a ZIP export, sharing a session to Ansight Cloud, uploading Trends history, or running hosted workspace tests. Your coding agent’s own model provider is a separate path.
Do I need an Ansight account or Cloud?
No. The CLI, host, local player, capture, inspection and workspace tests run locally without an account. Cloud is optional and adds team session sharing, Trends history, test tracking and hosted AI runs. You can start free with the CLI download and the getting started guide.
How does a physical device connect?
Run ansight pairing issue --qr while the host is running, then scan the one-use QR invite from the pairing screen in your development build. Simulators and emulators connect automatically over loopback and need no QR code.
Where to go next
Install the CLI, run ansight host run, and ask your agent to show you the run behind its next “done”. The command reference, SDK docs, pricing for optional Cloud, and data handling docs cover the rest.