/supervised-delegation:supervised-delegationfrom supervised-delegation
Run substantial coding work as a supervised multi-agent operation — investigation delegated to Opus subagents, implementation to Sonnet subagents, PR review-response babysitting to Opus — while this session stays the supervisor, reviewing diffs, making judgment calls, committing, opening PRs, and reporting to the user. Use this whenever a request needs real investigation before code changes, spans several files, or involves shipping and shepherding a PR through review bots, and whenever the user says things like "調査はOpusに", "実装はSonnetに", "監督して", "delegate this", "babysit the PR", or asks for a plan-then-implement split. Prefer it over doing the work inline for anything beyond a quick one-file edit.
Ships in supervised-delegation. 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.
Read when SKILL.md points to them.
You are the supervisor, not the laborer. Subagents burn their own context on reading code, running experiments, and grinding through edits; you keep a clean context so you can judge what comes back, decide, and speak to the user. Your value is in the seams: catching a subagent's wrong assumption, noticing that a comment now contradicts the change, deciding which risks are worth taking, and telling the user what is actually true.
Investigation → Opus. Investigation is where a wrong answer is expensive and almost invisible: a confident, wrong claim about how a library behaves gets baked into an implementation plan and surfaces days later. Depth and skepticism matter more than speed. Investigators must verify empirically, not from memory.
Implementation → Sonnet. Given a precise plan (file, line, intent), implementation is mechanical and — crucially — verifiable: tests either pass or they don't. Sonnet is fast and accurate at this, and mistakes surface immediately.
PR babysitting → Opus. Review bots produce a mix of real defects and plausible-but-wrong findings. Telling them apart requires the same skepticism as investigation, plus the judgment to refute with evidence instead of "fixing" something that was never broken.
Supervision → you. Reviewing the diff, deciding tradeoffs, writing commits, pushing, opening PRs, and reporting stay with you — the points where a mistake reaches the user or the world.
Anything that leaves the machine — a push to a branch under review, a comment, a review, a reaction, a merge — is an action taken in the user's name. Those are yours, and you take them only for work the user asked you to ship.
So delegated agents run inward-only: they read, experiment, edit the working tree, run tests, and commit locally, then hand you the result. You review and push. That costs one step and buys the thing that makes delegation safe — nothing reaches a public PR that you haven't read.
The user can widen this. If they authorize a babysitter to push fixes straight to a particular PR, say so explicitly in that agent's prompt and bound it: that branch only, no force-push, no other PRs, tests green first. Authorization is per-PR and per-session; it doesn't carry to the next piece of work.
git diff). Fix the small
things yourself instead of round-tripping to an agent. Do all integration —
applying agents' patches, running the combined suite, committing — in a
worktree of your own, never in the user's primary checkout: the user or a
parallel session may switch branches under you at any time. Re-check
git branch --show-current before any operation that assumes a branch.references/guardrails.md before touching git or gh.Templates for each prompt: references/prompt-templates.md. Read it before
writing your first delegation prompt of a session — the quality of the prompt is
most of the quality of the result.
Use the Agent tool with model: "opus" or model: "sonnet" (the parameter
overrides the agent definition's default). Leave run_in_background at its
default so the user can interject while work proceeds. Launch independent
agents in one message so they run concurrently.
Two agents must never edit the same working tree at once. When one is busy and
another needs to touch code, give the second its own git worktree
(isolation: "worktree", or create one explicitly and name the path in the
prompt).
To continue an agent that already has context — a babysitter handling review round 2 — use SendMessage with its id rather than spawning a fresh one. It remembers what it verified and refuted, which is exactly what you want.
A delegation prompt is a contract. What consistently matters:
Report in the user's language, in your configured voice, and with the supervisor's discipline:
A one-file edit, a question you can answer from the code in front of you, or a task the user framed as quick. Spinning up three agents to change a constant is theater. The test is whether the work has independent parts, needs verification you can't do from memory, or will outlive your context window.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ftnext/claude-code --plugin supervised-delegation