Harness Evals

Get it for macOS

See whether your agent sessions reuse prompt cache, waste tokens, or hit tool errors across Pi, Claude Code, and Codex. Inspect a sidebar health verdict and per-model breakdown across 7d, 30d, and All windows, compare metrics before and after your latest harness git commit, or query summaries from the CLI. Reads local session logs only with zero extra LLM calls.


What you get

  • A compact health verdict banner (Healthy, Watch, or Needs attention) in the sidebar and Settings based on prompt cache reuse and tool error rate.
  • Four metric cards across 7d, 30d, and All windows: cache reuse percentage, average tokens per run, median duration and turns, and tool error rate.
  • Per-model token and cache breakdowns, plus the top 5 heaviest sessions tagged by provider (Pi, Claude, Codex) in Settings.
  • Optional before-and-after comparison against the latest commit in a local harness git repository you configure in Settings.
  • Provider filter pills (All, Pi, Claude, Codex) that appear only when more than one provider has sessions in the window.
  • A CLI command (bb harness-evals summary) supporting --window, --provider, --refresh, and --json.

How it works

The plugin reads local JSONL session transcripts from ~/.pi/agent/sessions, ~/.claude/projects, and ~/.codex/sessions directly on your machine. Nothing leaves your computer.

Bounded time windows (7d and 30d) skip scanning files whose modification time precedes the window cutoff, and an in-memory file cache keyed by path, modification time, and byte size avoids re-parsing unchanged transcripts on refresh. If you set the optional harness repository path, the plugin runs git log -1 locally to split session averages before and after that commit.

Requirements

  • Local session transcripts from at least one supported agent: Pi (~/.pi/agent/sessions), Claude Code (~/.claude/projects), or Codex (~/.codex/sessions).
  • Git installed locally if you configure the optional harness repository path setting.

More in Token Usage & Limits 58

Understand or control token, context-window, and provider-quota use.

View all