compare

compare is a skill for Claude Code, Codex from fcakyon/phd-skills. It costs 82 tokens per session (1,161 once invoked), scanned A, original, MIT.

A tool for comparing machine-learning training runs at the same training step across experiment trackers such as Weights & Biases, Neptune, TensorBoard, and MLflow. It separates early proxy measurements from the final results the model is meant to achieve.

In plain words
What is it for?
Use it to compare experiments, check whether a run is improving, measure its progress relative to a baseline, and rank runs using time-matched metrics.
Why use it?
It avoids misleading comparisons, such as judging a partly trained run against a baseline’s final score.

Skill for Claude CodeCodex

Part of the phd-skills plugin — 12 skills, 6 commands, 2 agents, 4 hooks shipped together

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.

agentmods
npx agentmods add skills/fcakyon/phd-skills/compare
Any agent
npx skills add fcakyon/phd-skills --skill compare
Clone the repo
git clone --depth 1 https://github.com/fcakyon/phd-skills

Made for: Claude Code, Codex.

Or install phd-skills, the plugin that ships this one along with the rest of its 12 skills, 6 commands, 2 agents, 4 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 compare

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcakyon/phd-skills/compare.svg)](https://agentmods.dev/skills/fcakyon/phd-skills/compare)
Your own site
<a href="https://agentmods.dev/skills/fcakyon/phd-skills/compare"><img src="https://agentmods.dev/badge/skills/fcakyon/phd-skills/compare.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,161 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00082 $0.01161
Opus 5 $0.00041 $0.00580
Sonnet 5 $0.00016 $0.00232
Haiku 4.5 $0.00008 $0.00116

Measured 5d ago against content hash 0803684f116c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

compare scanned grade A with 0 findings 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 5d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/compare/SKILL.md · 103 lines

How it starts

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

Compare: same-epoch run comparison across trackers

The most common comparison error is reporting "run A is 4 percentage points behind baseline" when run A is at epoch 11 of 100 and the baseline number is from epoch 100. The student is still training; the comparison is meaningless. This skill enforces same-epoch alignment.

The agentic Stop hook routes here from reason when an assistant reports a delta without aligning the runs.

When to run

The user just said any of:

  • "compare run A to baseline / to run B"
  • "is my run improving / catching up / falling behind"
  • "rank these experiments"
  • "X vs Y wandb / neptune"
  • "track lag against baseline"

Auto-detect the tracker

Check in this order:

  1. WANDB_API_KEY env var set, or wandb imports in the project → wandb
  2. NEPTUNE_API_TOKEN env var set → neptune
  3. MLFLOW_TRACKING_URI env var set, or mlruns/ dir present → mlflow
  4. runs/ or lightning_logs/ dir present → tensorboard
  5. *results*.json / *meta*.json files in run dirs → local file format

If none, ask the user where metrics live before guessing.

The protocol

1. Identify the runs

Get full names (no shortcodes). If the user says "fvs-fm vs the baseline", clarify:

  • which fvs-fm run (project + entity + run-id)
  • which baseline (full run name; baselines often have several variants)

2. Fetch metric history (not just final value)

You need the full curve, not the last reported value. Final-value-only comparisons hide convergence dynamics.

For wandb:

import wandb
api = wandb.Api()
run = api.run("entity/project/run-id")
history = run.history(samples=10000)  # full history, not just summary

For tensorboard, parse the event files (tensorboard.backend.event_processing.event_accumulator.EventAccumulator).

For neptune / mlflow, use their respective APIs.

3. Find the student's current step

The student is the run still in progress (or the one being evaluated). Get its current epoch / step from the latest history row.

Read the full file on GitHub · 103 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. 5d ago First seen · 103 lines · 82 tokens per session scan A 0803684f116c

Subscribe to this mod's changes

compare is a skill published in the GitHub repository fcakyon/phd-skills (382 stars, last pushed 2mo ago), licensed MIT. It adds 82 tokens to every session and 1,161 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

literature-review

Write a comprehensive, structured literature review on a topic. Searches the literature via Corbis, organizes into thematic strands, writes synthesized prose (not paper-by-paper enumeration), and outputs as Markdown, LaTeX section, or standalone LaTeX document with proper BibTeX citations.

Agentic-Assets/corbis-literature-starter-kit · 60 tokens

literature-landscape

Generate figures that visualize patterns in an academic literature: publication trends, citation landmarks, journal distributions, thematic evolution, method timelines, and coverage gap maps. Uses Corbis search data and Python/matplotlib.

Agentic-Assets/corbis-literature-starter-kit · 46 tokens

literature-positioning-map

Map the closest literature and sharpen contribution claims for finance or real-estate papers. Use for related-literature sections, novelty maps, and closest-paper comparisons.

Agentic-Assets/corbis-literature-starter-kit · 37 tokens

verify-citations

Audit citations in LaTeX files -- check all \cite keys exist in .bib and verify via literature search.

Agentic-Assets/corbis-literature-starter-kit · 26 tokens

finance-idea-screening

Screen and refine research ideas in corporate finance, investments, asset pricing, and real estate. Use for brainstorming, novelty checks, contribution framing, and journal-fit triage.

Agentic-Assets/corbis-literature-starter-kit · 40 tokens

research-idea-generator

Generate novel research ideas in finance and real estate using structured heuristic lenses with internal rejection filtering. Produces a curated Idea Menu of survivors, not a brainstorming list.

Agentic-Assets/corbis-literature-starter-kit · 37 tokens