runtime-switch

runtime-switch is a skill for Claude Code from sonichi/sutando. It costs 66 tokens per session (1,235 once invoked), scanned A, original, MIT.

A private account card for the core's two supported coding runtimes, Codex and Claude Code. It shows the current runtime and lets the owner switch to the other one from a direct message.

In plain words
What is it for?
Use it when the owner needs to see or change which coding runtime is active. Tasks, results, state, memory, and workspace carry over, but the live conversation does not.
Why use it?
It prevents runtime changes from being made by the wrong person or in the wrong room. It also checks sign-in status and confirms the runtime after restarting.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it when the owner needs to see or change which coding runtime is active. Tasks, results, state, memory, and workspace carry over, but the live conversation does not.

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

Made for: Claude Code.

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 runtime-switch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonichi/sutando/runtime-switch"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/runtime-switch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,235 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.00066 $0.01235
Opus 5.5 $0.00026 $0.00494
Sonnet 5.5 $0.00013 $0.00247
Haiku 4.5 $0.00007 $0.00123

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

Security

Grade A, and why

runtime-switch 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 1 executable file (scripts/runtime_card.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/runtime-switch/SKILL.md · 75 lines

How it starts

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

runtime-switch

Use it when the owner, in their DM, asks to switch the core's runtime: "switch to Claude Code", "use Codex", "run on Codex", "换成 Claude Code", "切到 Codex", or asks which runtime the core is on and wants to change it. Anyone else, or any other room: say the runtime is switched from the owner's DM and do nothing. Never run start-cli.sh --runtime … or --restart yourself from inside the core.

python3 skills/runtime-switch/scripts/runtime_card.py post --room <owner DM> [--reply-to <event>]
python3 skills/runtime-switch/scripts/runtime_card.py post --room <owner DM> --print   # the card, not sent
python3 skills/runtime-switch/scripts/runtime_card.py status                          # JSON: in use, next start, confirmed core

Post the card even when the owner already named the runtime: the switch happens on the tap.

The card

Two buttons, Codex and Claude Code; the runtime in use is the primary one and is named in the text. The note says what carries over: tasks, results, state, memory and the workspace are shared by both runtimes; only the live conversation does not.

A tap

src/agent_card.py click routes a tap to runtime_card.py reply (the recorded handler). Only the owner's tap, in the DM the card was posted in, on a card this agent posted, acts (agent_card.click_verdict). A tap on the runtime in use changes nothing; a second switch while one is under way is refused.

  1. Sign-in first, before anything stops. Claude Code: claude auth status --json under the core's config dir; Codex: src/codex_account.py on the core's Codex home (the account card's probes). Not signed in, or not readable: the card answers "Sign in first" with that runtime's sign-in controls in the card itself (drawn by the desktop app on the computer that runs the core; elsewhere the card says to open it there). Nothing restarts. The tap is kept: runtime_card.py await-sign-in waits up to 15 minutes, and once the sign-in is there it switches without being asked again.
  2. Signed in: it answers "Switching the core from X to Y…" at once and starts runtime_card.py switch detached, in its own session, because the core restarts.
  3. switch runs src/agent/graceful-restart.sh -- --runtime <rt>: it waits for the core's current turn, then start-cli.sh --restart --runtime <rt>. The launcher writes the desktop's selection (runtime.json coreRuntime) and <workspace>/state/core-runtime.json only once the new core's panes run that CLI.
  4. settle confirms from those two, never from a heartbeat alone: the record names the target with a session created after the switch began, and the runtime the launcher picks next is the target. It posts "Switched to Y. The core restarted on it ✓" or what could not be confirmed. When graceful-restart did not stop the core (exit 3, 4, 5) it says the core is still on X. When it did and no core comes back on Y, switch puts X's record back, restarts onto X the same way, and says on the card whether X is running again or what to do outside chat: a core that is down cannot answer.

Read the full file on GitHub · 75 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 · 75 lines · 66 tokens per session scan A eab547388de3

Subscribe to this mod's changes

runtime-switch is a skill published in the GitHub repository sonichi/sutando (413 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 1,235 once invoked, about $0.0003 per session on Opus 5.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-11-26.

Related

runtime-switch compared with skills from other repositories

runtime-switch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
runtime-switchsonichi/sutandoSkill413todayMITA66Claude Code
app-buildervellum-ai/vellum-assistantSkill1.5k3d agoMITA162Claude Code, Codex
gmailvellum-ai/vellum-assistantSkill1.5k3d agoMITA20Claude Code, Codex
assistant-migrationvellum-ai/vellum-assistantSkill1.5k3d agoMITA90Claude Code, Codex
guardian-verify-setupvellum-ai/vellum-assistantSkill1.5k3d agoMITA26Claude Code, Codex
stripe-link-walletvellum-ai/vellum-assistantSkill1.5k3d agoMITA52Claude Code, Codex
vellum-memory-v3-migrationvellum-ai/vellum-assistantSkill1.5k3d agoMITA63Claude Code, Codex