Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Repository files navigation

BenchClaw harness

The BenchClaw measurement and evidence layer for reproducible AI-agent framework benchmarks.

DOI

What this is

BenchClaw publishes independent, reproducible benchmarks of AI-agent frameworks. This repository contains:

  • src/benchclaw_harness/ — the core harness: runner, scorer, redaction, paired analysis, and manifests
  • adapters/ — subject workers for LangGraph 1.2.9 and Pydantic AI Slim 2.13.0; each runs in its own isolated Python environment
  • task-suites/ — frozen task definitions used in published runs
  • tasks/ — fixture task definitions for local testing without API calls
  • config/ — pilot run configurations

Run the fixture pilot (no API key needed)

The fixture pilot uses deterministic stubs instead of real framework calls. It verifies the pipeline end-to-end with zero cost.

pip install -e .
PYTHONPATH=src python3 -m benchclaw_harness run \
  --config config/fixture-pilot-v1.json \
  --output artifacts/fixture-pilot

Verify an existing bundle:

PYTHONPATH=src python3 -m benchclaw_harness verify artifacts/fixture-pilot

Run the test suite:

PYTHONPATH=src python3 -m unittest discover -s tests -v

Run against real frameworks

Real-framework adapters require isolated Python environments with the exact locked dependency sets. See the BenchClaw methodology for environment setup instructions.

Each live run requires:

  1. A credential file at ~/.openclaw/credentials/openai-api-key (or equivalent; never committed)
  2. Isolated .venvs/langgraph/ and .venvs/pydantic-ai/ environments at the repo root
  3. Explicit per-call approval under BenchClaw's paid-call policy

After those isolated environments are installed, their fake-mode adapter contracts can be checked without an API call:

PYTHONPATH=src python3 adapters/test_adapters.py

Output format

Each run produces a directory with:

File Contents
inputs/config.json Frozen run configuration
inputs/task-suite.json Frozen task suite used
events.jsonl One terminal event per subject/task/run
analysis.json Subject summaries and paired comparisons
manifest.json SHA-256 digests and analysis settings

Security

  • API keys are read from a local credential file at runtime; they are never written to harness output or committed to this repository
  • The .gitignore excludes *.jsonl, .venvs/, .wheelhouse/, and common credential file patterns
  • Fake-mode workers explicitly blank credentials and block outbound network connections

Published results

Study Evidence Article
LangGraph 1.2.9 vs Pydantic AI 2.13.0, 160 runs raw data, analysis, manifest, and checksums Benchmark report
gpt-4o vs gpt-4o-mini tool calling, 80 pilot runs raw data, analyses, manifests, and checksums Pilot report
Pydantic AI 2.18.0 review, 80 runs raw data, analysis, and manifest Review
Pydantic AI 2.18.0 Skills verification scripts and outputs Skills guide
LangChain/LangGraph dependency verification scripts and outputs Comparison
Langfuse 4.10.0 vs Arize Phoenix 20.1.0 observability, 60 runs raw data, capture analysis, protocol, and code Tools comparison
openai-agents 0.21.1 vs LangGraph 1.2.11 tool calling, 160 runs raw data, analysis, manifest, locks, adapters, and checksums Framework guide
AI agent evaluator false-pass rates, 840 evaluations corpus, raw results, ledgers, analysis, and code Benchmark report
MCP package supply-chain metadata, 99 packages script, raw snapshots, and registry-key verification Security audit

The BenchClaw methodology defines the evidence standard, scoring rules, failure taxonomy, and statistical plan. Published JSONL files are sanitized evidence exports; local, unreviewed run artifacts remain ignored by default.

Reproducing and verifying

The zero-cost fixture pilot is the quickest way to verify the complete runner-to-manifest pipeline:

python3 -m venv .venv
.venv/bin/pip install -e .
PYTHONPATH=src .venv/bin/python -m unittest discover -s tests -v
PYTHONPATH=src .venv/bin/python -m benchclaw_harness run \
  --config config/fixture-pilot-v1.json \
  --output artifacts/fixture-pilot
PYTHONPATH=src .venv/bin/python -m benchclaw_harness verify \
  artifacts/fixture-pilot

For a published study, verify the files against its SHA256SUMS, then inspect the frozen task suite, manifest, analysis, and raw JSONL records together. Historical paid runs are evidence archives: rerunning them requires the named model, credentials, pinned framework versions, and may not reproduce provider latency because network and provider conditions change.

Citation

Use GitHub's Cite this repository control or the metadata in CITATION.cff. Versioned releases are archived with Zenodo; the release-specific DOI should be preferred when citing an exact version.

License

Licensed under the Apache License 2.0.

About

BenchClaw measurement and evidence layer for AI-agent framework benchmarks

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages