/ai-delegation:fast-subagentfrom ai-delegation
Use for any routine/checkable step — summarize, extract, classify, reformat, draft boilerplate, first pass over a file — every such step, all session. One command; the router's fast role picks the backend and its fallbacks. Names no model ids.
Ships in ai-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; scripts run unread.
Doctrine: local-subagents (same plugin) says why and what to delegate and
how a busy single-slot tier behaves. This skill is the one-command how, tuned
for reuse: call it early, call it often, call it again.
The Delegate column of local-subagents §1 is the list. The habit this skill
adds: do not decide once. Each time a new routine step appears — the fifth
log to reduce, the third file to summarize, the test output to read — send it
the same way. Repeated calls from one harness keep the backend's prompt cache
warm and the lock held, so the tenth call is cheaper than the first.
Keep for yourself: intent, architecture, tradeoffs, risk, anything you would not accept from a smaller model without checking. Never send secrets, secret store context, private topology, or personal data.
The router is not a Claude subagent and never writes code.
printf '%s\n' "$INSTRUCTION" "$INPUT" | fast-subagent.sh
fast-subagent.sh lives in this skill's scripts/ directory (resolve it
relative to this file; it needs only bash, curl, jq). It reads the
endpoint from the environment — LLM_ROUTER_URL + LLM_ROUTER_TOKEN_FILE, or
the local proxy's OPENAI_API_BASE_URL / LITELLM_LOCAL_BASE_URL +
LITELLM_LOCAL_KEY — sends one bounded request to the router's fast role,
prints the answer on stdout and model=<what answered> fallbacks=<n> on stderr.
Options: --model CAPABILITY (override the fast role's capability name), --system TEXT,
--prefix-file FILE (shared leading text or saved JSON messages array),
--save-chain FILE (persist messages + reply for chained KV cache reuse),
--session-id ID (pin LiteLLM session_affinity to the warm slot),
--max-tokens N, --timeout SEC, --raw (full JSON), --release (see §4).
When chaining specialist steps over the same evidence on a local backend, keep
the leading prefix byte-identical across calls with --prefix-file +
--save-chain + --session-id so every follow-up appends only its task suffix
and hits the warm KV cache slot.
Write the prompt for a small model — short imperatives, an explicit output shape, a row cap, a hard STOP:
Extract every failing test from the input. Do not explain or fix.
Output ONLY: test name | file | first error line. At most 40 rows. STOP.
Send only what the step needs. A call that carries your whole conversation costs more than doing the step yourself.
fast is a role whose target and fallback order live in the router's own
database and are edited in its admin UI — the operator can reorder or retarget
the chain at any time without a converge, a rebuild, or a change to this skill.
So: never name a physical model, never assume which backend answered, and read
model= on stderr when it matters. fallbacks=1 or more means the first rung
was busy and the router moved on; that is the chain working, not an error.
Shared doctrine: prompt://dryvist/auto-ai-agent/model-delegation.
| Exit | Meaning | Do |
|---|---|---|
| 2 | No endpoint in the environment | Say so and record the step as a tracked task. Do not look for a provider key. |
| 3 | 401/403 | Report it. Never retry with a different credential. |
| 4 | Still busy after one Retry-After wait | Report it; re-send the step later, split it, or record it as a tracked task. Do not loop. |
| 5 | Transport or request failure | Report the message; a 400 naming an unknown model means the role is not seeded on this router yet. |
| 7 | 200 but no text (budget spent on reasoning, finish_reason=length) | Retry once with a higher --max-tokens; never treat empty output as an answer. |
--release on your last call of a burst frees the single-slot backend for
the next caller instead of waiting for the lock's own timeout. It is a
courtesy: the timeout is what guarantees release, so never depend on it.
Name the role and, when the reader needs it, the model= line, for each
delegated result. Say when a step did not place and what you did instead.
/agentops:orchestrate — dispatch and result checks for delegated work; the maintainer-specific executor ladder is in jpe-ai-delegation.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/auto-maintainSuperseded by /agentops:orchestrate and /agentops:navigate. Use those skills instead./delegate-to-aiSuperseded by /agentops:orchestrate. Use that skill instead./local-subagentsUse for bulk reading, summarizing, classifying, extracting, drafting boilerplate, or a first pass over code — self-contained text work tagged and sent out. Covers delegation timing, the live model menu, bounding calls, refusals.Other plugins' skills for the same job
npx claudepluginhub jacobpevans-ai/claude-code-plugins --plugin ai-delegation