/orchestra:compare-model-sweepfrom orchestra
Compares candidate models (local, gateway, or frontier) on the same eval to surface quality, latency, cost, and reliability tradeoffs. Use when deciding which model to use for a workload.
Ships in orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this worker when the question is not "can one model pass this eval?" but "which candidate sits on the useful frontier for this workload?" The skill runs one frozen harness across a candidate matrix, records each run, and emits a decision-ready Pareto report an agent can use for route decisions.
Prefer this after ../understand-workload/SKILL.md,
../optimize-agentic-workload/SKILL.md, or
../run-local-model-lab/SKILL.md has already
identified a resettable eval and a first local candidate.
Launching a named bounded sweep authorizes its declared provider calls, uploads, benchmark rows, evaluation, receipts, and cleanup. Ask again only if the sweep expands its displayed data, destination, spend, retention, download, or production-impact envelope. Never place private traces or customer data in a public sweep report.
Recommend a candidate matrix sized to resolve the objective, including a strong
anchor when it could change the decision. Present expected spend and wall-clock
before the run and follow
../understudy/reference.md → Outcome-first spend
posture. Do not omit the informative candidate merely to keep the first sweep
cheap; one activated plan covers the whole named matrix.
Do not claim a model is cheaper, faster, or better unless the sweep used the same rows, harness, metric, tool-access mode, prompt, seed, and state reset for every candidate. If those differ, label the result as an ablation or diagnostic, not a Pareto comparison.
Freeze the comparison contract. Record workload id, harness command,
split/row ids, metric, prompt, tool-access mode, seed, timeout, concurrency,
and budget.
Write it to .understudy/model-sweeps/<timestamp>/sweep-plan.json.
Normalize candidate routes. Include each model id, route type
(local, understudy-managed-catalog, understudy-routed,
byo-provider, or hosted-other), endpoint/base URL, loader/runtime,
local-vs-remote boundary, max tokens, reasoning effort, pricing basis, and
whether the model is cached or requires download.
For remote Orchestra candidates, run orchestra models list --json;
prefer managed-catalog ids unless BYO provider-direct behavior is required.
For OpenAI GPT-6 candidates, apply the shared
model and endpoint compatibility rules.
Record endpoint, token-limit field/value, and reasoning/tool settings per arm.
Preserve the frozen evaluation contract while adapting request syntax.
Run conformance smoke first. Each candidate must complete one row without
connection errors, empty responses, or bad model aliases. For agentic
workloads, also run a synthetic read-then-write sentinel through the exact
driver and parser: execute the read, append its result, continue, execute the
write, and score final state. Never score an intermediate tool call as a
no-op. For local MLX, prefer verified filesystem paths or Orchestra snapshot
aliases over arbitrary Hugging Face ids. Apply the shared gates in
../capture-evidence/references/evaluation-evidence-gates.md.
Check model identity on the smoke and every scored request, including tool
continuations. Save the requested model, effective/returned model, route,
status, and request id. HTTP 200 can be Backup recovery after a provider
rejects an input. Exclude understudy-backup, mismatched models, and
unverified identities from requested-model quality aggregates; retain them
in the attempt/failure counts so exclusions cannot inflate success rates.
Resolve input or routing errors and repeat conformance before the full arm.
If recovery is the intended experiment, label it as a separate routing arm.
The smoke row proves only that the harness runs; it provides no model-quality
evidence.
Run the frozen matrix. Call the same harness once per candidate with the
same rows, split, tool-access mode, prompt, seed, and export path. Keep each
export under .understudy/model-sweeps/<timestamp>/candidate-runs/<candidate>/,
with per-row results in the required understudy.eval_result.v1 eval-evidence format (schema).
Benchmark-dir sweeps run as arms of one request. When the frozen eval
is a trace-compiled benchmark directory, don't hand-loop the harness:
queue one understudy.run_request.v1 whose arms are the whole matrix —
candidate models, the incumbent (incumbent_models, feeding
calibration.json), the trivial floors
(trivial_arms: ["null_agent", "spam_agent"] — a candidate beating a
floor-exceeded benchmark proves nothing), and prompt experiments as
prompt_overrides arms — and let orchestra runs execute score them all
through the identical contract scorer. Operating manual:
../operate-benchmark-lab/SKILL.md.
A built-in Pareto view and CSV export over these rows are landing now in
the hub; until they ship, project rows-*.jsonl into summary.csv /
pareto.json yourself per steps 5–7.
Summarize at the same grain. Build summary.csv with candidate, route,
route type, requested model, effective model, model family, tool-access mode,
task count, pass rate, partial credit, total tokens, cost/task, run seconds,
errors, empty responses, and caveats. If per-task latency is unavailable, use
run-level duration and say so.
For Orchestra gateway runs, capture x-understudy-mode,
x-understudy-route, and x-understudy-effective-model; exclude rows where
requested and effective model disagree unless that is the test.
Caching parity. Cost columns must state each candidate's caching basis.
If the incumbent runs cache-warmed in production (e.g. a cached primer),
measure same-provider candidates cache-warmed too; when a candidate has no
equivalent cache layer (a different provider or gateway can't share the
incumbent's cache pool), measure it uncached and label it — what you
measured is what they'd pay. Note that batching or longer cache TTLs shift
absolute costs on the cached side but should not change the ratios. To
structure the harness itself for cache hits (and avoid the
parallel-fan-out all-miss trap), see
optimize-workload/references/prompt-cache-optimization.md.
Pairwise option. When the workload has no programmatic metric (open-ended generation), score quality as a pairwise preference against the incumbent instead of an absolute rubric: same row, two outputs, an LLM judge picks A/B/tie — run twice with the order swapped and count a win only when both passes agree. Report the debiased win-rate with N. Dry-run the judge on a few rows first, budget-gate the live judge like any provider spend, and keep judge-scored quality as its own column — never silently blended with a programmatic metric.
Before explaining any aggregate delta, inspect the actual rows behind one pass, each reported failure class, each surprising delta, and a counterexample to the proposed conclusion. Distinguish model behavior from equivalent free-text wording, scorer/rubric errors, labels, and harness/parser failures. Scope conclusions to represented coverage strata.
Quantify uncertainty against a prespecified decision rule. Point estimates on a small N are not a ranking. For each candidate, report N, per-task variance, and a bootstrap confidence interval over its aggregate score. When candidates ran on the same rows, make the decision from the paired per-row deltas: bootstrap the row-aligned deltas (≥1,000 resamples) and report their 2.5/97.5 percentiles. Marginal candidate intervals remain descriptive; their overlap or non-overlap is not a hypothesis test of the difference.
Prespecify the decision that matches the workload:
If rows are not pairable, state that limitation and use an appropriate
independent-sample interval/test or gather paired rows. Never relabel an
inconclusive superiority result as quality improvement. A route may still be
selected on cost/latency after demonstrated quality non-inferiority, or by a
prespecified multi-objective utility rule, with that basis stated explicitly.
This follows the Agentic Benchmark Checklist's reporting bar
(uiuc-kang-lab/agentic-benchmarks);
see ../../docs/benchmark-rigor.md.
Compute the decision frontier. Record workload-specific
acceptable-regression/non-inferiority bands and mark developer-specified
contract and safety requirements as hard constraints. Exclude candidates
that violate a hard constraint. Among eligible candidates, a route is
dominated when another has decision-supported equal or better quality and
equal or lower cost and latency, with no worse error rate or safety result.
Write pareto.json with bands, hard-constraint outcomes, decision rule, and
dominated reasons.
Report the decision. Write report.md with the top frontier candidates,
the best route for the agreed objective and constraints, and the next action:
ship route, build retrieval/tooling, run GEPA, climb local model, or use remote.
Candidate quality cells must come from measured rows or say not run;
plausible projections are never substitutes. Include the coverage matrix and
a redacted row-review packet. If the result is unstable across batches,
underpowered for the material difference, or still exposing new failure
classes, expand the frozen matrix before recommending a route. Use a
visualization only when it answers a named decision question better than the
results table.
Use the workload harness's JSON exports directly. Keep the command concrete in
sweep-plan.json, but avoid changing anything except the candidate route:
"$HARNESS_CMD" \
--model "$MODEL" \
--endpoint "$ENDPOINT" \
--rows "$ROWS" \
--tool-access "$TOOL_ACCESS" \
--export-json ".understudy/model-sweeps/$RUN/candidate-runs/$ID/results.json"
For keyless managed-catalog sweeps, use one cleared/no-route workload and vary the model and its required endpoint/parameter syntax, recording differences. Do not use a traffic split unless the non-routed passthrough share has a managed provider credential or BYO key.
For API-workflow sweeps, keep tool-access interpretation explicit:
End with the sweep path, candidate count, split size, quality/cost/latency axes, which candidates are on the frontier, which are dominated, and the recommended next action.
When the sweep informs a real route decision, also write the report as a decision memo the developer can paste to their team unedited:
If the verdict supports changing production traffic, hand off to
../ramp-and-verify/SKILL.md: add the provider,
set the route, and ramp staged traffic gated by the same production validator
the sweep used.
Detailed row-review packet guidance lives in reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub understudylabs/orchestra-agent-tools --plugin orchestra43 skills in this plugin
/audit-verifier-reliabilityUse when deciding whether a verifier reward is trustworthy for optimization./calibrate-difficultyMeasure per-band model headroom from a local, source-bound run artifact before investing in training./capture-evidenceUse when a developer wants to build an eval from their real LLM app before changing anything — "measure how my app is doing today", "build an eval from my workload", "we have no baseline", "is my current model actually good". Turns the workload into auditable local artifacts (harness, metric, frozen splits, baseline); has a public-benchmark on-ramp when no traces exist./check-routing-healthUse when a developer asks "is Orchestra causing my errors", "which workloads are routed", "is my routing config actually taking effect", "is my provider healthy", "are there 500s on staging", "what's our error rate", "where is my gateway spend going", or wants self-service diagnostics without asking the team. Reads the hosted reporting endpoints with the developer's sk_* key./compare-trajectoriesUse when you need to know HOW two model runs differ behaviorally on the same tasks, not just THAT one scores higher — per-task trajectory diffing that classifies the gap as persistence/recovery, knowledge, or format/parsing. "why does the bigger model pass these", "is this gap RL-shaped", "diff these two trajectory runs", "where do the trajectories diverge", "what would distillation buy me". The behavioral complement to compare-model-sweep./curate-trajectoriesUse to turn loose per-task trajectory JSONs (a Lilac export or local rollout corpus) into a queryable, provenance-tracked, contamination-safe dataset that hard-blocks any selection leaking frozen dev/holdout into a train/RL/distill pool. "curate my trajectories", "which rollouts are train-safe", "exclude the holdout rows before RL", "is this distill pool contaminated", "make a hash-stamped selection", "stop hand-filtering trajectories in bash".Other plugins' skills for the same job