AI Agent Benchmark ShellBench: What It Reveals About Real-World Performance and Security

    This article breaks down ShellBench, an AI agent benchmark built from over ten million anonymized real-world agent interactions. It explains how the benchmark uses 100 tasks, itemized scoring criteria, and realistic workspaces filled with stale records, conflicting information, and injected malicious instructions to test whether agents can actually deliver results. Key findings include a 62.5% top completion rate, a wide gap between single-attempt and consistent success, near-parity between open-source and proprietary frameworks, and a significant safety blind spot where correct outputs still violate security rules. The article closes with a practical checklist for building reliable agent evaluation and runtime pipelines.

    1. Why We Need Agent Benchmarks Built for Everyday Work

    Over the past two years, most evaluations of AI agent capabilities have focused on code generation, mathematical reasoning, or standardized question answering. These tasks have clear boundaries, clean inputs, and outputs that can be judged automatically. Real office and operations environments are far messier: files are scattered across a workspace, information contradicts itself, historical records are outdated, and malicious instructions may be mixed in. This raises a critical question: when an agent is placed in an environment as cluttered as a real workstation, can it still get the job done?

    An industry organization, together with multiple research institutions, open-source communities, and university teams, released an agent benchmark called ShellBench. Its goal is not to test whether a model can answer questions, but whether an agent can deliver results. That distinction shapes every design decision behind the evaluation.

    2. Benchmark Construction: Deriving Task Distribution from Real Interactions

    The core data source for the benchmark is more than ten million anonymized real-world agent interaction records. Compared with hand-written problems, real logs reflect the long-tail distribution of tasks: what users actually ask agents to do, where they fail, and how many times they retry. Based on these records, the team distilled 100 tasks and paired them with a strict scoring system:

    • 90 tasks are judged item by item against 721 criteria, including 381 safety criteria;
    • 10 tasks are verified automatically through code-based tests;
    • A total of 53,100 scoring runs were executed.

    This itemized approach to criteria is worth adopting. It breaks a vague notion of “did it do well” into enumerable assertions, making scoring reproducible and regression-friendly, and making it easy to pinpoint which specific constraint failed.

    3. Workspace Design: Treating Distractors as First-Class Elements

    Every task comes with a workspace that closely mirrors reality, with a median of 188 files spanning emails, calendar exports, spreadsheets, chat logs, receipts, saved web pages, and PDFs. More importantly, most tasks deliberately plant distractors:

    • Stale records: historical versions that conflict with the current state;
    • Similar accounts: entities with similar names but different ownership;
    • Conflicting information: multiple materials that reach inconsistent conclusions;
    • Malicious instructions: prompt-injection-style content hidden inside documents.

    This means an agent must be capable of information retrieval, conflict resolution, and instruction prioritization, rather than simply “grabbing the first file that looks relevant.”

    4. Interpreting Results: The Stability Gap Behind 62.5%

    The evaluation covered 12 models and 5 agent runtime frameworks, averaging results across frameworks. The leader achieved a completion rate of 62.5%, the second place 61.9%, and the third place 61.4%—a spread of only 1.1 percentage points across the top three. This dense distribution shows that on real tasks, the gap between models is far smaller than in leaderboard-style Q&A scenarios, and the weight of frameworks and engineering details is significantly amplified.

    The stability metrics are even more telling. For the best model, the rate of “succeeding at least once in three attempts” was 75.1%, while the rate of “succeeding all three times” was only 48.8%. The gap of more than 26 percentage points makes it clear that single-attempt success is largely a matter of luck. For production systems, this means retry, verification, and rollback mechanisms are essential, and you cannot assume a single call reaches a steady state.

    A schematic retry-and-verification logic looks like this:

    1. def run_with_verification(task, workspace, max_attempts=3):
    2. for attempt in range(1, max_attempts + 1):
    3. result = agent.execute(task, workspace)
    4. if verify_correctness(result, task.rules):
    5. if verify_safety(result, task.safety_rules):
    6. return result, attempt
    7. audit_log.write("correct_but_unsafe", task.id, attempt)
    8. audit_log.write("failed", task.id, attempt)
    9. return escalate_to_human(task)

    5. The Cost Dimension: Capability and Cost Are Not Linear

    Cost data is equally useful from an engineering perspective. The leading model costs an estimated $1.10 per run, the second about $0.83, and the third only about $0.19, while a lightweight model completes 39.7% of tasks at roughly five cents per run. The capability gap and the cost gap are not in sync, which suggests that architecture design should adopt tiered scheduling: route high-frequency simple tasks to low-cost models, escalate complex tasks to higher-capability models, and set budget caps on the escalation path.

    6. Open-Source Frameworks Are Close to Proprietary Solutions

    At the framework level, the average pass rate of open-source solutions is very close to that of proprietary ones—approximately 45.23%, 45.22%, 45.11%, 45.04%, and 42.87%, with less than 2.5 percentage points between them. The conclusion is clear: the main bottleneck for agent performance lies not in the runtime framework itself, but in task modeling, tool-calling quality, context organization, and verification strategies.

    7. The Safety Blind Spot: Correct Does Not Mean Compliant

    The safety dimension produced the most alarming numbers: across all 53,100 runs, 15.7% failed at least one safety check; and among the 26,151 runs that met all correctness criteria, 2,589 still failed a safety requirement. In other words, roughly one in every ten executions that “looked correct” crossed a safety red line—perhaps reading data from an unrelated account without authorization, or executing a malicious instruction embedded in a document.

    From an engineering standpoint, correctness and safety must be split into two independent pipelines: correctness can be judged by result assertions and code tests, while safety requires a separate policy engine, a least-privilege sandbox, and full audit logging.

    8. An Actionable Checklist

    1. Itemize task modeling: write delivery standards as enumerable assertions for easier regression and diagnosis.
    2. Make workspaces realistic: actively inject stale, conflicting, and malicious content to test robustness.
    3. Layer verification: keep result verification, permission verification, and instruction-source verification independent.
    4. Use tiered scheduling and budget control: route models by difficulty and set cost caps.
    5. Ensure full-chain observability: use logging services and monitoring/alerting systems to track the failure cause of every attempt.
    6. Add human-in-the-loop fallback: route low-confidence or high-risk operations to human review.

    9. Conclusion

    The greatest value of this benchmark is that it turns “is the agent usable” from a subjective impression into quantifiable metrics, while exposing two weak spots: stability and safety. For developers and enterprises, real competitiveness lies not in picking the single strongest model, but in building an engineering system that includes realistic environments, itemized scoring, independent safety verification, and cost-aware scheduling. If an enterprise wants to quickly set up such evaluation and runtime pipelines in the cloud, it can rely on general-purpose capabilities such as container platforms, object storage, logging services, and monitoring/alerting from Baidu AI Cloud.