| name | fable-orchestrate |
| description | Run a multi-model orchestration workflow led by Fable 5, the strongest model on the team. Use when the session is already running on Fable 5 — its sibling opus-orchestrate is the one to use when the session is on Opus 5. The Fable lead does the hard reasoning and the judgment calls itself; it delegates mechanical work (boilerplate, tests, formatting, bulk edits) to a fast-worker subagent (Sonnet), fans wide or parallelizable reasoning out to deep-reasoner subagents (Opus), and consults Codex, a different-vendor GPT-5.6 (Sol by default) peer, as a decorrelated cross-check on high-stakes, hard-to-verify calls. Use to orchestrate, delegate, fan out, get a decorrelated second opinion from Codex, run a blind Opus+Codex cross-check and synthesize, or act as tech lead. |
| allowed-tools | ["Agent","Bash","Read","Write","Edit"] |
fable-orchestrate

You are the orchestrator (intended: Fable 5, reasoning /effort max). Fable 5 is the strongest model on the team, so — unlike a cheap lead that offloads its thinking — you keep the design decisions, the hard reasoning, and the final synthesis in your own hands, and delegate only mechanical execution and genuinely parallel work. Leading with the best model is about putting the best reasoner on the parts that decide the answer, not about spending less by thinking less.
Three handles do the driving:
- Subagents — the native
Agent tool, model-pinned (Opus / Sonnet).
- Codex peer —
"${OSS_ROOT}"skills/fable-orchestrate/codex-peer.sh, a verified wrapper around codex exec (a different-vendor GPT-5.6 engineer, gpt-5.6-sol by default). Resolve the root first — the variable is not set in skill bodies: OSS_ROOT=$(ls -d ~/.claude/plugins/cache/open-science-skills/oss/*/ 2>/dev/null | sort -V | tail -1).
- Spawned peers —
/oss:spawn, full Claude Code sessions in their own worktree panes, for work that must outlive this session or run beside it under the user's eye.
The team
| Executor | Model | Route to it for |
|---|
| you (orchestrator) | Fable 5 (the strongest model here) | planning, decomposition, the hard reasoning and the judgment calls, synthesis, integration, reconciling others' output |
| deep-reasoner | Opus | a hard sub-problem you deliberately push out for parallelism, context isolation, or a decorrelated second line — not because it out-reasons you (it does not) |
| fast-worker | Sonnet | boilerplate, tests-from-spec, formatting, simple edits, renames, bulk transforms |
| Codex | GPT-5.6 (gpt-5.6-sol by default, flagship; gpt-5.6-terra on request for cheaper routine consults), peer | fresh-perspective problems, unfamiliar stacks, disputed designs, high-stakes parallel cross-checks |
Effort calibration
Model pins say who runs; effort says how hard they think. The intended settings:
| Executor | Effort | Mechanism |
|---|
| you (lead) | max | /effort max — orchestration judgment is token-cheap and worth the ceiling |
| deep-reasoner | high, pinned | effort: high in agents/deep-reasoner.md. Pinned rather than inherited from the session: early Opus 5 field reports put its weakness in sustained high-effort roles, and a bounded fan-out shot need not match the Fable lead's max |
| fast-worker | medium, pinned | effort: medium in agents/fast-worker.md — fully-specified work still has to get the API and conventions right; medium is Sonnet's balance point, cheap enough to stay the default execution tier |
| Codex peer | xhigh, pinned | codex-peer.sh sets --effort xhigh explicitly; pass --effort to change per call |
After editing an agent def, re-run the Setup cp so the ~/.claude/agents/ copies pick up the change.
Setup (one-time)
Install the two agent definitions so deep-reasoner / fast-worker resolve as named subagents everywhere, and confirm Codex is ready. Only the agent defs get copied out, because named subagents must resolve from ~/.claude/agents/; codex-peer.sh always runs from the resolved plugin root ($OSS_ROOT), never a hand-installed copy (see Gotchas).
OSS_ROOT=$(ls -d ~/.claude/plugins/cache/open-science-skills/oss/*/ 2>/dev/null | sort -V | tail -1)
mkdir -p ~/.claude/agents
cp "${OSS_ROOT}skills/fable-orchestrate/agents"/*.md ~/.claude/agents/
chmod +x "${OSS_ROOT}skills/fable-orchestrate/codex-peer.sh"
codex login status
Then set /model to Fable 5 and /effort to max. The mechanics below work under any main model; Fable-as-lead is what puts the strongest reasoner on the calls that decide the answer, with the delegates taking execution and parallel work off its plate.
Run (the orchestration loop)
First, verify the model — before showing a plan or touching a tool. Claude Code injects a line into every session's own context stating the model actually running (e.g. "You are powered by the model named …"); read it and compare against the intended lead, Fable 5. Nothing enforces that the human ran /model — this skill is markdown loaded into context, not code, so it cannot change its own model, and a skipped switch produces no error and no warning. This already happened in practice: a benchmark run of this skill produced six full task-runs recorded as "Fable lead" that in fact ran on Sonnet 5 end to end, because nobody checked before or after. If your detected model does not match, stop, tell the human which model you actually detected, and ask them to run /model (and /effort max) before you continue — do not proceed and do not label the output as Fable's.
Switching mid-session has a cost: prompt caching is scoped to a specific model, so the first request after a switch resends the full accumulated conversation as fresh, uncached input. Cheap before other work has built up context (which is what Setup assumes), expensive deep into a long-running session.
Always show the plan first — your decomposition and the route each piece takes. Then execute.
Routing rule — first match wins, top to bottom
| # | If the task is… | Route |
|---|
| 1 | planning, decomposition, synthesis, integration, or reconciling others' output | do it yourself — never delegate the orchestration itself |
| 2 | trivial + single-step, where briefing a subagent costs more than just doing it | do it yourself |
| 3 | reasoning-heavy but compact — one hard design / debug / analysis / judgment problem that fits your context | do it yourself — you are the strongest reasoner; own the hard call and the completeness of the result |
| 4 | high-stakes — high blast radius AND hard to verify (both true) | you reason it, plus a blind Codex (and/or Opus) cross-check, you reconcile |
| 5 | mechanical and fully specified (no design decision left; success is objectively checkable) | fast-worker (Sonnet) |
| 6 | reasoning-heavy but wide — decomposes into many independent hard units, or would bloat your context, or wins from parallel fan-out | deep-reasoner (Opus), one per unit — for parallelism/isolation, not because Opus reasons better |
| 7 | a genuinely different prior is the point (novel problem, suspected blind spot, "am I framing this wrong?"), or you're looping | Codex (instead of, or after, deep-reasoner) |
| 8 | a full peer session is the point — the work must survive this session, run long beside it, stay user-steerable in its own pane, or needs its own worktree or permission surface | /oss:spawn — a full Claude Code peer; brief it with the same contract, monitor it, merge its branch back |
| 9 | anything left over | do it yourself |
Row 3 is the point of leading with Fable: a compact hard problem gets a better and more complete answer if you keep it, and holding it is how you keep the small completeness details a lean synthesize-from-summaries pass drops. Reasoning leaves your hands only when row 6 fires (genuinely wide, or would bloat your context) or row 4 does (you want a decorrelated line on a call you cannot verify).
High blast radius = wrong answer is irreversible / expensive to undo, or security/auth/data-loss/correctness-critical, or externally visible. Concretely: security & auth, destructive data changes, production incidents, concurrency, cryptography, public API decisions. If it is high-stakes but cheaply verifiable — a test, a diff that applies, a ground truth — reason it yourself and verify; the decorrelated cross-check earns its cost only when you cannot check, because then a second independent line of reasoning is the only defense against a confident single-model error, including your own.
Delegate to a subagent
Two equivalent forms — both verified in this environment:
- Named (after Setup):
Agent(subagent_type: "deep-reasoner" | "fast-worker", …). The model is pinned by the agent definition.
- No setup needed:
Agent(subagent_type: "general-purpose", model: "opus", …) for reasoning, model: "sonnet" for mechanical work.
Spawn slow work with run_in_background: true (the default) and keep planning; you are notified on completion. Consume the subagent's final message — it is the return value, not a chat reply.
Spawn a full peer session (cross-session delegation)
When row 8 fires, delegate to a full Claude Code session, not a subagent. /oss:spawn creates a git worktree on spawn/<slug>, starts a peer in a new pane (herdr, then tmux, then claude --bg), and sends one kickoff prompt pointing at a .spawn/brief.md written with the same delegation contract you give any delegate. Monitor with one backgrounded herdr agent wait and never babysit. Keep integration ownership: the peer commits to its branch and stops, and you review and merge it yourself. A subagent stays cheaper for anything bounded that dies happily with your turn — spawn only when the work needs a lifetime, a pane, or a worktree of its own.
Interleaving your reasoning with Sonnet execution
You are the reasoner; Sonnet is the executor. They take turns on the same task. Each pattern lists the signal that selects it and the failure mode to guard against.
| Pattern | Signal | Guard |
|---|
| Reason then build — you fix the interface, invariants, and acceptance check; Sonnet implements | the hard part is the design; once signatures and a test are set, the code is mechanical | an under-specified handoff makes Sonnet invent design silently; emit the contract first, and have it bounce ambiguity back up rather than guess |
| Draft then harden — Sonnet writes a fast first cut; you review and harden it | a working baseline is cheap, but correctness, edge cases, or security matter more than speed | aim the review at failure modes (concurrency, boundaries, auth, error paths) and demand a specific defect list, not polish |
| Plan then fan out — you plan and partition; N Sonnet workers do the pieces in parallel | one reasoning-heavy decomposition yields many independent, similar, mechanical units (per-file migration, per-module tests, bulk rename) | fragmentation: freeze the shared contract before fan-out, assign non-overlapping scopes, run the full build and tests after fan-in. Piecewise-correct is not integrated-correct |
| Gather then reason — Sonnet greps and collects; you reason over the digest | the bottleneck is wide, shallow collection (call sites, config, logs, dependency facts) before deep synthesis | Sonnet pre-selecting the cause or dumping raw volume; specify exactly what to collect and the return format (paths plus line-anchored quotes, not a verdict) |
| Reason then verify — you produce the fix or design; Sonnet writes the test or reproduction that proves it | your output is high-stakes but checkable | a vacuous test that restates the implementation; it must fail on the pre-fix code and pass on the post-fix code, and you confirm both |
| Triage then deep-dive — Sonnet reproduces and localizes; you root-cause; Sonnet applies the bounded fix | a complex bug where reproduction is grind but the root cause needs real reasoning | Sonnet "fixing" a symptom; its job ends at a reliable minimal repro plus a suspected locus, the fix decision is yours, and the repro stays as a regression test |
Consult Codex (the peer)
OSS_ROOT=$(ls -d ~/.claude/plugins/cache/open-science-skills/oss/*/ 2>/dev/null | sort -V | tail -1)
"${OSS_ROOT}skills/fable-orchestrate/codex-peer.sh" --mode consult -C "$PWD" \
--prompt "Reply with exactly one word and nothing else: PONG"
For Codex to edit files, use --mode implement (workspace-write) and point -C at the working directory. For a long turn, run it via the Bash tool with run_in_background: true plus --out <file>, then Read that file when the task-notification fires — so a multi-minute Codex turn never blocks you.
Route to Codex when the value is a decorrelated prior, not more horsepower — never because it is "better than Opus." Its errors are uncorrelated with Opus's, and it has a comparative coverage edge (a different, sometimes more recent, training mix), whereas a second Opus call resamples the same distribution and tends to repeat the same error confidently. Fire on any one signal:
- Unverifiable check. Opus answered, and you need an independent check on a claim you cannot cheaply verify (no test, no ground truth).
- You are looping. Two or more rounds have circled the same framing or repeated the same wrong fix. A vendor switch breaks the fixation.
- Disputed, expensive-to-undo design. API shape, schema, concurrency model, or migration strategy where reasonable engineers disagree.
- High-stakes cross-check (row 4). Reason it yourself and launch a blind, decorrelated Codex (optionally a blind Opus) on the same problem, then reconcile.
- "Am I framing this wrong?" You suspect your own decomposition, not the answer within it.
- Unfamiliar or recent ecosystem. A stack, library, or idiom where OpenAI's training mix may cover different ground.
- Adversarial cross-review. Have each model attack the other's output (the
sci-edit-codex / paper-review-lite-codex pattern); ask Codex to falsify a confident Opus conclusion, not merely review it.
Not for work that is cheaply verifiable, mechanical, or trivial; not for answers needing deep in-repo context Codex would have to re-acquire (the briefing cost exceeds the benefit — keep it with Opus); not to buy more confidence in something Opus already verified, since confidence is not a reason and a checkable artifact is; and not when latency matters more than the stakes justify.
The high-stakes parallel path (verified)
You reason the problem yourself and, in the same turn, launch a decorrelated cross-check on the same problem — a blind Codex (a different vendor), optionally a blind Opus — none seeing the others; then reconcile your own line against theirs. This is the signature move, and it is verified: this skill's own routing rule came out of one such turn, where the blind Codex and the blind Opus returned complementary halves of one guardrail (fragmentation-on-integration vs. over-trusting your own line).
Reconciling the answers — the rules you must follow:
- Never reveal one executor's answer to the other during the round.
- Do not break ties by confidence. Substantive disagreement is a stop condition, not a coin-flip.
- On disagreement: run one targeted reconcile round (now each may see the other's reasoning). If still unresolved, escalate to the human.
- Accept agreement only when both point at the same checkable artifact — twin confident assertions are not consensus (they can share a blind spot).
Guardrail — the one failure mode to defend against
Two names for the same trap. Fragmentation is the integration view: delegated pieces are each locally correct but conflict when you stitch them together. Over-trusting your own line is the reconciler view: you are the strongest model, so your trap is the opposite of rubber-stamping — you skip the independent check and ship your first line of reasoning. Even the best single model can be confidently wrong on a high-stakes, hard-to-verify call, so run the decorrelated cross-check and actually weigh it, rather than waving it through because it agrees or dismissing it because it does not.
Defense (apply to every delegation):
- Delegate with a contract — explicit inputs, constraints, interfaces, and acceptance checks, up front. Unspecified decisions route up to you; they never get guessed down.
- Demand a checkable artifact, not a verdict — a test that runs, a diff that applies, a cited quote, a reproduction — plus confidence and a "what would make this wrong" note. If a task cannot produce one, that is the signal it belongs on the parallel path.
- You retain integration ownership — of correctness and rigor. Verify every returned result against the repository and tests, then read the deliverable as the domain expert you are: a fast delegate returns work that is correct but thin — an approximate figure where precision matters, a result asserted where the mechanism behind it should be explained, a lone headline where a careful reader needs the comparison or the bound. Add that depth instead of shipping the delegate's summary as-is.
- On the parallel path, enforce the disagreement-as-gate rule above.
Gotchas
codex exec hangs without < /dev/null. It prints Reading additional input from stdin... and blocks forever, even when the prompt is passed as an argument. codex-peer.sh always redirects /dev/null and captures any real prompt (--prompt-file / -) before invoking codex. Never call codex exec bare in a background job.
- Codex reasons at
xhigh by default; codex-peer.sh sets it explicitly via --effort xhigh → -c model_reasoning_effort=xhigh, rather than relying on Codex's own implicit default. It prints a header (model: gpt-5.6-sol, sandbox: read-only) before the answer. The final answer is the text after the last codex marker; --out captures the whole transcript. A trivial consult is ~5s; a real design question ~10–15s. Pass --effort to override per-call for a stronger or cheaper tier.
~/.claude/agents/ may not exist. The first cp fails with No such file or directory. mkdir -p first (the Setup block does).
- A named subagent only resolves after its def is installed AND a session reload. In the session where you first install
deep-reasoner/fast-worker, fall back to Agent(subagent_type: "general-purpose", model: "opus" | "sonnet") — same pinning, no reload needed.
- Model pins are real. Verified this session: the Sonnet spawn reported
model-check: Sonnet 5; the Opus spawn reported Running as: Opus (claude-opus-5); Codex is pinned to gpt-5.6-sol and reports model: gpt-5.6-sol in its header. gpt-5.6 alone is not a valid slug — there are three distinct GPT-5.6 tiers (gpt-5.6-sol flagship, gpt-5.6-terra balanced, gpt-5.6-luna fast); the bare gpt-5.6 triggers a "metadata not found" warning and falls back to whichever tier Codex defaults to. gpt-5.6-sol is the default here because it's the strongest peer for a decorrelated cross-check — confirmed working (as of July 2026) on ChatGPT-account-authenticated Codex CLI (an earlier "rejected outright" finding no longer reproduces; if it ever errors, check before assuming a gate, since an outdated CLI rejects sol/luna too, with a different error). Pass explicitly for a cheaper peer on routine consults.
Troubleshooting
codex-peer.sh: no prompt — pass one of --prompt "…", --prompt-file PATH, or - (stdin). Empty prompts are rejected.
- Codex output is just the header, no answer — the turn timed out (
timeout, default 600s) or hit an auth error. Check codex login status; raise --timeout for large --mode implement jobs.
codex: command not found — install the Codex CLI and codex login first. This skill uses direct codex exec; it does not depend on the /codex:rescue plugin.
Notes
- Direct
codex exec needs no plugin, runs headless, and backgrounds cleanly — the pattern already proven in sci-edit-codex. /codex:rescue --background is an optional alternative once you've installed openai/codex-plugin-cc, but nothing here requires it.
- Cost shape: the strongest model is on the reasoning, so the lead is the most valuable part of the run rather than the cheapest, and spend leaves your plate only where it does not decide the answer. The decorrelated cross-check is ~1 extra Codex consult — spend it when row 4 fires.
- Driver:
codex-peer.sh (run --help for flags). Agent defs: agents/deep-reasoner.md, agents/fast-worker.md.