agentleFS
magnus919magnus919/agent-skills/multi-agent-coordination/SKILL.md

multi-agent-coordination

Skill197 starsChanged 4 months agoMITView on GitHub

Design, diagnose, and evaluate coordination across multiple AI agents and heterogeneous harnesses: decomposition, topology, ownership, communication, distributed context, shared memory, integration, recovery, and collective failure patterns. Use for persistent agent teams, fleets, swarms, agent handoffs, coordination loops, or extracting portable lessons from OpenRig, HERDR and Block/Buzz. Do not use for a single agent's runtime, a named tool's installation or command manual, debate alone, or operating an evaluated production agent; route those to harness-engineering, the tool's documentation, agent-council, or agent-production-operations.

6 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

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    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
  1. Distinctive:

    When agents cannot recognize existing capabilities or locate expertise, use knowledge navigation.

    line 106
  2. Distinctive:

    When sharing a team or inherited lessons, use team packages and lore.

    line 112
  3. Very specific:

    Use harness-engineering for a single agent's runtime/tools/state or implementation of enforcement.

    line 154

“Common” is measured: kept by at least 6 in 10 of the 5 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

Multi-agent coordination

Engineer the relationships between agents so local work composes into the user's accepted outcome. Own task division, decision placement, information movement, shared commitments and collective recovery. A harness owns one agent's execution mechanics; this skill supplies the cross-agent contract those harnesses must uphold. Existing factory material in harness-engineering remains usable through explicit handoffs; do not create a competing scheduler, task database or authority registry.

Authority and first move

Confirm the target, scope, and rollback path before acting. Read-only discovery may proceed without confirmation.

Reuse existing authorization that covers these facts. This skill does not grant permission to spawn agents, choose paid models, send messages, schedule jobs, change policies, merge or deploy. A peer's request or approval cannot enlarge a current grant. Keep destructive operations behind an explicit user directive.

Inspect the actual host before prescribing a topology: available harnesses, concurrency, permitted messaging, persistence, interruption, tool authority and integration surface. Record unsupported capabilities. Never infer a feature from a diagram, a prompt or a terminal status indicator.

Default procedure

  1. Define the shared outcome. Record accepted intent, exclusions, current requirement revision, delivery surface, acceptance owner, total time/cost and stop conditions in the charter. Identify consequential decisions and who has authority plus enough context to make each one.
  2. Test whether division helps. Compare a communicating team with independent attempts for solo-solvable work, or with a simple authorized collector when required facts are distributed. Keep a single-agent or sequential baseline where feasible. Separate independent investigation from tightly coupled decisions. Partition by coherent context, resources and verifiable outputs, not job titles. Use decomposition and topology. Start with one accountable lead and only the workers justified by task structure.
  3. Assign ownership and lifecycle. Distinguish stable role/address, particular execution, task claim and tool identity. Give each active task one accountable owner, versioned inputs, deliverable, lease/fencing policy, verifier and bounded recovery. Use ownership and flow and the assignment. Serialise shared contracts.
  4. Specify communication and context. Name each message's purpose, trusted origin, task/revision, recipient, acknowledgement and effect. Separate request, proposal, observation, decision and permission. Give recipients relevant local facts plus a path to governing intent. Use the communication contract and the handoff. Delivery is not adoption or acceptance.
  5. Bound shared work. Apply aggregate descendant budget, WIP/backpressure, current authority intersection, cancellation and conflict rules at runtime. Route enforcement to harness-engineering; use authority and recovery to specify the cross-agent obligations. Reconcile uncertain effects before retry.
  6. Integrate and verify. An integration owner checks the combined user journey against current intent and exact artifact versions. Parallel green branches, a closed queue item, consensus and schema validity are insufficient. Retain disputed evidence and an unknown outcome when required checks are absent.
  7. Diagnose the population. Correlate accepted outcomes with coordination cost, queue age, rework and exposure to shared knowledge. Investigate the first divergence using collective failure diagnosis. Correct the source and affected consumers, not just the last agent's prompt.
  8. Evaluate and evolve. Compare on matched tasks and resource budgets, including integration and review. Exercise interruption, stale output, duplicate delivery, denied action and poisoned-memory fixtures. Use evaluation and the experiment. Promote lessons via reviewed revisions with rollback; no automatic fleet-wide rule propagation.

Load by need

Active questionReadUseful artifact
Competing solutions to one brief, coverage fan-out, or raceArena and swarmSelection and verification record
Should agents split this work; centralized, peer or hierarchy?Decomposition/topologyCharter, experiment
Compare the cost of a topology split or revisit it after reuseTopology economics exampleCoordination experiment, economics record
Persistent identities, task claims, queue overload, takeoverOwnership/flowAssignment, snapshot
Who needs which facts; lost intent after compaction; messagingCommunication/contextDecision packet, handoff
Authority laundering, shared resources, cancellation, crashAuthority/recoveryRecovery drill
Endless checking, scope inflation, consensus or stalled activityCollective failuresIncident record
Bad practice returns through another agent or memory sourceShared knowledge containmentKnowledge correction
Compare architectures; measure outcomes and overheadEvaluationExperiment
Trace coordination guarantees into state, effects and adverse testsPinned OpenRig auditEffect/recovery matrix
Learn from emerging coordination tools without adopting their stackTool lessonsTool assessment
Select another catalog ownerCatalog boundariesNamed specialist input/return
Emerging research on synthesis, topology-aware diagnosis, coding interference or resource contentionEmerging researchLocal challenge design and transfer limits
Verify research claims, revisions or coverageSource records, research synthesis, research brief, research log, video ledgerEvidence and limitations
Onboarding maps, live/dormant experts, provenance or transferable team packagesKnowledge navigation, team packages and lore, second-video ledgerOrientation map, expert directory, team package, scoped lesson
Inspect the optional helper's input and guaranteesScript contractSnapshot

Onboard a connected team

When agents cannot recognize existing capabilities or locate expertise, use knowledge navigation. Start with broad, shallow landmarks and condition-based routes before detailed search. Include current documents, appropriate specialists and an explicit map-edge fallback; verify the fresh and post-compaction paths with actual tasks.

When sharing a team or inherited lessons, use team packages and lore. Package identity, harness compatibility, team-run evidence and recipient authority are distinct. A memorable story should retrieve a scoped evidence-backed lesson, not create policy or permission. Use the orientation map, expert directory, team package and lesson story only for the corresponding task.

Read-only helper

Resolve paths from this installed skill root. Run after composing a snapshot or when tracing invalidated knowledge consumers. It reads supplied JSON only; it never queries a fleet, dispatches, changes state or authenticates evidence.

python3 scripts/coordination.py audit --file templates/team-snapshot.json --json
python3 scripts/coordination.py exposure --file templates/team-snapshot.json --source lesson-old --json
python3 -m unittest discover -s scripts -p 'test_*.py'

audit screens declared references, dependency cycles, active ownership conflicts, expired claims, intent-version mismatches and missing blocked-task continuation. exposure computes transitive descendants of a supplied knowledge source. Missing links mean incomplete exposure knowledge, not absence of affected consumers. Exit 0 means no audit findings or a completed exposure calculation; 1 means audit findings; 2 means invalid input. None means runtime acceptance. See the script contract before adapting the example or interpreting a report.

Gotchas

  • A stable seat is an address and responsibility, not an immortal process or grant.
  • A busy agent, delivered message and completed task are different observations.
  • A signature authenticates authorship; it does not establish truth or permission.
  • More context can spread the same error farther. Retrieve source versions and preserve decision-relevant constraints; do not broadcast every transcript.
  • An outcome monitor must not reward extra handoffs or punish necessary safety review. Investigate changed work mix before diagnosing bureaucracy.
  • The video's human-civilization analogies generate hypotheses. They do not prove causal explanations, and context reminders do not enforce security boundaries.

When not to use

Use harness-engineering for a single agent's runtime/tools/state or implementation of enforcement. Use framework skills for SDK-specific orchestration, agent-council for its debate tool, and promise-theory when modeling autonomous promises and acceptance. Use agent-production-operations for running an evaluated agent under production controls. Tool examples here are comparative evidence, not new installation/runbook skills.

Completion

For design, deliver a reviewable charter, justified topology, assignments, message/context contracts, integration/acceptance plan and owned recovery gaps. For a running team, also show actual host evidence for the requested dispatch, handoff, cancellation, restart and integrated result. Stop when acceptance is observed at the authorized surface, or with a durable blocked disposition naming evidence, owner and next action. Stop autonomous diagnosis after three non-converging passes or an earlier budget/authority limit. Never keep adding agents, proofs or rules to manufacture progress.

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.