orchestrator-executor
Skill67 starsChanged 2 months agoMITView on GitHub
Coordinate large, long-running, parallel, architecture-sequenced, or isolated-worktree tasks with a cost-conscious orchestrator/executor model. Use when work needs a dependency graph, multiple agents, staged integration, durable asynchronous coordination, or independently reviewable changes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Th0rgal/sandboxed.shtheir own version, first seen Oct 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Th0rgal/sandboxed.sh★ 514same 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 repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/cursor-cloud-agent-url.mdcCursor rule
- .cursor/rules/cursor-grok-latest.mdcCursor rule
- .cursor/rules/flatbread-pmf-workflow.mdcCursor rule
- .cursor/rules/flatbread-schema-migration.mdcCursor rule
- .cursor/rules/orwell-prose.mdcCursor rule
- .cursor/rules/post-edit-lint-fix.mdcCursor rule
- .cursor/rules/typescript-rules.mdcCursor rule
- agent-browserSkill
- effort-modelingSkill
- grill-with-effortsSkill
- mergify-ciSkill
- mergify-configSkill
- mergify-merge-protectionsSkill
- mergify-merge-queueSkill
- mergify-stackSkill
- proofSkill
- flatbread-major-migrationSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use models by explicit model argument in every spawned-agent call:
- Distinctive: line 16
Do not route by vague labels such as “deep-reasoner” or “fast-worker.” If the required model is unavailable, stop and report the constraint.
- Very specific: line 18
Before spawning, record for every task: role, complexity, write_scope, dependencies, acceptance_criteria, and expected_deliverable.
- Distinctive: line 26
Use worktrees for overlapping timelines, risky work, competing implementations, or independently reviewable units.
- Distinctive: line 28
Every writing worker returns: branch/worktree, changed files, verification results, unresolved risks, and integration instructions.
- Distinctive: line 56
Keep orchestrator context to task state, short summaries, decisions, ownership, and artifact paths.
- Very specific: line 66
Create isolated worktrees and graph: architecture (Terra, no writes) → api and ui (independent Luna implementation tasks).
- Distinctive: line 70
After both workers complete, the orchestrator integrates branches in dependency order, runs final verification, archives the board, removes …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Role and routing
The top-level agent is the orchestrator only: decompose, schedule, monitor, route information, resolve dependencies, integrate, verify, clean up, and report. When delegation is available, it MUST NOT do routine implementation itself.
Use models by explicit model argument in every spawned-agent call:
claude-fable-5-thinking-high(Fable 5): orchestration and final synthesis only. NEVER use it for implementation, routine research, tests, formatting, or mechanical work.gpt-5.6-terra-medium(5.6 Terra): architecture, difficult reasoning, adversarial review, and high-risk decisions.gpt-5.6-luna-medium(5.6 Luna): implementation, tests, repository searches, formatting, and other bounded execution.
Do not route by vague labels such as “deep-reasoner” or “fast-worker.” If the required model is unavailable, stop and report the constraint; never silently substitute Fable for an executor.
Before spawning, record for every task: role, complexity, write_scope, dependencies, acceptance_criteria, and expected_deliverable. Represent tasks as a dependency graph and move only dependency-free tasks to ready.
Ownership and lifecycle
Task states are: pending → ready → running → (blocked | failed | completed) → integrating → verified.
- Parallelize only independent tasks. Each writing worker exclusively owns assigned files or its worktree; concurrent workers MUST NOT edit the same files.
- Workers must report scope overlap before editing anything outside their assignment.
- Use worktrees for overlapping timelines, risky work, competing implementations, or independently reviewable units. Skip them for small read-only or strictly disjoint work when isolation costs more than it saves.
- The orchestrator creates worktrees and branches, assigns ownership, chooses integration order, resolves conflicts, verifies, and cleans up. Workers never merge, rebase, push, or modify another worker’s worktree unless explicitly told to.
- Every writing worker returns: branch/worktree, changed files, verification results, unresolved risks, and integration instructions.
Communication and context
Subagents cannot message sibling agents directly. The orchestrator is the sole router: prefer native completion events and orchestrator-issued follow-up prompts for control and prompt delivery. A filesystem board is durable, pull-based coordination only; it neither wakes workers nor replaces follow-up messaging. Do not keep workers alive merely to poll shared state.
For durable asynchronous coordination, the orchestrator creates a run-specific board directory outside all worker worktrees and passes its absolute path to each worker. Use one atomic JSON event file per message (write a temporary file, then rename it); never concurrently append to a shared file.
{
"event_id": "evt-001",
"run_id": "run-2026-07-17-a",
"timestamp": "2026-07-17T23:47:00Z",
"sender": "impl-schema",
"recipient": "orchestrator",
"task_id": "schema",
"type": "blocked",
"summary": "Need the chosen identifier invariant.",
"artifact_paths": [],
"blocked_by": ["architecture-decision"],
"requested_action": "Provide the invariant and resume instructions."
}Allowed type values: started, progress, finding, question, blocked, artifact_ready, verification, failed, completed. Workers emit only meaningful events—on a material finding, blocker, artifact, verification result, failure, or completion—not heartbeats or continuous polling.
The orchestrator consumes each event once, checkpoints its event cursor, and compacts or archives consumed events. It reads the board at bounded orchestration checkpoints or after native completion—not through worker polling. The board holds durable coordination state only; it does not replace direct follow-up prompts or justify copying an expanding transcript into worker context.
Keep orchestrator context to task state, short summaries, decisions, ownership, and artifact paths. Give workers only their task contract, relevant upstream summaries, permitted paths, board path, and acceptance criteria. Put detailed results in artifacts and reference paths.
Failure, escalation, and termination
Set bounded retry and idle/timeout limits when launching a task. On failure, record evidence, change the prompt or framing, and retry only when that change makes progress plausible. Cancel obsolete work and replace a worker with a newly scoped task when appropriate.
Escalate a Luna task to Terra only after recording the failure evidence and reframing the decision or reasoning problem. Never blindly retry an unchanged prompt. The orchestrator completes only after integration verification, worktree/board cleanup, and a concise delivery report.
Compact execution example
- Create isolated worktrees and graph:
architecture(Terra, no writes) →apiandui(independent Luna implementation tasks). - Spawn Terra with
model: "gpt-5.6-terra-medium"to choose the interface contract. Route its short decision artifact to both Luna tasks. - Spawn the two Luna workers in parallel with
model: "gpt-5.6-luna-medium", exclusive worktrees and the board path. Theapiworker emits ablockedevent requesting a field invariant. - The orchestrator reads and checkpoints that event, sends a native follow-up prompt with Terra’s invariant to
api, and does not askuito poll. - After both workers complete, the orchestrator integrates branches in dependency order, runs final verification, archives the board, removes worktrees, and reports changed artifacts plus verification.
Before spawning
- Is the task classified with role, complexity, write scope, dependencies, deliverable, and acceptance criteria?
- Is the selected explicit model permitted for that role (never Fable for execution)?
- Are write scopes exclusive and graph dependencies satisfied?
- Are worktrees justified, owned by the orchestrator, and paired with a known integration order?
- Does every worker have only required context, an absolute board path if needed, and a clear return contract?
Done when
- Every executor used explicit Terra or Luna model routing; no implementation silently used Fable.
- Dependencies, ownership, events, blockers, retries, and escalations were recorded and routed by the orchestrator.
- Integration verification passed, worktrees and board artifacts were cleaned up or archived, and the delivery report is concise.
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.

