daydream
Daydream CLI docs

Benchmarking

Prepare and import

Use standard local Docker Desktop for macOS. Build and run enforce a live network-policy check. Install the benchmark extra in the source checkout:

cd "$DAYDREAM_SOURCE" || exit 1
uv sync --extra benchmark
uv build
export PATH="$DAYDREAM_SOURCE/.venv/bin:$PATH"

Configure GitHub credentials for the private repository. Initialization requires an empty or absent directory. Import fetches pull request (PR) evidence and freezes source snapshots:

BENCHMARK_DIRECTORY="$HOME/daydream-benchmark"
GITHUB_REPOSITORY="OWNER/REPO"
PR_NUMBER="123"
daydream benchmark init "$BENCHMARK_DIRECTORY" --repo "$GITHUB_REPOSITORY" \
  --reviewer-host openrouter.ai --judge-host openrouter.ai
daydream benchmark import-prs "$BENCHMARK_DIRECTORY" --pr "$PR_NUMBER"
daydream benchmark status "$BENCHMARK_DIRECTORY"

Keep credentials outside the workspace. Keep archive and upload settings disabled.

Curate and compile

Select a case identifier from status:

CASE_ID="YOUR_IMPORTED_CASE_ID"
daydream benchmark curate "$BENCHMARK_DIRECTORY" --case "$CASE_ID"
daydream benchmark validate "$BENCHMARK_DIRECTORY"

Accept, edit, or exclude findings in the terminal interface. If an inline finding lacks a valid anchor at the selected head, edit the evidence manually. Approve the current task specification. Changed specifications invalidate approval. Validation returns 0 for ready, 2 for incomplete, or 1 for corruption. Select the wheel built above:

DAYDREAM_WHEEL="$DAYDREAM_SOURCE/dist/daydream-0.29.0-py3-none-any.whl"
daydream benchmark build-harbor "$BENCHMARK_DIRECTORY" --daydream-wheel "$DAYDREAM_WHEEL"

Run and inspect

Configure Pi review and OpenRouter judge credentials:

export DAYDREAM_REVIEW_BACKEND="pi"
export DAYDREAM_REVIEW_MODEL="YOUR_OPENROUTER_REVIEW_MODEL"
export DAYDREAM_REVIEW_API_KEY="YOUR_REVIEW_API_KEY"
export DAYDREAM_REVIEW_BASE_URL="https://openrouter.ai/api/v1"
export DAYDREAM_JUDGE_PROVIDER="openrouter"
export DAYDREAM_JUDGE_MODEL="YOUR_OPENROUTER_JUDGE_MODEL"
export DAYDREAM_JUDGE_API_KEY="YOUR_JUDGE_API_KEY"
export DAYDREAM_JUDGE_BASE_URL="https://openrouter.ai/api/v1"

Runs make paid provider requests and send private source to OpenRouter. Accept the provider's data-handling and retention policy before running. The Oracle run checks scoring against the hidden golden review:

daydream benchmark run "$BENCHMARK_DIRECTORY" --oracle --yes
daydream benchmark run "$BENCHMARK_DIRECTORY" --yes

Evaluation requires a matching successful Oracle receipt. Changed compiled inputs or execution identity invalidate the receipt. Select a completed run identifier from the ledger:

RUN_ID="YOUR_COMPLETED_RUN_ID"
daydream benchmark objective "$BENCHMARK_DIRECTORY" --run-id "$RUN_ID" --json -

Objective reports include scores and available costs without private source or finding text. Unscored trials prevent comparison. See the runbook for options, aggregation, profiles, and recovery.

Remove derived files

daydream benchmark clean "$BENCHMARK_DIRECTORY" --derived removes caches, jobs, images, and trajectories while preserving curated evidence. --all --yes also deletes curated source and golden reviews. Preserve required evidence before removal.

Back to Daydream