opik-compare

opik-compare is a skill for Claude Code from comet-ml/opik-claude-code-plugin. It costs 156 tokens per session (3,401 once invoked), scanned A, a copy of opik-compare, Apache-2.0.

A comparison tool that runs an AI application or test suite as a candidate and compares it with a baseline run in Opik. It reports changed cases, metric differences, regressions, fixes, and whether the runs can be fairly compared.

In plain words
What is it for?
Use it to compare two Opik experiments or run a new candidate against the latest prior run, then inspect the affected test cases.
Why use it?
It shows which individual cases changed instead of relying on one overall score. This makes it easier to see whether a code or prompt change caused failures or fixed them.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Part of the opik plugin — 10 skills, 2 commands, 1 agent, 8 hooks shipped together

Good fit Use it to compare two Opik experiments or run a new candidate against the latest prior run, then inspect the affected test cases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comet-ml/opik-claude-code-plugin/opik-compare
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add comet-ml/opik-claude-code-plugin --skill opik-compare
Clone the repo
git clone --depth 1 https://github.com/comet-ml/opik-claude-code-plugin

Made for: Claude Code.

Or install opik, the plugin that ships this one along with the rest of its 10 skills, 2 commands, 1 agent, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opik-compare

README.md
[![agentmods](https://agentmods.dev/badge/skills/comet-ml/opik-claude-code-plugin/opik-compare/github.svg)](https://agentmods.dev/skills/comet-ml/opik-claude-code-plugin/opik-compare)
Your own site
<a href="https://agentmods.dev/skills/comet-ml/opik-claude-code-plugin/opik-compare"><img src="https://agentmods.dev/badge/skills/comet-ml/opik-claude-code-plugin/opik-compare/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opik-compare

Your own site · 80×15
<a href="https://agentmods.dev/skills/comet-ml/opik-claude-code-plugin/opik-compare"><img src="https://agentmods.dev/badge/skills/comet-ml/opik-claude-code-plugin/opik-compare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00156 $0.03401
Opus 5.5 $0.00062 $0.01360
Sonnet 5 $0.00031 $0.00680
Haiku 4.5 $0.00016 $0.00340

Measured today against content hash 0dbe6d16e887, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-26, from the pricing page.

Security

Grade A, and why

opik-compare scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

import json, urllib.parse
Origin

This is a copy

100% identical to opik-compare — 33 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/opik-compare/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compare — Candidate vs Baseline Over a Suite

Definition of done: two experiments on the same suite — a baseline and a candidate — read back item by item, with the per-metric deltas, the cases that went pass → fail (regressions) and fail → pass (fixes), the worst rows, a note on whether the runs are comparable, and the Opik compare-view link. If only one run exists, the done state is "baseline created — rerun after the change". If the suite can't be run or read, stop at the first genuine blocker and return exactly one next step. Aggregate scores alone are not a comparison; a verdict is not this skill's job.

Operate: run the candidate the same way the baseline was run, read both back from Opik rather than from the run's console output, name the specific cases that changed — and change no application code. The only file this skill writes is a throwaway runner outside the repo.

Inputs

The entry point is /opik-compare <suite> (run the suite now as the candidate, compare against the latest prior run), /opik-compare <experiment-A> <experiment-B> (read two existing runs, no new run), or /opik-compare right after /opik-test (that suite). Infer the rest; treat these as optional overrides:

  • suite (default: <project>-regressions, or the one /opik-test just wrote to) · baseline (default: the most recent earlier experiment on the suite) · candidate name (default: candidate-<short git sha>) · judge model for assertions (default: the suite's / the baseline's) · runs per item (default: the suite's policy).

Ask only at a genuine, non-inferable blocker (see Blockers).

Activation — the only in-scope work

1. Resolve the suite and the baseline

import opik
client = opik.Opik()

suite = client.get_test_suite(name="<suite>", project_name="<project>")
prior = client.get_test_suite_experiments(name="<suite>", project_name="<project>")  # newest first is not guaranteed — sort by created_at yourself

Baseline = the most recent prior experiment on this suite, unless the user names one. No prior experiment → this run is the baseline (step 3 still runs; status baseline_created). Two explicit experiments → skip step 3, go to step 4.

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines · +10 tokens per session 0dbe6d16e887
  2. 4d ago First seen · 173 lines · 146 tokens per session scan A 73786774ec0e

Subscribe to this mod's changes

opik-compare is a skill published in the GitHub repository comet-ml/opik-claude-code-plugin (23 stars, last pushed today), licensed Apache-2.0. It adds 156 tokens to every session and 3,401 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to opik-compare, differing in 33 lines, and is treated as a copy.