Engineering

How Apirex checks its own work before it says "done"

What Apirex actually did in our real Streakly builds before it called them done: real Gradle and Xcode builds, a screenshot and click-through test, questions before guessing, and a summary that listed what it could not check.

Apirex Team1 December 20268 min readAndroidWeb
How Apirex checks its own work before it says "done"
On this page
  1. 1. It runs the real build, and fixes it when it fails
  2. 2. It tests what it built
  3. 3. It tells you what it could not check
  4. 4. It asks before it guesses
  5. 5. When it is still wrong
  6. What we did not claim
  7. Frequently asked questions
  8. Try it

The worst thing an AI builder can do is say "done" over a broken app. You only find out later, when you open it and a button does nothing, or the build never compiled in the first place. So we wanted to know what Apirex actually checks before it finishes, and we went back through our own real builds of Streakly, the habit tracker we built on 30 November 2026 for Android, iPhone and the web.

Short version: Apirex runs the real build on your computer and fixes it when it fails, tests what it built, asks before it guesses, and tells you plainly what it could not check. Below is each part with the screenshots from those runs, including the part where it admitted it could not confirm something.

1. It runs the real build, and fixes it when it fails

An Android project in Apirex is Kotlin with Jetpack Compose, and an iPhone project is Swift with SwiftUI. Neither is a picture of an app. Before Apirex calls a native build done, it compiles it with the same tools a developer would use, on your own machine: Gradle for Android, xcodebuild for iPhone.

On the Android Streakly build the log read "BUILD SUCCESSFUL in 3m", 37 tasks executed, then ANDROID_APK_VERIFIED. When we asked for Android lint as well, it reported no errors and 32 warnings, and the debug build still passed. On the iPhone build, xcodebuild printed "** BUILD SUCCEEDED **" seven minutes and ten seconds into the run.

Apirex build log showing an Android Gradle build successful in 3 minutes and the APK verified
BUILD SUCCESSFUL in 3m and ANDROID_APK_VERIFIED, from the real Gradle build on our Mac.

Both of those passed on the first try, so to be honest, we have no footage yet of a build failing and being repaired. Here is what happens when it does: Apirex reads the build log, finds the file and line the error points to, fixes the code and runs the build again, until it passes. You do not copy an error into the chat or paste a stack trace anywhere. First-try success is true for these two builds; it is not a promise for every build, which is exactly why the fix loop exists.

It also reads before it writes. When we later asked for an AI coach in the Android app, the details panel showed it reading Data.kt, HabitViewModel.kt, AddHabitScreen.kt, StreakCalc.kt, TodayScreen.kt and HabitRepository.kt before it changed anything. The brief it wrote for itself ended with "Verify with a debug build and lint; report honestly what was not tested on a device."

Apirex details panel reading Kotlin files such as HabitViewModel.kt and TodayScreen.kt before writing changes to an Android app
Reading the existing Kotlin files first, with the brief on the left: verify with a debug build and lint.

2. It tests what it built

A build that compiles can still look wrong. On the Streakly website, a React + Vite project, Apirex did not stop after writing the files. The details panel shows the order: it wrote PhoneMock.tsx and index.tsx, then "Took a screenshot of your app" (17 seconds), then "Tested your app by clicking through it" (50 seconds).

Apirex details panel listing web build steps followed by Took a screenshot of your app and Tested your app by clicking through it
Write the files, take a screenshot of the running site, then click through it.

After the click-through it wrote "Doing one last check before finishing", made a few more small edits to PhoneMock.tsx and __root.tsx, and took a second screenshot (13 seconds) to look at the result. Only then did it write its summary. In total that is about 80 seconds of testing inside a run that took 4 minutes 36 seconds and 4.41 Rex Credits.

The self-test on the Streakly website, 30 November 2026.
CheckWhat it didTime
ScreenshotLooked at the running site17 s
Click-throughUsed the page like a visitor would50 s
Last checkSmall edits to PhoneMock.tsx and __root.tsxPart of the run
Second screenshotLooked again after the fixes13 s

3. It tells you what it could not check

This is the part we care about most. The website summary listed what it built, then what it did not finish. The Google Play button only said "Coming soon". And then this line: "I couldn't confirm the phone layout or the tap test: the phone-size snapshot showed only the top bar, and the automated tap on the phone timed out."

Apirex summary of a web build that says it could not confirm the phone layout or the tap test, next to Worked for 4:36 and 4.41 Rex Credits
"I couldn't confirm the phone layout or the tap test." We would rather read that than a summary that claims everything passed.

It was not a one-off. On a later Android run the card read "Screens remain unverified", with the reason underneath: "No changes were recorded, so I can't confirm that the screens or controls were tested." After the big Android fitness edit, the summary said it could not confirm that sensors, haptics, calorie tracking, reports, AI analysis or goal setting had been added. On iPhone, after adding AI features, it said it had not tested the AI connection in that run and that the Simulator has no motion sensors or Health data.

Apirex builder after an Android fitness edit with an exercise library of real photos and a summary of what was not confirmed
The Android fitness edit: 12 exercises with photos, next to a summary of what it did not confirm.

A list like that tells you where to look. When Apirex says the phone layout is unconfirmed, you open the preview at phone size first. When it says sensors are unconfirmed, you know the emulator is not the place to check them and a real phone is. That is worth more than a green tick on everything.

4. It asks before it guesses

The cheapest bug to fix is the one that never gets built. When a request can mean two different things, Apirex asks first. Our website prompt could have meant the habit tracker running in a browser or a landing page for the app, so it asked "What should this website be?" with three answers: the working app, a promo site, or both.

Apirex asking What should this website be with options for a working habit tracker app, a promo site or both
One question instead of a guess that could have cost a whole run.

Later, when we asked for an Install APK button, it asked "Where should the Install APK button get the file from?" because that was the one thing it could not know. For the Android AI coach it asked "What should the coach do first?", with a daily motivation tip, a weekly review, chat, and habit suggestions as options, and before the fitness section it asked three questions about scope, the app's direction and where data should be saved.

Apirex asking What should the coach do first with options for a daily tip, weekly review, chat and habit suggestions next to the Streakly Android app
"What should the coach do first?", question 2 of 3, next to the running Android app.

For bigger changes it writes a plan and waits. The AI coach plan opened as PLAN.md with a goal ("Add an AI coach to Streakly without changing existing behaviour") and a list of what would and would not change. Nothing was written until we pressed Approve plan. The original Streakly build worked the same way: four screens, Room storage and seed data in a plan card, approved before the first Kotlin file.

Apirex PLAN.md for a Streakly AI coach listing the goal and features before any code is written
The plan for the AI coach, opened as PLAN.md before any code changed.

5. When it is still wrong

Checks reduce mistakes; they do not remove them. When something in the result is off, you have two quick ways to fix it. The first is Visual Edit: click the element in the running app, on Android, iPhone or the web, and describe the change. The selection goes with your message, so "make this card bigger" points at exactly that card. On Android this runs in the built-in emulator, which needs an Apple Silicon Mac with macOS 13 or later.

Four habit cards selected with Apirex Android Visual Edit in the built-in emulator, composer showing 4 selected
Visual Edit: point at what is wrong in the running app, then say what you want.

The second is plain chat: describe what is wrong in your own words, typos and all. And if an idea does not work out, every change leaves a checkpoint in History that you can go back to.

What we did not claim

  • Your database is your own Supabase project, connected per app. Apirex does not promise to roll back data in it; History covers your project files.
  • Testing in the emulator or Simulator is not testing on every real phone. Sensors, Health data and some taps need a real device, and Apirex says so when it applies.
  • A summary is not a guarantee. It is the builder's honest report of what it checked, and it reads like one.

Frequently asked questions

Does Apirex test the app it builds?

Yes. Native builds are compiled for real with Gradle or xcodebuild on your computer, and on our web build Apirex took a screenshot (17 s), clicked through the site (50 s), fixed a few things and took a second screenshot (13 s) before finishing.

What happens if the build fails?

Apirex reads the build log, fixes the files the error points to and builds again until it passes. You do not need to copy errors into the chat.

Can I trust it when it says "done"?

Read the summary, not just the word done. In our builds it listed what it could not confirm, such as the phone layout on the website and sensors on Android. Those lines tell you exactly what to check yourself.

Does it ask before making big changes?

Yes. When a request is unclear it asks questions with clickable answers, and for bigger changes it writes a plan that waits for your approval before any code is written.

Can I see what it changed?

Yes. The details panel lists every file it read, wrote or edited, and every file opens with its diff. The project folder is on your own computer, so you can also open it in Android Studio, Xcode or any editor.

Can I go back to an earlier version?

Yes. Every change leaves a checkpoint in History, and you can return to an earlier one if an idea does not work out.

Try it

Ask for your app, and end the prompt with "tell me honestly what you could not test". Then read the last lines of the summary first. Your code. Your machine. Your build.

Build a website for your app with AI: a landing page for Streakly from one prompt, built in 4 minutes 36 seconds

Build it on your own computer

Describe the app and Apirex writes real source you own, then builds it on your machine.

Apirex build log showing an Android Gradle build successful in 3 minutes and the APK verifiedReal Android result from this post

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.