← All Patterns
Agent Squad Pattern diagram
Agent Squad Pattern — structural diagram

Motivation

Multi-agent systems fail when agents operate in isolation without shared state or governance. As systems grow, informal coordination collapses — agents produce incompatible outputs, governance becomes inconsistent, and debugging is impossible.

The Squad pattern introduces a formal coordination layer between orchestrators and individual agents. A Squad defines a sequential execution flow, maintains a shared context that grows progressively richer as each agent contributes, and enforces governance at the squad boundary.

Structure

Key Concepts

BaseSquad SquadLoader flow steps result_key context enrichment AgentRegistry

Used in K9-AIF

BaseSquad SquadLoader EOC — ClaimsProcessingSquad EOC — FraudDetectionSquad EOC — ComplianceSquad DoW — 6 DoDAF stage squads