mode

mode is a skill for Claude Code from spacegrowth/claude-relay. It costs 37 tokens per session (5,315 once invoked), scanned A, original, MIT.

A relay skill that adopts the lead role for a coding-agent session and coordinates delegated work.

In plain words
What is it for?
Use it when managing executor sessions through relay, including checking the model, assigning work, and reviewing completed reports.
Why use it?
It provides rules for planning, choosing work to delegate, reviewing reports, and deciding whether results are ready to merge.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the relay plugin — 17 skills, 1 agent, 4 hooks shipped together

Good fit Use it when managing executor sessions through relay, including checking the model…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add spacegrowth/claude-relay
Claude Code
/plugin install relay

Made for: Claude Code.

Or install relay, the plugin that ships this one along with the rest of its 17 skills, 1 agent, 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 mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/spacegrowth/claude-relay/mode.svg)](https://agentmods.dev/skills/spacegrowth/claude-relay/mode)
Your own site
<a href="https://agentmods.dev/skills/spacegrowth/claude-relay/mode"><img src="https://agentmods.dev/badge/skills/spacegrowth/claude-relay/mode.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,315 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.00037 $0.05315
Opus 5 $0.00018 $0.02658
Sonnet 5 $0.00007 $0.01063
Haiku 4.5 $0.00004 $0.00532

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

Security

Grade A, and why

mode 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.

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/mode/SKILL.md · 291 lines

How it starts

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

First, check your own model, and ALWAYS SAY SO OUT LOUD as your first line of output, never silent. This role's value is the judgment calls (what to delegate, when to reuse a session, whether a report is actually mergeable) — that needs a strong reasoning model. This skill cannot switch your model itself (no skill can invoke /model programmatically), so the user needs to actually see this check happened, not just trust it occurred silently.

Known limitation, confirmed empirically: this self-check becomes unreliable after multiple /model switches within one continuing session — self-knowledge of "which model am I" does not appear to reliably refresh on every switch, so after switching more than once in the same conversation the reported model can be stale/wrong. There is no known way to verify the actual running model programmatically (no confirmed introspection API). Reliable usage pattern: decide the model ONCE at session start (either the model the session already launched with, or a single /model <name> switch made before invoking this skill), then invoke /relay:mode right after — don't switch models again in that same session and expect this check to stay accurate. If you need a different model later, start a fresh session rather than switching repeatedly.

Don't match against hardcoded VERSION numbers (which change every release), but the tier CLASS names are stable and worth naming explicitly, from strongest to weakest: Fable > Opus > Sonnet > Haiku (adjust only if you have direct evidence this ordering has changed). Identify your own class (you know your own name, e.g. "Sonnet 5" — the class is "Sonnet", the version is "5"), then count: how many classes sit above you, and how many sit below you, in that ordering, right now? Don't reason "I'm a recent/latest version so I must be top" — a high version number within your OWN class does not mean you outrank a different, inherently stronger class that also exists right now. Frame the result around what you can actually DELEGATE to, not an abstract tier label — say the matching line, filling in your actual model name:

  • Nothing above you (you're Fable, or whatever is currently the top of the lineup) → say "Model check: — top of the current lineup. Proceeding as lead with the full delegation range: Opus, Sonnet, and Haiku are all available as executors.", then continue.
  • One class above you, at least one below (you're Opus) → say "Model check: — one tier (Fable) exists above me for the absolute maximum judgment quality if you ever want it, but I'm well-suited for lead work as-is. I can confidently delegate to Sonnet and Haiku.", then continue — this is NOT a "you should switch" message, Opus is genuinely strong for this role.
  • Two or more classes above you, at least one below (you're Sonnet) → say "Model check: — two stronger tiers (Opus, Fable) exist above me and may catch subtler routing/ review calls I'd miss. Recommend switching now: run /model opus for better judgment quality — otherwise proceeding as-is. I can delegate to Haiku, but that delegation will be limited: I'll need to keep its packets simpler and more tightly scoped than I would on a stronger lead.", then continue regardless of whether the user switches.
  • Nothing below you (you're the smallest/fastest tier, e.g. Haiku) → say "Model check: — the bottom of the current lineup, nothing to delegate down to and not reliable enough for lead judgment calls itself. Please run /model opus (or similar) first.", then STOP — do not continue adopting the role below until the user switches. This tier is by design never the thing you'd delegate away from a strong model onto a cheap one.

Then arm the routing gate by running this Bash command exactly (it marks this session as a lead so the plugin's edit-gate hook activates — without it, nothing is enforced):

${CLAUDE_PLUGIN_ROOT}/bin/relay lead-start "$CLAUDE_CODE_SESSION_ID" --project "<project>"

Read the full file on GitHub · 291 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. 6d ago First seen · 291 lines · 37 tokens per session scan A 290501446ed9

Subscribe to this mod's changes

mode is a skill published in the GitHub repository spacegrowth/claude-relay (1 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 5,315 once invoked, about $0.0002 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.