สถานะ: 🟢 Complete | อัพเดท: 2026-06-27
Multi-Agent Systems
คืออะไร
หลาย Claude instances ทำงานพร้อมกัน — orchestrator แบ่งงาน, subagents ทำงานแต่ละส่วน
โครงสร้าง
Orchestrator Claude
├── Subagent A (research)
├── Subagent B (writing)
└── Subagent C (code review)
ประโยชน์
- Parallel: หลายงานพร้อมกัน — เร็วกว่า sequential
- Specialization: แต่ละ agent มี system prompt เฉพาะทาง
- Context isolation: แต่ละ subagent เห็นเฉพาะ context ของงานตัวเอง
ใน Claude Code
Agent tool ใน Claude Code เป็น built-in multi-agent — orchestrator spawn subagents ด้วย Agent(prompt=...)
ข้อระวัง
Cost เพิ่ม (หลาย API calls), coordination overhead, ยากต่อ debug — ใช้เมื่อ single agent ทำไม่ไหวจริงๆ