CClaude Code Catalog
全パターン

マルチエージェントチーム連携

エージェント上級

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パターンは、複雑な開発シナリオに対応するための実証済みアーキテクチャ設計とワークフロー構造です。マルチエージェントチーム連携は上級レベルのエージェントパターンで、プロジェクトに合わせて応用できるテスト済みの再現可能なアプローチを提供し、より効率的で一貫した成果を実現します。

関連パターン