AI Coding Evaluation for Mobile Apps: Engineering Trade-offs Between Completion and Cost
This article explains how to evaluate agentic AI coding systems for mobile app development beyond leaderboard rankings. It covers what long-horizon development tasks test, how to read full pass rate, average completion rate, time, and cost, why high completion with long runtimes reflects real trade-offs, and how teams can build internal evaluations with layered acceptance, failure analysis, stage budgets, and risk-based usage.
1. From Leaderboard Rankings to Real Engineering Value
AI coding in mobile app development is moving from local code completion toward executing complex tasks over extended periods. A developer submits a requirement, and the agent may need to read the project structure, modify several modules, adjust dependency configurations, run builds, locate errors, and then verify the results through tests. For tasks like these, code generation is only one step.
The central question of an evaluation should therefore not be “Which system writes code faster?” It should be: under explicit resource constraints and acceptance criteria, how much deliverable work can an AI coding system complete, and how much rework does it leave behind when it fails?
Some results may show a high average completion rate but only a limited full pass rate, along with long execution times. These results are consistent with each other. They usually mean the system advances most development steps but still has gaps in build compatibility, state recovery, exception handling, or detailed acceptance checks.
To interpret these results, place leaderboard metrics back into the software engineering workflow. A ranking alone does not measure productivity.
2. What Long-Horizon Development Tasks Actually Test
Unlike generating a single function, long-horizon development tasks span multiple files, stages, and constraints. A requirement such as “add a list filtering feature” may involve UI state, data queries, loading feedback, empty-result display, error retry, and updates to existing tests.
1. Requirement Understanding and Constraint Identification
The agent first needs to distinguish mandatory acceptance criteria from implementation suggestions. For example, “support offline viewing” requires more than caching data. It also involves cache invalidation, data consistency, behavior on first launch when no cache exists, and the refresh strategy after network recovery.
If a system completes only the visible page and misses these implicit constraints, the code may be extensive, but the delivery quality can still be low.
2. Project Understanding and Change Localization
Real projects have existing architecture, naming conventions, and module boundaries. Effective changes reuse existing mechanisms instead of introducing a parallel implementation.
This stage determines whether later changes are easy to maintain. A new feature may work today, yet duplicated data access logic, cross-layer dependencies, or overly broad modifications can raise long-term costs.
3. Build, Testing, and Iterative Repair
An engineering task does not end when the code is generated. Whether the change builds, whether tests pass, and whether runtime behavior meets requirements form the basis for judging delivery.
Long-horizon evaluations often reveal an important difference. Some systems quickly produce a first draft, while others repair code more effectively based on tool feedback. More repair attempts do not automatically mean higher quality. Without effective diagnosis, a system can repeat attempts with little return.
3. How to Interpret the Four Core Metrics
1. Full Pass Rate: Measuring End-to-End Delivery Capability
Full pass rate usually refers to the share of tasks that meet the specified acceptance criteria. The exact calculation should follow the evaluation documentation.
This metric is direct, but it only makes sense relative to the task set. Pass rates for simple page development and complex migration tasks should not be compared directly. Task scale, acceptance strictness, compute resources, and time limits all change the results significantly.
When the number of tasks is small, one task can noticeably change the ranking. When comparing results, look at performance by task category, variation across repeated runs, and whether failure cases are publicly disclosed.
2. Average Completion Rate: Measuring Progress, Not Delivery Ratio
Average completion rate shows how many intermediate goals a system achieved, but its meaning depends heavily on the scoring method.
One approach gives equal weight to all acceptance items. Another assigns weights by importance. The two can produce very different results. If interface layout, copy display, and core data saving carry equal weight, a system that misses critical save logic may still post a good-looking completion rate.
A high completion rate therefore does not mean only a small amount of manual work remains. An unfinished item might be a minor copy adjustment, or it might require redesigning a data consistency mechanism. Their repair costs can differ greatly.
A more reliable practice is to report completion of critical acceptance items separately and record the engineering hours needed for manual takeover.
3. Time: Define the Measurement Boundary
“Average time” may refer to the execution time of a single task or to the total time needed to finish a group of tasks. Parallelism, queueing time, dependency downloads, and build caches can all affect it.
When these definitions are inconsistent, comparing the numbers directly can mislead.
Engineering teams should distinguish at least the following:
- Wall-clock time from task submission to result return;
- Time spent on model processing and tool execution;
- Time spent on manual waiting, confirmation, and repair;
- Overall throughput when multiple tasks run in parallel.
For interactive development, response latency matters a great deal. For overnight batch maintenance tasks, total throughput and the share of results ready by the next day may matter more.
4. Cost: Model Call Fees Are Only the Starting Point
Low call fees do not necessarily mean low delivery cost, and high call fees do not guarantee higher returns.
A more complete accounting method is:
Total delivery cost = model call cost + execution environment cost + manual review cost + rework cost + defect handling cost
Manual review and rework often determine the final economics. A system whose output is cheap but requires extensive checking may not suit critical business work. A system that runs more slowly but significantly reduces manual changes may still provide real value.
Do not calculate a “unit delivery cost” by dividing run costs by pass rate unless you also have data on task difficulty, failure spending, and manual takeover effort.
4. Engineering Trade-offs Behind High Completion and Long Runtime
Long execution may come from more thorough project exploration, more frequent testing, or more complex repair processes. It may also come from inefficient search, repeated file reads, and unproductive attempts. Runtime alone cannot show whether the system reasoned more deeply.
To separate useful effort from wasted resources, analyze the execution trace. Focus on these patterns:
- After each failure, does the system propose different, verifiable hypotheses about the cause?
- Do changes target the root cause, or do they repeatedly adjust surface symptoms?
- Does the system prioritize checks related to the change?
- Does the change scope keep expanding and causing new regressions?
- After several consecutive runs, does acceptance improve meaningfully?
If a system keeps consuming resources without adding passing items or narrowing the problem, stop it and hand the task to a human. Do not extend the budget indefinitely.
For results with high completion but failing checks, also assess takeover readiness. Are the changes clear? Is the failure cause explicit? Can the remaining issues be fixed independently? A partially completed result that a human can take over easily is often more valuable than a large amount of code without explanation.
5. Evaluate Model Capability and Agent System Capability Separately
AI coding evaluations usually measure a complete system, not just the underlying model.
The system includes at least the model, task prompt, context organization, file read and write tools, execution environment, test feedback, and stopping policy. The same model may perform differently under different configurations. Tool permissions and resource limits can also amplify or reduce the differences between models.
For example, whether test execution is allowed, whether required dependencies are accessible, and whether complete error logs are provided all affect the final result. If the context lacks key module descriptions, the system may spend much of its time re-exploring the code. If the environment cannot build normally, failures can occur regardless of model capability.
Rigorous evaluations should record and, where possible, fix the following:
- Initial project version and dependency state;
- Runtime resources, network permissions, and available tools;
- Prompt content and how context is provided;
-
