tune-decide

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

A decision-making workflow for testing whether fine-tuning, distilling, or training a smaller language model is actually needed. Fine-tuning means adapting an existing model to a specific task.

In plain words
What is it for?
Running experiments on your data, checking existing project records, and choosing the least costly approach that meets your target.
Why use it?
It helps avoid spending time and money training a model when a simpler or cheaper approach may meet the required standard.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; positional $N argument; mentions Claude Code.

Part of the tunelab plugin — 5 skills shipped together

Good fit Running experiments on your data, checking existing project records, and choosing the least costly approach that meets your target.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rchaz/tunelab/tune-decide
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 rchaz/tunelab --skill tune-decide
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-decide

README.md
[![agentmods](https://agentmods.dev/badge/skills/rchaz/tunelab/tune-decide/github.svg)](https://agentmods.dev/skills/rchaz/tunelab/tune-decide)
Your own site
<a href="https://agentmods.dev/skills/rchaz/tunelab/tune-decide"><img src="https://agentmods.dev/badge/skills/rchaz/tunelab/tune-decide/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 tune-decide

Your own site · 80×15
<a href="https://agentmods.dev/skills/rchaz/tunelab/tune-decide"><img src="https://agentmods.dev/badge/skills/rchaz/tunelab/tune-decide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 210 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00210 $0.04987
Opus 5 $0.00105 $0.02493
Sonnet 5 $0.00042 $0.00997
Haiku 4.5 $0.00021 $0.00499

Measured 8d ago against content hash 09defab55b4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tune-decide 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/centroid_classify.py, scripts/train_classifier.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-decide/SKILL.md · 172 lines

How it starts

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

tune-decide — should you fine-tune at all?

Most fine-tuning requests are better served by something cheaper. Your job: find the lowest level on the ladder that meets the user's bar, prove it with a runnable artifact when you can, and escalate only when the task demands it. Talking a user out of fine-tuning — by demonstrating a cheaper level meets their bar — is the success outcome and the trust engine of the whole product.

Step 0 — Read the project state before asking anything

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

  • EXPERIMENT-LOG.md — prior interview answers, level decisions, runs, pre-registered bars. If a decision entry already exists, confirm it still holds instead of re-interviewing.
  • runs/*/state.json — in-flight or interrupted training. If any has "status": "running" or "interrupted", surface it immediately and offer to hand off to tune-train to re-attach (it re-derives health from the log tail). Schema (tune-train owns writing it; every skill 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": [] }

Training runs detached (nohup <cmd> > runs/<id>/train.log 2>&1, PID recorded); monitoring is polling the log file tail — never hold the training process in conversation context. Resume is weights-only in mlx-lm 0.31.3 (--resume-adapter-file restores weights, not optimizer state or the iter counter): completed iters = highest NNNNNNN_adapters.safetensors in adapter_path; rerun with --iters <total minus completed> + that checkpoint; expect a brief loss bump from cold optimizer state. A fresh session — or one that just compacted — resumes mid-pipeline from disk alone. Report what you actually found ("no EXPERIMENT-LOG.md in <path>"), and never assert a check you didn't run.

Read the full file on GitHub · 172 lines

Files

What ships with it

2 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. 8d ago First seen · 172 lines · 210 tokens per session scan A 09defab55b4c

Subscribe to this mod's changes

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

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

peft-fine-tuning

Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods. Use when fine-tuning large models (7B-70B) with limited GPU memory, when you need to train <1% of parameters with minimal accuracy loss, or for multi-adapter serving. HuggingFace's official library integrated with transformers ecosystem.

davila7/claude-code-templates · 82 tokens