baton-setup

baton-setup is a skill for Claude Code from realgarit/fable-baton. It costs 69 tokens per session (696 once invoked), scanned B, original, MIT.

A setup and health-check routine for fable-baton, an agent add-on that chooses models for different tasks. It updates selected Claude settings and checks that the add-on is installed.

In plain words
What is it for?
Use it to configure fable-baton, check its installation, inspect model-related environment settings, and troubleshoot model fallback behavior.
Why use it?
It prevents model-selection settings from being missing, conflicting, or silently overridden. It also avoids replacing unrelated settings when configuration changes are needed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the fable-baton plugin — 1 skill, 4 agents, 3 hooks shipped together

Good fit Use it to configure fable-baton, check its installation, inspect model-related environment settings, and troubleshoot model fallback behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/realgarit/fable-baton/baton-setup
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 realgarit/fable-baton --skill baton-setup
Clone the repo
git clone --depth 1 https://github.com/realgarit/fable-baton

Made for: Claude Code.

Or install fable-baton, the plugin that ships this one along with the rest of its 1 skill, 4 agents, 3 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 baton-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/realgarit/fable-baton/baton-setup"><img src="https://agentmods.dev/badge/skills/realgarit/fable-baton/baton-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 696 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00069 $0.00696
Opus 5.5 $0.00028 $0.00278
Sonnet 5.5 $0.00014 $0.00139
Haiku 4.5 $0.00007 $0.00070

Measured 2mo ago against content hash cb2d1af85cfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

baton-setup scanned grade B 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

description: One-time setup and health check for fable-baton. Use when the user asks to set up, configure, verify, or troubleshoot fable-baton - sets the default model to "best" (Fable 5 with Opus fallback) in ~/.claude/
skills/baton-setup/SKILL.md · 47 lines

How it starts

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

baton-setup

One-time setup for fable-baton. Run each step in order. Never rewrite ~/.claude/settings.json wholesale - edit only the named keys and preserve everything else.

Step 1 - Read current state

  1. Read ~/.claude/settings.json (if missing, you will create a minimal one).
  2. Check echo "$CLAUDE_CODE_SUBAGENT_MODEL". If set, warn the user: this variable silently overrides every agent's model frontmatter and defeats the tiering. Recommend unsetting it, but do not unset it yourself without approval.

Step 2 - Propose changes and get approval

Show the user exactly what you will change before writing anything:

Key Rule
model If absent → set "best". If present with a different value → ask: keep theirs, or switch to "best"? (best resolves to Fable 5 when the account has access, otherwise the latest Opus.) If already "best" → no change.
fallbackModel If absent → add ["opus", "sonnet"] (covers overload/unavailability). If present → leave it.
availableModels Only if the key already exists (it is an allowlist): ensure it contains "opus", "sonnet", "haiku", and the chosen main-model value. If absent → do not add it.

Back up the file first: copy it to ~/.claude/settings.json.baton-backup-<YYYYMMDD-HHMMSS> (skip if the file didn't exist).

Step 3 - Apply and validate

Apply the approved edits, then validate: jq empty ~/.claude/settings.json must exit 0 (or parse the JSON yourself if jq is unavailable).

If Claude Code rejects the best alias at startup (older versions), fall back to "opus" and suggest updating Claude Code.

Step 4 - Verify the install

  1. Confirm the four agents are available: scout, executor, architect, verifier (ask "which subagent types are available?" or check the Agent tool's list).
  2. Confirm the orchestration policy is present in context (it is injected at session start; in a session started before install it won't be - that's expected).
  3. Tell the user to restart their Claude Code session: agents and the model setting load at session start.

Read the full file on GitHub · 47 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. 2mo ago First seen · 47 lines · 69 tokens per session scan B cb2d1af85cfd

Subscribe to this mod's changes

baton-setup is a skill published in the GitHub repository realgarit/fable-baton (29 stars, last pushed 22d ago), licensed MIT. It adds 69 tokens to every session and 696 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.