Skip to main content

LemonCrow Harbor Eval

Run LemonCrow on official Harbor benchmark datasets (including terminal-bench-core) for cost-quality comparison.

Prerequisites​

  • Docker installed and running
  • Harbor: pip install harbor or uv add harbor --project benchmarks
  • API credentials in environment (see below)

Quick start​

# The default arm (Claude Code CLI + LemonCrow plugin) reads OAuth tokens
# from benchmarks/harbor/.env (CLAUDE_CODE_OAUTH_TOKEN_1/_2).

# Quick smoke test (3 tasks, 1 attempt):
lc rt benchmark harbor --limit 3 --attempts 1 -y

# A/B comparison (LemonCrow augmentation on vs off):
lc rt benchmark harbor -y
lc rt benchmark harbor --baseline -y

# With Bedrock credentials:
export AWS_BEARER_TOKEN_BEDROCK=...
export AWS_REGION=us-east-1
lc rt benchmark harbor --agent lemoncrow-bedrock --limit 5 -y

Command reference​

lc rt benchmark harbor [OPTIONS]

Options:
-d, --dataset TEXT Harbor dataset (default: terminal-bench/terminal-bench-2-1)
--limit INTEGER Max tasks to run (default: all)
--agent TEXT Agent arm: lemoncrow | lemoncrow-bedrock | lemoncrow-claude-code (default)
--baseline Run baseline arm (bench_mode=off, no plugin)
--model TEXT Model override (default: LEMONCROW_BENCH_MODEL)
-n, --attempts INTEGER Attempts per task for pass@k scoring (default: 5)
-c, --concurrent INTEGER Max concurrent trials (default: slots x tokens)
--resume TEXT Resume an existing job dir
-o, --output TEXT Output directory for results
-y, --yes Skip confirmation prompt

Agent arms​

ArmDescription
lemoncrow-claude-codeClaude Code CLI + LemonCrow plugin (default)
lcDirect API with LemonCrow augmentation
lemoncrow-bedrockLemonCrow via AWS Bedrock
--baseline flagbench_mode=off — baseline without the LemonCrow plugin

The two-arm comparison proves LemonCrow's value-add over a clean baseline.

Custom Harbor agent​

The adapter is at benchmarks/harbor/lemoncrow_agent.py. Run it directly:

harbor run -d "terminal-bench/terminal-bench-core@0.1.1" \
--agent benchmarks.harbor.lemoncrow_agent:LemonCrowHarborAgent \
--limit 5

Relationship to mini eval​

CommandPurpose
lc rt benchmark mini --dry-runOffline schema validation, no Docker needed
lc rt benchmark mini --limit 5Live local repo tasks, cheap, no Docker
lc rt benchmark harbor --limit 5Official Harbor datasets in Docker containers
make proof-cost-qualityDeterministic proof gate (zero live calls)

Start with lc rt benchmark mini --dry-run to verify setup, then escalate to lc rt benchmark harbor for credible published results.

Environment variables​

VariableRequiredDescription
CLAUDE_CODE_OAUTH_TOKEN_1/_2For default armClaude Code OAuth tokens, in benchmarks/harbor/.env
ANTHROPIC_API_KEYFor lc armAnthropic API key
AWS_BEARER_TOKEN_BEDROCKFor lemoncrow-bedrock armBedrock bearer token
AWS_REGIONFor lemoncrow-bedrock armAWS region
LEMONCROW_BENCH_VERSIONNoLemonCrow version to install (default: latest)
LEMONCROW_BENCH_MODELNoModel override for the run
LEMONCROW_BENCH_RTK_VERSIONNoPin the rtk external-compactor binary version (default: latest)

LemonCrow runs fully locally inside each task container — no account, login, device registration, or credentials are required to benchmark.

Token compaction (rtk)​

Container setup best-effort installs rtk, a binary LemonCrow's bash tool soft-detects on PATH (see external_compactors.py) and uses to compress git/gh/pytest/lint/etc. output before it reaches the model, cutting benchmark token cost for free. It is purely additive: a slow or failed download never fails the trial, it just leaves the run on the plain shell path (same fallback lc doctor reports for a local dev machine without rtk installed).