### Tier override and dispatch examples Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Shows three example invocations of the outsourcerer.sh CLI: one with explicit --tier budget, one with default frontier wrapper for opus, and one with --tier raw for codex. Demonstrates the --tier flag and provider selection. ```bash outsourcerer.sh --provider cc run --tier budget -m z-ai/glm-5.2 "grep the repo for TODOs and list them" outsourcerer.sh run -m opus "design the retry policy" # frontier wrapper, claude-native outsourcerer.sh --provider codex run --tier raw -m hy3 "reply PONG" ``` -------------------------------- ### outsourcerer.sh session commands Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Shows the full set of `session` subcommands: start, read, send, model, and stop. Use `session start -m MODEL` to launch the model's native TUI in the current directory; `session read` captures the pane (wait ~8s after start); `session send` sends a prompt; `session model [NAME]` switches the model live; `session stop` tears down. The tmux session name derives from the working directory, so separate repos get separate sessions. ```bash .../outsourcerer.sh session start [-m MODEL] # launches the model's native TUI in $PWD (alias picks the lane; devin default; trust gate skipped) .../outsourcerer.sh session read # capture current pane (wait ~8s after start) .../outsourcerer.sh session send "your prompt" .../outsourcerer.sh session read # read the response .../outsourcerer.sh session model [NAME] # switch model live (drives the TUI's opt+m picker) .../outsourcerer.sh session stop # tear down ``` -------------------------------- ### Run outsourcerer with different providers (cc, codex) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Shows example invocations of outsourcerer.sh with the --provider flag to select the offload backend. Use these commands to delegate tasks to cc or codex providers. The third example pins a specific OpenRouter model with -m to skip model escalation. ```bash .../outsourcerer.sh --provider cc run "Using subagents, map how auth works across this repo." ``` ```bash .../outsourcerer.sh --provider codex edit "Rename foo() to bar() across src/ and fix call sites." ``` ```bash .../outsourcerer.sh --provider cc yolo -m z-ai/glm-5.2 "Run the full test suite and summarize failures." ``` -------------------------------- ### The Tab output example Source: https://github.com/alexgreensh/outsourcerer/blob/main/README.md Example output of the Tab command showing measured cash costs and subscription plan usage. The cash line is the exact per-generation OpenRouter cost, not an estimate; a $0 cash line does not mean free because subscription lanes spend finite plan rate limits. ```text == The Tab == (real output, 2026-07-10) runs recorded : 12 cash billed (measured) : $0.002245 REAL per-generation OpenRouter cost, captured on bg runs cash lanes, est-only : 5 run(s) foreground; run in bg to capture measured $ on your subscription : 3 run(s) $0 cash, spent your ChatGPT / Claude / Antigravity plan limits ChatGPT plan usage, 5h window: 6% (resets in 4h 32m) · weekly: 1% note: a $0 cash line is NOT "free", subscription lanes spend finite plan rate limits. ``` -------------------------------- ### Inject skills and MCP servers with --with (outsourcerer.sh) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Shows three example invocations of outsourcerer.sh using --with to grant specific skills and MCP servers. The first transfers the full 'recall' and 'repo-forensics' skills, the second adds only the 'whatsapp' MCP server, and the third grants every installed skill. These commands demonstrate the syntax for combining multiple grants in one quoted string. ```bash outsourcerer.sh --provider cc run --with skills=recall,repo-forensics "…" # the WHOLE skill transfers ``` ```bash outsourcerer.sh --provider cc run --with "skills=recall mcp=whatsapp" "…" # + only that MCP server ``` ```bash outsourcerer.sh --provider cc run --with skills=all "…" # every installed skill ``` -------------------------------- ### Failover notice with available target Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/jobs-and-safety.md Example of the failover notice shown when a delegated run dies due to the harness's plan limit and a ready target is found. The message states the reason, the available harness, and the move to the same model. ```text >>> [failover] Devin daily quota spent (shared daily plan bucket; no free models there until reset in 11h26m). You have Droid (Factory) — moving this to kimi-k3 there (the same model) and continuing. ``` -------------------------------- ### Council-build debate sessions (bash) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Starts two interactive sessions for advisor A (sol) and advisor B (fable) to debate a plan. The loop runs M rounds where each advisor reads the other's last turn and sends a rebuttal. The plan converges when the advisors agree or you synthesize the winning plan. ```bash outsourcerer session start -m sol # advisor A outsourcerer session start -m fable # advisor B # loop M rounds: session read A -> session send B "rebut A's plan: " -> session read B -> session send A "..." ``` -------------------------------- ### List, name, and show fleet sessions with outsourcerer fleet Source: https://github.com/alexgreensh/outsourcerer/blob/main/README.md Lists all running AI sessions, assigns real names based on actual work, and shows details for a specific session ID. Use these commands to get an honest overview of your fleet without hunting through tabs. ```bash outsourcerer fleet ls # every session you're running, one honest list outsourcerer fleet name # real names from real work, not "session-a3f2" outsourcerer fleet show ``` -------------------------------- ### Switch models mid-conversation with continue -m Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Use `continue -m MODEL` to swap models on an in-flight conversation while preserving full context. This allows starting on a free model and escalating a hard turn to a premium model without losing state. ```bash .../outsourcerer.sh run "Map the failure across these modules using subagents." ``` ```bash .../outsourcerer.sh continue -m claude-opus-4.8 "Now write the fix for the trickiest module." # premium turn ``` ```bash .../outsourcerer.sh continue -m glm-5.2 "Apply the same pattern to the rest." # back to free ``` -------------------------------- ### Image generation command examples (auto-resolved, force Codex, force Gemini) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/lanes-and-models.md Shows three invocations of `outsourcerer.sh image`: auto-resolved, forcing `gpt-image` via Codex, and forcing `nano-banana` via Gemini. The first uses a prompt without an output file, the latter two specify an output file. The `-m` flag forces a specific backend. ```bash outsourcerer.sh image "a red panda skateboarding through neon rain, synthwave poster style" # auto-resolved outsourcerer.sh image -m gpt-image "isometric SaaS dashboard icon set, flat pastel" icons.png # force Codex outsourcerer.sh image -m nano-banana "..." icons.png # force Gemini ``` -------------------------------- ### Failover notice with no available target Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/jobs-and-safety.md Example of the failover notice when no ready harness has headroom. The run stops and the message indicates the soonest reset from the down lanes' stated windows. ```text >>> [failover] every lane you have is at its limit or absent; nothing to fail over to (Devin daily quota spent …). Waiting for Devin in 11h26m or add a lane. ``` -------------------------------- ### Trusted lanes configuration for cloud gate Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/jobs-and-safety.md Trusts the devin lane for a specific repository, skipping the credential-file block for that repo. The default is empty, so an untouched install is as strict as before. Paths resolve through symlinks and match on directory boundaries. ```json { "devin": ["/Users/you/code/that-one-repo"] } ``` -------------------------------- ### Pin Gemini flash alias in ~/.outsourcerer/models.local Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/lanes-and-models.md Example row for ~/.outsourcerer/models.local that pins the gemini-flash alias to a concrete model id (gemini-3.7-flash) for the gm lane at mid tier. Rows here override the built-in table on every lane, so this is a one-line fix for retired or renamed ids that survives plugin updates. ```plaintext # pin the keyless flash lane to a specific release gemini-flash|gemini-3.7-flash|gm|mid ``` -------------------------------- ### List available models with outsourcerer.sh models Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/lanes-and-models.md Run this command to list the currently selectable models on Devin, since the free/cheap lane shifts frequently. ```shell .../outsourcerer.sh models ``` -------------------------------- ### Run local inference with model aliases and --provider local Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/lanes-and-models.md Use these commands to run inference on your own hardware. Model aliases like ollama:qwen2.5-coder, lmstudio:, and local select the local lane without needing --provider, though --provider local also works. The local alias auto-detects the server and auto-picks a loaded model. The commands stream directly to the server's /v1/chat/completions endpoint. ```bash outsourcerer.sh run -m ollama:qwen2.5-coder "summarize these release notes" # Ollama :11434 outsourcerer.sh run -m lmstudio: "..." # LM Studio :1234 outsourcerer.sh run -m local "..." # auto-detect the server AND auto-pick a loaded model outsourcerer.sh --provider local run -m "..." ``` -------------------------------- ### Council-build verify with advisor (bash) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Uses an advisor (sol) to check fidelity of the diff against plan.md and list gaps. This is the verify stage in the council-build loop, ensuring the build matches the plan. ```bash outsourcerer run -m sol "does this diff match plan.md? list gaps" ``` -------------------------------- ### outsourcerer.sh tab / estimate / suggest usage Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/tab.md Shows the three main cost-tracking commands: tab for cash billed and plan-limit usage, estimate for a quote table across the chain plus the Opus counterfactual, and suggest for live cheap and free models per platform. The suggest command reads each platform's live catalog (OpenRouter API + Devin CLI) and ranks by price/availability only. ```bash outsourcerer.sh tab # cash billed + subscription plan-limit usage, by model outsourcerer.sh estimate "…" # quote table across the chain + the Opus counterfactual outsourcerer.sh suggest # live cheap & free models available per platform right now ``` -------------------------------- ### outsourcerer advise human-readable output (default) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/model-advisory.md Default human-readable output of the advise command. Shows the recommended model plus all candidates sorted by value ratio; candidates marked >> are recommended. Ends with run and override commands, including the --effort flag and the --effort override. ```text == outsourcerer advise == task: refactor the authentication module to use JWT tokens category: code difficulty: normal effort: medium scoring by: coding_index (threshold: 60) benchmark data: live (OpenRouter, 2026-07-14T12:00:13.353Z) --- recommendation --- model: glm-5.2 (glm-5.2) lane: dv why: best capable-tier value (meets code threshold 60, effort medium) --- all candidates (sorted by value ratio, >> = recommended) --- >> glm-5.2 glm-5.2 lane=dv score=76.8 $/M=plan limits ratio=7680.00 OK sol gpt-5.6-sol lane=cx score=77.4 $/M=plan limits ratio=7740.00 OK ... Run with: outsourcerer.sh run -m glm-5.2 --effort medium "refactor the authentication module to use JWT tokens" Override: outsourcerer.sh run -m --effort medium "..." (you know better, pick your own) ``` -------------------------------- ### Invoke outsourcerer.sh with subcommand and args Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/SKILL.md Single entrypoint for the Outsourcerer skill. Global flags (--provider, --cloud-ack) work anywhere, before or after the subcommand. ```bash ${CLAUDE_PLUGIN_ROOT}/skills/outsourcerer/scripts/outsourcerer.sh [args] ``` -------------------------------- ### outsourcerer.sh fanout usage and knobs Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/parallel-and-fanout.md Shows the three job source forms (agent files, --tasks file, inline tasks) and the knobs forwarded to every agent: -m MODEL, --effort E, --tier T, --with SPEC, --verb run|research|edit|yolo, --max N (default 6), --label-prefix P. Also details --agents extras (--sub, --preamble, --task) and notes that _*.md files are skipped as shared. ```bash # Source A, one job per agent-prompt file (the gauntlet bridge): outsourcerer.sh --provider cc fanout --agents [--preamble FILE] [--sub K=V ...] # Source B, one job per non-empty/non-# line: outsourcerer.sh --provider cc fanout --tasks tasks.txt # Source C, inline tasks (each becomes one job): outsourcerer.sh --provider cc fanout -- "audit auth.py" "audit db.py" "audit api.py" # knobs (forwarded to EVERY agent): -m MODEL --effort E --tier T --with SPEC --verb run|research|edit|yolo # --max N (concurrency cap, default 6) --label-prefix P # --agents extras: --sub KEY=VALUE (repeatable; substitutes {KEY} in each prompt), # --preamble FILE (prepended to every agent, e.g. a shared _universal-override.md), # --task "" (appends a "## Task" section to every agent's role body — so a LIBRARY # of role definitions, e.g. agency-agents, runs against your task with no file edits). # Files named _*.md in an --agents dir are treated as shared and SKIPPED as agents. ``` -------------------------------- ### Council-build verify loop (bash) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Hands the plan to the cheap engine (glm) as a bounded verify-loop using outsourcerer loop verify. The check argument contains the tests, and the build command builds per plan.md. Run from an isolated worktree if attempts must not touch main. ```bash outsourcerer loop verify -m glm --check "" "build per plan.md" ``` -------------------------------- ### Run a multi-agent skill fanout with outsourcerer.sh Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/parallel-and-fanout.md Launches a fanout of agent prompt files from a skill's `agents` directory to a cheaper engine (cc) with a universal override preamble and placeholder substitutions. Use `--verb run` for read-only agents; use `--verb yolo` (cc) or `--verb research` (devin/codex) if agents must run commands. `--effort high` (or `max`) is recommended for high-stakes reasoning. ```bash cd outsourcerer.sh --provider cc fanout \ --agents ~/.claude/skills//agents \ --preamble ~/.claude/skills//agents/_universal-override.md \ --sub TARGET_PATH="$PWD" \ --sub CHANGED_FILES="$(git diff --name-only origin/main 2>/dev/null)" \ --sub LANG=bash --sub WEB_URL= \ -m glm --effort high --verb run --max 6 # then: outsourcerer.sh fanout wait outsourcerer.sh fanout collect # -> one COLLECTED.md with every agent's findings ``` -------------------------------- ### Run outsourcerer loop verify with check and max attempts Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Runs the built-in loop verify command with a delegate model, a check command, and a task description. The loop retries up to --max attempts (default 3), appending the last check output as feedback, and stops when the check exits 0 (success), when the same failure occurs twice (blocked), when --max-minutes is exceeded (max_time), or when --max attempts are exhausted (max_turns). Exit codes: 0 success, 2 max_turns, 3 blocked. Attempts and check output are saved under ~/.outsourcerer/loops//. The loop edits the current tree, so run it from a worktree you created yourself for build loops to avoid touching main. ```bash outsourcerer loop verify -m glm --check "npm test" [--max 3] [--verb edit|yolo] "make the auth tests pass" ``` -------------------------------- ### Delegate visual review to Gemini with outsourcerer.sh Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/lanes-and-models.md Use these commands to delegate visual review tasks to Gemini models. The first uses the gemini-flash alias with the impeccable skill for design system checks; the second uses gemini-pro for a general critique. Both rely on the keyless agy vehicle when available, or fall back to gemini-cli with an API key. ```bash outsourcerer.sh run -m gemini-flash --with skills=impeccable "Review screenshot.png against our design system; list violations." outsourcerer.sh run -m gemini-pro "Critique this onboarding flow for cognitive load and hierarchy: " ``` -------------------------------- ### outsourcerer advise --json output Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/model-advisory.md JSON output when run with the --json flag. Contains task details, score field, threshold, the recommendation object, and a boolean flag indicating whether benchmark data is available. ```json { "task": "refactor the authentication module to use JWT tokens", "category": "code", "difficulty": "normal", "effort": "medium", "score_field": "coding_index", "threshold": "60", "recommendation": { "alias": "glm-5.2", "model": "glm-5.2", "lane": "dv", "tier": "capable", "reason": "best capable-tier value (meets code threshold 60, effort medium)" }, "benchmark_data_available": true } ``` -------------------------------- ### Run outsourcerer doctor preflight check Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Run once per session to verify the outsourcerer environment is ready. If it reports 'NOT logged in', the user must run the login command themselves because it requires an interactive browser flow. ```bash ~/.claude/skills/outsourcerer/scripts/outsourcerer.sh doctor ``` -------------------------------- ### Run fanout with routing and manage squad lifecycle Source: https://github.com/alexgreensh/outsourcerer/blob/main/README.md Run a squad of agents from a folder with optional routing, then check status as JSON, collect results, and clean up. The --worktree flag runs each editing specialist in its own disposable git worktree; worktrees are preserved after the run and cleanup refuses to delete one with unmerged work unless --force is used. ```bash outsourcerer fanout --agents ./engineering --route 'security-*=glm-5.2, *=haiku' --task "audit auth" --worktree outsourcerer fanout status --json # squad state as a stable JSON envelope your code parses outsourcerer fanout collect # every result in one place, then: outsourcerer cleanup ``` -------------------------------- ### Per-agent routing via YAML frontmatter Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/parallel-and-fanout.md Optional per-agent routing in an --agents .md file using YAML frontmatter. Keys: name, model (alias/OpenRouter id), effort or reasoning, tier, lane or provider. A file without routing keys uses the default chain. The launch banner shows the routed engine. ```bash # PER-AGENT ROUTING (opt-in, additive): an --agents .md file may declare its own lane in YAML frontmatter, # so a heterogeneous crew sends each agent to its best/cheapest engine in one command: # --- # name: security-auditor # model: glm-5.2 # any alias/OpenRouter id; auto-routes the lane # effort: high # (or `reasoning:`) tier: lane|provider: # --- # A file with NO routing key behaves exactly as before (uses the default chain). The launch banner # shows each agent's routed engine, e.g. `+ launched security-auditor -> [glm-5.2]`. ``` -------------------------------- ### Run parity-hermes reverse bridge Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/second-opinion-and-parity.md Symlinks the outsourcerer skill into $HERMES_HOME/skills to allow Hermes sessions to delegate tasks back to Claude, Codex, or GLM. ```bash outsourcerer.sh parity-hermes # symlinks outsourcerer into $HERMES_HOME/skills (idempotent, self-healing) ``` -------------------------------- ### Route without editing files using --route Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/parallel-and-fanout.md Uses --route with agent NAME globs to map patterns to models. First matching pattern wins; * is catch-all. Also shows --task to append a task to each role file. Includes routing precedence: global -m > --route name match > agent frontmatter > default chain. ```bash # ROUTE WITHOUT EDITING FILES: `--route 'pattern=model,...'` maps agent NAME globs to models, so you route # a whole third-party library (e.g. agency-agents) without touching any file: # fanout --agents ./engineering --route 'security-*=glm-5.2, *architect*=sol, *=haiku' --task "audit the repo" # First matching pattern wins; `*` is the catch-all. `--task ""` appends a task to each role file so a # library of pure role definitions runs against your work with zero edits. # ROUTING PRECEDENCE (unambiguous): global `-m` > `--route` name match > agent frontmatter > default chain. # So an unmodified library "just works" on the default lane; you add control only when you want it. ``` -------------------------------- ### Run second-opinion consensus-gated escalation Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/second-opinion-and-parity.md Executes a query across two models to check for consensus, escalating to a premium model if they disagree. ```bash outsourcerer.sh second-opinion "Is this regex vulnerable to catastrophic backtracking? " outsourcerer.sh second-opinion -m z-ai/glm-5.2,deepseek/deepseek-v4-pro "…" # pick the pair ``` -------------------------------- ### Fanout lifecycle commands Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/parallel-and-fanout.md Lists the fanout lifecycle commands: status, wait, collect, and list. gid is printed at launch. wait can use --for N to cap seconds; collect writes findings/NN-label.md and COLLECTED.md. ```bash # Lifecycle (gid is printed on stdout at launch): outsourcerer.sh fanout status # live table: job, state, age, label, last OSRC:: line outsourcerer.sh fanout wait # block until all members terminal (add --for N to cap seconds) outsourcerer.sh fanout collect # every agent's final message -> findings/NN-label.md + COLLECTED.md outsourcerer.sh fanout list # all groups ``` -------------------------------- ### Best-of-N tournament fanout (bash) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Generates N candidates in parallel using outsourcerer fanout with a max of 4 concurrent runs on the cheap engine (glm). The user then reads each result, judges, and keeps the best. This shape is inherently bounded and safest when verification is expensive. ```bash outsourcerer fanout --max 4 -m glm -- "impl approach A" "impl approach B" "impl approach C" # then: read each result, judge, keep the best. ``` -------------------------------- ### Run verified Claude model execution Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/second-opinion-and-parity.md Uses the claude-native lane to run a task and verify the model used, preventing silent fallbacks to default models. ```bash outsourcerer.sh run -m fable "…" ``` -------------------------------- ### Run read-only exploration with auto permission Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Use `run` for read-only fan-out tasks like code reading and exploration. The `auto` permission only approves read-only tools, so delegated agents cannot execute external binaries. ```bash .../outsourcerer.sh run "Using parallel subagents, map how auth works across this repo and report each module's role." ``` -------------------------------- ### Background job commands: bg run, status, watch, result, logs, cancel Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/jobs-and-safety.md Use these commands to dispatch and manage background jobs. The first command launches a job and captures its ID; subsequent commands query or control that job. The result command prints only the final message (last.txt), which is the primary output to read. ```bash ID=$(outsourcerer.sh --provider codex bg run -m z-ai/glm-5.2 "map auth across the repo") outsourcerer.sh status # table of all jobs (state, age, model, last progress) outsourcerer.sh status $ID # one job outsourcerer.sh watch $ID # poll until terminal (add --for N to cap seconds) outsourcerer.sh result $ID # print ONLY the final message (last.txt), the thing to read outsourcerer.sh logs $ID -n 80 # raw stream, forensics only outsourcerer.sh cancel $ID # kill the tree, mark canceled ``` -------------------------------- ### Continue conversation with continue command Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Use `continue` to add a follow-up turn to the same Devin conversation, allowing the agent to continue working on the same task. ```bash .../outsourcerer.sh continue "Now also update the docs to match." ``` -------------------------------- ### Run with a specific model using -m flag Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Use the `-m` flag with `run` or `edit` to pick a different model for a single call, overriding the default. The `-m` flag is flexible and can be used with any command. ```bash .../outsourcerer.sh run -m deepseek-v4-pro "..." ``` ```bash .../outsourcerer.sh edit -m claude-sonnet-4.6 "..." # premium: see cost note below ``` -------------------------------- ### BEFORE: Scattered droid lane code fragments Source: https://github.com/alexgreensh/outsourcerer/blob/main/docs/lane-contract-design.md Shows the current scattered implementation of the droid lane across 8 sites in the shell script. Includes case statements, readiness checks, route delegation, model defaults, cost disclosure, cloud classification, and the full delegate function. Use this to understand the current state before refactoring. ```shell # 1. _effective_lane:1952 — engine lanes where provider IS the lane case "$2" in droid|cursor|hermes|warp|cline|claudex|tokenrouter) printf '%s' "$2"; return ;; esac # 2. _ready_lanes:6093 — bespoke readiness have droid && lanes="$lanes droid=byok" # 3. route_delegate:12852 — engine-lane alias skip if [ "$MODEL_EXPLICIT" = "1" ] && [ "$PROVIDER" != "droid" ] && ... ; then # 4. route_delegate:12878+12883 — engine CLI gate + install hint case "$disp" in droid) have droid || die "droid CLI not on PATH (Factory Droid lane). Install it using the official guide: https://docs.factory.ai/cli. Then run 'droid' once to log in." ;; ... # 5. _route_provider_default_model:12733 droid|cursor|hermes|warp|cline) printf '%s-default' "$1" ;; # 6. _lane_cost_disclosure:2472 droid) printf 'cash depends on your Factory plan or BYOK model; BYOK usage is measured or estimated by its provider' ;; # 7. _is_cloud_lane:11620 / _route_resolution:12681 droid) return 0 ;; # cloud ccnative|cxnative|gmnative|devin|droid|cursor|hermes|warp|cline) ROUTE_COST_CLASS=limited ;; # 8. _droid_effort:10938 + delegate_droid:10943 — the whole delegate _droid_effort() { case "$1" in minimal) echo "none" ;; low) echo "low" ;; medium) echo "medium" ;; high|xhigh|max) echo "high" ;; *) echo "" ;; esac } delegate_droid() { local tier="$1" ... have droid || die "droid CLI not on PATH ..." case "$tier" in auto) aflag=(--auto low); posture="READ-ONLY ..." ;; accept-edits) aflag=(--auto medium); posture="MUTATING ..." ;; autonomous) aflag=(--auto medium); posture="MUTATING ..." ;; dangerous) aflag=(--auto high); posture="DANGER ..." ;; esac if [ "${MODEL_EXPLICIT:-0}" = "1" ] && [ -n "$id" ]; then id="$(_lane_model_for droid "$id")"; ...; _validate_model_token "$id"; mflag=(-m "$id") fi local de; de="$(_droid_effort "$EFFORT")"; ... eff=(-r "$de") ... droid exec ${mflag[@]} ${aflag[@]} ${eff[@]} -o text "$wrapped" record_ledger droid "$ledger_model" "$ttier" "$tier" "$task" "$(_fg_run_cost droid 0 "")" droid } ``` -------------------------------- ### Trigger agentic local with tool-requiring verbs Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/agentic-local.md Use a tool-requiring verb on the local lane to trigger agentic local mode. The model must support tool-calling (e.g., qwen2.5-coder, llama3.1); small models often don't. ```bash outsourcerer.sh --provider local research -m local "read auth.py and list its risks" # read+tools outsourcerer.sh --provider local edit -m ollama:qwen2.5-coder "..." # +writes ``` -------------------------------- ### Worktree isolation with --worktree Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/parallel-and-fanout.md Describes how --worktree runs each job in its own disposable git worktree at .outsourcerer/worktrees/ on branch outsourcerer/. Worktrees are preserved after the run; cleanup refuses to delete uncommitted/unmerged worktrees without --force. No auto-merge. ```bash # WORKTREE ISOLATION (opt-in): `--worktree` (on fanout or bg) runs each job in its own disposable git # worktree (`.outsourcerer/worktrees/` on branch `outsourcerer/`), so parallel EDITING # crews never collide. Worktrees are PRESERVED after the run (never auto-deleted). Inspect the branch, # integrate what you want, then `outsourcerer cleanup ` — which REFUSES to delete a # worktree with uncommitted or unmerged commits unless you pass `--force`. No auto-merge; you own the merge. ``` -------------------------------- ### Run outsourcerer with TokenRouter provider Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/lanes-and-models.md Invokes the outsourcerer script with the tokenrouter provider, passing a model ID and a prompt. The -m flag is required and passed verbatim to the gateway's model catalog. ```bash outsourcerer.sh run --provider tokenrouter -m "summarize these release notes" ``` -------------------------------- ### Post-contract route_delegate core pseudocode Source: https://github.com/alexgreensh/outsourcerer/blob/main/docs/lane-contract-design.md Shows the post-contract core of route_delegate: it looks up the lane descriptor once, checks readiness and health, verifies CLI availability, resolves the model, validates catalog lanes, and then calls descriptor methods for routing, cloud disclosure, and dispatch. This replaces the previous 12-case branch logic and per-delegate functions. ```pseudocode # pseudocode for the post-contract route_delegate core desc = lane_descriptor_for(resolved_lane) # one lookup, not 12 case branches if !desc.ready() or desc.health.mark == "down": # Slice-1 skip lives here skip_or_fallback(desc) return if desc.cli and !have(desc.cli): die(desc.cli_missing_hint) id = desc.owns_catalog ? MODEL : desc.resolve_model(MODEL) if !desc.default_model and !MODEL_EXPLICIT: die("needs -m") if desc.catalog_lane: _catalog_validate(desc.catalog_lane, id) _route_resolution(desc.disp, id, desc.cost_class) # class from descriptor _cloud_disclose(desc.disp, id, task) if desc.is_cloud desc.dispatch(tier, argv) # the delegate body, now a method ``` -------------------------------- ### Run edit tasks with accept-edits permission Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Use `edit` for tasks that modify files, such as bulk edits or refactors. The `accept-edits` permission allows the agent to apply changes to the repository. ```bash .../outsourcerer.sh edit "Using subagents, rename foo() to bar() across src/ and update all call sites and tests." ``` -------------------------------- ### Run research with sandboxed tool execution Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Use `research` when the agent must run tools like the recall binary or scripts. It uses `autonomous --sandbox` to allow execution inside an OS-level sandbox, enforcing Read/Write scopes. Falls back to `yolo` if a scope denial occurs. ```bash .../outsourcerer.sh research "Using parallel subagents AND the recall binary, find how we added the codex provider before; cite session IDs." ``` -------------------------------- ### Grep for lane name and related identifiers Source: https://github.com/alexgreensh/outsourcerer/blob/main/docs/lane-contribution-checklist.md Run this grep command to find all occurrences of the lane name, display vehicle, and provider name in outsourcerer.sh. Any hits outside the lane's own descriptor or delegate_ function indicate sites that should be retired. ```bash grep -n "\|\|" outsourcerer.sh ``` -------------------------------- ### Evaluator-optimizer loop (bash) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Generates a draft, scores it against an explicit rubric using outsourcerer second-opinion, and refines until the score clears the bar or a round yields no improvement. The loop stops when score >= bar or diminishing returns are detected. ```bash draft=$(outsourcerer run -m glm "write ") loop: score=$(outsourcerer second-opinion "score this 1-10 against: . ") [ score >= bar ] && stop; draft=$(outsourcerer run -m glm "improve per: ") ``` -------------------------------- ### Devin sandboxed-proxy TLS failure hint Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/jobs-and-safety.md Diagnostic hint surfaced by outsourcerer after a devin job fails with a TLS handshake error. It names the cause and the fix, but does not change retry, routing, fallback, or classification. ```text devin TLS handshake failed against a local proxy in your shell (rustls cert verify: OSStatus -26276). This usually means a sandboxed/corporate proxy that devin's Rust TLS client won't trust. If you're inside Claude Code's sandboxed Bash tool, re-run this call with the sandbox disabled for devin-backed verbs. ``` -------------------------------- ### classify command usage Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/jobs-and-safety.md Shows the two command-line invocations of outsourcerer.sh classify. The first prints a routing label and reason separated by a tab; the second with --json outputs a JSON object with job_id, label, and reason. ```bash outsourcerer.sh classify # -> ROUTING-LABELreason outsourcerer.sh classify --json # -> {"job_id":..., "label":..., "reason":...} ``` -------------------------------- ### Sweep until-dry loop (bash) Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/loops.md Delegates rounds to outsourcerer run until K consecutive rounds add nothing new (default K=2) or a budget cap. Deduplicates findings against a file on disk (seen=findings.md). The loop increments a dry counter when no new unique findings are produced, otherwise appends to the seen file and resets the counter. ```bash seen=findings.md; dry=0 while [ "$dry" -lt 2 ]; do new=$(outsourcerer run -m glm "find the next batch of ; skip anything already in $seen") [ -z "$new_unique" ] && dry=$((dry+1)) || { append to $seen; dry=0; } done ``` -------------------------------- ### Run parity-codex reverse bridge Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/second-opinion-and-parity.md Appends a managed insource block to $CODEX_HOME/AGENTS.md to allow Codex sessions to delegate tasks back to Claude. ```bash outsourcerer.sh parity-codex # appends a managed insource block to $CODEX_HOME/AGENTS.md (idempotent) ``` -------------------------------- ### droid lane descriptor and functions (AFTER design) Source: https://github.com/alexgreensh/outsourcerer/blob/main/docs/lane-contract-design.md Consolidates the droid lane's configuration and behavior into a single descriptor and functions. The descriptor defines lane properties like name, aliases, provider, CLI, and cost class. The functions provide readiness probing, tier-to-flag mapping, effort mapping, and the dispatch body. The router can read lane properties from the descriptor, eliminating scattered case statements. ```sh # The entire droid lane, in one place: lane_descriptor_droid() { cat <<'DESC' name=droid aliases=droid provider=droid cli=droid cli_missing_hint="droid CLI not on PATH (Factory Droid lane). Install it using the official guide: https://docs.factory.ai/cli. Then run 'droid' once to log in." owns_catalog=yes default_model=droid-default catalog_lane= disp=droid quota_key=droid cost_class=limited is_cloud=yes cost_disclosure=cash depends on your Factory plan or BYOK model; BYOK usage is measured or estimated by its provider participates_health=yes DESC } # ready probe droid_ready() { have droid && printf 'byok'; } # tier -> autonomy flags + posture droid_tier_flags() { case "$1" in auto) printf '%s\t%s' '--auto low' 'READ-ONLY (--auto low: reads + safe read-only cmds, no edits)' ;; accept-edits) printf '%s\t%s' '--auto medium' 'MUTATING (--auto medium: edits + safe commands)' ;; autonomous) printf '%s\t%s' '--auto medium' 'MUTATING (--auto medium; droid has no separate OS-sandbox exec mode)' ;; dangerous) printf '%s\t%s' '--auto high' 'DANGER (--auto high: full autonomy incl. riskier commands)' ;; *) return 1 ;; esac } # effort -> native flag droid_effort_map() { case "$1" in minimal) echo none ;; low) echo low ;; medium) echo medium ;; high|xhigh|max) echo high ;; *) echo '' ;; esac } # the dispatch body (was delegate_droid) droid_dispatch() { local tier="$1"; shift [ "${#REST[@]}" -gt 0 ] || die "no task prompt given" local task="${REST[*]}" id="${MODEL:-}" model_key="${MODEL:-droid}" ledger_model="droid-default" local flags_posture; flags_posture="$(droid_tier_flags "$tier")" || die "bad tier: $tier" local aflag="${flags_posture%%$'\t'*}" posture="${flags_posture#*$'\t'}" local mflag=() if [ "${MODEL_EXPLICIT:-0}" = "1" ] && [ -n "$id" ]; then _validate_model_token "$id"; mflag=(-m "$id") else id="(droid default/configured)"; fi local eff=() if [ -n "$EFFORT" ]; then local de; de="$(droid_effort_map "$EFFORT")" [ -n "$de" ] && { eff=(-r "$de"); printf '>>> [effort] reasoning=%s (native: droid exec -r %s)\n' "$EFFORT" "$de" >&2; }; fi local ttier; ttier="$(resolve_tier "$model_key" "${TTIER:-}")" || ttier="capable" local wrapped; wrapped="$(_build_prompt "$model_key" "$task" "$ttier")" _tier_banner "droid (Factory)" "$id" "$ttier" "$posture | $(_lane_cost_disclosure droid)" local rc=0 droid exec ${mflag[@]+"${mflag[@]}"} ${aflag[@]+"${aflag[@]}"} ${eff[@]+"${eff[@]}"} -o text "$wrapped" || rc=$? record_ledger droid "$ledger_model" "$ttier" "$tier" "$task" "$(_fg_run_cost droid 0 "")" droid printf '>>> [receipt] %s.\n' "$(_lane_cost_disclosure droid)" >&2 return "$rc" } ``` -------------------------------- ### Authenticate Devin via browser login Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/mechanism.md Run by the user when the doctor check reports 'NOT logged in'. This is an interactive browser flow and must not be completed by the assistant. ```bash ! devin auth login ``` -------------------------------- ### Run outsourcerer sanitize to report or rewrite trigger vocabulary Source: https://github.com/alexgreensh/outsourcerer/blob/main/plugins/outsourcerer/skills/outsourcerer/references/vocabulary-hygiene.md Run the sanitize subcommand to report or rewrite trigger vocabulary in prose files. Without --write it produces a dry-run report with line numbers; with --write it edits files in place. Set OSRC_VOCAB_AGGRESSIVE=1 to enable the maximal-calm pass that also softens neutral terms like payload, executor, dead, armed, and disarm. ```bash outsourcerer sanitize path/to/decisions.md # report triggers + line numbers, write nothing outsourcerer sanitize ./notes --write # rewrite every prose file under ./notes in place OSRC_VOCAB_AGGRESSIVE=1 outsourcerer sanitize STATE.md --write ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.