Pimp My IDE / Garage Dispatch
← Back to the garage
September 5, 2026 · Agent routing / token economics

Stop paying the big engine to haul boxes.

Spotify’s new Shunt plugin blocks wasteful full-file reads and sends bulk I/O or boilerplate to a cheaper worker. Good move. The deeper lesson is not “use the cheap model.” It is: put a physical gate between clerical volume and expensive judgment.

The take: routing should follow the shape of the work, not model fandom. Bulk reading and pattern-bound output can leave the main context. Debugging, editing, architecture, and safety calls stay with the driver. The boundary needs an enforced hook, a targeted fallback, and a receipt.
Tune the manifold ↓

The expensive part is often the cargo.

A Spotify engineer describes a familiar coding-agent bill: a frontier model reads thousands of lines to answer one narrow question, or emits a predictable test file by copying a pattern already sitting next door. In the published Java-monorepo scenarios, the Shunt plugin’s bulk-reader path reduced the main model’s consumed tokens by 82–94%, with a reported mean near 90%.

Keep the dyno sheet attached. Those are project-published measurements from four scenarios, not a universal savings rate. The worker model, repository shape, summary format, cache behavior, and question all matter. Delegation also adds a network round-trip. Below the plugin’s default 350-line threshold, the overhead can be worse than simply reading the file.

Do not route by prestige. Route by how much judgment the cargo contains.

The hook is the product.

The first version used advice in CLAUDE.md. Advice is context, and context can be ignored. The current plugin registers PreToolUse hooks. A full read over the configured line threshold is blocked and redirected to a bulk-reader skill; targeted reads with an offset or limit still pass.

That distinction is excellent interface design. The hook is a hard guardrail. The skill explains the detour. The script handles transport and output cleanup. Anthropic’s own documentation makes the same boundary explicit: project instructions are context, while a PreToolUse hook is the mechanism for blocking an action regardless of the model’s choice.

Do not shunt the steering wheel.

Spotify’s write-up is refreshingly clear about failure modes. The worker missed a subtle thread-safety bug that the main model found. Summaries did not provide reliable enough line numbers for edits. Very large requests hit command-line payload ceilings, and remote calls add latency and timeout risk.

So the useful split is not “cheap work” versus “smart work.” It is compressible work versus decision-bearing work. A bulk inventory can be summarized. A reference-shaped config can be drafted. But exact edits require exact spans; debugging requires causal reasoning; architecture and safety decisions deserve the full driver.

Build the return lane before the shortcut.

  1. Set a visible threshold. Use observed file size and latency, not an invisible vendor default.
  2. Keep targeted reads legal. A summary should narrow the search, not become an irreversible loss of detail.
  3. Pin the worker contract. Name the model or mode, instructions, temperature, tools, payload ceiling, and timeout.
  4. Separate read from write. A cheap worker may summarize broadly; repository mutation still crosses a validation gate.
  5. Print the receipt. Record what left the main context, what came back, and which model retained final responsibility.

Shunt is currently Claude Code-specific for enforcement, though the Portal marketplace also describes workflows for Codex and Cursor. The portable idea is bigger than one plugin: context is a budgeted supply chain. Put the forklift on bulk cargo. Keep a human-readable manifest at the dock.

Interactive makeover / context routing

Tune the Token Shunt Manifold.

Traditional purpose replaced: one global “use cheaper model” switch. Better version: choose the job, tune the crossover threshold, close the return-lane interlocks, and export the exact routing contract.

Cargo selector

Choose the work shape. The manifold routes volume away from the main context without pretending every task is safe to compress.

Workload shape
350 lines
Return-lane interlocks
INTAKE
WORKER
DRIVER

Green lamps show route occupancy—not safety clearance.

Pressure readout

How much routing risk is still sitting in the manifold? This score teaches the tradeoff; it does not predict tokens or dollars.

62routing exposure / teaching proxy
SHUNT BULK CARGOSend broad reading to the worker; return a concise inventory; keep exact spans available to the main driver.
Threshold
350 lines
Closed interlocks
0 / 4
Mutation owner
MAIN DRIVER
Posture
HOLD
Open the five-source routing log
[1] Spotify Engineering — Shunt design, two worker modes, routing layers, four scenarios, limits, and reported savings [2] Spotify Portal AI Plugins — public repository, supported agent surfaces, setup, and Portal CLI workflows [3] Shunt README — defaults, hook behavior, payload and timeout controls, exclusions, eval inventory, and benchmark table [4] Claude Code Docs — PreToolUse hook semantics, matchers, decisions, and configuration reference [5] Hacker News — exact discussion thread that surfaced the Spotify field note