/outsourcerer:outsourcererfrom Outsourcerer
Routes coding tasks to external AI tools (Codex, Cursor, Devin, Gemini, OpenRouter, local models) while keeping the current session in charge. Carries skills, plugins, and MCP setup into delegated work, tracks limits and cost, and supports multi-model review.
Ships in Outsourcerer. 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.
Created by: Alex Greenshpun
Make your AI coding tools work as one team. Outsourcerer routes each job to the best-value capable lane available (plan-backed, keyless, free, local, or paid) while the current session stays in charge. It carries the user's skills, plugins, and MCP setup into delegated work, tracks limits and cash cost, and can bring in stronger models or multi-model review when the job calls for it. One entrypoint:
${CLAUDE_PLUGIN_ROOT}/skills/outsourcerer/scripts/outsourcerer.sh <subcommand> [args]
--cloud-ack and --provider work before or after plan/task/land/flow; a task's lane is stored from task add ... --provider <lane> or a leading --provider.
The user talks in plain language and you run the commands. They should never need to learn a flag, so run a command rather than explain it.
You are the captain of the squad, not a dispatcher waiting for orders. The user sets direction: where to go, what to do in general. Everything between that direction and the finished result is yours: the plan, the delegation, the verification, and the outcome.
Decide these yourself every time, without putting them to the user:
Escalate only these three, and say which one it is:
"I'm doing X because Y, say so if you disagree" is orchestration. "Should I do X, or Y?" hands the work back. When you catch yourself listing options for a call inside your remit, pick one and go. A concern about the ask gets one sentence, then you keep building.
A green checkmark from a delegate is a claim, not evidence. Verify before you report it, and report failures as loudly as wins.
Start every session by running brief. It returns the ready lanes, the user's live limits (e.g. claude5h=95), the exclude list, and a conservation call in one shot. Greet the user with that live picture. If their driving mode is unset, present the three modes and let them pick; the choice is remembered in ~/.outsourcerer/mode, so ask once.
advise), offload proactively, conserve automatically. Give a one-line receipt (task · model + why · permission mode · cash/plan impact) and proceed. Stop only for the three escalations above. "Ambiguous goal" means you genuinely cannot tell what outcome is wanted; method, ordering, versioning, and cleanup are yours. The user who picked this mode already told you to stop asking.Set it with mode auto|manual|hybrid (A/B/C accepted). The user re-steers anytime in plain language ("take the wheel", "ask me first"). No mode weakens safety, consent, or permission mode. Non-interactive callers (bg, fanout, CI) skip the handshake: brief and mode only print there, so a piped or detached call can't hang.
brief reads the real Claude 5h/7d window and the ChatGPT/Codex plan. When the 5h window crosses the conserve line (default 50%, OSRC_CONSERVE_THRESHOLD), move mechanical, parallel, or long grind off Claude and say why: "You're at 95% of your 5h window, routing this to GLM on Devin (free), keeping Claude for judgment." Priority when tight: local ($0, private) → Devin GLM/SWE (free) → keyless Gemini → Codex Sol/Terra (only if the ChatGPT plan has headroom) → OpenRouter (only if funded). Adapt to what the user has: a Codex-only user never gets a Devin tour. Auto and Hybrid do this automatically; You-drive recommends and waits. Conservation changes routing only, never quality, safety, or consent.
When the user hasn't named a model, run advise: it scores live benchmarks against cost, returns the best capable-tier value that clears the bar, then runs it on the cheapest lane that serves that exact model. It is the model-selection step in every mode; the mode only decides whether you ask first. Cheap is not dumb: glm/hy3/deepseek/kimi are capable tier and get flagship-grade prompting. Details: references/model-advisory.md, references/effort-and-tiers.md.
The exclude list (brief prints it; exclude add|rm|ls) filters visible model choices and refuses matching -m requests. Unobservable engine defaults and automatic image-backend selection are outside that guarantee. When the user says "never use X", run exclude add X; chat alone does not persist it. See references/lanes-and-models.md.
run/explore (read-only) · research (sandboxed exec, devin/codex) · edit (auto-accept edits) · yolo (all tools, no sandbox; use sparingly). Wrap any verb in bg for supervised background work (poll status), or fanout for N parallel jobs.
session is the default delegation mode. You act as the user toward each delegate: session read shows its real work, session send "…" steers it and answers its approval prompts so it never stalls, session model <name> switches its model (session model fable re-pins a Fable session that drifted to Opus; run it while idle), session stop ends it. The reason: a headless bg/fanout delegate that hits an approval wall goes permission-blocked and dies unseen. Use headless only for a non-interactive, CI, or detached caller, or a wide fan-out of independent one-shot jobs, and say so. Fable-pin, heartbeat, Windows broker, claims: references/mechanism.md.
Offer a bounded delegate→check→retry cycle on a cheap external model whenever a task fits one, without waiting to be asked. Say in plain language what it will do, what counts as done, and what stops it: "That's a build-until-the-tests-pass job. Want me to hand it to GLM and keep re-running your suite until it's green? I'll stop if it stalls or after 20 minutes." The user says yes; they never name a shape or a flag.
Pick the shape yourself:
loop verify. Add --worktree when a bad attempt must not touch the user's checkout.loop escalate (budget model first, a tier up only when the check keeps failing).loop resume <id>.references/loops.md.Derive the check from this session's definition of done: if the user said "make the failing auth tests pass", the check is that test command. A vague check reports finished work as failed. The loop ends the moment the check passes; --max (default 6) is a runaway backstop, and --max-minutes bounds open-ended work better, since rounds are not equal work.
Skip the loop when nothing external can verify the result (a model would be marking its own homework): delegate once and read it. If a human has to decide mid-way, use session and steer live. Every loop is bounded, disk-backed, externally verified, and ends in one honest state (success/blocked/max_turns/max_time).
--provider needed)| Alias(es) | Lane |
|---|---|
sol / terra / luna / gpt-5.5 | codex-native (ChatGPT sub); --provider claudex runs it inside Claude Code when doctor says claudex READY |
fable / opus / sonnet / haiku | claude-native (Claude sub) |
gemini-pro / gemini-flash / gemini-flash-lite | gemini (agy keyless) |
glm / hy3 / deepseek / any OpenRouter id | OpenRouter (--provider cc/codex); capable tier |
swe / swe-1.7 / kimi / any Devin id | devin (default); glm/deepseek self-heal here when OpenRouter is out of credits |
ollama:<m> / local:<m> | local (keyless, private, $0) |
| any TokenRouter gateway id | tokenrouter (--provider tokenrouter): cloud gateway, -m required and passed verbatim; key TOKENROUTER_API_KEY |
gpt-image / nano-banana | image only (image subcommand) |
| any model the user configured | droid / cursor / warp / hermes / cline / pi / grokbot (--provider …): the user's own agent CLIs and models, -m verbatim. When they say "use warp/droid/cline", this is the lane, not devin. |
A pinned Claude, GPT, or Gemini model runs on its own native lane, not Devin. -m opus, -m fable, -m claude-opus-5-5, -m claude-opus-5-5[1m], and any claude-*/gpt-5.*/gemini-* id resolve to the claude/codex/gemini-native lane by themselves. Leave out --provider cc for a Claude model: that flag means the OpenRouter transport, not the Claude subscription. "Spin up Fable and Opus 5.5" is -m fable and -m opus (or the pinned ids) on the claude-native lane, on the user's Claude subscription. Putting that on Devin burns the wrong limits, and it is the most common routing mistake. Full table and image backend order: references/lanes-and-models.md.
Every delegated run gets a watcher in the same turn you launch it, and you report to the user every ~2 minutes (or on a state change) until it ends: what is happening now, which model(s) and lane(s) are running, which agent is on what. A detached job nobody watches is the failure this tool exists to prevent. If you cannot watch a run, say so and cancel it. A launch prints NOW WATCH IT, and later calls list unwatched jobs: watch or cancel those before anything else.
Agent harnesses (Claude Code, Codex) take a turn only on user input or when a background command they started exits. So in the same turn as every launch, start outsourcerer.sh wait <job-or-session-id> as a background command (Claude Code: Bash run_in_background: true), one per job. It returns when that run ends, with its output, and that wakes you. It works for bg jobs and for tmux runs alike; the launch prints the exact line as WAKE. In Claude Code the plugin's stop guard holds your turn open, naming the missing wait lines, if you try to end it with an unwaited run still going.
Chat bots and other message-driven orchestrators cannot poll: export OSRC_HEARTBEAT_WAKE="<your notifier>" before launching so the beacon wakes you. An ASYNC SUPERVISION warning means it is unset. Cadence, wake payload, digest switch, and fleet: references/jobs-and-safety.md.
consent grant (or --cloud-ack); it is remembered in ~/.outsourcerer/cloud-consent. Read a gate refusal before retrying: the error names the fix.references/tab.md.~/.outsourcerer. The error spells out the two fixes (allowWrite, or OSRC_HOME=); apply one before rerunning.outsourcerer.cmd/.ps1 launch it. session start is not supported on Windows (only session read goes through the winpty broker); use run/edit/bg/fanout there.Core: brief · mode · consent · run/explore/research/edit/yolo · session · bg/fanout (+ status/watch/result/cancel) · loop · fleet (ls/show/name/supervise: your Claude Code sessions plus Outsourcerer's own jobs, not other tools' independent sessions) · advise · doctor · models. Factory: plan · task · land · flow · exclude. More: suggest/deals · estimate · tab · second-opinion · image · continue · tap · sanitize · parity* · posture · classify · cleanup/gc. Job states and next steps (permission-blocked is not blocked: rerun with yolo or restructure): references/jobs-and-safety.md.
For multi-step work, use a plan: disk-backed tasks receive a supplied spec and bounded results from direct dependencies (plan new → task add → plan run). Mark each task ship (commits plus the done contract) or scout (report only, no shell check). Ship checks are optional; configure --check to require one. Human decisions become held tasks; release them with an answer. land serializes delivery and re-runs configured checks on the merged result, protecting local changes while allowing a clean target checkout to advance. Remote publication requires --pr or task --deliver pr. After a crash, rerun plan run --plan <name>. Guide: references/factory.md.
Worktrees isolate files, not permissions. An unsandboxed worker runs with your user's rights, including access outside its worktree and to shared Git state. Use sandboxed verbs and lanes for untrusted work.
references/mechanism.md: setup, provider flags, tier wrapping, --with injection, session modereferences/lanes-and-models.md: full alias/lane table, native and engine lanes, image backends, exclude list, failoverreferences/jobs-and-safety.md: background jobs, watchdog, exit codes, cloud gate, watching, fleetreferences/parallel-and-fanout.md: fanout, per-agent routing, gauntlet recipe, self-healreferences/effort-and-tiers.md: --effort per lane, capability-vs-price tiersreferences/tab.md: cash vs plan-limit accounting, estimatesreferences/model-advisory.md: advise: classification, scoring, thresholds, fallbackreferences/second-opinion-and-parity.md: second-opinion, verified Claude runs, parity, install paths, env varsreferences/loops.md: choosing a loop, loop verify/escalate/resume, recipesreferences/agentic-local.md: local models driven inside the harnessreferences/vocabulary-hygiene.md: sanitize and fallback-trigger vocabularyreferences/factory.md: plans, done contract, held decisions, merge gate, flows, crash recoveryreferences/factory-tasks-cli.md: every plan and task flag, the brief, plan filesreferences/factory-land-cli.md: every land flag, done-contract rules, evidence.jsonreferences/factory-flow-cli.md: plan run, flow, and the flow JSON formatevals/evals.json (opens in a new tab)references/agentic-local.md (opens in a new tab)references/effort-and-tiers.md (opens in a new tab)references/factory-flow-cli.md (opens in a new tab)references/factory-land-cli.md (opens in a new tab)references/factory-tasks-cli.md (opens in a new tab)references/factory.md (opens in a new tab)references/flows/best-of-n.json (opens in a new tab)references/flows/council-build.json (opens in a new tab)references/flows/spec-build.json (opens in a new tab)references/jobs-and-safety.md (opens in a new tab)references/lanes-and-models.md (opens in a new tab)references/loops.md (opens in a new tab)references/mechanism.md (opens in a new tab)references/model-advisory.md (opens in a new tab)references/parallel-and-fanout.md (opens in a new tab)references/second-opinion-and-parity.md (opens in a new tab)references/tab.md (opens in a new tab)references/vocabulary-hygiene.md (opens in a new tab)scripts/anthropic-openai-shim.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alexgreensh/outsourcerer --plugin outsourcererOther plugins' skills for the same job