MODULE 08 // 23:15

Supervisor-Worker Topologies & Context Isolation

Keep sub-agent context windows lean by delegating scoped subtasks and passing only distilled artifacts back to the orchestrator.

// KEY ARCHITECTURAL TAKEAWAYS

  • Avoid chatty multi-agent loops that multiply token burn without improving accuracy.
  • Define typed handoff contracts between Planner, Researcher, Coder, and Reviewer roles.
  • Execute independent read-only sub-agents concurrently.
REFERENCE IMPLEMENTATION // SNIPPET
handoff_payload = {
    'from': 'architect_agent',
    'to': 'implementation_agent',
    'spec_ref': 'artifacts/api_contract.json',
    'acceptance_criteria': ['zero_external_deps', 'clean_url_routing']
}