tune-eval

tune-eval is a skill for Claude Code from rchaz/tunelab. It costs 207 tokens per session (4,473 once invoked), scanned A, original, MIT.

A workflow for checking whether a fine-tuned, distilled, or continued-pretrained language model works on data it has not seen. Fine-tuning adapts an existing model, while a held-out test set is kept untouched for an honest final check.

In plain words
What is it for?
Setting success criteria before testing, running base and adapted models on the untouched test split, and scoring tasks such as classification.
Why use it?
It prevents judging a model with data that already influenced training or model selection, which can make results look better than they really are.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code.

Part of the tunelab plugin — 5 skills 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/rchaz/tunelab/tune-eval
Any agent
npx skills add rchaz/tunelab --skill tune-eval
Clone the repo
git clone --depth 1 https://github.com/rchaz/tunelab

Made for: Claude Code.

Or install tunelab, the plugin that ships this one along with the rest of its 5 skills.

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 tune-eval

README.md
[![agentmods](https://agentmods.dev/badge/skills/rchaz/tunelab/tune-eval.svg)](https://agentmods.dev/skills/rchaz/tunelab/tune-eval)
Your own site
<a href="https://agentmods.dev/skills/rchaz/tunelab/tune-eval"><img src="https://agentmods.dev/badge/skills/rchaz/tunelab/tune-eval.svg" alt="Measured on agentmods" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,473 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.1 $0.00207 $0.04473
Opus 5 $0.00103 $0.02237
Sonnet 5 $0.00041 $0.00895
Haiku 4.5 $0.00021 $0.00447

Measured 6d ago against content hash 404f431a2228, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tune-eval 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 6d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/cascade_compose.py, scripts/eval_classifier.py, scripts/grounding_gate.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/tune-eval/SKILL.md · 195 lines

How it starts

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

tune-eval — the honest scoreboard

Evaluation answers one question: does the tuned model meet the pre-registered bar on data it has never influenced? The validation set already steered training; only test.jsonl — untouched until now — gives an honest number (see concepts/validation-vs-test.md — bundled at the plugin root, ../../concepts/ relative to this file).

Teaching note: each step below is framed as four short lines before running it — What we're doing · Why (the failure it prevents) · Expect (healthy output) · Read (how to interpret what came out) — and one line after connecting result → next decision. One-liners, not essays; define jargon inline on first use with a concepts/ pointer. If the user says "skip the teaching" (or is clearly expert), drop Why/Expect/Read and keep What plus the result reading.

<skill-dir> below = the directory containing this SKILL.md; run commands from the user's project workdir.

Step 0 — Read the project state from disk (before asking anything)

On invocation, BEFORE asking the user a single question, check the project workdir:

  1. EXPERIMENT-LOG.md — prior decisions, the tune-decide interview summary, training runs, and (critically) whether a bar + metric set was already pre-registered. tune-decide writes the interview and level decision there precisely so later skills — and later sessions — never re-ask. If a bar exists, confirm it in one line; do not renegotiate. Also check whether the current test.jsonl was already spent by a previous eval round.
  2. runs/*/state.json — the run-continuity contract (tune-train owns writing it; all skills may read it):
{ "run_id", "status": "running|interrupted|completed|failed", "pid", "command",
  "model", "adapter_path", "data_dir", "log_path", "total_iters", "save_every",
  "hparams": {"batch_size", "learning_rate", "num_layers", "max_seq_length"},
  "started_at", "updated_at", "best_val": {"iter", "loss"}, "resume_history": [] }

This file hands you model, adapter_path, and data_dir — build every command below from it instead of asking. If status is running, do not eval a moving target: poll the log tail (tail runs/<id>/train.log), never hold the training process in conversation context. If interrupted, route back to tune-train first — resume is weights-only in mlx-lm 0.31.3 (--resume-adapter-file restores weights; fresh optimizer, iter counter resets): completed iters = highest NNNNNNN_adapters.safetensors in adapter_path; rerun with --iters <total minus completed> plus that checkpoint, and expect a brief loss bump from cold optimizer state. Only completed runs get the scoreboard.

Read the full file on GitHub · 195 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 195 lines · 207 tokens per session scan A 404f431a2228

Subscribe to this mod's changes

tune-eval is a skill published in the GitHub repository rchaz/tunelab (6 stars, last pushed 1mo ago), licensed MIT. It adds 207 tokens to every session and 4,473 once invoked, about $0.0010 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-31.

Related

Other skills, from other repositories

implementing-llms-litgpt

Implements and trains LLMs using Lightning AI's LitGPT with 20+ pretrained architectures (Llama, Gemma, Phi, Qwen, Mistral). Use when need clean model implementations, educational understanding of architectures, or production fine-tuning with LoRA/QLoRA. Single-file implementations, no abstraction layers.

davila7/claude-code-templates · 77 tokens

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent, tool-using workflow, multi-turn chatbot, RAG pipeline, or LLM app; add evals; generate datasets or goldens; use deepeval generate; use deepeval test run; send results to Confident AI…

confident-ai/deepeval · 229 tokens

llama-factory

Expert guidance for fine-tuning LLMs with LLaMA-Factory - WebUI no-code, 100+ models, 2/3/4/5/6/8-bit QLoRA, multimodal support.

davila7/claude-code-templates · 51 tokens

tinker-fine-tuning

Provides guidance for fine-tuning LLMs using the Tinker cloud training API from Thinking Machines Lab. Use when running supervised fine-tuning, reinforcement learning (GRPO/PPO), or LoRA training on cloud GPUs via Tinker's managed infrastructure instead of local compute.

synthetic-sciences/openscience · 62 tokens

colab-finetuning

Fine-tune LLMs on Google Colab GPUs directly from openscience. Connects to Colab runtimes via WebSocket bridge for remote training with Unsloth. Supports SFT, GRPO, DPO, vision, and TTS workflows on free T4 to Pro A100 GPUs.

synthetic-sciences/openscience · 67 tokens

llm-integration

LLM integration patterns for function calling, streaming responses, local inference with Ollama, and fine-tuning customization. Use when implementing tool use, SSE streaming, local model deployment, LoRA/QLoRA fine-tuning, or multi-provider LLM APIs.

yonatangross/orchestkit · 58 tokens