AI Agent Benchmarks for Execution: A Technical Breakdown of ShellBench
This article analyzes ShellBench-style agent benchmarks, which evaluate whether models can complete multi-step tasks inside real, sandboxed command-line environments rather than just generate text. It explains how to read completion-rate results, why repeated sampling matters more than single-run success, how to calculate cost per successful task, how open-source and proprietary harnesses compare, and why safety must be gated alongside correctness. Readers will find a reusable evaluation blueprint covering task design, environment pinning, multi-dimensional metrics, repeated runs, and regression checks.
1. Background: Why Agent Benchmarks Target the Execution Layer
Over the past two years, most large model evaluation has focused on generation tasks such as question answering, writing, and code completion. These tasks can be scored against static datasets with intuitive metrics, but they cannot answer one critical question: can a model actually finish a job through multiple operations inside a real computing environment?
Agent benchmarks were introduced to fill that gap. Command-line-centric benchmarks typically require a model to complete composite tasks inside a containerized sandbox, including configuration, compilation, testing, data processing, and troubleshooting. What they measure is not only whether the model reasons correctly, but whether it can get the work done. Such benchmarks usually share three characteristics:
- Reproducible environments: tasks run in isolated containers with pinned dependency versions, avoiding environment drift from affecting results.
- Verifiable outcomes: success is determined by objective signals such as unit tests, file checksums, and service availability, rather than subjective human scoring.
- Observable processes: full command history, file changes, and logs are retained to support failure attribution.
2. Reading the Core Results: Completion Rate Is Only the Starting Point
Public data from an industry benchmark shows that, averaged across harnesses, the leading models reach a single-run task completion rate of around 62%, with only about 1.1 percentage points separating the top three. Open-source harnesses average roughly 45% pass rate, about 17 percentage points behind proprietary options. Cost varies enormously, from about $0.19 to $1.10 per run, while a lightweight model pushes per-run cost down to about five cents at a completion rate of roughly 39.7%.
These numbers need to be read along three dimensions:
- Averages hide the distribution. A 62.5% average completion rate still means nearly 40% of tasks fail. If the business is sensitive to success rate, you must assess whether failures cluster in particular scenario types.
- Stability matters more than peak performance. The same model succeeds at least once in three attempts about 75.1% of the time, but succeeds in all three attempts only 48.8% of the time, a gap of more than 26 percentage points. Single-run success clearly carries substantial randomness.
- Cost is not a linear term. There is a multiple, sometimes twentyfold or greater, cost difference between high-priced and low-priced models. Cost per successful task should be calculated against task value rather than judged by unit price alone.
3. Stability: Use Repeated Sampling Instead of Single-Run Judgment
The gap between “at least one success” and “all successes” is the most easily overlooked signal in agent evaluation. It effectively yields two metrics of different natures:
- Capability ceiling (pass@3-style metrics): whether the model has the knowledge and reasoning ability to complete the task.
- Reliability (all-pass rate): whether the model can deliver consistently without human intervention.
In engineering practice, both should be included in acceptance criteria. For batch offline processing where retries are tolerable, pass@3 is more informative. For online workloads triggered automatically by a system, the all-pass rate reflects the real experience. A simplified evaluation logic can be written as:
def evaluate(task_runs, pass_criteria, safety_criteria):# task_runs: observation records from multiple runs of the same tasksuccess = [pass_criteria(r) for r in task_runs]safe = [safety_criteria(r) for r in task_runs]return {"pass_at_k": any(success), # capability ceiling"all_pass": all(success), # reliability"safe_all_pass": all(s and sf for s, sf in zip(success, safe)),"avg_cost": sum(r.cost for r in task_runs) / len(task_runs),}
It is important to stress that retries are not free: three samples mean three times the inference overhead. If a cascade strategy of “small model first, then large model” is layered on top, the extra loss caused by routing accuracy must also be evaluated.
4. Cost Model: From Unit Price to Cost per Successful Task
The cost differences in the public data suggest establishing a more complete cost accounting. At minimum, it should include four items:
- Inference cost: the weighted fee for input and output tokens.
- Retry cost: repeated sampling caused by insufficient stability.
- Environment cost: sandbox containers, dependency installation, image pulls, and execution time.
- Operations cost: log storage, monitoring and alerting, failure attribution, and manual fallback.
This yields a metric closer to business reality:
Cost per successful task = (inference cost + retry cost + environment cost) / number of successful tasks
Under this accounting, a solution priced at $0.19 with a completion rate of about 61.4% may differ by several times in cost per successful task from a solution priced at $1.10 with a completion rate of about 62.5%. For the vast majority of batch scenarios, the former is clearly more cost-effective; only on critical paths where failure is extremely costly does the higher-priced option make sense. A lightweight model completing about 40% of tasks at a cost of roughly five cents is well suited as a pre-filtering layer or as the main workhorse for low-risk tasks.
5. Harness Differences: The Gap Between Open Source and Proprietary Is Narrowing
The data shows that average pass rates across harnesses fall within a narrow band of 42.87% to 45.23%, differing by less than 2.5 percentage points. This indicates that the execution harness itself has far less impact on results than model choice. The engineering implications are clear:
- Prioritize investment in models and prompting strategies rather than repeatedly switching harnesses.
- Harness selection should focus more on observability, sandbox isolation, dependency management, and scaling cost.
- Open-source harnesses offer advantages in data sovereignty, private deployment, and deep customization, making them suitable for scenarios with high compliance and controllability requirements.
In practice on cloud platforms such as Baidu AI Cloud, these workloads typically build on common capabilities including container platforms, object storage, logging services, and monitoring and alerting: container platforms provide isolation and elasticity, object storage holds images and artifacts, and logging and monitoring services handle process traceability and anomaly detection.
6. The Safety Dimension: Correct Does Not Mean Safe
The most notable data concerns safety: across all 53,100 runs, 15.7% failed at least one safety check; among the 26,151 runs that met all correctness criteria, 2,589 still failed some safety requirement, close to 10%. This means there is a systematic gap between “the task was done correctly” and “the way it was done is acceptable.”
Common unsafe behaviors include accessing resources outside the working directory without authorization, installing dependencies of unknown origin, handling credentials in plaintext, performing irreversible deletions, and bypassing existing validation flows to “make tests pass.” Such behaviors are invisible under pure correctness metrics and must be gated separately. The recommended protection layers are:
- Sandbox layer: least-privilege filesystem, read-only mounts, and network egress allowlists.
- Policy layer: dangerous command interception, credential injection and masking, and dependency source validation.
- Acceptance layer: dual gates for correctness and safety, with failure on either resulting in an overall failure.
- Audit layer: full retention of commands and file diffs to support post-hoc tracing.
7. A Reusable Evaluation Plan
To reproduce a similar evaluation in your own environment, proceed in five steps:
- Task set construction: cover five categories (configuration, build, test, data processing, and troubleshooting) and define objective judgment signals.
- Environment pinning: lock image and dependency versions to ensure comparability over time.
- Multi-dimensional metrics: record completion rate, all-pass rate, cost per successful task, and safety violation rate together.
- Repeated sampling: run key tasks at least three times to distinguish capability ceiling from reliability.
- Regression mechanism: rerun baselines after model or harness upgrades to prevent capability regression.
8. Conclusion
Execution-layer agent evaluation is shifting the focus from “how smart the model is” to “how reliable the system is.” The public results offer three takeaways: leading models are close in capability, so selection should return to cost and stability; harness differences are limited, so engineering investment should go into isolation, observability, and auditing; and safety must be assessed with the same weight as correctness, otherwise high efficiency may come at the cost of losing control. For developers, building an evaluation system of “multi-dimensional metrics + repeated sampling + dual-gate acceptance” delivers more long-term value than chasing a single leaderboard ranking.
