← All Patterns
Runtime Agent Loader Pattern diagram
Runtime Agent Loader Pattern — structural diagram

Motivation

Hardcoded orchestration logic cannot be modified without deployment. Adding an agent to a squad, changing the execution flow, or swapping an orchestrator should not require code changes.

Configuration-driven loading separates what the system does from how it is assembled. The YAML is the architecture definition. The loader wires it at startup.

Structure

Key Concepts

SquadLoader AgentLoader AgentRegistry squads.yaml flow steps result_key merge_with_global() _load_squad()

Used in K9-AIF

SquadLoader AgentLoader _load_squad() k9_generator.sh all EOC squads all DoW squads k9-aif-intake