Shunt Muse — Development skill for Claude Code
Spotify's shunt plugin for Claude Code and Codex, delegating big file reads and boilerplate to Muse Spark instead of Portal AiKA.
How to install Shunt Muse
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open alexanderradahl/shunt-muse and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Shunt Muse does
Spotify's shunt plugin for Claude Code and Codex, delegating big file reads and boilerplate to Muse Spark instead of Portal AiKA.
Alternatives in Development
- Add Portal — /add-portal - Generate a Job-Portal Search Skill for Your Local Market 36.6k ★
- Peon Ping — Warcraft III Peon voice notifications (+ StarCraft, Portal, Zelda) for Claude Code and other agents 4k ★
- Spark Prairie Fire 3.7k ★
README
shunt-muse
Keep big files out of your coding agent's context. When Claude Code or Codex tries to read a large file in full, a hook stops it and points it at a skill that hands the files to a cheaper model (Muse Spark via `muse exec`). Only the short answer comes back into the session.
This is a fork of Spotify's [shunt](https://github.com/spotify/portal-ai-plugins/tree/main/plugins/shunt). The original delegates to AiKA modes on a Spotify Portal instance. If you don't have Portal, this version does the same thing with the Muse CLI you already have installed.
What it does
- Hooks (
PreToolUse) block a fullRead, or a barecat/head/tail/less/more, of any file over 350 lines. Reads with an offset or limit, piped commands and small files go through untouched. bulk-readsends one or more files plus a question to Muse and prints the answer.code-writesends a spec plus a reference file to Muse and writes the generated file (tests, config, stubs).- Skills (
bulk-reader,code-writer) tell the agent when to call the scripts.
Every call is one shot. A follow-up question sends the files again, which costs nothing in your agent's context because they never enter it.
Numbers
One run on a 617-line test file: about 4,800 tokens went to Muse and roughly 300 came back, in 24 seconds at `low` effort. At the default `high`, a 1,055-line file took about 20 seconds and every cited line number was exact (`xhigh` gave the same answer in about 32 seconds). Spotify reports 82-94% savings with the original plugin on a 162K-line Java monorepo; I haven't reproduced that here.
Requirements
- Muse Code (
muse) withmuse execworking headless jqandperl(both ship with macOS)- Claude Code with plugin support, and/or Codex CLI with hooks enabled
Install in Claude Code
claude plugin marketplace add alexanderradahl/shunt-muse
claude plugin install shunt-muse@muse-shunt
Start a new session. The skills show up as `
Related Skills
Spinwatch
Alarm when your coding agent spins instead of works — catches repeated identical tool calls and endless talk-w
Architecture Agents Md Contract From Codebase
How to PLAN adding an AGENTS.md agent-behavior contract to a repo by DERIVING every rule from the real codebas
Codex Rescue
Internal sub-tool wrapper — emits subtool_backend_override event before delegating to Codex.
Fluxion Bus
Local-first MCP gateway for delegating scoped tasks across Codex, Claude Code, and Antigravity, plus quota mon
Delegate To Opencode
Agent playbook for delegating implementation work to opencode CLI models (free by default) -- plan, delegate,
Claude Autoshutdown
Shut down Windows only after every Claude Code session and its subagents have really finished. Reads agent tur
Related Agents
GPT 5.6 Luna
General-purpose agent that runs on GPT-5.6-Luna (routed through the shunt gateway to the ChatGPT/Codex subscri
Backend Agent
Generates complete backend code (API routes, auth, DB schema, migrations, seed data) by delegating bulk code g
Spark
You are a lightweight implementation agent. Your job is to make small, focused changes quickly without the ove