/shunt:shuntfrom shunt
Shunt I/O-heavy work off the main context onto a cheap subagent — reading large files, answering questions spanning several files, summarizing big diffs, generating boilerplate from a reference. Use when a file is over ~800 lines, when a question spans 3+ files, or when the shunt-guard PreToolUse hook denies a read. Triggers on: shunt, bulk read, large file, delegate the read, too many tokens, context is filling up, read these files, summarize this diff, generate boilerplate.
Ships in shunt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reading a 4,000-line file costs ~33k tokens of your context and you keep paying for it every turn afterwards. A subagent reads it in its own context and hands back an answer measured in hundreds of tokens. The files never enter this conversation.
This skill is your standing authorization to spawn subagents for the cases below. You do not need to ask first.
Read + offset/limit, or sed -n 'A,Bp'. Never edit from a summary.Use the Explore agent for search-shaped questions ("find every place that…"), and the
Agent tool with model: haiku for read-shaped ones. Name the exact paths and the exact
question; a vague brief comes back as a vague summary you then have to re-derive.
Agent(model: haiku, prompt: "Read src/Service.java and src/Handler.java.
List every method that opens a DB connection, as `file:line — method — what it does`.
Bullets only, no prose.")
For boilerplate, use model: sonnet and give it the reference file plus the target path.
Generation is execution-tier work; reading is not.
A summary is evidence, not fact. Before you edit based on a shunted read, confirm the
specific line numbers and identifiers you are about to touch — one targeted Read with
offset/limit, or a grep. Cheap models transpose line numbers.
This plugin's PreToolUse hook denies whole-file reads over SHUNT_MIN_LINES (default
800), for Read and for cat/head/bat/less in the shell. It allows targeted reads,
pipes, and redirects. If it denies something you genuinely need whole, either read it in
spans or raise the threshold for the session:
SHUNT_MIN_LINES=5000 # per-session override
SHUNT_GUARD_OFF=1 # disable the guard entirely
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub zach-source/claude-marketplace --plugin shunt