agentleFS
ArcanEdge-AIArcanEdge-AI/coding-agent-playbook-codex/skills/subagent-orchestration/SKILL.md

subagent-orchestration

Skill3 starsChanged 3 months agoMITView on GitHub

Use when considering or carrying out bounded delegation. Uses subagents sparingly when a concrete benefit justifies the overhead or independent assistance is required, with task-based model routing, finite scope, and main-agent verification.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not delegate merely because helpers are available, a task is large, a role is unused, or a graph contains several nodes.

    line 22
  2. Distinctive:

    Before spawning, define the bounded result, acceptance check, expected benefit, exact scope and workspace, and a finite helper-launch and …

    line 24
  3. Distinctive:

    Use direct root-to-helper assignments.

    line 28
  4. Distinctive:

    If the route cannot be established, keep the work with the main agent and report any separately required independent-verification gap.

    line 38
  5. Distinctive:

    Use the same six sections as the global assignment contract:

    line 44
  6. Distinctive:

    Before retrying, identify what failed and what will change.

    line 63
  7. Distinctive:

    Never accept a helper conclusion solely because it sounds confident.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Subagent Orchestration

The main agent is the primary implementer and owns the requested outcome end to end. Use subagents sparingly, only when a bounded assignment's concrete benefit outweighs its context, coordination, latency, and review cost or governing instructions require independent assistance.

Consulting a role profile for a different perspective does not require this delegation workflow. The main agent can apply the profile's role guidance directly while retaining its configured settings and task authority. Use the workflow below only when considering or carrying out actual delegation; a perspective change does not satisfy an independent-verification gate.

Consult references/subagents.md for the full assignment and acceptance guidance and references/model-routing.md before launching a helper.

Decide Whether to Delegate

Delegate only when a bounded helper has a concrete benefit:

  • independent evidence or focused review
  • genuinely parallel progress on non-conflicting work
  • reduced main-agent context for a large, separable investigation

Do not delegate merely because helpers are available, a task is large, a role is unused, or a graph contains several nodes. Keep tightly coupled design and implementation with the main agent. Do not outsource work already completed.

Before spawning, define the bounded result, acceptance check, expected benefit, exact scope and workspace, and a finite helper-launch and retry allowance.

Use Flat Assignments

Use direct root-to-helper assignments. Bundled helpers execute their assigned work and do not spawn descendants. Recursive orchestration is outside this default workflow and requires separate explicit authorization and controls.

Each helper assignment must be a non-empty, strictly smaller part of the remaining work and no broader than the root task in inputs, data access, permissions, scope, non-goals, authority, ownership, workspace, or approval boundary.

Serialize overlapping writes. Disjoint bounded writers may share the current workspace when the runtime and repository allow it. Use an auxiliary worktree only through the root-owned worktree-lifecycle process.

Route Every Helper Explicitly

Select each delegated execution, retry, and replacement by the task table in references/model-routing.md: GPT-6.1 Sol at Light, Medium, or High, or GPT-6 Astra at Extra High. Light uses low in configuration. Minimize total completion cost, including retries and corrections. Use a matching profile or supported explicit route; verify effective settings because profile values can override spawn arguments. Preserve the main agent's selected configuration.

If the route cannot be established, keep the work with the main agent and report any separately required independent-verification gap.

Progress and result messages must not alter parent or peer settings. Use team collaboration messaging or the normal final return. Keep destination model and reasoning overrides out of separately authorized task reports.

Assignment Contract

Use the same six sections as the global assignment contract:

  1. Goal and acceptance: bounded result, acceptance check, and expected benefit.
  2. Context: necessary facts, inputs, paths, interfaces, and accepted evidence.
  3. Skills and methods: applicable skills, required references, and real graph dependencies.
  4. Scope and authority: permitted reads/writes, non-goals, constraints, and stop conditions.
  5. Ownership and route: helper ID or permit, exact workspace, ownership, verified model/effort, and place within the finite launch/retry allowance.
  6. Return: artifact or findings, primary evidence, checks run, and unresolved issues.

Pass only necessary context. Do not copy full histories, transcripts, or long logs.

Execute and Accept

  1. Confirm delegation has a concrete benefit and capacity is available.
  2. Select the appropriate Planner, Engineer, Reviewer, Tester, or Docs profile.
  3. Dispatch only work whose real dependencies are satisfied.
  4. Continue useful non-conflicting root work while the helper runs.
  5. Inspect the returned artifact, evidence, scope compliance, and checks.
  6. Reject, revise, or retry work that does not meet its acceptance condition.
  7. Before retrying, identify what failed and what will change.
  8. Reuse valid results and avoid repeating unchanged failed approaches.
  9. Inspect the combined diff and validate integrated behavior.
  10. Reconcile every helper attempt and task-created auxiliary worktree before completion.

High-impact changes require independent verification proportionate to risk. If the required check is unavailable, report the unmet gate instead of claiming completion.

Never accept a helper conclusion solely because it sounds confident.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.