Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

agentbenchagentbench 测试

Agent Skill

agentbench 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

20,143

周安装

831

GitHub Stars

1

下载量

6,582
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agentbench(agentbench 测试)
来源仓库:https://github.com/exe215/agentbench
安装命令:
openclaw skills install agentbench
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install agentbench

简介

用于记录任务执行中的错误与能力缺口。agentbench 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合持续优化 Agent 的问题修正和最佳实践沉淀。
  • 可结合基准测试结果调整代理行为策略。
  • 安装命令:openclaw skills install agentbench。
  • 建议确认是否会触发联网或文件读写操作。

SKILL.md

name
agentbench
description
Benchmark your OpenClaw agent across 40 real-world tasks. Tests file creation, research, data analysis, multi-step workflows, memory, error handling, and tool efficiency. Not a coding benchmark — measures your agent setup and config.
homepage
https://www.agentbench.app
metadata
{ "openclaw": { "emoji": "📊", "requires": { "bins": ["jq", "bash", "python3"] } } }

AgentBench for OpenClaw

Benchmark your OpenClaw agent's general capabilities across 40 real-world tasks spanning 7 domains.

Commands

When the user says any of these, follow the corresponding instructions:

  • /benchmark — Run the full benchmark suite (all 40 tasks)
  • /benchmark --fast — Run only easy+medium tasks (19 tasks)
  • /benchmark --suite <name> — Run one domain only
  • /benchmark --task <id> — Run a single task
  • /benchmark --strict — Tag results as externally verified scoring
  • /benchmark-list — List all tasks grouped by domain
  • /benchmark-results — Show results from previous runs
  • /benchmark-compare — Compare two runs side-by-side

Flags are combinable: /benchmark --fast --suite research

Running a Benchmark

Step 1: Discover Tasks

Read task.yaml files from the tasks/ directory in this skill:

tasks/{suite-name}/{task-name}/task.yaml

Each task.yaml contains: name, id, suite, difficulty, mode, user_message, input_files, expected_outputs, expected_metrics, scoring weights.

Filter by --suite or --task if specified. If --fast is set and --task is not, filter to only tasks where difficulty is "easy" or "medium".

Profile is "fast" if --fast was specified, otherwise "full".

List discovered tasks with count and suites.

Step 2: Set Up Run Directory

Generate a run ID from the current timestamp: YYYYMMDD-HHmmss

Read suite_version from skill.json in this skill directory.

Create the results directory:

agentbench-results/{run-id}/

Announce: Starting AgentBench run {run-id} | Profile: {profile} | Suite version: {suite_version} | Tasks: {count}

Step 3: Execute Each Task

For each task:

  1. Set up workspace:

- Create /tmp/agentbench-task-{task-id}/ as workspace - Copy input files from tasks/{suite}/{task}/inputs/ to the workspace (if inputs/ exists) - If the task directory contains a setup.sh: run bash tasks/{suite}/{task}/setup.sh {workspace-path} - For file-unchanged validators: compute checksums of specified files after setup, before task execution

  1. Announce: Running: {task.name} [{task.suite}] (difficulty: {task.difficulty})
  1. Record start time (milliseconds): date +%s%3N
  1. Execute the task yourself directly:

- Read the task's user_message and execute it as if a real user sent you the request - Work ONLY within the workspace directory - If input files are listed, read them from the workspace - Execute naturally — use the appropriate tools (read, write, edit, exec, web_search, web_fetch, etc.) - Create any output files in the workspace directory - When done, write a brief execution-trace.md to the workspace: - What you understood the task to be - What approach you took - What files you created or modified - Any difficulties or decisions you made

  1. Record end time and compute duration
  1. Collect metrics:

- total_time_ms: end - start - tool_calls_total: count how many tool calls you made during this task - errors: count any tool call failures - planning_ratio: estimate the fraction of time spent reading/thinking vs producing output (approximate is fine)

  1. Layer 0 — Automated Structural Checks (compute directly):

After task execution, check the workspace. For each entry in expected_outputs: - file-exists: Check if file exists. 30 points if found, 0 if not. - content-contains: Read file, check each required section keyword (case-insensitive). Points proportional to matches found. Pool: 40 points. - word-count-range: Count words. In range = 30 points. Within 2x range = 15 points. Outside = 0. - git-log-contains: Check git log for expected strings. 30 points if all found, proportional otherwise. - directory-structure: Check all paths exist. 30 points if all present, proportional for partial. - command-output-contains: Run command, check output contains all strings. 30 points if match, 0 if not. - file-unchanged: Compare checksum against pre-execution checksum. 30 points if unchanged, 0 if modified. - link-consistency: Scan files for link syntax consistency. 30 points if consistent, 15 if mostly consistent (>70% one style), 0 if mixed. - Normalize total to 0-100.

  1. Layer 1 — Metrics Analysis (compute directly):

If task has expected_metrics: - Tool calls within expected range: 40 points - Tool calls within 2x range: 20 points - Outside 2x range: 0 points - Planning ratio within expected range: 30 points - Planning ratio outside but within 2x: 15 points - Way off: 0 points - Zero errors: 30 points - 1-2 errors: 15 points - 3+ errors: 0 points - Normalize to 0-100. If no metrics available, score as 50. - Token estimate is tracked for reporting but NOT scored.

  1. Layer 2 — Behavioral Analysis (self-evaluate honestly, 0-100):

Score based on HOW you executed:

Instruction Adherence (30 points): - 30: Followed all instructions precisely - 20: Mostly followed, minor deviations - 10: Significant deviations - 0: Ignored or misunderstood

Tool Appropriateness (25 points) — rule-based first: - Penalty: -10 for each use of exec cat instead of read to read files - Penalty: -10 for each use of exec echo/printf instead of write to create files - Penalty: -5 for each use of exec sed/awk instead of edit for file edits - Start at 25, apply penalties, floor at 0

Approach Quality (25 points) — check read-before-write: - 25: Read all inputs before producing output - 15: Read most inputs, minor gaps - 5: Started producing output without reading context - 0: No clear approach

Error Recovery (20 points): - 20: Clean recovery or no errors occurred - 10: Partial recovery - 0: Failed to recover

  1. Layer 3 — Output Quality (self-evaluate honestly, 0-100):

Score the deliverable:

Completeness (25): All requirements met? Gaps? Accuracy (25): Content correct? Calculations right? Formatting (25): Well-structured? Correct file format? Polish (25): Would a user be satisfied?

  1. Compute composite score:
    score = (L0 × 0.20) + (L1 × 0.35) + (L2 × 0.20) + (L3 × 0.25)

Use weights from task.yaml if specified, otherwise these defaults.

  1. Save task result to agentbench-results/{run-id}/{task-id}/:

- scores.json: All layer scores, composite, breakdown, notes - metrics.json: Timing, tool calls, errors, planning ratio - Copy output files

  1. Display: {task.name}: {composite}/100 (L0:{l0} L1:{l1} L2:{l2} L3:{l3})

Step 4: Generate Report

After all tasks:

  1. Compute domain averages (group by suite, average composite scores)
  2. Compute overall score (average of domain scores — equal domain weighting)
  3. Compute aggregate metrics

Generate three files in agentbench-results/{run-id}/:

results.json — Machine-readable with this structure:

{
  "run_id": "20260222-143022",
  "timestamp": "2026-02-22T14:30:22Z",
  "platform": "openclaw",
  "mode": "sandboxed",
  "profile": "full",
  "suite_version": "1.0.0",
  "scoring_method": "self-scored",
  "overall_score": 74,
  "duration_ms": 754000,
  "task_count": 40,
  "metrics": {
    "total_tool_calls": 187,
    "total_errors": 3,
    "avg_planning_ratio": 0.28,
    "est_tokens": 245000
  },
  "domain_scores": {},
  "tasks": []
}

If --strict was used, set scoring_method to "externally-verified".

Integrity signature: After building results.json (without signature field), compute:

SIG=$(echo -n "$CONTENT" | openssl dgst -sha256 -hmac "agentbench-v1-{run_id}-{suite_version}-integrity" | awk '{print $2}')

Add as "signature" field to results.json.

report.md — Markdown summary: Overall Score, Metrics, Domain Breakdown, Task Details, Top Failures, Recommendations.

report.html — Self-contained HTML dashboard (inline CSS/JS, no external deps):

  • Score display with color (green 80+, yellow 60-79, red <60)
  • Domain cards with score bars
  • Task detail table (sortable, expandable)
  • Top failures section
  • Dark mode via prefers-color-scheme
  • Footer: "Generated by AgentBench v1.0.0 (OpenClaw) | Suite v{suite_version} | Profile: {profile}"

Step 5: Present Results

  1. Display overall score
  2. Show domain breakdown
  3. Tell user where results are saved
  4. Mention they can submit to https://www.agentbench.app/submit

Step 6: Clean Up

Run teardown.sh if present. Remove temp workspace directories unless --keep-workspace was specified.

Listing Tasks (/benchmark-list)

Read all task.yaml files, group by suite, display as:

## file-creation (9 tasks)
  - project-scaffold [easy]
  - project-proposal [medium]
  ...

Viewing Results (/benchmark-results)

List all directories in agentbench-results/, show run ID, date, overall score, profile, and task count for each.

Comparing Runs (/benchmark-compare)

Show two runs side-by-side: overall scores, domain scores, and per-task deltas. Warn if profiles differ.

Key Differences from Claude Code Version

  • No hooks — metrics are self-tracked (timing, tool call counting)
  • No subagents — you execute tasks directly in sequence
  • Same tasks, same scoring, same output format — results are cross-platform comparable
  • Same integrity signature — submissions work on the same leaderboard

Important Notes

  • Be honest in self-evaluation (L2/L3). Inflated scores are obvious on the leaderboard.
  • The objective layers (L0 + L1) carry 55% of the weight — they can't be faked.
  • Token estimates are informational only, not scored.
  • Any link syntax is accepted in skill graph tasks — consistency is what's scored.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

79.93%
按下载量换算5,261

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills