Long-程 AI Agent Coding Benchmark Update: What the New Scores Actually Mean
This article breaks down the latest update to a long-horizon AI agent coding benchmark, which added results for two general-purpose large models. It explains how to read the four core metrics—pass rate, average completion, average runtime, and cost per run—why long-horizon tasks get progressively more expensive, and practical techniques for budget-sensitive teams, including task decomposition, tiered model routing, caching, parallel execution with early stopping, and observability. The goal is to turn benchmark numbers into executable engineering decisions rather than a simple ranking.
1. What the Benchmark Update Means: From “Can It Write Correct Code” to “Can It Finish the Job”
A long-horizon benchmark focused on agentic coding ability has been updated again, adding scores for two general-purpose large models. The value of this kind of benchmark is not the ranking itself, but the fact that it turns a vague question—whether an agent can independently complete a real engineering task—into quantifiable, reproducible metrics.
Traditional code generation evaluations mostly focus on single-turn, function-level correctness. Long-horizon task benchmarks instead ask whether an agent can autonomously complete the full loop—environment setup, code retrieval, cross-file modification, test execution, bug fixing, and result self-checking—given only a natural-language requirement and no step-by-step human intervention. Tasks often run for a dozen to several dozen hours, so the evaluation focus shifts from “quality of a single output” to “long-duration stability and resource efficiency.”
According to public data, the two newly added models show a clear divergence. One has a pass rate of about 24.0% across 30 long-horizon tasks, an average completion of 82.3%, an average runtime of 27.4 hours, and a cost of about $317.4 per benchmark run (roughly 2,123 RMB). The other has a pass rate of about 17.3%, an average completion of 71.2%, an average runtime of 12.0 hours, and a cost of about $9.9 per run (roughly 66.2 RMB). The former scores higher than several other general-purpose models but below the top result of about 28.7%; the latter does not lead on pass rate but holds a clear advantage in speed and cost.
2. How to Read the Four Metrics: Don’t Look at Pass Rate Alone
1. Pass Rate: Strict Binary Judgment, and a Low Ceiling Is Normal
Pass rate is usually a binary judgment based on whether a task fully meets the acceptance criteria, with no partial credit. With a sample of 30 tasks, a difference of one task translates to roughly 3.3 percentage points of variance. The gap between 24.0% and 28.7% therefore corresponds to only about one to two tasks, which is of limited statistical significance and should not be over-interpreted as a ranking.
2. Average Completion: Closer to Real Engineering Value
Completion reflects the proportion of a task that was actually advanced. The gap between 82.3% and 71.2% suggests that the higher-completion approach is closer to “deliverable but needs human finishing touches,” while the lower-completion approach is more likely to stop at a half-finished state. In practice, completion often predicts the cost of human takeover better than pass rate does.
3. Average Runtime: The Long Tail Matters More Than the Mean
The difference between 27.4 hours and 12.0 hours comes partly from model inference speed and partly from the number of trial-and-error rounds in the agent framework. Runtime distributions for long-horizon tasks are typically right-skewed, and the mean is heavily affected by a few “stuck” tasks, so it is worth observing P50 and P90 alongside the average.
4. Cost per Run: An Order-of-Magnitude Difference Changes Selection Logic
The gap between roughly 2,123 RMB and roughly 66.2 RMB is more than thirty-fold. When cost sits in the tens-of-dollars range, a team can afford to rerun multiple times and keep the best result; once it reaches the hundreds-of-dollars range, caching, incremental execution, and early stopping on failure become necessary to control the budget.
3. Why Long-Horizon Tasks Get More Expensive Over Time
The cost of long-horizon tasks does not grow linearly. It comes mainly from four amplification effects:
- Context expansion: cross-file retrieval and accumulated conversation history keep growing, and longer input length raises unit cost.
- Trial-and-error loops: a test-fail—modify—retest cycle with no step limit keeps consuming budget.
- Environment uncertainty: missing dependencies, restricted network access, and image mismatches all trigger repeated installs and rollbacks.
- Strict acceptance: failing any single acceptance item fails the whole task, producing results with “high completion but zero pass rate.”
4. Practical Implementation for Budget-Sensitive Teams
1. Task Decomposition and Upfront Acceptance
Break a large requirement into small tasks that can be accepted independently, and write the acceptance scripts before handing the work to the agent. Example:
tasks = [{"id": "T1", "goal": "Add a configuration parsing module", "accept": "pytest tests/config -q"},{"id": "T2", "goal": "Integrate a caching layer", "accept": "pytest tests/cache -q && bash bench.sh"},]
2. Tiered Model Routing
Use a low-cost, fast model for high-frequency subtasks such as retrieval, formatting, and unit test fixes, and invoke a higher-capability model only for architecture decisions and difficult defects. This can significantly reduce average cost.
3. Caching and Incremental Execution
Cache dependency installs, image builds, and static retrieval results; use code hashes as keys to skip unchanged steps and avoid a full rerun every time.
4. Parallelism and Early Stopping
Run independent tasks in parallel, and set maximum step counts, maximum durations, and budget caps. When a cap is triggered, abort and hand off to a human so that long-tail tasks do not consume the entire budget.
5. Observability and a Measurement Loop
Collect logs, metrics, and traces into a unified logging service and monitoring/alerting system, and track pass rate, completion, runtime, and cost per task to build an internal baseline for continuous comparison. If running on a container platform, pin image versions and resource quotas to keep evaluations reproducible; store artifacts and datasets in object storage, and use a message queue to decouple long-task scheduling.
5. Selection Recommendations
For scenarios that demand one-shot delivery quality, involve high task complexity, and have sufficient budget, a higher-pass-rate, higher-completion option is preferable. For batch, standardized development tasks that are sensitive to response time and cost, a low-runtime, low-cost option paired with strict acceptance and a human fallback generally delivers better overall return on investment. Baidu AI Cloud provides general capabilities in agent development, model services, and engineering observability, which teams can use to build their own evaluation and scheduling pipelines and turn benchmark data into executable engineering decisions.
