agent가 늘면 interface도 늘어
멀티 에이전트 시스템은 자동으로 더 똑똑해지지 않아. 언어모델 모양의 node를 가진 분산 시스템이야. 모든 handoff는 interface고, 모든 interface는 context를 떨어뜨리거나, 일을 중복하거나, 에러를 증폭할 수 있어.
specialization이나 parallelism이 그 coordination cost를 이길 때만 여러 agent를 써.
유용한 네 가지 패턴
- Orchestrator: manager 하나가 specialist들에게 일을 배정.
- Pipeline: 각 agent가 다음 stage를 위해 output을 변환.
- Debate: agent들이 대안이나 반대 관점을 낸 뒤 judge가 결정.
- Review: generator와 critic이 품질 기준까지 반복.
프로덕션 멀티 에이전트의 대부분은 orchestrator나 review pattern이야. 자유로운 agent chatroom은 멋져 보이고 디버깅은 끔찍해.