Understanding ShellBench Completion Rates for AI Agents: Benchmark Data, Reliability, and Cost
This article breaks down what completion rates on ShellBench-style command-line benchmarks actually mean for AI agents. It explains why terminal tasks are difficult to benchmark, how to read leaderboard data across averages, repeatability, and cost, and how open-source runtimes compare to proprietary ones. You will also find practical guidance on building an evaluation pipeline with isolated execution, assertion-based verification, and observability, plus a checklist for tracking completion rate, consistent success rate, and cost per success.
1. Why Command-Line Tasks Are the Hard Test for Agents
In any evaluation framework for AI agents, command-line interaction remains one of the hardest scenarios to “game” through pattern matching. The difficulty comes from three pressures at once: the environment is real and stateful, feedback is text-heavy and noisy, and the cost of mistakes is often irreversible. A model can produce a clean script and still fail on permissions, paths, dependency versions, or exit-code handling.
As a result, a number of benchmarks centered on command-line tasks have emerged. These benchmarks typically provide an initial filesystem state, a natural-language objective, and a set of automatically verifiable checks. The agent must complete the work within a limited number of steps. Scoring does not rely on human impression; it relies on whether the final state satisfies the assertions. This makes the evaluation objective and reproducible.
What these benchmarks measure is not how much a model knows, but end-to-end task closure: understanding the goal, exploring the environment, selecting tools, executing commands, reading output, and correcting and retrying. This is also why the same model can score differently under different runtimes—the runtime determines how context is organized, how granularly tools are exposed, and how failures are recovered.
2. Reading the Leaderboard in Three Layers: Average, Stability, and Cost
Public data shows a typical pattern: averaged across runtimes, the top model reaches a completion rate of about 62.5%, the second about 61.9%, and the third about 61.4%—a gap of only about 1.1 percentage points among the top three. That narrow spread is itself an important signal.
The first layer is the average. A top band clustered just above 60% means the strongest agents still fail nearly 40% of real command-line tasks. The engineering implication is direct: do not treat an agent as a deterministic executor. Build in human confirmation points, sandbox isolation, and rollback mechanisms.
The second layer is stability. For one leading model, the rate of “succeeding at least once in three attempts” is about 75.1%, while “succeeding on all three” is only about 48.8%. The gap of more than 26 percentage points highlights a frequently overlooked fact: single-run success rate and task reliability are not the same thing. If a workload must run unattended, the metric that matters is consistent success across multiple runs, not the best result.
Pseudocode makes the difference clearer:
def evaluate(models, tasks, frameworks, k=3):for m in models:pass_any, pass_all = 0, 0for t in tasks:results = [run(m, t, f) for f in frameworks for _ in range(k)]pass_any += int(any(results))pass_all += int(all(results))report(m, mean_rate=mean(results),at_least_once=pass_any / len(tasks),all_pass=pass_all / len(tasks))
The third layer is cost. Running costs vary widely: the top model costs about $1.10 per run, the runner-up about $0.83, and another about $0.19; a lightweight model has a completion rate of about 39.7% at roughly five cents per run. Converting this into “cost per success” is more useful for decision-making—a high-completion model that needs multiple retries inflates its effective unit cost, while a cheap lightweight model still carries the total cost of failed retries and human intervention.
A practical cost formula:
Cost per success ≈ cost per run × average attempts ÷ task success rate
3. The Impact of Runtimes: Open-Source Options Are Close to Proprietary Ones
The data also shows that the average pass rate of open-source runtimes is close to that of proprietary solutions. Several mainstream open-source frameworks score about 45.23%, 45.22%, 45.11%, and 45.04%, with another at about 42.87%. The differences are on the order of 0.2 percentage points—effectively the same tier.
This matters for technology selection: differences at the runtime level are far smaller than differences at the model level. In other words, instead of agonizing over a few thousandths of a point from framework choice, invest effort in matching model capability, managing context, designing tool permissions, and writing high-quality verification scripts. The real advantage of open-source frameworks is that they are auditable, customizable, and deployable on-premises—not that they lead on score.
Runtime differences usually show up in four areas: context compression strategy, which determines whether long tasks lose key constraints; how tools are exposed, where coarse command granularity causes errors and fine granularity explodes the step count; failure recovery, or whether error output is retained for a second round of reasoning; and parallelism and budget control, which affect cost per task.
4. Putting Evaluation into Practice on Baidu AI Cloud
To reproduce and run this kind of evaluation in your own environment over the long term, consider building it in layers on Baidu AI Cloud:
- Isolated execution layer: use a container platform to create a disposable sandbox for each run, destroyed when the task ends to avoid state contamination.
- Environment and dependency layer: bake dependencies into images, storing images and task data separately in object storage and an image registry to ensure reproducibility.
- Verification layer: pair each task with assertion scripts, using exit codes and structured results as the sole basis for scoring.
- Observability layer: collect the full command trace through a logging service, and track success rate, average steps, and cost curves with monitoring and alerts.
- Scheduling layer: use a message queue for task distribution and retry control, making policies such as “three attempts” explicit configuration.
Example task description structure:
task_id: rotate_log_and_verifygoal: Compress logs older than 7 days in a specified directory and verify integrityconstraints:- Do not delete the original files- Preserve error output on failureverify:- Assert that the number of archived files matches the checksumbudget:max_steps: 40retries: 3
5. Conclusions and Recommendations
Three conclusions are worth remembering. First, the strongest agents complete about 60% of command-line tasks, so engineering must assume failure. Second, the gap between “at least one success” and “all successes” across multiple attempts is significant, so reliability evaluation should focus on the latter. Third, runtime differences are far smaller than model differences, so selection should center on how well the model matches the task engineering.
An action checklist for teams: first build a task set with automated assertions, then fix the randomness and budget definitions, and finally record three metrics together—completion rate, consistent success rate, and cost per success. Only when evaluation becomes a sustainable pipeline does agent capability improvement gain a basis that is comparable, regression-testable, and deliverable.
