CClaude Code Catalog
全パターン

Agent Teams ダイレクトメッセージングパターン

エージェント上級

従来のマルチエージェントパターンと異なり、Agent Teams(2026-02)はエージェント間の直接メッセージと共有タスクキューをサポートします。

Agent Teamsダイレクトメッセージタスクキュー協業2026

パターンコード

# Agent Teams — Direct Messaging Pattern (2026) ## Key Difference from Multi-Agent Teams - Old: Coordinator agent relays messages between agents - New: Agents message each other directly + shared task list ## Configuration ```yaml # .claude/agent-teams.yml team: name: "feature-sprint" agents: architect: role: "Design interfaces and write specs" tools: [Read, Grep, Write] worktree: true # isolated worktree frontend: role: "Implement React components per specs" tools: [Read, Write, Edit, Bash] worktree: true backend: role: "Implement API endpoints and services" tools: [Read, Write, Edit, Bash] worktree: true qa: role: "Write and run tests, report failures" tools: [Read, Write, Bash, Grep] worktree: true # Shared task list — agents claim tasks autonomously tasks: - "Design User API interface" - "Implement UserController" - "Implement UserForm component" - "Write integration tests" - "Write unit tests for UserService" # Direct messaging rules messaging: # Who can message whom channels: - from: architect to: [frontend, backend] purpose: "Spec delivery and clarification" - from: qa to: [frontend, backend] purpose: "Bug reports and test failures" - from: frontend to: [backend] purpose: "API contract questions" ``` ## Launch ```bash # Start agent team (each gets isolated worktree) claude team start --config .claude/agent-teams.yml # Monitor progress claude team status # Output: # architect: ✅ 2 tasks done (specs written) # frontend: 🔄 Working on UserForm (claimed from queue) # backend: 🔄 Working on UserController # qa: ⏳ Waiting (blocked until impl done) # # Messages: # [frontend → backend] "Does GET /users support pagination?" # [backend → frontend] "Yes, ?page=1&limit=20, see spec L45" # [qa → backend] "UserService.create() missing validation" ``` ## Key Benefits 1. No coordinator bottleneck — agents communicate directly 2. Shared task queue — agents self-organize, claim available work 3. Worktree isolation — no merge conflicts during development 4. Observable — all messages logged, team status dashboard

このパターンをプロジェクト設定にコピーして適用してください。

実行プレビュー

Agent Teams ダイレクトメッセージングパターン

Agent Teams ダイレクトメッセージングパターンについて

Claude Codeパターンは、複雑な開発シナリオに対応するための実証済みアーキテクチャ設計とワークフロー構造です。Agent Teams ダイレクトメッセージングパターンは上級レベルのエージェントパターンで、プロジェクトに合わせて応用できるテスト済みの再現可能なアプローチを提供し、より効率的で一貫した成果を実現します。

関連パターン