orchestrating-fusion
Skill127 starsChanged 28 days agoMITView on GitHub
Coordinate a read-only lead and implementation executor when role separation is requested.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki/AGENTS.mdAGENTS.md
- wiki/CLAUDE.mdCLAUDE.md
- accountable-engineeringSkill
- adrSkill
- babysit-prSkill
- blindspot-passSkill
- capability-experimentsSkill
- codemapSkill
- code-quality-reviewSkill
- code-reviewSkill
- commit-atomicSkill
- context-discoverySkill
- diagnosing-bugsSkill
- doc-searchSkill
- docs-updateSkill
- draft-pull-requestSkill
- git-contextSkill
- handoffsSkill
- implementation-loggerSkill
- implement-specSkill
- llm-wikiSkill
- pickupSkill
- plannotator-setup-goalSkill
- portless-localSkill
- prdSkill
- pr-reviewSkill
- prSkill
- qmd-knowledgeSkill
- quiz-meSkill
- ralphSkill
- retroSkill
- security-auditSkill
- slopSkill
- spec-interviewSkill
- tddSkill
- tmuxSkill
- visual-prSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Do not force every task through Fusion:
- Distinctive: line 20
Keep a tiny, already-understood, single-file mechanical change in the normal writable session.
- Distinctive: line 21
Use Fusion when investigation, architectural judgment, multiple non-trivial writes, or independent review materially improve the result.
- Distinctive: line 26
Prefer the installed native roles when the current tool exposes them:
- Very specific: line 28
OpenCode: run the fusion-lead primary.
- Distinctive: line 69
Read back every claimed changed path or artifact.
- Distinctive: line 73
If the gate fails, the lead sends one targeted correction specification.
- Distinctive: line 75
Run independent executor tasks in parallel only when their write targets do not overlap.
- Distinctive: line 85
If the native executor is unavailable or its model/provider fails, report the blocker.
≈ “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
Fusion Orchestration
Separate judgment from mechanical implementation. A lead investigates, decides, specifies, reviews, and verifies. An executor edits only the bounded scope in the lead's specification.
Route Deliberately
Do not force every task through Fusion:
- Keep a tiny, already-understood, single-file mechanical change in the normal writable session.
- Use Fusion when investigation, architectural judgment, multiple non-trivial writes, or independent review materially improve the result.
- Offer a durable PRD, ADR, or implementation plan only when persistent artifacts reduce substantial ambiguity. Never create a spec lifecycle merely because a change is large or risky.
Native Adapters
Prefer the installed native roles when the current tool exposes them:
- OpenCode: run the
fusion-leadprimary; it can delegate tofusion-executorand cannot edit or run shell commands. - Amp: select the
fusionagent mode; its restricted tool surface exposesfusion_executorfor implementation. - Codex: from the writable root session, spawn
fusion-leadfor the specification, then spawn the siblingfusion-executor; a read-only child cannot safely escalate a nested child to workspace-write. - Pi: from the root session, use the
Agenttool to runfusion-lead, then run the siblingfusion-executor;pi-subagentsenforces the lead's tool allowlist and intentionally disables nested delegation.
For other assistants, apply the workflow below using their native subagent/task tool. Treat role separation as advisory unless the harness actually restricts each role's tools or sandbox.
Workflow
- Have the lead inspect the request and relevant code. It may delegate read-only discovery.
- The lead resolves architectural and product choices. Ask the user only when a missing decision materially changes the result.
- The lead selects only the relevant installed skills. Include each exact
SKILL.mdpath in the handoff; do not paraphrase a skill into a lossy substitute or preload unrelated skills. - The lead sends the executor one bounded specification using this contract. Keep specifications concise (target under 2,000 tokens) — summarize objectives succinctly and reference skill paths, rather than pasting full PRDs, raw user prompts, or file contents verbatim. When the harness prevents nested delegation, the lead returns this specification to the writable root, which starts the executor as a sibling:
OBJECTIVE
FILES
INTERFACES
CONSTRAINTS
SKILLS
VERIFICATION- The executor reads every listed skill from its exact path, implements the smallest complete change, persists artifacts before responding, and returns a final text envelope:
STATUS
EXECUTIVE SUMMARY
CHANGES
VERIFIED
SKILLS LOADED
RISKS
QUESTIONS
NEXT RECOMMENDED
KEY LEARNINGSVerification contract: the executor runs only checks the runtime permits or the user has approved. Exact read-only inspection commands usually run directly. Other checks may require approval, root mediation, or may be denied (OpenCode denial can terminate the child before an envelope returns). When a check cannot run inside the executor, it must report VERIFICATION REQUIRED with the exact command; the interactive root then runs that exact command and supplies the evidence before acceptance. Never treat a missing, declined, timed-out, or root-only check as passed.
- The lead gates the handoff before claiming success:
- Validate that every required envelope section is present (or that a structured failure envelope explains why it is not).
- Read back every claimed changed path or artifact.
- Confirm named paths and symbols exist and the changes remain in scope.
- Inspect exact verification commands and outcomes; independently rerun the narrowest meaningful check when possible.
- Relay blocking questions losslessly, preserving every option, constraint, and reason input is required.
- If the gate fails, the lead sends one targeted correction specification. If the second result still fails, stop and report the evidence instead of entering an unbounded fix loop.
Run independent executor tasks in parallel only when their write targets do not overlap. Never delegate commit, push, deployment, destructive operations, or external side effects without explicit user approval.
Capability Guarantees
Prompt text is not a security boundary. Describe a role as enforced only when the harness removes mutation tools or applies a read-only sandbox. Shell access can bypass a missing edit tool, so a role with unrestricted shell is not mechanically read-only.
Pi skill paths: Fusion on Pi supports project-local skills under the task working directory (for example .agents/skills/.../SKILL.md or .pi/skills/...). The executor denies external-directory reads, so globally installed skills under ~/.agents/skills are not loadable inside the child. The interactive root mediates global skills when needed. Full dynamic global-skill support needs a larger adapter or upstream read-only external access.
Amp residuals: Amp authorizes fusion_executor from plugin-owned lead thread IDs after the lead is observed; until then it falls back to the complete expected lead agent definition (kind + name), which is not documented as a unique authorization principal across third-party plugins.
If the native executor is unavailable or its model/provider fails, report the blocker. Do not silently let a supposedly read-only lead edit as a fallback; ask the user to switch to normal unrestricted mode instead.
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.

