Evaluating AI Coding Agents on Mobile App Development: Engineering Trade-Offs Between Completion and Cost
This article explains how to evaluate AI coding agents on real mobile app development tasks rather than isolated code generation. It covers four core metrics—pass rate, average completion, execution time, and runtime cost—and explains why they must be interpreted together, why high completion does not guarantee high pass rates, why the evaluation target is the full execution system rather than the model alone, and how teams can build reproducible in-house benchmarks with staged verification and budget allocation. The goal is to measure sustainable, maintainable delivery instead of raw code output.
I. From “Generating Code” to “Completing Engineering Tasks”
The most common bias in evaluating AI coding capability is equating “can write a piece of code” with “can deliver a feature.”
In mobile app development, even a seemingly simple requirement often involves UI interaction, state management, data persistence, permission handling, lifecycle adaptation, and build configuration at the same time. Code that compiles may still fail during page transitions, unexpected input, network interruptions, or background restoration.
Therefore, evaluation for real development scenarios must shift from local code correctness to end-to-end task completion. Typical tasks fall into four categories:
- App creation: produce a buildable, runnable app with a basic interaction loop based on requirements.
- Feature development: add capabilities to an existing project while keeping original behavior stable.
- Code migration: adjust interfaces, dependencies, or project structure without introducing compatibility issues.
- App transformation: change interaction patterns, data organization, or architecture while preserving key business semantics.
The difficulty of these tasks lies not only in code generation but also in understanding context, identifying constraints, planning the scope of changes, and recovering effectively after failures. What evaluation results actually reflect is the combined effect of model reasoning, agent execution strategy, and the engineering environment.
II. How to Read the Four Core Metrics Together
1. Pass rate: whether a task meets the delivery bar
Pass rate typically means the proportion of tasks that meet the predefined acceptance criteria. For engineering tasks, it is closer to real delivery goals than lines of code, number of modified files, or quality of textual explanations.
But interpreting pass rate requires a clear statistical basis. Readers need to know at least:
- Whether each task has only binary outcomes (success/failure);
- Whether repeated runs are performed;
- Whether task weighting is applied;
- Whether human intervention is allowed;
- Whether time, retry, or cost limits are set.
If an evaluation contains only 30 tasks, each run once with equal weight, then one task corresponds to roughly 3.33 percentage points of pass rate. If reported results do not follow this discrete pattern, you need to check whether repeated-run averaging, weighted aggregation, or other statistical methods were used—rather than directly inferring the number of successful tasks by multiplying pass rate by task count.
2. Average completion: measuring progress, not replacing acceptance
Completion helps distinguish “no progress at all” from “most requirements implemented, but a critical defect remains.”
For example, a feature may have four acceptance points: UI display, data saving, error messaging, and recovery handling. A tool might complete the first three but miss recovery. Scored per acceptance point, that task gets high completion, yet it cannot be considered fully delivered.
Note that acceptance points differ in business importance. Missing a decorative effect is not equivalent to a risk of data loss, even if both count as “one missing item.”
High completion therefore has at least two interpretations:
- The core implementation is done, and the remaining work is suitable for a developer to finish quickly;
- Many easily observable requirements were completed, while the hard problems that determine usability were not solved.
To tell which applies, you must examine the failed items and their remediation cost—not just the average.
3. Execution time: separate real work from waiting
Execution time for AI coding tasks may include requirement analysis, file retrieval, code modification, builds, tests, runtime verification, and retries after failure.
Longer duration may mean more thorough checking, or it may mean the agent is stuck in an inefficient loop—for example, repeatedly editing the same configuration, rerunning tests that yield no new information, or stacking patches on top of a wrong assumption.
In addition, “average time” should specify whether it is per-task time, full batch time, or cumulative execution time. With parallel runs, cumulative compute time differs from the user’s actual waiting time.
For teams, time metrics are best broken down into:
- Time to first runnable version;
- Time to meet all acceptance criteria;
- Build and test waiting time;
- Retry time with no effective progress;
- Manual wrap-up time after intervention.
Only this breakdown helps teams identify where to optimize.
4. Runtime cost is not delivery cost
Per-run fees are only part of the total investment. A low-cost approach that requires heavy human review and fixing may end up more expensive; a high-cost approach that still misses critical requirements is not worth adopting either.
A more engineering-realistic cost expression is:
Total delivery cost = automated execution fees + human review and fixing cost + verification cost + environment resource cost + post-delivery defect handling cost.
Fees from repeated executions should be counted under automated execution costs, to avoid being overlooked or double-counted.
Comparing only tool invocation fees can underestimate verification, security review, and maintenance investment. Especially for features involving user data, payment logic, or permission control, human review cannot be skipped just because automated completion is high.
III. Why High Completion Doesn’t Guarantee High Pass Rates
Long-horizon tasks have dependency chains: an early error constrains the effectiveness of every later step.
For example, if the requirement is misunderstood, the UI, data model, and tests may all be built around the wrong assumption. The final project runs but fails the original requirement. Adding more execution time does not necessarily help, because the agent may never re-examine its initial judgment.
Another failure mode is “local fixes damaging the whole.” Modifying shared configuration to fix one build error may break other modules; changing boundary behavior to pass one test may break existing features.
Long-horizon tasks therefore need three kinds of checks working together:
- Requirement check: does the implementation match the original acceptance criteria?
- Local check: did this change fix the target problem?
- Regression check: did the change break existing capabilities?
High completion coexisting with a low pass rate usually signals that teams should analyze the failures in the final stage, rather than simply asking the tool to generate more code. The real bottleneck may be constraint identification, state retention, verification coverage, or the stopping strategy.
IV. The Evaluation Target Is the Full Execution System
Differences between AI coding solutions do not come entirely from the model itself.
The same model with different code retrieval methods, context organization, tool permissions, and retry strategies can behave noticeably differently. Conversely, different models under the same execution framework may produce different results due to varying degrees of engineering adaptation.
A rigorous evaluation should therefore record:
- The initial project and task description;
- The scope of files that can be read and modified;
- Available build and test capabilities;
- Context management strategy;
- Maximum runtime and cost limits;
- Retry rules and termination conditions;
- The form of human involvement;
- The final acceptance method.
If these conditions differ, results are better described as “the performance of an entire execution setup in a specific environment” rather than attributed directly to model capability.
This distinction also prevents misreading leaderboards: a single score is an observation under a specific task distribution and execution configuration, and does not automatically generalize to all projects.
V. How to Build Your Own Reproducible Evaluation
Step 1: Choose representative tasks
An internal evaluation should not consist only of easy-to-demo page generation tasks; it should cover the major risks of real work.
For example, include new feature development, legacy bug fixes, dependency adjustments, data persistence refactoring, and exception scenario handling. Task difficulty should be tiered, so that a surplus of easy tasks doesn’t mask weaknesses on complex ones.
Tasks should also come from different modules, preventing results from overfitting to one code structure or business pattern.
Step 2: Define acceptance criteria before execution
Each task should specify functional requirements, forbidden modification scopes, compatibility constraints, and verification methods.
Acceptance criteria should be as observable as possible. “Good UI experience” is too vague; break it down into whether input feedback is clear, whether loading states are visible, whether retry is possible after failure, and whether state is correct after page restoration.
Do not adjust pass criteria after seeing the tool’s output—otherwise the evaluation becomes vulnerable to subjective preference.
Step 3: Use layered verification
Organize verification from low cost to high cost:
- Check project structure and obvious static issues;
- Run builds and basic tests;
- Verify key business logic;
- Run core interaction flows;
- Check abnormal input, permission denial, and interruption recovery;
- Conduct human review of critical changes.
A successful build only proves the project passed a specific build process, not that the business logic is correct. Passing tests also depends on coverage, so key features still require requirement review and runtime observation.
Step 4: Record the process, not just the final patch
Evaluation records should include the modification trajectory, execution logs, failure causes, retry counts, and the final diff.
This information answers a critical question: is the success stably reproducible, or did it pass by chance?
For stochastic execution flows, run multiple independent trials when budget allows, and report the mean, variance, and failure types together. With small samples, avoid interpreting tiny score differences as definitive advantages.
VI. Allocate Execution Budget to the Tasks That Need It
In enterprise adoption, not all tasks should use the same execution depth.
Low-risk tasks with clear scope and easy automated verification can use shorter execution cycles first, producing patches quickly for review. Tasks involving multi-module coordination, complex state, or high-risk data operations need fuller planning, verification, and human involvement.
A practical approach is staged gates:
- First confirm requirement understanding and the modification plan;
- Then generate a minimal verifiable implementation;
- After verification passes, fill in edge cases;
- When the budget or retry limit is reached, pause, output a problem summary, and hand over to a human.
The pause mechanism is especially important. Continuous running does not equal continuous progress. When consecutive retries produce no new diagnostic information, further investment usually only increases cost.
If an escalation mechanism between different execution tiers is introduced, hand over verified facts, key logs, and the minimal necessary changes—avoid carrying large amounts of ineffective attempts into the next stage.
VII. Focus on “Maintainable, Effective Delivery”
The value of AI coding evaluation is not producing a ranking detached from engineering context, but helping teams identify capability boundaries, allocate execution budgets, and reduce delivery risk.
Pass rate answers whether a task crossed the acceptance bar; completion reveals how far it is from the goal; time reflects the feedback cycle; and cost describes direct investment. All four must be analyzed together with the nature of failures, the difficulty of human takeover, and the maintenance burden.
The result truly worth tracking is whether, under consistent quality standards, the team can deliver runnable, verifiable, and maintainable features more reliably. When evaluation shifts from “who generates more” to “who reduces total rework,” AI coding tools move from demo capability to sustainable engineering productivity.
