<< All versions

Skill v1.0.0

currentAutomated scan100/100
alex-jordan547/agent-setup/open-orchestrator-cheap
──Details
PublishedNovember 22, 2026 at 06:01 AM
Content Hashsha256:51e99a119d7d6f89...
Git SHA18a968afbbc0
──Files
Files (1 file, 11.7 KB)
SKILL.md11.7 KBactive
SKILL.md · 205 lines · 11.7 KB

name: open-orchestrator-cheap description: "Open-models orchestrator, ultra-cheap tier: GLM-5.2 as oracle (plans and validates with its own tools), MiMo V2.5 Pro as the orchestrator (coordinates, holds the plan, spawns workers), and mimo-v2.5/deepseek-v4-flash as the hands (bounded edits, explores, verifications). Routes each task to the cheapest model whose context window can hold it. The orchestrator never writes code; it delegates pre-digested slices to workers. Optimizes for lowest cost per solved task." metadata: version: "1.0.0"


Open Orchestrator — Cheap Tier

A model-aware orchestrator for open-weight models (Command Code cmd/* slugs). The main thread coordinates; delegation happens through workers, each pinned to a deliberately chosen model. The orchestrator thinks and hands off; workers do the mechanical work.

Delegation mechanism is environment-agnostic. Use whatever spawn primitive the host exposes — worker threads, a subagent/Task tool with a model parameter, named agents — and embed the scope rules from this skill in each worker's prompt. What is fixed here is the role structure and the routing, not the API.

Supervision essentials:

  • After spawning a worker, supervise by periodic check-ins (heartbeat/polling as

the host allows, ~3 min default) instead of keeping the turn open; read the worker's output, newest first.

  • Wait passively: in-progress means working. Steer only on new context, a wrong

brief, a blocking question, a reported blocker, or a timeout with no progress.

  • Worker output is evidence, not a final answer: check every success criterion,

confirm claimed edits/tests, resolve conflicts centrally. Label confidence when reporting: orchestrator-accepted / worker-reported / unverified.

  • Don't stop at "worker created"; don't convert orchestration into main-thread

implementation.

Three roles

RoleModelJob
Oraclecmd/zai-org/GLM-5.2Plans (with the user) and validates at gates. Investigates with its own tools — reads the real files, runs checks first-hand. Never spoon-fed a lossy summary. The only full-price model here — every call must earn its cost.
Orchestratorcmd/xiaomi/mimo-v2.5-proHolds the plan, coordinates, spawns and supervises workers, integrates. Its 400K window is headroom, not a warehouse — the plan pre-digests the work so it stays far from full. Near-free cache reads make long supervision loops cheap.
Handscmd/xiaomi/mimo-v2.5 / cmd/deepseek/deepseek-v4-flashBounded edits, tight explores, verifications. One precise task each, sized to fit their window in one pass. Same price — pick by window: mimo for tasks under ~240K working set, flash when only a 1M window holds the sweep.

Escalation hand: cmd/deepseek/deepseek-v4-pro — same price as the orchestrator but frontier-level reasoning and a 1M window. Use for big non-splittable files or a slice that genuinely needs delegated judgment.

Hard rule — the orchestrator does not write code. It does prep (grep, read, measure, slice), then delegates narrow, pre-located slices. Every file edit goes through a worker, no exceptions:

  • Never edit or write a file from the orchestrator role — not even a "trivial"

one-liner. Trivial edits are exactly what mimo-v2.5 is for.

  • If the task involves any code change and zero workers have been spawned, the

orchestration has already failed — stop, slice the work, spawn.

  • The urge to "just do it myself, it's faster" is the failure mode this skill

exists to prevent. Speed comes from parallel workers, not from the orchestrator typing.

  • Self-check before ending any turn: did I edit a file this turn? If yes, that

edit was a violation — route the remaining work through workers and say so.

Pre-flight measurement (mandatory before routing). Measure the working set — the exact files the worker will read, i.e. the list that goes in its brief — never a whole zone or directory. Measuring a zone is the classic way to overestimate by 10× and send everything to the big models:

bash
wc -l <file1> <file2> ... # lines of the actual working set (the brief's file list)
rg -l "<symbol>" | wc -l # fan-out — to decide how to split, not to size the task

Budget: lines × ~10 tokens/line + brief + expected output, vs the model's real window, target < ~75%. That is the only margin — do not stack extra safety factors on top of it. Fits in mimo's 400K → mimo-v2.5; bigger → split into N fitting slices or route to deepseek-v4-flash (1M, same price). Escalating to deepseek-v4-pro requires a stated one-line reason why the slice is not splittable.

When in doubt, go cheap. A cheap-hand run that comes back too_big costs almost nothing; a deepseek-v4-pro run that wasn't needed costs 3× more. Route on evidence — a measurement or a returned too_big — never on instinct.

Return contract (the downstream tripwire). Workers are briefed to stop and hand back instead of compacting silently: out_of_scope (needs files beyond the working set), too_big (a listed file is far larger than briefed), mismatch (editor: real code differs from the brief). On any of these, the orchestrator re-measures and re-routes — split first; escalate only if the slice is genuinely not splittable. Never re-send the same oversized task to the same model. These returns are the escalation mechanism: cheap probes, which is why routing defaults cheap.

Two modes + the tripwire

Planned mode (big tasks). A plan built by the user + oracle (GLM-5.2) has already cartographed the work: the surface, the slices, the dependencies, the verification steps. The orchestrator inherits this and never discovers the surface live. Big tasks require a plan — this is the precondition that keeps the orchestrator's window as headroom.

Unplanned mode (small tasks only). No plan: the orchestrator cartographs the surface itself, paying context. Allowed only when the task is genuinely small.

Context tripwire (mandatory). Humans misjudge task size — a "small" fix can touch 40 files. So in unplanned mode the orchestrator watches its own fill: if exploration passes ~50% of its window before a plan exists, it stops and demands a plan instead of plowing into compaction. The no-plan contract is enforced by this tripwire, not merely hoped for.

Oracle gates

Call the oracle (GLM-5.2, own tools) at deterministic gates, plus orchestrator discretion on top — never discretion alone.

Deterministic gates:

  • Primary: before validating the work / before review / autoreview — ask the

oracle whether what's been built is coherent end-to-end. This is the load-bearing gate.

  • After a plan is produced, before spawning workers against it — sanity-check the

map (a wrong plan executed perfectly by five cheap workers is garbage at speed).

  • When two workers' results conflict.
  • Before a wide or irreversible change.

Discretion: the orchestrator (intel 4/5) may also call the oracle when it senses it's out of its depth — additive to the gates, for the unknown-unknowns the fixed triggers didn't anticipate.

Cost discipline: GLM-5.2 is 5–15× the price of everything else in this tier (full price, expensive cache reads). Don't gate every micro-step; reserve gates for coherence, plan sanity, conflicts, and irreversibility. Feed it a tight brief and exact file paths so its own investigation stays short.

Oracle budget: one call per task by default — the primary end-gate. A second call (plan sanity) is justified only when the plan is wide, risky, or was built without the user. Conflicts and irreversibility checks are folded into the next scheduled gate whenever possible — batch every pending question into one call rather than firing them one by one. Never call the oracle in a loop: if a gate answer raises a new question, it waits for the next gate.

Model table

Scores 1–5 (5 = best). Context is the hard constraint; the rest are preferences. Prices are per 1M tokens after the permanent Command Code discounts; scores are a starting calibration — tune from real runs.

ModelIntelligenceSpeedContextIn / Out / Cache readBest for
cmd/xiaomi/mimo-v2.534400K$0.14 / $0.28 / $0.0028Default hand: surgical edits, bounded explores, verifications
cmd/deepseek/deepseek-v4-flash341M$0.14 / $0.28 / $0.0028Big-window sweeps at the same price as mimo
cmd/xiaomi/mimo-v2.5-pro43400K$0.435 / $0.87 / $0.0036Orchestrator role; token-efficient agentic coordination
cmd/deepseek/deepseek-v4-pro531M$0.435 / $0.87 / $0.0036Escalation hand: big non-splittable slices, delegated judgment
cmd/zai-org/GLM-5.2531M$1.40 / $4.40 / $0.26Oracle only — plans and gate judgments, never bulk work

Context budgeting (the routing constraint)

Estimate the task's working set: files the worker must read + instructions + expected output. Route to a model whose window holds it at < ~75% utilization — one margin, applied once (no "effective window" discount stacked on top).

  • Above that, mid-task auto-compaction

kicks in — the worker loses state, re-reads, burns tokens and time. That's the failure mode: a 400K model handed a 500K task compacts repeatedly and gets slow and dumb.

  • If a task exceeds a model's budget: (a) shrink it (orchestrator greps/reads

first, passes only the relevant slice), (b) split it into bounded workers, or (c) escalate to a 1M-window model. Prefer (a)/(b): five precise mimo edits usually beat one big-model pass — the orchestrator already did the reading.

Routing decision

  1. Needs real reasoning (design, ambiguous tradeoff, subtle root-cause)? → the

oracle, or keep it on the orchestrator. Never send genuine reasoning to the cheap hands.

  1. Precise, well-specified edit or narrow check, working set < ~240k? →

mimo-v2.5. The default workhorse for changes already designed.

  1. Broad, low-reasoning sweep (read many files, list usages, gather evidence)

needing more than 400K? → deepseek-v4-flash — same price, 1M window.

  1. Genuinely needs a huge window and intelligence (big non-splittable file,

delegated judgment)? → deepseek-v4-pro. The escalation, not the default.

Tie-break: cheapest model that clears the context bar wins. Climb the intelligence axis only when the task actually needs it. When the measurement is ambiguous, route cheap and let the return contract (too_big) trigger the escalation — a failed cheap probe costs less than a needless deepseek-v4-pro pass.

Worker prompt (model-scoped)

Give every worker its files, its edit, its check — never open-ended discovery on a small model.

text
Model: <slug>. Chosen because: <ctx fit / cost>.
Working set (already located by orchestrator): <exact files/paths/line ranges>.
Task: <one precise edit or check>.
Do NOT: read beyond the working set, refactor adjacent code, or expand scope.
Success check: <exact command/observation that proves it done>.
Return: files changed, check result, anything that didn't fit — do not keep going.

Token/latency economy

  • Reading is the orchestrator's job; workers almost never explore from scratch.

Pre-fetched context = smaller, cheaper, faster workers.

  • Parallelize independent cheap workers instead of one serial big-model pass.
  • Cache reads are near-free on every model except GLM-5.2 — long supervision loops

cost almost nothing, but keep GLM-5.2 conversations short: its cache read is ~90× the others'.

  • Every escalation to deepseek-v4-pro or oracle call to GLM-5.2 should have a

reason you could state out loud. If you can't, a split of mimo/flash workers is the cheaper answer.

All versions