agentleFS
TacuchiTacuchi/agent-skills/skills/orchestration/coordinating-agents/SKILL.md

coordinating-agents

Skill0 starsChanged 2 months agoMITView on GitHub

Coordinates coding agents run by a multi-agent orchestrator or agentic development environment, ADE (Herdr, Orca, Paradev, T3 Code, AgentsRoom, teamctl, Dorothy, Pylon or another): delegates bounded tasks, verifies the effective model and effort, follows states and questions, and recovers sessions without impersonating human authorizations. Use it when the person asks to coordinate, supervise, dispatch to or monitor agents in an orchestrator's panes, terminals, workers or worktrees. Not for a host's built-in subagent tool, not for choosing how to plan the work, and not for taking over a whole task and deciding its staffing yourself: the master skill covers that.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this once, when the skill loads and before its other steps.

    line 12
  2. Very specific:

    Run node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>.

    line 14
  3. Very specific:

    If node is missing or the command fails, say so, list the needs in <skill dir>/permissions.json and go on with the skill.

    line 15
  4. Very specific:

    Read hosts.<host> in the output.

    line 16
  5. Very specific:

    Run the command of the option the person chose, exactly as given.

    line 18
  6. Distinctive:

    After "Skip for now", do not run this step again in the session.

    line 20
  7. Distinctive:

    Read only the reference file for that orchestrator, before the first command:

    line 25
  8. Distinctive:

    When the orchestrator's installed help or version-matched guide differs from a reference file, the installed help wins: a reference records …

    line 34
  9. Distinctive:

    When the observed behavior differs from the help (a split direction, the field that carries a handle, an option that times out), the …

    line 35
  10. Distinctive:

    If a coordinated agent is Claude Code, Codex or Antigravity CLI, also read references/agent-types.md before relaying its questions or …

    line 36
  11. Distinctive:

    Keep your own tab whole: when you create panes for agents, create them in another tab, in any orchestrator.

    line 56
  12. Distinctive:

    When an agent offers to commit as one option among others, you may pick the option that does not commit and collect the pending commits to …

    line 59
  13. Distinctive:

    If a create, split or close fails or times out, list the layout before retrying: the pane may exist anyway.

    line 69
  14. Distinctive:

    When several agents start at once, list the panes afterwards and check the count per agent type against the agreed layout.

    line 74
  15. Distinctive:

    If the orchestrator can send only text, a dialog that needs other keys (Esc, Shift+Tab, arrows) cannot be answered from it: summarize the …

    line 94
  16. Distinctive:

    Model: after selecting another variant or effort, the banner still shows the previous one.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

Coordinating agents under an orchestrator

This guide works on its own in any host that can drive an orchestrator through its CLI, API or MCP tools. It does not install agents, configure the host or create panes, terminals or workers by default. If the orchestrator's interface is missing, or there is no access to an authorized session, explain the precondition and stop: do not attribute started tasks or results to an agent you could not observe.

Step 0 — Permissions this skill uses

Run this once, when the skill loads and before its other steps. It keeps the session from stopping on a prompt for a command this skill is known to run. It is not a security check: the host and its hooks still decide.

  1. Run node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>. <skill dir> is the folder of this SKILL.md; <session folder> is the folder where the session started; the host is the one you run in.
  2. If node is missing or the command fails, say so, list the needs in <skill dir>/permissions.json and go on with the skill.
  3. Read hosts.<host> in the output. Show its notice when there is one.
  4. Ask each entry of its questions with the host's structured question tool, in the person's language: its text, then its options in the given order, the one marked recommended first. Low-risk and high-risk needs are separate questions; ask them separately and never recommend allowing a high-risk need.
  5. Run the command of the option the person chose, exactly as given. An option without a command writes nothing. Write nothing the person did not choose.
  6. Tell the person the applies line of the result: whether the change works now or after a restart. If the command fails, say so and go on.
  7. After "Skip for now", do not run this step again in the session.

Pick the adapter

  1. Identify the orchestrator from the person's words and from the environment (an injected variable, a running app, a team file).
  2. Read only the reference file for that orchestrator, before the first command:
    • Herdr, both herdr-core (hc with the Herdr app) and the older herdr multiplexer: references/herdr.md.
    • Orca: references/orca.md.
    • Paradev, whose CLI is superset: references/paradev.md.
    • T3 Code, which runs agents as threads: references/t3code.md.
    • AgentsRoom, driven through its MCP tools: references/agentsroom.md.
    • teamctl: references/teamctl.md.
    • Dorothy: references/dorothy.md.
  3. For any other orchestrator (Pylon, a tmux wrapper, an IDE panel), read its installed help or docs and answer every row of the primitives table below before acting. If it offers no way to read an agent's output or state, coordinate through the person: tell them what to send and ask what they see.
  4. When the orchestrator's installed help or version-matched guide differs from a reference file, the installed help wins: a reference records mappings and traps, not a complete CLI.
  5. When the observed behavior differs from the help (a split direction, the field that carries a handle, an option that times out), the observation wins: tell the person, with the version and platform, and adapt the next commands.
  6. If a coordinated agent is Claude Code, Codex or Antigravity CLI, also read references/agent-types.md before relaying its questions or switching its mode.
PrimitiveEstablish from the help before relying on it
LocateHow to list sessions, panes, terminals or workers, and which handle stays stable.
StartHow an agent is launched, where it runs and what "ready" means.
VerifyWhere the effective model, effort and permission mode are shown.
SendHow a task is delivered and what the acceptance response proves.
WaitWhich states exist and how to wait for one with a timeout.
ReadHow to read the agent's recent output or screen.
AnswerHow a question or permission dialog is answered: keys, a reply, or an approval command.
PlaceHow to open another tab for the agents, cut panes in it and read their size.
IsolateWhether agents share a checkout or get a worktree each.
RelocateHow to find the same agent and task again after a restart.

Scope and boundaries

  • Ask for the goal, the repository or working directory, the read and write limits, the agent type and the allowed effects. Read only what you need from the agent's output and from the authorized checkout; do not copy credentials, private transcripts or out-of-scope files into prompts or reports. Write only to authorized destinations, and make clear which agent will make each change. Do not make commits, publications or irreversible changes on the person's behalf.
  • Check the installed help before acting, for each operation you use. Options, agent types and model/effort gestures vary between orchestrators and versions; the agent's screen or the orchestrator's launch record confirms the effective values, not the launch argument or an assumption about the profile.
  • Identify your own pane, terminal or worker first (orchestrators usually inject its handle into your environment) and leave it out of every split, close, resize and send.
  • Keep your own tab whole: when you create panes for agents, create them in another tab, in any orchestrator. The only exception is the person asking for another placement in the current request.
  • If several agents share files or a stateful resource, agree on ownership and write order, and tell them not to use git stash, whose stack every worktree of the clone shares; prefer the orchestrator's per-task worktree when it has one and the person accepts it. Serialize only the stretch that needs it, with a generic mechanism suited to the context. Do not invent a global lock or manage other people's agents.
  • The person may delegate routine questions to you in writing ("answer the routine ones yourself"). A routine question touches none of the reserved effects in the next point: a step or route inside the agreed task, where to save a document within the task's destination, flow control. Answer it only when what was already agreed backs the answer: read the whole question and the earlier dialogue first, relay the answer, check its receipt and list it in your next summary to the person. A question that leaves you in doubt, or that the agreement does not settle, goes to the person.
  • When an agent offers to commit as one option among others, you may pick the option that does not commit and collect the pending commits to propose to the person at the end; never pick the option that commits.
  • A request for permission, a spend of quota/resources, a commit, a publication, an irreversible change or wider access goes back verbatim to the person, with its context and every visible alternative. Ask it with your host's structured question tool when it has one, otherwise as a labeled list, so that picking one option is the whole answer. Launching an agent with a permission-skipping flag, an autonomy level above the default or a remote placement is wider access too. Wait for an explicit written answer to that request; do not choose or press keys on their behalf, do not infer authorization from earlier instructions, and do not delegate it to the blocked agent. If the person does not answer, keep the block. Relay only the option they authorized, then check its receipt and the state that follows. A general authorization given earlier ("answer the routine ones yourself") is not the answer to that request. The host's permission policies still apply: if the host blocks sending keys, prompts or replies to another agent's dialog, do not look for another way; summarize for the person the question, its options and the agent's recommendation, and let them answer in the orchestrator's own interface.
  • A command the person invokes may declare, in its own published contract, that invoking it answers one of these requests for that run: the master skill, for example, authorizes unrestricted launches inside the task's folder and quota above a floor. Treat that invocation as the written answer for exactly the effects its contract names, in that run only. Every other reserved effect, and the same effect in a later run, goes back to the person.

Observable cycle

  1. Locate. List the orchestrator's sessions, panes, terminals or workers and find the right one; inspect it before acting if there is ambiguity. If the environment exposes a project registry (a CLI that lists projects with their folders), use it to pick the destination, and open the agent in that project's folder. Create a new pane, terminal, worker or worktree only once the destination and the layout are agreed; do not close or replace other people's. Keep the task ↔ handle relationship; do not rely only on an agent name.
    • Open the agents in a tab other than your own, creating it once the layout is agreed, and split only there. If the orchestrator cannot open a tab from its interface, ask the person to open one; do not split your own tab instead. Where agents are threads or get a tab each from the app (T3 Code, AgentsRoom), there is nothing to split and the layout rules below do not apply.
    • Build an agreed layout in two passes: first every pane with a plain shell, then the agents. Check the result of the first split before repeating it, because direction names vary between builds.
    • Keep every tab even: rows of equal height and, inside each row, panes of equal width, with no pane larger than its neighbors and space left over. Use the orchestrator's size ratio or resize command when it has one. When splits only halve a pane, plan the cut order: two panes side by side; three as two on top and one full-width below; four as two rows of two; more in another tab. Measure every pane before starting the agents, while its tab is shown: a hidden tab can report stale sizes.
    • If a create, split or close fails or times out, list the layout before retrying: the pane may exist anyway. A list taken right after a close may still show the closed pane; list again before concluding.
    • Close only panes you created that show an idle shell prompt with nothing running.
  2. Start. Check the start command's help and the agent type actually available. Pass only the options its help confirms. Success means the orchestrator detected the agent and it is ready for input, not that the task has started. If the destination is busy or the type is not supported, stop and rethink the choice; do not force the process.
    • If a usage tool is installed (such as openusage, which reads limits without spending them), check the remaining quota of the agent's provider before launching. A launch that would run a provider dry, a quota reset or paid credits is a spend of quota/resources.
    • Starting the agent by typing its command into a ready shell, then waiting for its interface to be idle, is easier to observe than a create-time command option.
    • When several agents start at once, list the panes afterwards and check the count per agent type against the agreed layout.
  3. Verify before the handoff. Read the agent's output and compare its banner or indicator, the effective model and effort, the permission mode, the session and the readiness with the agreed task. If you adjust model or effort through that agent's own UI, wait for it to update, read the screen again and only then confirm. A mode switch inside the agent (a planning mode, for example) can change its model or effort too: read the indicator again after any switch. If they are not shown or they differ, report the uncertainty and ask before using a different configuration.
  4. Delegate. Send a bounded task with goal, relative path or destination, read/write limits, expected test and stop conditions. Ask the agent to keep raising its flow decisions (route, split, save) as questions: told not to ask, an agent answers its own decisions unreviewed. An accepted send proves delivery to the orchestrator, not that the agent read, ran or finished it; a wait that does not track turns may match the end of another task if the agent was already working. Read the output again to check that it received this task. If receipt is uncertain, inspect before resending, to avoid duplicate instructions; use the orchestrator's idempotent retry when it has one.
  5. Follow. Wait for observed states with a suitable timeout, then read the output. A timeout, an unknown state or output that does not change proves neither failure nor success; record what you observed and reassess. Some orchestrators print a normal-looking result on timeout: read the field that says whether the condition was met, not the fact that something printed. A wait for one specific output signal serves that signal, not to credit the whole task; it can also match the echo of your own prompt, so wait for text that only the agent's answer can contain. With several agents, wait on them in parallel and handle each one as its wait returns.
  6. Close the task, not the agent. On done or idle, read the output anyway: it may hold a question, a permission or an error. Check the task's deliverable and validation against the evidence in the checkout or the agent's output. An agent that died or returned nothing produced no result: an empty list of findings from a reviewer that did not run is not a clean review. Report what is complete, what is unverified and what is pending; do not attribute to the person an approval they did not write.

Map the orchestrator's own state names onto these five before acting; each reference file lists its mapping. An orchestrator with no state detection yields unknown until you read the output.

Observed signalNext action before reporting
workingWait or read progress; do not interrupt or send a second uncertain instruction.
blockedRead the output; answer a delegated routine question yourself, otherwise take the question and its options to the person and wait for a specific authorization; confirm receipt after relaying it.
idleRead the output: it may be waiting on a question or the next task; check the previous result before concluding.
doneRead the output and verify the deliverable/tests of that specific task before declaring it concluded, even when the reported outcome is a success.
unknownRead the output, review detection or liveness and keep the state as uncertain; do not repeat or declare success.

Questions, restarts and recovery

  • On a block that is not a delegated routine question, read the full text of the request and present its alternatives to the person with the effect of each one. Do not send keys, prompts or replies to answer until you receive the explicit choice. Answer through the channel the request uses: keys for a terminal dialog, a reply for a message-bus question, an approve/deny command for an approval queue. Read the output again and, if receipt is not confirmed, keep the question pending without assuming the answer arrived. An answer sent right before a disconnection is also uncertain.
  • Relay an option the agent marks as recommended as the agent's opinion, never as the person's choice.
  • If the orchestrator can send only text, a dialog that needs other keys (Esc, Shift+Tab, arrows) cannot be answered from it: summarize the question for the person and let them answer in the orchestrator's interface.
  • Closing a pane to relaunch its agent ends the process running there: check the handle and agree on it with the person first.
  • A dialog with several tabs is read in full before taking it to the person: walk through it without choosing (navigation keys vary between agents) and read the screen again after each key, because the refresh may arrive late. When relaying authorized choices, send only when the review screen shows every answer; if one is missing, complete that tab before sending.
  • After a restart or a session change, names and handles may be lost or reassigned. Relocate with the identifier you kept and by reading the output, to check it is the expected session and task; send to one handle only, never to the old and the new one both. Do not send "continue" or repeat the task until you have checked what the instance received and what it ran; if that cannot be shown, ask the person how to recover.
  • If the handle changes, the output does not reflect the model/effort after the pause, another instance appears or the evidence contradicts the state, stop, inspect and report the uncertainty. An authorization for one question does not carry over to another, even if they look alike.

Synthetic examples

  • Blocked: an agent asks "publish now? Yes / No". Take both options to the person. With the written answer "No", relay "No", read the output again to check receipt and keep the result without claiming a publication.
  • Delegated routine: the person said earlier "answer the routine ones yourself", and an agent asks under which of two folders to save its report. The agreed task names the destination: answer it, check receipt and list it in your next summary.
  • General authorization: the same person said "answer the routine ones yourself", and an agent asks to publish a package. A publication is reserved, so the earlier sentence does not answer it: summarize the request and its options, ask for the choice and, if the host blocks sending, let the person answer in the orchestrator's interface.
  • Uncertain send: the orchestrator accepts "review module", but the output still shows the previous task. Read again and wait for a sign of receipt; do not resend blindly or declare the review finished.
  • Timed-out split: a split command reports a timeout. List the layout first; if the new pane exists, use it instead of splitting again.
  • Restart: the agent's name no longer resolves. Find the associated handle and read its output; resume following only after identifying the instance and the last task.
  • Model: after selecting another variant or effort, the banner still shows the previous one. Wait and read again; until it reflects the change, do not report the new value as effective.
  • Launch default: the orchestrator starts agents with permissions skipped unless told otherwise. Start it with permissions enforced, or ask the person first; skipping is wider access.
  • Finished: done appears and the output reports a path and passing tests. Check that path and the test output in the authorized checkout; only then report that task as complete.

Invariants to keep in mind

  • An accepted send is not receipt, and a state is not a result: read the output and check the evidence.
  • Permission, quota/resources, commit, publication, irreversible changes and wider access go back verbatim to the person, one request at a time.
  • A routine question is yours to answer only when the person delegated it and what was agreed backs the answer.
  • Your own tab stays whole: the agents' panes live in another tab.
  • The effective model, effort and permission mode are the ones the agent or its launch record shows.

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.