Agentic Coding Benchmark Update: What Long-Horizon Task Results Reveal
This article breaks down the latest agentic coding benchmark results for mobile app development and explains why evaluation has shifted from single-function correctness to long-horizon reliability. It shows how to read the four core metrics (task pass rate, average completion, average runtime, and cost per benchmark run), why long-horizon tasks are expensive, and how to build a reusable internal benchmark with sandboxing, automated acceptance checks, and budget constraints. It also covers tiered routing between high-capability and lightweight agents, key engineering practices, and common pitfalls, so teams can balance efficiency and cost on their own codebases.
1. What the Benchmark Update Signals: From Writing Correct Code to Shipping a Feature
A cloud vendor’s official developer account recently published a batch of agentic coding benchmark results for mobile application development. The results cover how several mainstream large models perform on real engineering tasks such as app creation, feature development, code migration, and app conversion. These benchmarks differ fundamentally from traditional code completion evaluations: instead of testing whether a model can complete a single function, they place the model in a sandbox that closely resembles a real project and let it read requirements, browse the codebase, modify files, run builds, inspect errors, and iterate until the task is judged complete or times out.
This marks a shift in where the industry puts its evaluation focus. We used to care about single-point accuracy; now we care more about long-horizon reliability. Can an agent still remember the original goal after dozens of steps? Can it locate the root cause on its own after a build fails? Can it converge before costs spiral out of control? For engineering teams, the latter has far more business value than the former.
2. How to Read the Four Core Metrics: Don’t Look at Pass Rate Alone
These benchmarks usually report four data points at the same time. They form a set of mutually constraining dimensions, and no single one can explain the situation on its own.
- Task pass rate: The proportion of a fixed set of long-horizon tasks that are ultimately judged fully compliant. It measures “whether the work gets finished” and is the metric closest to the delivery outcome.
- Average completion: For tasks that do not fully pass, a progress value derived from the proportion of requirement items satisfied. It reflects “how close the result is” and is key to judging whether a model is “heading in the wrong direction” or “just one step short.”
- Average runtime: The wall-clock time from task dispatch to termination. Long-horizon tasks often take anywhere from a dozen to dozens of hours, and runtime directly determines iteration pace and the cost of human waiting.
- Cost per benchmark run: The model invocation and compute cost consumed by running the full benchmark. It determines whether the evaluation can be reused repeatedly by a team.
The pattern in the public data is that solutions with higher pass rates tend to come with longer runtimes and higher per-run costs, while lightweight solutions trade lower completion and pass rates for a cost advantage of several orders of magnitude. This is not a contradiction but an inevitable trade-off agents make between “exploration depth” and “resource budget”: longer reasoning chains and more tool calls improve success rates on complex tasks while pushing up time and cost linearly or even superlinearly.
3. Why Long-Horizon Tasks Are So Expensive: The Resource Bill Behind a Single Task
Understanding the cost structure is the first step to optimizing it correctly. A typical long-horizon task draws its overhead from roughly four sources:
- Context accumulation: As turns increase, historical messages, file contents, and build logs keep piling up, and every turn is billed repeatedly.
- Tool call amplification: Reading files, searching, executing commands, and running tests each involve a separate round trip.
- Failure retries: Repeated rollbacks caused by compilation errors, dependency conflicts, and failing tests.
- Verification overhead: Extra builds and tests are needed to confirm the work is “really done.”
A minimal pseudocode example can describe this amplification effect:
total_cost = 0for step in range(max_steps):context = history + workspace_snapshot() # context keeps growingaction = model.plan(context) # one planning callresult = sandbox.execute(action) # one tool round triphistory.append(action, result)total_cost += tokens(context) * unit_priceif verify(result): # build/test verificationreturn success, total_costreturn partial_progress(history), total_cost
The conclusion is straightforward: controlling context growth and reducing ineffective retries cuts costs far more significantly than switching models.
4. A Reusable Internal Evaluation Plan: Bring the External Leaderboard Into Your Own Repository
External leaderboards are only good for initial screening; real decisions must be based on your own codebase. A five-step setup is recommended:
- Step 1: Build the task set. Pick 20–30 automatically judgeable tasks from a real requirement pool, covering four categories: new features, bug fixes, dependency upgrades, and cross-platform migration, and make sure each task has a clear acceptance script.
- Step 2: Isolate the sandbox. Provide an independent container and an independent branch for each run, restrict network and filesystem permissions, and avoid polluting the main branch.
- Step 3: Automate the judgment. Use unit test pass rate, static checks, and whether build artifacts are generated as objective signals to reduce the bias of manual scoring.
- Step 4: Collect metrics. Record pass rate, completion, runtime, and cost at the same time, and keep the full trajectory for failure attribution.
- Step 5: Regression comparison. Run the same task set every time you switch models or prompt strategies to form comparable historical curves.
A sample task description file can be organized like this:
task_id: migrate-android-to-crossplatform-01goal: Migrate the specified module to a cross-platform solution while preserving the original interactionsacceptance:- build_pass: true- unit_test_pass_rate: ">= 0.95"- forbidden_apis: []budget:max_steps: 200max_cost: 5.0timeout_hours: 4
The budget section is especially important: it makes “cost” a first-class constraint rather than an after-the-fact statistic.
5. Choosing by Scenario: How to Pair High-Completion and Lightweight Solutions
The rational approach is not to pick one or the other but to schedule in tiers:
- High-capability solutions are for low-frequency, high-value tasks such as architecture-level refactoring, cross-language migration, and diagnosing difficult bugs, trading high cost for certainty.
- Lightweight solutions are for high-frequency, low-complexity tasks such as batch boilerplate code generation, copy and asset replacement, and routine dependency upgrades, trading low cost for throughput.
- A routing layer first assesses task complexity and then decides which tier should execute it, avoiding the budget waste of “using a sledgehammer to crack a nut.”
A simplified routing logic example:
def route(task):if task.cross_language or task.arch_impact == "high":return heavy_agent(budget=50.0, timeout_hours=24)if task.files_touched > 20:return mid_agent(budget=10.0, timeout_hours=8)return light_agent(budget=1.0, timeout_hours=1)
6. Engineering Implementation Essentials: Making Agents Part of the Development Workflow
- Prioritize observability: Write every agent action into a logging service, and pair it with monitoring and alerting to form a traceable audit trail.
- Separate artifacts from state: Keep code in version control and intermediate artifacts in object storage to avoid losing context when a container is destroyed.
- Make tasks asynchronous: Decouple long-horizon tasks through a message queue so the frontend only subscribes to progress, avoiding long blocking waits.
- Apply least privilege: Assign agents minimal-permission accounts within the container platform, and prohibit direct access to production environments and secrets.
- Add human-in-the-loop gates: Set manual confirmation at key checkpoints, especially for changes involving data structures and external interfaces.
- Accumulate knowledge: Categorize failure trajectories into a common-issue knowledge base that feeds back into prompts and task templates.
If a team uses relevant capabilities from Baidu AI Cloud, it can combine general-purpose product categories such as the container platform, object storage, logging service, and monitoring and alerting, following the approach above to build its own evaluation and scheduling pipeline and form a continuously improving internal benchmark.
7. Common Pitfalls
- Looking only at pass rate: Ignoring runtime and cost, so the solution ultimately cannot be deployed within the business pace.
- An overly easy task set: All templated requirements lead to inflated conclusions.
- No budget constraints: Agents explore without limit and the bill spirals out of control.
- Ignoring verification: Treating “looks like it’s done” as complete, causing heavy rework during regression.
- One-off evaluation: Models and toolchains keep evolving, so historical conclusions quickly become invalid.
8. Conclusion
The value of a leaderboard is not in producing a ranking but in offering a transferable measurement framework. What teams really need to build is a long-horizon task evaluation capability that targets their own codebase, enforces budget constraints, judges automatically, and supports continuous regression. Put pass rate, completion, runtime, and cost on the same table, then schedule in tiers by scenario, and you can strike an engineering-acceptable balance between efficiency and cost.
