멀티 에이전트 팀 협업
에이전트고급
CLAUDE.md에 에이전트 역할을 정의하여 각 Claude Code 인스턴스가 고유한 책임(아키텍트, 구현자, 리뷰어, 테스터)을 맡도록 합니다. git worktree로 각 에이전트의 작업 공간을 격리한 뒤, 코디네이터 에이전트가 충돌을 해결하고 통합을 검증하며 결과를 병합합니다.
멀티 에이전트협업worktree위임오케스트레이션
패턴 코드
# CLAUDE.md — Multi-Agent Team Configuration
## Agent Roles
### Architect Agent (tmux pane 0)
You are the architect agent. Your responsibilities:
- Design module boundaries and interfaces
- Write type definitions and API contracts
- Create architectural decision records in docs/adr/
- Do NOT implement business logic
### Implementer Agent (tmux pane 1-2)
You are an implementer agent. Your responsibilities:
- Implement modules according to specs in docs/adr/
- Follow existing code style strictly
- Write unit tests alongside implementation
- Do NOT modify public interfaces without architect approval
### Reviewer Agent (tmux pane 3)
You are the reviewer agent. Your responsibilities:
- Review all changes in the feature branch
- Check for consistency with architecture docs
- Verify test coverage meets 80% threshold
- Flag any security or performance concerns
## Orchestration Script
```bash
#!/bin/bash
# Launch agent team via tmux
SESSION="agent-team"
tmux new-session -d -s $SESSION
# Architect in pane 0
tmux send-keys -t $SESSION:0 \
'cd $(git worktree add .worktrees/architect -b feat/arch) && \
claude -p "Read docs/spec.md and create interface definitions"' Enter
# Implementer 1 in pane 1
tmux split-window -h -t $SESSION
tmux send-keys -t $SESSION:0.1 \
'cd $(git worktree add .worktrees/impl-1 -b feat/impl-1) && \
claude -p "Implement module-a per docs/adr/001.md"' Enter
# Implementer 2 in pane 2
tmux split-window -v -t $SESSION:0.1
tmux send-keys -t $SESSION:0.2 \
'cd $(git worktree add .worktrees/impl-2 -b feat/impl-2) && \
claude -p "Implement module-b per docs/adr/002.md"' Enter
# Reviewer in pane 3
tmux split-window -v -t $SESSION:0.0
tmux send-keys -t $SESSION:0.3 \
'claude -p "Watch for new commits on feat/* branches and review each"' Enter
```
이 패턴을 프로젝트 설정에 복사하여 적용하세요.
실행 미리보기
멀티 에이전트 팀 협업
멀티 에이전트 팀 협업에 대해
Claude Code 패턴은 복잡한 개발 시나리오를 효과적으로 다루기 위한 검증된 아키텍처 설계와 워크플로우 구조입니다. 멀티 에이전트 팀 협업은(는) 고급 수준의 에이전트 패턴으로, 프로젝트에 맞게 응용할 수 있는 테스트된 반복 가능한 접근 방식을 제공하여 더 효율적이고 일관된 결과를 만들어 냅니다.