Dev & Engineering multi-agent-architecturecontext-isolationorchestrationswarm-coordinationagent-handoffsparallel-execution

Multi-Agent Architecture Patterns

Design multi-agent systems with context isolation, explicit handoffs, coordinated execution, and controlled failure handling.

FollowSkills review · FSRS-2.0
Not recommended
55/ 100 5-point scale 2.8 / 5
Trust16 / 25 · 3.2/5

The skill provides architectural guidance and local examples, with no evidence of credential theft, covert exfiltration, or other malicious behavior. However, the filesystem-coordination examples write shared state, create directories, and create lock files without specifying least privilege, sensitive-data handling, user confirmation, isolation boundaries, or rollback, so 9 points are deducted.

Reliability8 / 20 · 2.0/5

The concepts, reference material, and coordination.py are broadly consistent and include failure handling, retries, and circuit-breaker examples. However, key paths lack skill-specific tests; the handoff acknowledgement flow is incomplete; examples rely on simulated execution and placeholders; and some framework snippets lack complete imports or termination behavior. 12 points are deducted; the static cap is 10, so this receives 8.

Adaptability11 / 15 · 3.7/5

Activation conditions, topology choices, adjacent-skill boundaries, and non-activation cases are relatively clear, covering supervisor, swarm, and hierarchical systems. Inputs, outputs, non-fit boundaries, and trigger precedence remain insufficiently formalized, and Chinese-language support and mainland-China network fit are not addressed, so 4 points are deducted.

Convention10 / 15 · 3.3/5

The documentation is well organized and includes progressive topics, examples, gotchas, integration boundaries, references, an MIT license, version, and update date. However, maintenance responsibility is assigned only to a broad contributor group; there is no changelog, explicit update path, dependency-installation guidance, or systematic FAQ, and some material assumes unavailable surrounding context. 5 points are deducted.

Effectiveness6 / 15 · 2.0/5

The skill can guide topology selection, context isolation, handoffs, consensus, and failure handling, and it includes reusable local coordination code. However, the code contains simulated responses, production replacement points, and framework placeholders; no skill-specific key-path outputs are verified; and substantial engineering work remains, so 9 points are deducted. The static cap is 7, so this receives 6.

Verifiability4 / 10 · 2.0/5

The skill includes external research and framework references, and repository-level CI and test materials exist. However, the supplied CI does not cover this skill's key paths, external claims and examples lack verifiable skill-specific test results, and some references support concepts rather than the stated quantitative claims. 6 points are deducted; the static cap is 5, so this receives 4.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision c578e85e40fe
Before you use it
  • Do not treat scripts/coordination.py as production-ready: it contains synchronous simulation, placeholder logic, and incomplete handoff acknowledgement.
  • Before using filesystem coordination, add path restrictions, a permission model, concurrency guarantees, sensitive-data rules, and recovery procedures.
  • Verify the “approximately 15x cost,” LangGraph performance differences, and other quantitative claims against the original research; this review is static only.
  • Before adopting a framework example, complete dependencies, imports, graph termination conditions, and framework-version compatibility.
See the full review method →

What does this skill do, and when should you use it?

This skill guides developers designing multi-agent systems around supervisor, peer-to-peer swarm, and hierarchical architectures. Its central principle is context isolation: each agent should receive the context needed for its subtask without carrying unnecessary accumulated history. It covers parallelization, handoffs, consensus, validation, and failure mitigation. It is an architecture guide rather than an executable multi-agent runtime.

Explains how to select supervisor, swarm, or hierarchical topologies based on decomposition and coordination needs; designs explicit handoff and state-passing protocols; compares full-context delegation, instruction passing, and filesystem memory; recommends weighted voting, debate protocols, validation checkpoints, retries, circuit breakers, and time-to-live limits; and provides Python pseudocode, architecture diagrams, and references for LangGraph, AutoGen, and CrewAI.

  1. An agent-platform engineer deciding whether a complex task benefits from multiple isolated contexts.
  2. A research-team developer coordinating parallel source searches, document analysis, and synthesis.
  3. A customer-service developer routing billing, technical, sales, and general requests through explicit handoffs.
  4. A production team diagnosing supervisor saturation, telephone-game information loss, or cascading agent errors.
  5. An engineering team structuring a large workflow across strategy, planning, and execution layers.

What are this skill's strengths and limitations?

Pros
  • Covers supervisor, peer-to-peer swarm, and hierarchical architectures.
  • Treats context isolation as the primary design benefit of multi-agent systems.
  • Provides concrete guidance for handoffs, consensus, validation, and failure handling.
  • Addresses supervisor bottlenecks, information degradation, coordination overhead, and error propagation.
  • Uses platform-agnostic principles with transferable Python pseudocode examples.
Limitations
  • It is primarily architecture guidance and does not provide a complete executable framework implementation or test suite.
  • Multi-agent systems add token cost, communication overhead, and latency; the skill's gotchas recommend budgeting for roughly 15x baseline cost.
  • Framework-specific implementation requires consulting LangGraph, AutoGen, or CrewAI documentation.
  • The source does not provide project-specific performance results or deployment configurations.

How do you install this skill?

Copy the complete skills/multi-agent-patterns directory into a compatible skills directory, for example: mkdir -p .codex/skills && cp -R skills/multi-agent-patterns .codex/skills/. It can also be copied into .claude/skills/ or the generic .agents/skills/ directory. Do not flatten SKILL.md into a standalone file. The source does not specify additional dependency installation.

How do you use this skill?

Use it in an Agent Skills-compatible host with a request such as: Choose a multi-agent architecture for a system that performs parallel research, fact-checking, and report writing, then define its handoff and validation protocols. It is intended to activate for context isolation, supervisor or swarm coordination, explicit handoffs, parallel execution, or deciding whether multiple agents are justified.

How does this skill compare with similar options?

The skill compares supervisor/orchestrator, peer-to-peer/swarm, and hierarchical architectures: supervisors fit centralized control and human oversight, swarms fit flexible exploration, and hierarchical systems fit large projects with strategy, planning, and execution layers. It also compares full-context delegation, instruction passing, and filesystem memory as isolation mechanisms.

FAQ

Will using multiple agents reduce cost?
Not necessarily. The skill warns that multi-agent systems can use substantially more tokens than single-agent systems and should be measured against a single-agent baseline.
Does this skill run or deploy agents automatically?
No. The source provides architecture guidance, pseudocode, and design recommendations, but does not describe an executable runtime or deployment automation.
How can information loss between agents be reduced?
Use explicit handoff and state-passing protocols, apply `forward_message` when synthesis would lose fidelity, and add validation checkpoints for critical outputs.
When should multiple agents be avoided?
Avoid them when the task gains little from context isolation or when decomposition, communication, and consensus costs exceed the benefits of parallel execution.

More skills from this repository

All from muratcankoylan/Agent-Skills-for-Context-Engineering

Dev & Engineering

Latent Briefing

Share task-relevant orchestrator state with workers through task-guided KV-cache compaction when the inference runtime is controllable.

Dev & Engineering

Context Engineering for Production Agents

A structured guide to designing, optimizing, and evaluating production agent systems with reliable context management.

Dev & Engineering

Long-Horizon Prompting

Designs auditable launch briefs for autonomous agents and parallel multi-agent work on difficult, long-running tasks.

Dev & Engineering

Context Engineering Fundamentals

Understand and shape reliable agent context through attention budgets, context-window mechanics, and signal-density principles.

Dev & Engineering

Context Degradation Diagnosis

Identify and mitigate lost attention, poisoning, distraction, confusion, and conflict in long agent contexts.

Dev & Engineering

Project Development Methodology

Decide whether an LLM fits the job, then design a staged agent pipeline with predictable parsing, iteration, and cost control.

Dev & Engineering

BDI Mental State Modeling

Turn RDF context into explainable belief, desire, and intention chains.

Dev & Engineering

Filesystem Context Engineering

Move large, durable, or shared agent context into files and retrieve it selectively when needed.

Dev & Engineering

Context Compression Strategies

Compress long-running agent sessions while preserving files, decisions, risks, and next actions.

Dev & Engineering

Agent Evaluation Methods

Build repeatable evaluation, regression detection, and quality gates for agent pipelines.

Dev & Engineering

Self-Improvement Loops

Evolve agent harnesses, workflows, and context mechanisms under bounded, evidence-based evaluation.

Dev & Engineering

Context Efficiency Optimizer

Reduce context cost with caching, masking, compaction, and partitioning while preserving answer quality.

Dev & Engineering

Agent Skill Blueprint

A reusable structure for authoring well-scoped context-engineering skills.

Dev & Engineering

Reasoning Trace Optimizer

Diagnose context, tool, and instruction failures by analyzing agent traces and iteratively improving prompts.

Dev & Engineering

Hosted Agent Infrastructure

Design remote sandbox infrastructure for fast, persistent, collaborative background coding agents.

Dev & Engineering

Advanced LLM Evaluation

Build auditable, calibrated LLM-output evaluations with explicit rubrics, confidence scoring, and bias controls.

Dev & Engineering

Persistent Semantic Memory Design

Design durable, retrievable agent memory that scales from simple files to temporal knowledge graphs.

Dev & Engineering

Agent Tool Design Guide

Design tool interfaces agents can route, call, and recover from reliably.

Dev & Engineering

Autonomous Agent Harness

Designs autonomous agent loops that remain controlled, recoverable, and auditable.

Dev & Engineering

Rigorous Research Agent

A validation, recovery, and source-tracking protocol for multi-step research.

Related skills