Curated with by@mohithkumar808

№ 0191Skill

shunt-muse: offload big file reads to Muse Spark

A fork of Spotify's shunt plugin for Claude Code and Codex whose hooks block full reads of large files and route them to Muse Spark via muse exec; the author measured about 4,800 tokens out and 300 back on a 617-line file.

alexanderradahl/shunt-museREADME ↗

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. 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 full Read, or a bare cat/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-read sends one or more files plus a question to Muse and prints the answer.
  • code-write sends 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) with muse exec working headless
  • jq and perl (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 shunt-muse:bulk-reader and shunt-muse:code-writer.

Install in Codex

Clone the repo somewhere stable, then add the Bash hook to ~/.codex/hooks.json:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash|shell|exec_command|local_shell",
        "hooks": [
          { "type": "command", "command": "/path/to/shunt-muse/plugins/shunt-muse/hooks/check-bash-read", "timeou
shunt-muse: offload big file reads to Muse Spark on github.com

Also filed under Coding & dev tools

See all →
  1. 0870

    CodexBar adds Muse Code usage tracking★

    CodexBar learned a few new tricks in the last few weeks! TypeSafe, Nous Portal, Muse Code, CodeRabbit, Replicate, HuggingFace, Pi, Helmcode, v0, Charm Hyper, GitKraken AI, Bifrost My ambitions for this app REALLY outgrew the app name. (Oh and these keychain alerts are no more)

    @steipete

    X post

    Coding & dev tools

  2. 0656

    Custom terminal built with a Muse★

    A cool thing about @Muse is that every Muse runs on its own Linux machine. So you and your Muse can do normal Linux stuff together — like build your own terminal!

    @lucas_switzer

    X post

    Coding & dev tools

  3. 0597

    Spark 1.3 Contributor free in Cline★

    Meta’s Muse Spark 1.3 Contributor model is now available for free in Cline. Benchmarks show it’s similar in performance to Opus 5, but considerably more affordable.

    @cline

    X post

    Coding & dev tools

  4. 0574

    Muse Spark 1.3 in Cursor★

    Muse Spark 1.3 from Meta is now available in Cursor!

    @cursor_ai

    X post

    Coding & dev tools

More Skills

See all →
  1. 1073

    Xahau skill for Muse

    Lets a Muse send XAH, manage trustlines, mint URITokens, claim the monthly reward and check out on xMerch stores, where the skill only proposes and the owner approves every transaction in the Xaman app on their phone.

    @terramike

    Skill

    Business & commerce

  2. 1072

    Review Times MCP server and skill

    An MCP server and skill that reports live review times for AI app, connector and plugin stores, including Meta Muse, so builders can see how long a connector submission is taking.

    @stevysmith

    Skill

    Connectors & MCP

  3. 1068

    musebook: shared family boards for Muses

    An open protocol plus Muse skill and Cloudflare Workers reference server that lets each family member's Muse join shared boards (groceries, trips, household lists) with per-board identities and an approval card before anything is ordered.

    @amanbthakkar

    Skill

    Errands & personal agent

  4. 1062

    xrpl-muse-skill: let your Muse trade XRP

    A terminal skill for trading any XRP Ledger token pair and minting NFTs, with a hard boundary between proposing and signing; testnet by default, and mainnet needs the Muse vault signer or a protected signer with per-transaction approval.

    @terramike

    Skill

    Business & commerce

Curator picks

  1. 1057

    Muse Mail: your agent gets an email address★

    MUSE FEATURE ALERT: y'all have been asking for this one. your @muse is getting its own email address. add it to a thread or forward it stuff and it’ll handle it for you. muse mail!

    @alexandr_wang

    X post

    Agents & automation

  2. 1054

    Kevin Roose gives his Muse $100 and a Kalshi account★

    gave my Muse $100 and a kalshi account, let's see how frontier this thing is

    @kevinroose

    X post

    Agents & automation

  3. 1046

    Medical bills audited line by line, $4,000 saved★

    Got Muse logged in to my medical provider’s portal, he pulled the itemized bills, and questioned every line. So far he’s found several times I’d been double billed, asked for some discounts and has saved me over $4,000. If your moat is bureaucracy, you’re cooked.

    @Ryan_Holdaway

    X post

    Errands & personal agent

  4. 1042

    GitHub connector for Muse★

    GitHub 🤝 @Muse A new way to connect your GitHub account to review PRs, catch up on issues and notifications, and leave comments without switching tabs.

    @github

    X post

    Connectors & MCP

Want more AI builds?artificialbuilds.com