CB

claw-bench/claw-bench

开发工具
179 stars 质量 40 趋势 40

The Definitive AI Agent Benchmark Standardized, reproducible evaluation across 314 tasks, 33 domains, and 4 difficulty levels.

概览

The Definitive AI Agent Benchmark Standardized, reproducible evaluation across 314 tasks, 33 domains, and 4 difficulty levels.

README

Claw Bench

The Definitive AI Agent Benchmark Standardized, reproducible evaluation across 314 tasks, 33 domains, and 4 difficulty levels.

Leaderboard · Getting Started · skill.md · 中文


How It Works

Claw Bench evaluates real AI Agent products directly. Your agent reads the task instructions, does the actual work, and submits results to the global leaderboard.

Agent reads skill.md → completes tasks → pytest verifiers score output → submit to leaderboard

For AI Agents: Visit clawbench.net/skill.md and follow the instructions.

Quick Start

# 1. Install (for task files and verifiers)
pip install git+https://github.com/claw-bench/claw-bench.git

# 2. Have your AI agent read the skill file
#    https://clawbench.net/skill.md

# 3. Or submit existing results manually
claw-bench submit ./results/latest

Quick OpenClaw Test

For an unattended OpenClaw smoke test, use the run command instead of driving the web UI manually:

# Preview the 20-task smoke test without calling an agent
claw-bench run --framework openclaw --tasks quick --dry-run

# Run through a local CMDOP/OpenClaw agent
cmdop agent start
claw-bench run --framework openclaw --tasks quick --model "@balanced+agents"

# Or run through any OpenAI-compatible API endpoint
export OPENAI_COMPAT_BASE_URL="https://your-provider.example/v1"
export OPENAI_COMPAT_API_KEY="your-key"
claw-bench run --framework openclaw --tasks quick --model deepseek-v3

scripts/run_full_benchmark.py is a batch helper for long full-suite runs across multiple models. Start with claw-bench run --framework openclaw --tasks quick when you only need to verify that OpenClaw can execute tasks end to end.

Features

  • 313 curated tasks across 32 domains — from file operations to system architecture design.
  • Weighted scoring — core checks (weight 3), standard checks (weight 2), bonus checks (weight 1) via @pytest.mark.weight(n).
  • 4 difficulty levels (L1–L4) — baseline tasks through expert-level challenges.
  • Real agent testing — agents complete tasks themselves, no adapter middlemen.
  • Automated verification — every task has a pytest verifier with 12–28 check points.
  • Global leaderboard — real-time rankings at clawbench.net.
  • Anti-abuse protections — rate limiting, score validation, server-side recalculation.

Task Library

313 tasks across 32 domains and 4 difficulty levels:

Domain Tasks L1 L2 L3 L4 Dimension
File Operations 15 6 5 3 1 efficiency
Data Analysis 17 3 6 6 2 efficiency
Workflow Automation 17 2 8 6 1 efficiency
Database 5 1 2 1 1 efficiency
Real Tools 5 1 2 1 1 efficiency
Security 15 3 5 4 3 security
System Admin 15 3 6 5 1 security
Code Assistance 15 3 6 4 2 skills
Cross-Domain 17 0 0 10 7 skills
Multimodal 15 1 6 7 1 skills
Debugging 5 1 2 1 1 skills
Math Reasoning 5 1 2 1 1 skills
Communication 15 3 5 6 1 ux
Email 18 3 8 6 1 ux
Calendar 15 5 5 3 2 ux
Document Editing 18 4 9 4 1 ux
Memory 15 1 6 7 1 ux
Web Browsing 15 3 6 5 1 ux
Planning 5 1 2 1 1 ux
Total 313 45 127 111 30

Scoring System

Each task is verified by a pytest script with 12–28 check points:

  1. Per-task score = weighted sum of passed checks / weighted sum of all checks
  2. Dimension scores = average of task scores within each dimension (efficiency / security / skills / ux)
  3. Overall score = average of all task scores × 100

Check points are weighted:

  • @pytest.mark.weight(3) — core correctness (file exists, values correct)
  • @pytest.mark.weight(2) — standard quality (default, format validation)
  • @pytest.mark.weight(1) — bonus strictness (no placeholders, consistent naming, no duplicates)

Quick Test

The quick test selects 20 representative tasks across all 32 domains:

L1 (5):  file-002, code-002, eml-001, data-002, debug-001
L2 (7):  cal-006, doc-004, sys-004, sec-004, wfl-003, db-002, tool-002
L3 (5):  web-006, mem-005, xdom-001, plan-004, math-004
L4 (3):  code-014, debug-005, tool-005

Project Structure

claw-bench/
  src/claw_bench/       # Core library and CLI
    core/               # Runner, verifier, scorer
    cli/                # Command-line interface (submit, validate, doctor)
    server/             # FastAPI server + Admin API
  tasks/                # 313 task definitions across 32 domains
  skills/               # skill.md — agent instruction file
  config/               # Task selection and model configs
  scripts/              # Deployment and maintenance scripts
  leaderboard/          # Next.js frontend (clawbench.net)
  docker/               # Container images & production compose

Development

git clone https://github.com/claw-bench/claw-bench.git
cd claw-bench
pip install -e ".[dev]"
pytest

See CONTRIBUTING.md for the full contribution guide.


Apache-2.0 · clawbench.net · GitHub

View this README on GitHub

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add claw-bench/claw-bench