Agent Benchmarks Show the Tradeoffs Among Completion Rate, Cost, and Safety
Public agent benchmarks suggest command-line agents can complete a substantial share of real tasks, but repeated reliability, cost per successful task, and safety remain the main constraints on unattended production use. This article breaks down completion rate, reliability, cost, and safety, then outlines a practical evaluation and release-governance method.
As agents move from conversational Q&A into real operating environments, evaluation is shifting from “was the answer correct?” to “can the agent reliably complete the task in a controlled environment?” Command-line agents are a clear example. They must understand the goal, break it into steps, call tools, read and write files, check execution results, and revise the plan after failure. These tasks test both a model’s planning and reasoning and the runtime’s isolation, retry, validation, and audit capabilities. Based on a set of public benchmark results, this article systematically examines completion rate, reliability, cost, and safety, and proposes an engineering method for internal evaluation and production governance.
1. Results at a glance: usable, but not yet unattended
The most useful signal in this public round is not a single ranking, but the structure behind the metrics.
| Observation | Public result summary | Engineering implication |
|---|---|---|
| Average task completion rate | Top three about 62.5%, 61.9%, and 61.4% | The leading group differs by only about 1.1 percentage points. Capability is close at the top, but overall headroom remains large. |
| Reliability across attempts | Leading approach: about 75.1% succeed at least once in three attempts; about 48.8% succeed on all three | “At least one success” and “success every time” diverge sharply. A high single-run score is not production-grade stability. |
| Cost per run | Several high-completion options about $1.10, $0.83, and $0.19 per run; a lower-cost option about $0.05 per run with roughly 39.7% completion | Accuracy and cost trade off clearly, so selection should be tiered by task risk. |
| Runtime framework results | Average pass rates across several runtimes cluster from about 42.87% to 45.23% | Under the same evaluation definition, engineering differences affect results, but not by an order of magnitude. |
| Safety | About 15.7% of 53,100 runs failed at least one safety check; of 26,151 runs that met correctness criteria, 2,589 still failed a safety requirement | Correctness does not imply safety. Safety should be an independent release gate. |
These figures come from a specific task set, runtime environment, and statistical definition. They cannot replace an enterprise’s own internal evaluation. They do, however, establish three facts. First, command-line agents can already complete a meaningful share of real tasks. Second, stability, cost, and safety remain the main constraints on scale. Third, evaluation must move from “best single score” to combined metrics that are repeatable, auditable, and governable.
2. Why command-line agents are harder to evaluate
Compared with ordinary Q&A or single-turn text generation, command-line tasks are stateful and operate in an open environment. A task often spans multiple steps: inspecting a directory, reading logs, changing configuration, rerunning checks, and cleaning temporary artifacts. A mistake at any step can change later environment state and make results hard to reproduce.
Common failure modes fall into several groups:
- Planning errors. The goal is understood, but the step breakdown is poor and a critical precondition is skipped.
- Tool-call errors. Parameter format, path, permissions, or context references do not match requirements.
- Misread environment state. Existing files, leftover processes, or missing dependencies are not recognized, so the operation is not repeatable.
- Weak result checks. The command exits successfully, but the business outcome is wrong because there is no post-condition assertion.
- Safety-boundary failures. A high-risk action exceeds authorization, or sensitive data is not redacted.
- Cost and time runaway. Repeated attempts, unproductive exploration, or excessive tool calls push cost over budget.
A sound evaluation therefore cannot look only at the final answer. It should record the full execution trace, tool-call parameters, permission checks, cost, and safety events. Results are useful for production decisions only when “correct outcome,” “controlled process,” “acceptable cost,” and “auditable safety” are measured together.
3. A multi-dimensional evaluation system
An agent evaluation system intended for production should include at least the following metrics.
| Metric | Definition | Primary use |
|---|---|---|
| Completion rate | Runs meeting all correctness criteria / total runs | Measures basic task completion |
| pass@k | At least one success in k independent attempts | Measures recoverability and the value of retries |
| pass^k | All k attempts succeed | Measures stability and consistency; closer to high-reliability requirements |
| Safety-adjusted pass rate | Runs meeting both correctness and safety requirements / total runs | Prevents “correct but unsafe” runs from being counted as success |
| Cost per successful task | Total cost / number of successful tasks | Closer to real budget than cost per run |
| Human intervention rate | Share of tasks needing human approval, correction, or rollback | Measures operational burden and degree of automation |
| Mean time to recovery | Time from failure back to an acceptable state | Measures exception handling and rollback |
pass@k and pass^k should always be reported together. Reporting only “at least one success in three tries” overstates usability. Reporting only a single-run success rate hides the value of retries. A leading approach with about 75.1% at-least-once success but only about 48.8% success on all three attempts shows substantial variance. For high-risk tasks, prioritize pass^k, the safety-adjusted pass rate, and human intervention rate. For low-risk batch work, cost efficiency can weigh more heavily.
The pseudocode below shows how correctness and safety should be recorded separately, then combined into a safety-adjusted pass signal.
function run_benchmark(tasks, agents, runtimes, k):rows = []for task in tasks:for agent in agents:for runtime in runtimes:runs = repeat_execute(task, agent, runtime, times = k)correct_flags = [run.correct for run in runs]safe_flags = [not run.safety_violation for run in runs]cost_total = sum(run.cost for run in runs)rows.append({"task": task.id,"agent": agent.id,"runtime": runtime.id,"pass_at_k": any(correct_flags),"pass_all_k": all(correct_flags),"safety_pass_all_k": all(safe_flags),"safe_correct_at_least_once":any(c and s for c, s in zip(correct_flags, safe_flags)),"cost_per_attempt": cost_total / k,"safety_events": sum(len(run.safety_events) for run in runs)})return aggregate(rows)
Evaluations should also freeze the task version, runtime environment, permission model, timeout, and retry budget, and should report confidence intervals. Agent behavior is stochastic, so a single round can swing. A more stable practice is repeated runs, stratified sampling, and reporting by task category rather than a single overall average.
4. Reading the results: cost, stability, and safety
4.1 The leading group is close, but overall headroom is still large
The top three completion rates are about 62.5%, 61.9%, and 61.4%, a spread of only about 1.1 percentage points. Under the same evaluation framework, the gap among leading options has narrowed, and a single ranking should not be over-interpreted. At the same time, a completion rate around 60% means a substantial share of tasks still cannot be completed reliably. For critical business flows, that level is usually not enough for fully unattended operation. A better fit is “agent execution + automated checks + human fallback.”
4.2 Stability matters more than a single peak score
The leading approach succeeds at least once in about 75.1% of three-attempt sets, but succeeds on all three attempts only about 48.8% of the time—a gap of more than 26 percentage points. Enterprises should not select systems solely on results that allow multiple chances. Production systems care about consistency across repeated runs and recoverability after failure. If the same task varies widely across runs, stronger preconditions, result checks, and rollback are required. Otherwise, more retries raise cost and can also widen the safety exposure.
4.3 Cost should be counted per successful task, not per run
Per-run costs in the public material are estimates. A rough conversion using completion rate alone looks like this:
| Option | Completion rate per run | Estimated cost per run (USD) | Rough cost per successful task (USD) |
|---|---|---|---|
| A | 62.5% | 1.10 | about 1.76 |
| B | 61.9% | 0.83 | about 1.34 |
| C | 61.4% | 0.19 | about 0.31 |
| D | 39.7% | 0.05 | about 0.13 |
This conversion excludes retries, human review, rework after failure, environment cleanup, and security audit cost, so real cost is usually higher. The trend is still clear: high-completion options differ substantially in price, while the low-cost option trades completion rate for lower run cost. Selection should be tiered by risk. High-risk, strongly regulated tasks should prioritize pass^k and the safety-adjusted pass rate. Low-risk batch tasks that can be checked automatically can use a higher cost-efficiency option, with post-condition assertions, sampled review, and a cost cap.
4.4 Runtime differences matter, but the model remains a primary factor
Average pass rates across several runtimes cluster from about 42.87% to 45.23%. Open, reusable runtimes and proprietary options are close on average. Prompt structure, tool descriptions, state management, retry policy, and sandbox isolation can narrow the gap, but they do not fully replace model capability. Enterprises should evaluate both the model and the runtime. The same model can behave very differently under different tool protocols, context-management approaches, and failure-recovery strategies.
4.5 Safety is an independent gate and cannot be hidden by correctness
In the public results, about 15.7% of 53,100 runs failed at least one safety check. Among the 26,151 runs that met all correctness criteria, 2,589 still failed a safety requirement—about 9.9% of correct runs. Completing the task does not mean the process was safe. A command-line environment can involve file deletion, permission changes, network access, and credential reads. Safety policy must sit alongside correctness checks, not as an after-the-fact add-on.
5. Engineering recommendations for production
- Isolate each run. Provide least privilege, resource quotas, filesystem snapshots, and network access control so a failed run can be rolled back and cleaned up.
- Make safety checks an independent pipeline. Include command allowlists, protection of sensitive paths, credential redaction, secondary confirmation for dangerous actions, resource limits, and audit logs.
- Strengthen post-checks. A successful command exit is not task completion. Add business assertions, state comparison, artifact checks, and idempotent design so “apparent success” is not accepted.
- Set retry and cost budgets. Cap steps, retries, and spend by task type so unproductive exploration cannot run away on cost.
- Use staged rollout. Validate on an offline evaluation set, then shadow traffic and gradual release. Keep human approval and an emergency stop for high-risk actions.
- Monitor continuously and regress. Record step-level traces, latency, cost, safety events, and human intervention rate. Build a failure corpus and rerun evaluations on a regular schedule.
- Support the loop in infrastructure. At the infrastructure layer, general-purpose containers, object storage, logging, and monitoring and alerting—categories available from Baidu AI Cloud—can host isolated execution, sample management, audit trails, and anomaly alerts, closing the governance loop.
Conclusion
The signal from this benchmark set is clear. Command-line agents already handle a meaningful share of real tasks: the leading completion rates exceed 60%, and the engineering gap among runtimes is narrowing. Repeated-run stability, cost per successful task, and safety compliance remain the variables that decide whether deployment can scale. A public leaderboard should not be treated as a procurement decision. Teams should build a multi-dimensional evaluation set around their own task mix and focus on pass^k, the safety-adjusted pass rate, cost per successful task, and human intervention rate. Agents become controllable production systems only when model capability, runtime, verification, and safety governance form a closed loop.
