Skip to content
thromelPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

HelmBench

Measure how coding agents navigate, validate, and succeed.

HelmBench is a local, source-free benchmark and observability harness for AI coding agents. It measures whether an agent found the right files, avoided wasted context, ran useful validation, and solved the task.

HelmBench is designed as a companion to ctxhelm:

  • ctxhelm improves agent context.
  • HelmBench proves whether that context helped.

Proof Snapshot

The checked-in source-free smoke proof shows ctxhelm_mcp improving the example Claude Code run from 0.0% to 100.0% task success, reducing irrelevant reads from 75.0% to 33.3%, and cutting time to first relevant file from 2600 ms to 600 ms.

See HelmBench Launch Proof and the generated Launch Readiness report for the artifact-backed summary, dashboard, privacy contract, and regeneration commands. The current readiness status is smoke_proof: it now includes a verified, source-free local smoke matrix with outcome-ready suite health and a real Claude Code smoke report. It also includes a verified 10-task RefactoringMiner real-agent matrix, but keeps launch readiness at smoke_proof because that matrix's quality gate failed. The launch-readiness report now lists the remaining blockers and source-free next actions explicitly.

The checked-in RefactoringMiner public recommendation proof runs ctxhelm prepare-task over a healthy 10-task public suite and records 61.3% average recommendation recall with source-free artifacts. Its checked outcome-readiness report classifies the evidence as navigation_only, not task-success evidence, because validation can pass before any agent change.

HelmBench also includes a seeded RefactoringMiner git-regression suite with an outcome_ready source-free health report: 10 tasks, 10 failing pre-agent validation baselines, zero setup failures, and zero validation timeouts. The checked-in RefactoringMiner real-agent matrix runs Claude Code native vs ctxhelm_mcp over that suite. It is diagnostic, not a launch win: native solved 30.0% of tasks while ctxhelm_mcp solved 0.0%; the failed quality gate shows HelmBench catching a real regression instead of papering over it.

The checked-in real Claude Code smoke report launches Claude Code through claude-run on the local smoke suite and records 100.0% task success with one relevant file read, zero irrelevant reads, and source-free privacy flags.

Current status

This repository currently implements the core HelmBench workflow:

  • task suite schema
  • source-free trace schema
  • published JSON Schema contracts for task suites, agent events, traces, run reports, compare reports, benchmark summaries, quality gates, matrix configs, matrix history, matrix manifests, launch-readiness reports, doctor reports, autopsy reports, suite-health reports, evidence bundles, and matrix privacy reports
  • suite and trace validation
  • run report generation from trace JSON
  • report comparison
  • Markdown and JSON output
  • privacy checks that reject raw-source/raw-transcript traces
  • ctxhelm-trace adapter that calls ctxhelm prepare-task and emits source-free recommendation traces
  • claude-trace importer that converts sanitized Claude Code event JSONL into source-free read/edit/test traces
  • local-run runner that clones a git repo per task, runs a source-free adapter command, executes validation, infers edited files from git diff, and emits trace JSON
  • claude-run and codex-run launch presets that run agents non-interactively inside isolated clones using the same source-free event contract
  • checked-in real Claude Code smoke proof generated through the direct launch preset, with raw stdout/stderr suppressed and only source-free telemetry persisted
  • stream-trace importer that converts structured Claude/Codex-style JSONL tool streams into source-free traces without storing command text or tool payloads
  • opt-in --capture-stream mode for local, ctxhelm-guided, Claude, Codex, and matrix runs that parses structured stdout in memory and persists only source-free events
  • init-public-suite generator for verified public-repo benchmark suites, currently including a 10-task RefactoringMiner suite plus Flask, ripgrep, and Express presets
  • init-public-matrix generator for repeatable real-agent public-suite matrix configs, with source-free fixture health checked before the config is written
  • suite-health checks any source-free suite against a local git repo before benchmark results are trusted
  • opt-in suite-health --check-success-commands gate that runs validation commands in isolated clones and flags suites whose success commands already pass before any agent changes
  • task-level setupCommands for seeding per-task failures inside isolated clones before ctxhelm, agents, and validation commands run
  • demo-run one-command deterministic demo pipeline with reports, dashboard, privacy report, quality gate, and evidence bundle
  • run-matrix benchmark coordinator that runs one baseline plus one or more local adapter variants and emits reports, comparisons, dashboard, quality gate, suite-health, per-run autopsies, privacy report, reproduction guide, evidence bundle artifacts, and source-free reproducibility provenance
  • checked-in verified local smoke matrix under docs/local-smoke-matrix/, including outcome-ready suite health, privacy report, evidence bundle, and matrix manifest
  • checked-in verified 10-task RefactoringMiner real-agent matrix under docs/refactoringminer-real-matrix/, including source-free traces, reports, dashboard, evidence bundle, privacy report, and a failed quality gate
  • launch-readiness report that classifies checked-in proof artifacts as launch_ready, smoke_proof, or not_ready without storing source, and can include source-free blocker next actions and doctor runtime preflight evidence for direct runners
  • first-class run-matrix row presets for Claude Code and Codex, so real agent matrices can inject the source-free event contract without hand-written adapter commands
  • matrix-history longitudinal comparison and static HTML trend dashboards for verified run-matrix outputs
  • diff-autopsy reviewer report that compares a git worktree, branch diff, or GitHub PR changed-file list against one source-free benchmark task without reading patch contents
  • GitHub release workflow with packaged binaries, SHA-256 checksums, and provenance attestations
  • benchmark-summary reports that compare one baseline against multiple source-free variant reports, including confidence intervals and low-sample warnings plus source-free failure taxonomy counts
  • evidence-bundle packaging for source-free suites, health reports, run reports, benchmark summaries, and artifact hashes
  • verify-bundle validation for source-free evidence manifests, safe artifact paths, byte counts, and content hashes
  • quality-gate checks that fail CI when benchmark-summary deltas regress
  • recommendation precision and recall metrics for context-plan evaluation
  • source-free command-class summaries for test/build/lint/typecheck/other validation behavior
  • source-free tool/token cost-per-success metrics for practical efficiency comparisons

It does not yet parse raw Claude Code, Codex, Cursor, or other agent transcripts. The current runner ingests source-free traces, can generate ctxhelm plan traces, can convert source-free Claude Code events, can execute explicit local adapter commands, and can launch Claude/Codex with source-free event instructions.

Quickstart

Run the local verification contract:

./scripts/verify.sh

This runs formatting, tests, clippy, CLI help checks, the reproducible demo benchmark, dashboard generation, benchmark summary generation, evidence bundle generation and verification, release workflow/docs consistency checks, and whitespace checks. GitHub Actions runs the same script.

Check local prerequisites and optional agent integrations:

cargo run -- doctor --repo .

cargo run -- doctor \
  --repo . \
  --format json \
  --out /tmp/helmbench-doctor.json

The JSON doctor report is source-free. It records required checks, optional ctxhelm/Claude/Codex availability, direct-runner readiness, supported observation modes, and privacy flags without storing raw version strings. Add --check-direct-runners when you want HelmBench to run bounded, source-free non-interactive smoke checks for Claude/Codex and store only exit status, elapsed time, output/diagnostic hashes, and a coarse failure class such as session_limit, auth_required, cli_config_incompatible, or cli_upgrade_required.

Install from source:

cargo install --git https://github.com/thromel/helmbench --locked

Release tarball and provenance verification instructions are in Install HelmBench.

Create an example suite:

cargo run -- init-suite --out suites/example-auth-bugs.json

Write a JSON Schema contract:

cargo run -- schema --kind agent-trace --out /tmp/agent-trace.schema.json

Write every published JSON Schema contract:

cargo run -- schema --all --out-dir /tmp/helmbench-schemas

Create a reproducible demo benchmark repo plus matching suite:

cargo run -- init-demo-repo \
  --repo-out /tmp/helmbench-demo-repo \
  --suite-out /tmp/helmbench-demo-suite.json \
  --force

The generated demo repo is healthy at rest. Its suite uses task-level setupCommands to seed failing states inside isolated task clones, so suite-health --check-success-commands --require-setup-commands can prove outcome readiness before an agent run.

Run the full deterministic demo pipeline:

cargo run -- demo-run \
  --out-dir /tmp/helmbench-demo-run \
  --force

Run a baseline-vs-variant matrix and write publishable artifacts:

cargo run -- run-matrix \
  --suite /tmp/helmbench-demo-suite.json \
  --repo /tmp/helmbench-demo-repo \
  --out-dir /tmp/helmbench-matrix \
  --baseline "name=native,agent=demo-baseline,variant=native" \
  --head "name=native-search,agent=demo-search,variant=native_search,preset=claude-code,bin=scripts/demo-local-agent.sh,dangerously_skip_permissions=true" \
  --head "name=guided,agent=demo-guided,variant=ctxhelm_mcp,ctxhelm=true,ctxhelm_bin=scripts/demo-ctxhelm.sh,pack=true,pack_budget=brief,preset=claude-code,bin=scripts/demo-local-agent.sh,dangerously_skip_permissions=true" \
  --force

cargo run -- verify-bundle \
  --bundle /tmp/helmbench-matrix/evidence

cargo run -- matrix-history \
  --matrix /tmp/helmbench-matrix-week-1 \
  --matrix /tmp/helmbench-matrix-week-2 \
  --out /tmp/helmbench-matrix-history.md

cargo run -- matrix-history \
  --matrix /tmp/helmbench-matrix-week-1 \
  --matrix /tmp/helmbench-matrix-week-2 \
  --format html \
  --out /tmp/helmbench-matrix-history.html

For repeatable runs, put the matrix definition in JSON:

HELMBENCH_BIN=$(pwd)/target/debug/helmbench \
  cargo run -- validate-matrix \
    --config suites/demo-matrix.json

HELMBENCH_BIN=$(pwd)/target/debug/helmbench \
  cargo run -- run-matrix \
    --config suites/demo-matrix.json \
    --force

The checked-in suites/demo-matrix.json is self-contained for a fresh HelmBench checkout. It runs the tracked local-run-smoke suite against this repo, compares native, native-search, and ctxhelm-guided rows, and uses scripts/demo-local-agent.sh through the claude-code matrix preset plus scripts/demo-ctxhelm.sh as deterministic source-free shims. The smoke suite keeps the fixture healthy at rest and uses task-level setupCommands to seed the failing state inside isolated clones before each agent row runs. Matrix configs can enforce that publishable preflight with healthCheckSuccessCommands and healthRequireSetupCommands.

Generate a real-agent public matrix config after creating or checking out a public suite fixture:

cargo run -- init-public-matrix \
  --preset refactoring-miner \
  --repo /tmp/RefactoringMiner \
  --suite suites/refactoring-miner-public.json \
  --out /tmp/refactoring-miner-matrix.json \
  --out-dir /tmp/refactoring-miner-matrix \
  --health-out /tmp/refactoring-miner-matrix-health.json \
  --agent-preset claude-code \
  --dangerously-skip-permissions \
  --ctxhelm-bin ctxhelm \
  --pack \
  --force

cargo run -- validate-matrix \
  --config /tmp/refactoring-miner-matrix.json

cargo run -- run-matrix \
  --config /tmp/refactoring-miner-matrix.json \
  --force

When the public suite has task-level seeded setup, add --health-check-success-commands and --health-require-setup-commands to init-public-matrix. The generator proves those outcome-health gates before writing the config, and the generated run-matrix config enforces the same gates before any agent row runs.

Every successful matrix run writes matrix-manifest.json, a source-free top-level index of run labels, suite-health, report paths, dashboard/evidence artifacts, quality-gate status, and evidence verification status. It also records suiteEvidenceUse so reviewers can see whether the matrix is outcome-ready or navigation-only evidence without opening nested artifacts. Matrix configs can include a qualityGate block, including an optional minimum task count and caps for average time-to-first-relevant-file delta. Use verify-matrix --matrix <out-dir> to validate the manifest, referenced artifact hashes, and nested evidence bundle before publishing results.

Add ctxhelm=true to a --head spec when the row should call ctxhelm prepare-task before the adapter. Add pack=true to also call ctxhelm get-pack --format json; HelmBench stores only source-free recommendation and token metadata.

Generate a source-free public benchmark suite after checking fixture health. Supported presets are refactoring-miner, flask, ripgrep, and express. The RefactoringMiner preset emits 10 tasks, enough to clear HelmBench's recommended minimum benchmark size without a low-sample warning:

cargo run -- init-public-suite \
  --preset refactoring-miner \
  --repo ../ctxhelm-proof-fixtures/RefactoringMiner \
  --suite-out /tmp/refactoringminer-suite.json \
  --health-out /tmp/refactoringminer-health.json \
  --force

cargo run -- init-public-suite \
  --preset flask \
  --repo ../flask \
  --suite-out /tmp/flask-suite.json \
  --health-out /tmp/flask-health.json \
  --force

cargo run -- init-public-suite \
  --preset ripgrep \
  --repo ../ripgrep \
  --suite-out /tmp/ripgrep-suite.json \
  --health-out /tmp/ripgrep-health.json \
  --force

cargo run -- init-public-suite \
  --preset express \
  --repo ../express \
  --suite-out /tmp/express-suite.json \
  --health-out /tmp/express-health.json \
  --force

When --suite-out or --health-out are omitted, HelmBench writes preset-specific defaults such as suites/flask-public.json and .helmbench/flask-public-suite-health.json, or the matching ripgrep defaults under suites/ripgrep-public.json and .helmbench/ripgrep-public-suite-health.json; Express uses suites/express-public.json and .helmbench/express-public-suite-health.json.

For outcome-ready public tasks, generate a git-regression suite from public commits. Each task stores paths and commit IDs, seeds the isolated clone with parent-commit versions of the expected implementation files while keeping the current tests, and can write a source-free health report that proves validation fails before the agent edits anything:

cargo run -- init-git-regression-suite \
  --repo ../ctxhelm-proof-fixtures/RefactoringMiner \
  --suite-out /tmp/refactoringminer-git-regressions.json \
  --health-out /tmp/refactoringminer-git-regressions-health.json \
  --success-command-template 'JAVA_HOME=$(/usr/libexec/java_home -v 17 2>/dev/null || echo "$JAVA_HOME") ./gradlew --no-daemon test {gradle_test_filters}' \
  --require-changed-tests \
  --require-code-files \
  --max-tasks 10 \
  --max-changed-tests 4 \
  --commit 949bddcd3509 \
  --commit 4fa3c1a48ad4 \
  --commit bd0b2277933f \
  --commit 1b9f2cf08b3c \
  --commit 092c13f035f9 \
  --commit fa8df046b0e0 \
  --commit 1b04d6aae2e4 \
  --commit 23e298ae221c \
  --commit 97e31265fd95 \
  --commit fa29ed0c80c8 \
  --check-success-commands \
  --fail-fast-success-commands \
  --force

Use repeated --commit <sha> values when you want a fixed suite instead of the latest non-merge commits. Publish only suites whose health report records evidenceUse: outcome_ready; otherwise the run is navigation evidence, not a task-success benchmark. Success-command templates support {changed_files}, {changed_tests}, and {gradle_test_filters}; the last form turns changed Java/Kotlin test paths into Gradle --tests filters.

Then generate a real-agent matrix config for that suite:

cargo run -- init-agent-matrix \
  --suite /tmp/refactoringminer-git-regressions.json \
  --repo ../ctxhelm-proof-fixtures/RefactoringMiner \
  --out /tmp/refactoringminer-git-regressions-matrix.json \
  --out-dir /tmp/refactoringminer-git-regressions-matrix \
  --health-out /tmp/refactoringminer-git-regressions-matrix-health.json \
  --agent-preset claude-code \
  --dangerously-skip-permissions \
  --ctxhelm-bin ctxhelm \
  --pack \
  --health-check-success-commands \
  --health-require-setup-commands \
  --force

Validate a suite:

cargo run -- validate-suite suites/example-auth-bugs.json

Check that a suite is healthy against a repo before running agents:

cargo run -- suite-health \
  --suite /tmp/helmbench-demo-suite.json \
  --repo /tmp/helmbench-demo-repo \
  --out /tmp/helmbench-suite-health.md \
  --format markdown

suite-health verifies the repo is a git checkout, commit depth satisfies the configured minimum, expected files/tests exist, success commands are present, and the checkout is clean unless --allow-dirty is set. The report is source-free and can be included in evidence bundles.

For outcome claims, add --check-success-commands. HelmBench will run each validation command in an isolated clone and fail the health check if validation already passes before an agent changes the repo. For large suites, add --fail-fast-success-commands to stop after the first pre-agent validation pass. For public suites, pass --preset <preset> so the health report includes the public-suite label and anchor checks.

Build reports from source-free traces:

cargo run -- run \
  --suite suites/example-auth-bugs.json \
  --trace-dir examples/traces/native \
  --out reports/example-native.json

cargo run -- run \
  --suite suites/example-auth-bugs.json \
  --trace-dir examples/traces/ctxhelm-mcp \
  --out reports/example-ctxhelm.json

Compare reports:

cargo run -- compare \
  --base reports/example-native.json \
  --head reports/example-ctxhelm.json \
  --format markdown

Summarize a benchmark baseline against multiple variants:

cargo run -- benchmark-summary \
  --base reports/example-native.json \
  --head reports/example-ctxhelm.json \
  --head reports/example-claude-code.json \
  --out reports/example-benchmark-summary.md \
  --format markdown

Fail CI if a summary regresses against quality thresholds:

cargo run -- quality-gate \
  --summary reports/example-benchmark-summary.json \
  --max-average-time-to-first-relevant-file-millis-delta 0 \
  --max-total-tool-calls-delta 0 \
  --max-total-token-estimate-delta 0 \
  --max-tool-calls-per-success-delta 0 \
  --max-token-estimate-per-success-delta 0

Package a source-free evidence bundle:

cargo run -- evidence-bundle \
  --suite suites/example-auth-bugs.json \
  --base-report reports/example-native.json \
  --head-report reports/example-ctxhelm.json \
  --head-report reports/example-claude-code.json \
  --out-dir /tmp/helmbench-evidence \
  --force

Verify a published evidence bundle:

cargo run -- verify-bundle \
  --bundle /tmp/helmbench-evidence

Render a static source-free dashboard:

cargo run -- dashboard \
  --report reports/example-native.json \
  --report reports/example-ctxhelm.json \
  --report reports/example-claude-code.json \
  --out docs/example-dashboard.html

Generate a source-free agent autopsy:

cargo run -- autopsy \
  --suite suites/example-auth-bugs.json \
  --trace-dir examples/traces/native \
  --out docs/example-autopsy.md

Generate a source-free diff autopsy for a worktree or branch:

cargo run -- diff-autopsy \
  --suite suites/example-auth-bugs.json \
  --repo . \
  --task-id auth-redirect-001 \
  --base-ref origin/main \
  --head-ref HEAD \
  --out /tmp/helmbench-diff-autopsy.md

Analyze a GitHub PR by changed file names only:

cargo run -- diff-autopsy \
  --suite suites/example-auth-bugs.json \
  --repo . \
  --task-id auth-redirect-001 \
  --pr 42 \
  --out /tmp/helmbench-pr-autopsy.md

Run direct agent presets:

cargo run -- doctor --repo . --format json --out /tmp/helmbench-doctor.json
cargo run -- doctor --repo . --check-direct-runners --format json --out /tmp/helmbench-doctor-runtime.json

cargo run -- claude-run \
  --suite suites/local-run-smoke.json \
  --repo . \
  --dangerously-skip-permissions \
  --out-dir traces/claude-run

cargo run -- codex-run \
  --suite suites/local-run-smoke.json \
  --repo . \
  --out-dir traces/codex-run

codex-run invokes codex exec with a source-free compatibility override for model_reasoning_effort=high, which avoids inheriting unsupported local config values during benchmark runs. Pass --model or --codex-arg when you need to pin a specific Codex runtime contract.

These commands suppress agent stdout/stderr and do not store transcripts. They ask the agent to emit source-free record-event calls. HelmBench still infers edited files from git status and records validation from the suite successCommand.

When an agent can emit structured JSONL tool metadata on stdout, add --capture-stream to parse that stream in memory and persist only source-free events.

Convert sanitized Claude Code events into traces:

cargo run -- claude-trace \
  --suite suites/example-auth-bugs.json \
  --events examples/events/claude-code/auth-redirect-001.jsonl \
  --variant ctxhelm-mcp \
  --out-dir examples/traces/claude-code

cargo run -- run \
  --suite suites/example-auth-bugs.json \
  --trace-dir examples/traces/claude-code \
  --out reports/example-claude-code.json

Convert a structured agent JSONL stream into traces:

cargo run -- stream-trace \
  --suite suites/example-auth-bugs.json \
  --stream examples/streams/claude-code/auth-redirect-001.jsonl \
  --task-id auth-redirect-001 \
  --agent claude-code \
  --variant native-search \
  --status success \
  --out-dir examples/traces/stream-claude

Use native for an agent-alone baseline and native-search when the trace captures the agent's own repository search or built-in context discovery without ctxhelm.

Generate a ctxhelm recommendation trace over the HelmBench repo:

cargo run -- ctxhelm-trace \
  --suite suites/helmbench-meta.json \
  --repo . \
  --ctxhelm-bin /path/to/ctxhelm \
  --mode feature \
  --target-agent claude-code \
  --out-dir examples/traces/ctxhelm-plan-meta

cargo run -- run \
  --suite suites/helmbench-meta.json \
  --trace-dir examples/traces/ctxhelm-plan-meta \
  --out reports/example-ctxhelm-plan-meta.json

Current checked-in ctxhelm-plan example over suites/helmbench-meta.json:

Recommendation recall:    100.0%
Recommendation precision: 25.0%
Recommended files:        8
Expected files found:     2
Validation coverage:      0.0%  # plan-only trace; no agent/test execution

Run a ctxhelm-guided benchmark:

cargo run -- ctxhelm-run \
  --suite /tmp/helmbench-demo-suite.json \
  --repo /tmp/helmbench-demo-repo \
  --ctxhelm-bin ctxhelm \
  --mode bug-fix \
  --pack \
  --pack-budget brief \
  --adapter-command "HELMBENCH_BIN=$(pwd)/target/debug/helmbench sh scripts/demo-agent.sh" \
  --out-dir /tmp/helmbench-ctxhelm-traces

ctxhelm-run records source-free recommended-file events from ctxhelm prepare-task. With --pack, it calls ctxhelm get-pack --format json but stores only source-free pack metadata such as token estimate; raw pack sections and snippets are discarded.

Run the checked-in local-run smoke suite:

cargo build
chmod +x scripts/demo-local-agent.sh

cargo run -- local-run \
  --suite suites/local-run-smoke.json \
  --repo . \
  --agent demo-local-agent \
  --variant native \
  --adapter-command "HELMBENCH_BIN=$(pwd)/target/debug/helmbench sh scripts/demo-local-agent.sh" \
  --out-dir traces/local-run-smoke

cargo run -- run \
  --suite suites/local-run-smoke.json \
  --trace-dir traces/local-run-smoke \
  --out reports/local-run-smoke.json

local-run clones the repo into .helmbench/workdirs/<task-id> by default and removes the workdir after writing the trace unless --keep-workdirs is set.

Run the generated demo benchmark:

cargo build

cargo run -- local-run \
  --suite /tmp/helmbench-demo-suite.json \
  --repo /tmp/helmbench-demo-repo \
  --adapter-command "HELMBENCH_BIN=$(pwd)/target/debug/helmbench sh scripts/demo-agent.sh" \
  --out-dir /tmp/helmbench-demo-traces

cargo run -- run \
  --suite /tmp/helmbench-demo-suite.json \
  --trace-dir /tmp/helmbench-demo-traces \
  --out /tmp/helmbench-demo-report.json

The repo includes .ctxhelmignore so generated reports and traces do not pollute ctxhelm recommendation quality.

What HelmBench Measures

Metric Meaning
Task success Whether the trace reports success, failure, or skip.
95% confidence intervals Wilson score intervals for binary per-task rates in benchmark summaries.
Low-sample warning Whether a benchmark suite has fewer than the recommended 10 tasks; CI gates can require a minimum task count.
Failure taxonomy Source-free counts for failed/skipped tasks, validation gaps, context misses, edit misses, recommendation misses, ignored recommendations, and irrelevant-read tasks.
Command mix Source-free counts of test, build, lint, typecheck, other, successful, and failed commands.
Files read Source-free paths the agent inspected.
Irrelevant file reads Files read that were not in the expected evidence set.
Recommendation precision Expected evidence paths divided by recommended paths.
Recommendation recall Recommended expected evidence divided by all expected evidence.
Recommendation follow-through Recommended paths the agent actually read divided by recommended paths.
Context precision Relevant reads divided by all reads.
Edited-file recall Expected target files edited divided by expected files.
Validation coverage Whether expected tests or validation command classes were run successfully.
Time to first relevant file How quickly the agent reached a target file; benchmark summaries, matrix history, and optional quality gates report average latency when traces provide timing.
Tool/token cost Source-free cost proxies from trace metadata, including total cost and cost per successful task.

Source-Free Claude Event JSONL

claude-trace accepts newline-delimited JSON events such as:

{"schemaVersion":1,"taskId":"auth-redirect-001","eventKind":"file_read","path":"src/auth/session.ts","observedAtMillis":550}

Supported eventKind values:

  • recommended_file
  • file_read
  • file_edit
  • command
  • usage
  • status

These events are intended to be produced by Claude Code hooks or wrappers without storing raw transcripts, raw tool payloads, raw terminal logs, or source snippets.

For hook-friendly commands, see Claude Code Event Capture.

Privacy Contract

HelmBench reports are source-free by default. Trace files may contain:

  • relative paths
  • path hashes
  • command classes
  • command hashes
  • exit statuses
  • timings
  • counts
  • task ids
  • agent variants

Trace files must not contain:

  • raw source code
  • raw prompts beyond task-suite prompts
  • raw model transcripts
  • raw terminal logs
  • secrets

If a trace sets any privacy flag indicating raw source, prompt, transcript, or terminal logs were captured, HelmBench rejects it.

Architecture

helmbench-core
  task suite schema
  source-free trace schema
  metrics
  privacy checks

helmbench-cli
  init-suite
  schema
  init-demo-repo
  demo-run
  run-matrix
  init-public-suite
  init-git-regression-suite
  init-agent-matrix
  init-public-matrix
  suite-health
  validate-suite
  run
  ctxhelm-trace
  ctxhelm-run
  claude-trace
  stream-trace
  local-run
  claude-run
  codex-run
  record-event
  compare
  benchmark-summary
  launch-readiness
  matrix-history
  quality-gate
  evidence-bundle
  verify-bundle
  verify-matrix
  autopsy
  diff-autopsy
  dashboard
  doctor

adapters
  ctxhelm prepare-task trace generation
  ctxhelm-guided local run with source-free pack metadata
  Claude Code source-free event import
  structured agent stream import
  explicit local adapter command runner
  Claude Code direct launch preset
  Codex direct launch preset
  opt-in structured stdout capture for direct runs
  Agent Diff Autopsy from source-free traces and git diffs

future direct-agent adapters
  cursor

Next Milestones

  1. Add Cursor direct-run preset when a stable non-interactive launch contract is available.
  2. Add more public benchmark presets with source-free fixture health checks.
  3. Add richer direct-agent observation adapters while preserving the source-free contract.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages