agent-orchestra
Skill1 starsChanged 34 days agoMITView on GitHub
Lead-and-workers orchestration that keeps the user's chosen model as the leader and sends reading, searching, drafting and first-pass review to the cheapest model that passes for each job (Claude Haiku/Sonnet, Codex/GPT, local models), across separate quota pools, with measured usage, model discovery (`models update`), small benchmarks and a self-improving evidence ledger. Use for multi-step or multi-file work, whole-app reviews, parallel subagents, "use Haiku/cheap agents", running out of usage limits, cost/effort/model choice, second-vendor review, or when the user names agent-orchestra, subagent-orchestra or model-orchestra. Not for one-line edits.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- 3338902669-ops/agent-orchestratheir own version, first seen Oct 2, 2026
- AntreasAntoniou/agent-orchestratheir own version, first seen Aug 24, 2026
- MarecGents/marec-agent-skillstheir own version, first seen Aug 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- 3338902669-ops/agent-orchestra★ 93same name
- MarecGents/marec-agent-skills★ 3same name
- AntreasAntoniou/agent-orchestra★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- review-agentSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
No registry, or older than 30 days: ORC models update (free: local runtimes, Codex's model list, a public price catalogue).
- Very specific: line 34
Keep the context small: Write the handoff and compact before ~200k tokens (tune sets autoCompactWindow).
- Distinctive: line 60
Strongest at low effort is a baseline: Before building a cascade, compare it.
- Distinctive: line 87
Never resend an identical packet.
- Distinctive: line 103
Do what the repo's rules require (merge, push, package, publish, clean up), preserving other sessions' work and secrets.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Orchestra
You are the leader: the model the user chose for this session. Never switch yourself to another model
to save money; delegate instead. You own the plan, every irreversible step and the final verdict. Workers
find, draft and check; you verify. Repo rules (AGENTS.md, CLAUDE.md) and the user's explicit choices
(a named model, "no subagents") beat everything here.
ORC means node "<this skill's folder>/scripts/orchestra.mjs". Only bench spends model calls.
1. Start (one call)
ORC brief prints the verified route per role from your ledger, active lessons, and your model registry.
No registry, or older than 30 days: ORC models update (free: local runtimes, Codex's model list, a public
price catalogue). After it reports a new model: ORC bench --new (three tiny checked tasks per model, a few
cents). Once per machine: ORC tune shows two Claude Code settings; ORC tune --apply sets them, with a backup.
2. Where usage really goes (measured, so act on it)
From 66 sessions on one machine over 14 days (docs/usage-root-causes.md): the leader spent 90% of
list-price usage, re-reading 373k context tokens per turn on average; subagents that inherited the leader's
Opus cost $177 against $6.6 for the same number of Haiku requests. So:
- Leader turns are the expensive unit. Each one re-reads the whole context. Batch independent tool calls in one message, send long output to a file and read ranges, and never re-read what you already have.
- Delegate the reading. Searching, inventories, log triage and first-pass review go to a worker that returns a short answer, not to your context.
- Name a model on every spawn. Without one a subagent may run on the leader's model.
tunesetsCLAUDE_CODE_SUBAGENT_MODEL=claude-haiku-5-5as the default for spawns that forget. - Keep the context small. Write the handoff and compact before ~200k tokens (
tunesetsautoCompactWindow); a fresh session from a good handoff beats a full one. - Merge tiny tasks. Each new worker pays a cold cache write (~6-40k tokens); one packet with three questions costs less than three workers.
ORC usage measures the current session the same way (by agent and model, cache reads per leader turn, heavy tool
results, inherited-model spawns) and prints what to change. Run it at the end of every job.
3. Route: cheapest tier that passes, then escalate
Starting routes until your ledger has verified rows. Bench results are from 2026-10-11 (docs/benchmarks.md).
| Role | First try | Escalate to | Evidence |
| scout, search, inventory, extraction | haiku, low | haiku medium | passes extraction and bug-location tasks at low |
| design / UI / wording review (source) | haiku, medium | sonnet | 9 of 9 checked findings real in one release review |
| correctness, permission or money review | haiku, high (ChatGPT pool: gpt-6-luna, low) | sonnet high, then a second vendor | Haiku low called a removed permission check "CLEAN"; Haiku high, Sonnet low and Luna low caught it |
| small fix from an exact spec | haiku, medium | sonnet | 7 UI fixes, 726/726 tests, no rework |
| second opinion on a risky diff | another vendor (Codex gpt-6.1-sol) | - | found money bugs two same-family reviews passed; on 2026-10-11 six confirmed payroll, loyalty and FX defects in a released build; on 2026-10-12 it and Haiku high each found one blocking defect the other missed |
| core implementation, diagnosis, verdicts | leader | - | a wrong answer costs the most |
- Effort before tier. Raise effort on the same cheap model once before moving up a tier; low effort is for tasks whose answer you can check in seconds.
- Quota pools are separate. Claude subscription, ChatGPT/Codex login, and local models each have their own
limit. When one is exhausted (a 429 or "usage limit"), move the role to an equivalent tier in another pool
(
ORC models listshows pools and tiers); do not wait and do not climb tiers. - Strongest at low effort is a baseline. Before building a cascade, compare it; judge cost per finished task.
ORC pick <role> [models...] --preset frugal|balanced|thoroughranks candidates from your ledger and bench rows (a failed bench rules a model out). Explicit--effort,--cost-mode,--max-task-usdoverride the preset.- Hard rules: money, stock, permissions, security, old-data migration and release verdicts stay with the leader. One writer per file. Workers never commit, push, merge, publish or touch secrets.
4. Fire
- One message, many agents, in the background, each with
modelandeffortset. - Packet: goal; exact files and line ranges or search patterns; the rule sections that apply; read-only or the
paths it may write; tools; out of bounds; output shape
severity (BLOCKING|BACKLOG), file:line, defect, scenario, reproduced?, about 8 findings max, under 400 words; and "end with your model name and what you actually read". - Reviewers read a pinned commit (
git worktree add --detach <dir> <sha>). Parallel writers get disjoint files. - A required secret: say "it is present; do not open it".
- External workers (
claude -p,codex exec): full model ids (CLI aliases differ by version: an older CLI senthaikuto a previous generation),--setting-sources localso your own hooks stay out of the worker's prompt, and the commands in dispatch.md.
5. Verify, escalate, retry
A claim is a leader fact only after you read the cited line, run the test, or watch it fail. A worker's own words are not attestation: GPT-6.1 Sol signed its reports "GPT-6"; take the model from the runtime's events or JSON. Classify each as confirmed, refuted or rework, and re-grade every BLOCKING label against the repo's own rule.
- Wrong or empty answer: same model one effort up, once, with a sharper packet. Then the next tier. Then you.
- Quota or runtime failure: report it, switch pool, keep the other work going; it is not a reasoning failure.
- Never resend an identical packet. At most two review rounds; the second checks only the fix commit, and never skip it: on 2026-10-12 SmartStore fix f38e6cf passed the full gate (737 unit, 428 end-to-end) yet broke a sibling path; Haiku high found it on the one-commit diff in 2 minutes.
6. Learn (before you report)
ORC log --file outcome.json: one row per worker task you verified (model, effort, role, confirmed, refuted, rework, missed, minutes, cost basis). See evidence.md.ORC lesson --file lesson.json: the one rule that most changed total work. Two supports make it active in every later brief; contradictions retire it.ORC usage: compare leader share and context per turn with your last job.
Ledger, lessons, bench rows and registry stay local. Promote a lesson into this file only by a reviewed pull request.
7. Finish
Do what the repo's rules require (merge, push, package, publish, clean up), preserving other sessions' work and secrets. Report verified by the leader and reported by workers separately, every failure, and anything waiting on the user.
More: dispatch.md (runtimes and commands), evidence.md (ledger, cost basis), managed-agents.md (what was adapted from Claude Managed Agents), app-review.md (section-by-section reviews).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

