Skip to content
ruvnet avatar

Cost Benchmark

Runs a corpus benchmark comparing a local booster against optional LLM baselines and persists results.

CCM score
71 of 100
skills.sh installs
679
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the corpus benchmark run from v3/, with booster-only, Gemini, and Sonnet/Opus baseline modes
  • Writes per-case and summary results to docs/benchmarks/runs/, including latest.json and timestamped history files
  • Enforces a smoke gate of winRate at or above 0.80 on Tier 1 cases, while escalationRate is reported only
  • Designed for pre-release regression checks, corpus expansion, and verifying cost claims before publishing

Install

$ npx -y skills add ruvnet/ruflo --skill cost-benchmark -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cost Benchmark

Runs scripts/bench.mjs against the structural+adversarial corpus and writes per-case + summary results to docs/benchmarks/runs/. This is the verification gate that backs every measurable claim in cost-booster-edit / cost-booster-route.

When to use

  • Before publishing a release — verify booster win rate didn't regress.
  • After expanding bench/booster-corpus.json — confirm new cases route correctly.
  • When auditing a "claimed upstream" tag — flip it to "verified" once the bench supports it.
  • On a cost question ("is Sonnet 4.6 cheaper than Opus 4.7 for these tasks?") — re-run with BENCH_ANTHROPIC=1.

Steps

  1. Run the bench from v3/ (where agent-booster resolves):

    ( cd v3 && node ../plugins/ruflo-cost-tracker/scripts/bench.mjs )                  # booster only — free, ~85 ms
    ( cd v3 && BENCH_LLM_BASELINE=1 node ../plugins/ruflo-cost-tracker/scripts/bench.mjs ) # + Gemini 2.0 Flash (cheap)
    ( cd v3 && BENCH_LLM_BASELINE=1 BENCH_ANTHROPIC=1 \
         node ../plugins/ruflo-cost-tracker/scripts/bench.mjs )                          # + Sonnet 4.6 + Opus 4.7
    

Details

Repository
github.com/ruvnet/ruflo
Categories
Agent Workflow & Planning, Testing & QA
First seen
Jun 3, 2026

Questions

What does the cost-benchmark skill do?

The cost-benchmark skill runs the scripts/bench.mjs corpus benchmark against the structural and adversarial corpus, with a local booster and optional Gemini, Sonnet and Opus baselines. It writes per-case and summary results to docs/benchmarks/runs/, serving as the verification gate for cost-booster-edit and cost-booster-route.

How do I install the cost-benchmark skill?

Run npx -y skills add ruvnet/ruflo --skill cost-benchmark -y in your project. After that, cost-benchmark lets the agent run the bench from v3 and read the markdown summary it prints.

What do I need to run the cost-benchmark skill with paid baselines?

Running cost-benchmark with Gemini or Anthropic baselines needs the BENCH_LLM_BASELINE or BENCH_ANTHROPIC flags set to 1. API keys are pulled from gcloud secrets (GOOGLE_AI_API_KEY and ANTHROPIC_API_KEY), or you can override them with BENCH_LLM_API_KEY and BENCH_ANTHROPIC_API_KEY.

Where does cost-benchmark store its results?

The cost-benchmark skill writes a pointer to the latest run at docs/benchmarks/runs/latest.json and a timestamped historical record in the same folder. Later skills such as cost-report read latest.json for live tier-spend numbers.

More from ruvnet/ruflo

All 236

Similar to Cost Benchmark

More Agent Workflow & Planning