Mobile AI Coding Agent Benchmarks: Evaluation Practices and Selection Guidance

    This article examines how to evaluate AI coding agents on real-world mobile application development tasks. It explains why mobile development is a demanding testbed for coding agents, defines the key benchmark metrics (long-horizon pass rate, average completion rate, average wall-clock time, and per-run cost), and analyzes the engineering tradeoffs between quality, speed, cost, and risk using a publicly discussed benchmark sample. It then provides a practical, step-by-step method for building your own reproducible benchmark, covering task-set construction, task specification, isolated execution, metric aggregation, and CI integration. Finally, it offers concrete engineering recommendations such as tiered routing, context engineering, CI gates with human review, cost observability, and a closed evaluate-optimize loop.

    1. Background: Why Mobile Is a Focus Scenario for Agent Coding Evaluation

    Recently, discussions about “whether agents can complete real engineering tasks” have been heating up. According to publicly available and secondary sources, a mobile-ecosystem-related AI coding benchmark leaderboard shows that tasks run with high-intensity configurations have higher pass rates, but take longer and cost tens of times more. Since the original source could not be fully verified, this article does not treat it as an official conclusion, but rather as a sample for understanding agent coding evaluation. If you need to cite it in formal materials, refer to the official release.

    This leaderboard compares multiple agent coding configurations driven by different underlying large models and publishes data across four dimensions: long-horizon task pass rate, average completion rate, average time, and per-run benchmark cost. From “can it generate correct code” to “can it independently complete a real engineering task,” this set of data provides an observation window worth serious study.

    Mobile application development is well suited to testing agent coding capabilities for several reasons related to the characteristics of this kind of engineering:

    • Large task granularity: Requirement decomposition, UI and interaction, data layer, build and run, verification and fixes form a complete delivery chain, rather than a single function completion.
    • Hard verification bar: Whether a task passes usually depends on whether the code can compile, install, and run correctly on a simulator or real device. Runtime results are hard to fake; code that “looks right” is directly judged as failing.
    • Long-horizon and environment-sensitive: A single task may run for hours or longer. During this period, the agent repeatedly compiles, deploys, checks logs, and locates crashes; getting stuck at any step drags out the whole chain.
    • Heavy legacy baggage: Tasks like app migration, framework upgrades, and cross-platform conversion require reading large amounts of existing code and keeping behavior unchanged, demanding far more from long-context understanding than writing new logic.

    Therefore, these evaluation results should not be simply understood as a “model ranking,” but should be treated as an engineering selection reference. Reading it requires three things: understanding what the metrics mean, mastering the evaluation methodology, and building a trade-off model.

    2. Evaluation Targets and Methods: Metric Definitions Determine Conclusions

    The typical approach for a mobile app development benchmark is: prepare a batch of tasks from real development scenarios, configure a fixed code starting point and clear, automatically verifiable acceptance criteria for each task; then have the agent under test complete build, run, and self-test end to end in an isolated environment; finally, aggregate all metrics uniformly.

    Common metrics in leaderboards mean:

    • Long-horizon task pass rate: The proportion of tasks that strictly meet all acceptance criteria, used to measure “can it deliver in one shot.”
    • Average completion rate: The mean of scores for tasks that do not fully pass, scored by completion stage or acceptance items, used to measure “how far off.”
    • Average time: End-to-end duration from task start to finish, covering thinking, tool calls, compilation, running, and waiting, not just model generation time.
    • Per-run benchmark cost: The cost of model calls and other expenses to run the entire benchmark, which can be converted to “cost per task” or “cost per pass.”

    From the leaderboard sample compiled from public information, there are two sharply contrasting configurations and a top configuration as an upper-bound reference:

    Metric Config A (Flagship) Config B (Lightweight, cost-effective) Reference (Top configuration)
    Pass rate 24.0% 17.3% 28.7%
    Average completion rate 82.3% 71.2% Not disclosed
    Average time 27.4 hours 12.0 hours Not disclosed
    Per-run benchmark cost $317.4 $9.9 Not disclosed

    Two points to note:

    1. The data above reflects single results under a specific task set, specific agent framework, and specific runtime environment, and should not be directly extrapolated to other scenarios.
    2. Differences in task planning, tool calling, and retry strategies significantly affect time and cost. When comparing horizontally, framework and environment differences must be taken into account.

    2.1 How to Choose an Agent Coding Benchmark?

    When selecting or borrowing an agent coding benchmark, teams can focus on five questions:

    • Does the task set closely match your own business, rather than only covering generic coding problems?
    • Are the acceptance criteria automatable, relying on clear build, test, or run results?
    • Does it report pass rate, completion rate, time, and cost together, rather than only showcasing one highlight?
    • Does it state the runtime conditions, versions, framework, and environment to ensure results are reproducible?
    • Does it provide failure classification and tail time, rather than only average metrics?

    2.2 Why Completion Rate Cannot Stand Alone as a Conclusion

    Average completion rate is suitable for observing trends but cannot serve as a delivery judgment on its own. Because many tasks that are “80% done” may still fail to cross the acceptance line. The last mile usually involves:

    • Boundary omissions in multi-module coordinated changes;
    • Runtime issues that are hard to judge statically, such as animations, theme switching, and system permissions;
    • Behavioral differences under hidden test cases, compatibility conditions, or exceptional paths.

    So a high completion rate does not equal usability; the pass rate is the harder delivery metric.

    2.3 Common Evaluation Mistakes

    In practice, common problems include:

    • Looking only at the underlying model, not at the agent framework, toolchain, and prompt strategy.
    • Looking only at average time, not P90 or the worst case.
    • Reporting only pass rate without failure attribution.
    • Not fixing code snapshots, dependency versions, and acceptance scripts, making results irreproducible.
    • Ignoring human takeover, rework, and fallback costs, mistaking “cheap single runs” for “cheaper overall.”

    3. Engineering Tradeoffs Behind the Benchmark Data

    3.1 High Completion Rate Does Not Equal High Pass Rate: The Last Mile Is the Most Expensive

    Config A’s average completion rate reaches 82.3%, but its pass rate is only 24.0%, a gap of about 58 percentage points; Config B’s corresponding gap is about 54 percentage points. This means a large number of tasks “look quite complete but do not cross the acceptance line.”

    Failures often concentrate in the following categories:

    Failure type Common symptoms Priority investigation or optimization direction
    Compilation failure Build errors, missing dependencies, interface signature mismatch Check build scripts, dependency constraints, engineering rules in prompts
    Runtime crash Startup failure, null pointers, exception stacks Add runtime log analysis, crash localization, and retry strategies
    Acceptance mismatch Behavior seems correct but tests fail Strengthen acceptance cases, hidden tests, boundary behavior constraints
    Timeout Repeated trial and error for a long time, unable to converge Set budget circuit breakers, limit tool calls, optimize context retrieval
    Budget exhaustion Cost exceeds threshold but still fails Tiered routing; avoid high-cost configs on low-value tasks

    Therefore, average completion rate is suitable for observing trends, while pass rate is the hard metric of delivery quality. Ranking by completion rate may overestimate actual usability.

    3.2 Time: Diminishing Marginal Returns

    Config A invests about 15.4 more hours than Config B, a time increase of about 128%; but its average completion rate improves by only 11.1 percentage points, an increase of about 15.6%. This shows that input is not proportional to output.

    Agents repeatedly trial and error during long runs, such as repeated compilation, rollback, and retries. Improvements from additional investment become increasingly limited, and marginal returns gradually decline. Therefore, production environments must set budget caps and failure circuit breakers to avoid “getting more expensive and slower the longer it runs.”

    3.3 Cost: Two Perspectives, One Conclusion

    Dividing cost by pass rate approximates the “expected run cost per pass achieved”:

    • Config A: 317.4 ÷ 24.0% ≈ $1322.5;
    • Config B: 9.9 ÷ 17.3% ≈ $57.2.

    The former is about 23 times the latter. Looking instead at “cost per completion-rate point,” Config A is about $3.86 and Config B is about $0.14, a gap of about 28x.

    Both perspectives reach the same conclusion: within the same benchmark, Config B has clearly higher cost-effectiveness. But it must be emphasized: the “cost per pass” here is based only on the leaderboard’s cost and pass rate, and does not include total costs such as human takeover, rework, environment preparation, and failure fallback. If the task pass rate is below 20%, more than 80% of tasks still need to be completed manually or with fallback. At this point, what the cheap configuration saves is the “per-task unit price”; whether it saves the “total cost of ownership” depends on the team’s labor cost and rework cost.

    3.4 Overall Tradeoff: Quality, Speed, Cost, and Risk

    Config A leads in pass rate and completion rate, at the cost of time and cost, making it suitable as a fallback. Config B, at about 3.2% of A’s cost, achieves about 72% of A’s pass rate and about 87% of A’s completion rate, making it more suitable for large-scale, high-frequency daily development.

    More importantly, the capability ceiling is determined by the top configuration with a 28.7% pass rate in the leaderboard. This shows that at the current stage, agents on long-horizon mobile app tasks are more like “productivity tools” than “replacements” that can run unattended.

    From this, three decision principles can be distilled:

    • Allocate resources by task value: Give core paths and complex migrations to high-intensity configurations with budget alerts; give batch boilerplate and incremental requirements to cost-effective configurations.
    • Judge by human-AI ratio rather than a single-point pass rate: The evaluation standard should be “human takeover rate” and “end-to-end delivery cycle,” rather than the absolute value of a single benchmark run.
    • Treat failure classification as a product requirement: Compilation failure, runtime crash, acceptance mismatch, timeout, and budget exhaustion each point to an area that can be improved, which may involve prompts, the toolchain, or the agent framework itself.

    4. Building Your Own Benchmark: Reproducible Measurement Methods

    Public leaderboards can answer “how well others are doing,” but what teams really need to answer is “how it performs on our codebase and business.” It is recommended to build your own evaluation benchmark following these steps.

    4.1 Task Set Construction: Realistic, Layered Coverage, Version Frozen

    • Real sources: Anonymized extraction from merged requirements, defects, and refactoring tickets from the past six months, ensuring the code base is a real project the team is familiar with.
    • Layered design:
      • New app scaffolding: boilerplate, basic architecture;
      • Feature development: new pages, data interactions;
      • Code migration: old framework to declarative UI, old API to new API;
      • App conversion: cross-platform or cross-architecture adaptation.
    • Automatable acceptance: Prioritize tasks that can be objectively judged by build, test, and UI automation, avoiding subjective criteria like “good or not.”
    • Difficulty ratio: It is recommended that 60% be daily tasks completable within 1 hour, 30% be medium tasks requiring several hours, and 10% be complex cross-module tasks, aligning results with the daily R&D rhythm.
    • Version freezing: Assign a version number to the task set; once code snapshots and acceptance criteria are set, they cannot be changed within the same evaluation round.

    4.2 Task Specification: Separating Intent, Constraints, and Acceptance

    Each task uses a structured file to describe “what to do, what not to do, and how to count as done,” illustrated as follows:

    1. task_id: migrate-settings-to-declarative-ui
    2. category: code_migration # task layer
    3. repo_snapshot: sha256:7f3c... # fixed code starting point
    4. objective: |
    5. Migrate the settings page from imperative UI to declarative UI,
    6. keeping the original preference items and deep-link parameter behavior unchanged.
    7. constraints: # negative constraints and capability boundaries
    8. - Do not upgrade build tool versions
    9. - Do not add third-party dependencies
    10. acceptance: # fully automatic judgment
    11. build: [compile_debug, lint]
    12. tests: [unit_settings, ui_settings_smoke]
    13. golden: [screenshots/settings_*.png] # visual regression signal
    14. visual_tolerance: # screenshot comparison tolerance
    15. diff_threshold: 0.01
    16. ignore_fonts: false
    17. allow_version_diff: true
    18. manual_review_on_diff: true
    19. budget: # resource boundaries
    20. max_wall_clock_min: 120
    21. max_cost_usd: 1.0
    22. max_tool_calls: 400
    23. grading: # pass judgment and completion calculation
    24. pass_rule: all
    25. completion: weighted_checks # weighted scoring by acceptance items

    When the golden screenshots are used as a visual regression signal, they cannot simply be compared strictly pixel by pixel. System versions, fonts, resolutions, animation timing, and simulator differences can all cause false positives, so tolerance thresholds should be set, and manual review should be triggered when the difference exceeds the limit.

    Specification brings three benefits:

    1. Front-loading constraints reduces agents “acting on their own”;
    2. Automated acceptance eliminates subjective human judgment;
    3. Explicit budgets make cost and time controllable and comparable.

    4.3 Isolated Execution: Stable, Safe, Reproducible

    • One environment per task: Each task starts from a fixed snapshot in an independent container, with build cache and simulator images pre-warmed, avoiding environment differences from contaminating results.
    • Rollback: Destroy the environment after each task, preventing residual files from the previous run from affecting the next.
    • Least privilege: Credentials are temporarily issued per task and reclaimed immediately, outbound network traffic goes through a whitelist, and access to unapproved external addresses is prohibited.
    • Structured logging: Record each step’s tool calls, input/output, time, and cost for later review.

    4.4 Metric Collection: From Single Results to Statistical Conclusions

    It is especially important to note: records should be single-run records, not task-level records. If each task runs multiple times, first aggregate by task, then compute the task-level pass rate and cost per task.

    1. from collections import defaultdict
    2. import statistics as st
    3. # records: single-run records; each contains task_id, passed, completion, wall_clock, cost
    4. def summarize(records):
    5. by_task = defaultdict(list)
    6. for r in records:
    7. by_task[r.task_id].append(r)
    8. n_tasks = len(by_task)
    9. # Task-level pass rate: a task run multiple times counts as a strict pass only if all runs pass
    10. task_pass_strict = sum(
    11. all(x.passed for x in rs) for rs in by_task.values()
    12. ) / n_tasks
    13. # Task-level pass rate: at least one pass, can serve as the capability ceiling
    14. task_pass_any = sum(
    15. any(x.passed for x in rs) for rs in by_task.values()
    16. ) / n_tasks
    17. # Single-run pass rate: proportion of successful runs among all run records, used to observe stability
    18. single_run_pass_rate = sum(r.passed for r in records) / len(records)
    19. return {
    20. "task_pass_strict": task_pass_strict,
    21. "task_pass_any": task_pass_any,
    22. "single_run_pass_rate": single_run_pass_rate,
    23. "completion_mean": st.mean(r.completion for r in records),
    24. "wall_clock_p50": st.median([r.wall_clock for r in records]),
    25. "wall_clock_p90": sorted([r.wall_clock for r in records])[int(len(records) * 0.9) - 1],
    26. "cost_per_task": sum(r.cost for r in records) / n_tasks, # average run cost per task, including repeated runs
    27. "expected_cost_per_strict_pass": (
    28. sum(r.cost for r in records) / (task_pass_strict * n_tasks)
    29. if task_pass_strict > 0 else float("inf")
    30. ),
    31. }

    There are four points to note statistically:

    • Repeated runs: Large model outputs are random, so it is recommended to run 3–5 times per config per task, reporting the mean, range, and P50/P90 together. If fluctuation is large, compute the coefficient of variation: CV = std / mean; when CV is high, conclusions should be more cautious.
    • Control variables: Keep the agent framework, runtime environment, and sampling parameters consistent, changing only the variable under test.
    • Report tail latency: The time distribution of long-horizon tasks is often right-skewed; looking only at the mean easily underestimates the worst case, so report P90 as well.
    • Analyze failure reasons: Categorize failed cases by stage, such as environment, planning, implementation, verification, and budget, forming a “failure profile” that guides improvement better than a single pass rate.

    4.5 Evaluation Pipeline: Integrate with CI and Continuously Regress

    The evaluation itself should also be automated: triggered on a nightly schedule, it prepares build images → distributes tasks → executes in isolation → scores uniformly → generates reports. Results are aggregated through message queues and object storage, and generic capabilities such as logging services and monitoring alerts set threshold alerts for time, cost, and failure rate. This way, every prompt adjustment, agent framework upgrade, or underlying model change can quickly yield comparable regression results.

    5. Engineering Implementation Recommendations

    5.1 Build a Tiered Routing Scheduling Strategy

    Grade tasks by complexity and value, matching them with different configurations:

    Task type Complexity Budget cap suggestion Human involvement Recommended configuration
    Boilerplate code, batch refactoring, test supplements Low Low Spot checks Cost-effective configuration
    Regular feature development, defect fixes Medium Medium Routine review Prefer cost-effective configuration
    Cross-module migration, architecture changes High High Mandatory review Flagship configuration
    Pre-release fallback, high-risk defects Very high Separate approval Human fallback required High-intensity config + human

    This idea is similar to mature compute task tiered scheduling: give the right task to the right configuration, rather than using the strongest configuration for all tasks.

    5.2 Strengthen Context Engineering

    The success or failure of long-horizon tasks largely depends on whether the agent can “find and understand” the relevant code. Through code retrieval and layered summaries, provide the agent with the structure and interface contracts of relevant modules on demand, reducing ineffective searches and repeated trial and error. At the same time, have the agent prioritize using the project’s existing build scripts and test commands, avoiding building its own toolchain.

    5.3 Back Up with CI Gates and Human Review

    Code generated by agents must pass the same gates as human-written code:

    • Compilation and static checks;
    • Unit and UI automation tests;
    • Dependency and security scans;
    • Human code review.

    Especially for sensitive modules involving permissions, payments, and privacy data, human review cannot be omitted.

    5.4 Do Cost and Observability Well

    Set budget caps and alerts for each task and project, attributing costs across three dimensions: task, agent, and model. On the platform side, on a cloud platform that supports containers, object storage, message queues, and monitoring alerts, you can compose a complete evaluation and execution pipeline: containers provide isolation and elasticity, object storage stores snapshots and artifacts, message queues handle task distribution, and logging services and monitoring alerts ensure observability. This way, teams can turn “single benchmark runs” into “continuous regression.”

    5.5 Build an “Evaluate–Optimize” Closed Loop

    Public leaderboards can serve as a starting point, but they should be continuously calibrated with your own task set:

    1. New tasks enter the benchmark;
    2. Run and collect metrics;
    3. Attribute failures;
    4. Optimize prompts, toolchain, or agent configuration;
    5. Regression verification.

    The results of each regression round can be accumulated into a knowledge base, making evaluation a long-term part of the R&D process infrastructure.

    6. FAQ

    What is mobile agent coding evaluation?
    It is a type of end-to-end evaluation for real mobile app development tasks, looking not only at code generation but also at build, run, test, fix, and cost control.

    How do I build a mobile agent coding benchmark?
    Extract tasks from real tickets, fix code snapshots, define automatable acceptance criteria, execute in isolation, and measure pass rate, completion rate, time, cost, and failure distribution.

    How do I make a selection?
    Prioritize cost-effective configurations for high-frequency, low-risk daily tasks; use high-intensity configurations for complex migrations and high-risk tasks, with human fallback retained.

    What are the common pitfalls?
    Looking only at completion rate, not distinguishing single-run from task-level metrics, ignoring tail latency, not controlling the environment, and not classifying failures can all lead to misjudgment.

    7. Conclusion

    The core insight of this mobile agent coding benchmark is not who ranks first, but that it demonstrates one thing: in long-horizon engineering tasks, there is a clear tradeoff between capability, time, and cost. An average completion rate approaching or exceeding 80% does not mean a task is complete; what really determines whether it can be delivered is the pass rate, tail latency, and cost per pass.

    For teams, a more pragmatic path is:

    1. Quantify gains with a benchmark close to your own business;
    2. Balance cost and quality with tiered routing;
    3. Hold the quality bottom line with CI gates and human review.

    Tools are evolving rapidly, but evaluation methodology and engineering discipline are effective in the long term. Internalizing evaluation capability into the R&D system is what allows teams to always make evidence-based technical decisions amid rapid iteration.