講座 › 分野1 エージェントアーキテクチャとオーケストレーション
1.3 サブエージェントの呼び出しと文脈の受け渡し
配点 3.9%Subagent invocation and context passing
サブエージェントは、渡された指示文だけを頼りに動く。呼び出しの設定と、渡す中身が、結果の質を決める。
未読
サブエージェントを呼ぶ道具 読了

調整役は、専用のツールでサブエージェントを呼び出します。試験ガイドでは Task ツールと呼ばれ、調整役の allowedTools にこれが入っていないと呼べません。現在の公式文書では、同じものが Agent ツールの名前です。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The Task tool as the mechanism for spawning subagents, and the requirement that allowedTools must include "Task" for a coordinator to invoke subagentshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Create custom subagents
In version 2.1.63, the Task tool was renamed to Agent.https://code.claude.com/docs/en/sub-agents.md(取得 2026-11-20)
渡せるのは、指示文だけ 読了

親からサブエージェントに渡る内容は、呼び出しのときの指示文です。親の会話履歴やツールの結果は届きません。ファイルの場所、エラーの文面、決めたことは、指示文の中に書き込みます。
出典:Subagents in the SDK
The only content you pass from parent to subagent is the Agent tool's prompt string, so include any file paths, error messages, or decisions the subagent needs directly in that prompt.https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)
出典:Subagents in the SDK
The parent's conversation history or tool resultshttps://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Including complete findings from prior agents directly in the subagent's prompthttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
役割ごとの定義:説明・指示・使える道具 読了

サブエージェントは、いつ使うかを書いた説明、役割を決める指示、使える道具の範囲で定義します。調べるだけの役には、読み取りの道具だけを渡せば、意図しない操作を防げます。
出典:Subagents in the SDK
Natural language description of when to use this agenthttps://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)
出典:Subagents in the SDK
subagents can be limited to specific tools, reducing the risk of unintended actions.https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)
並列に走らせる 読了

互いに独立した仕事は、1回の応答で複数の呼び出しをまとめて出せば、同時に動きます。全体の時間は、いちばん遅い仕事の長さになります。ターンを分けて出すと、順番待ちになってしまいます。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Spawning parallel subagents by emitting multiple Task tool calls in a single coordinator response rather than across separate turnshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Subagents in the SDK
multiple subagents can run concurrently, so independent subtasks finish in the time of the slowest one rather than the sum of all of them.https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)
出所を残して渡す 読了

サブエージェントの結果は、最後のメッセージだけが親に返ります。次の担当に渡すときは、本文と、出典のURL・文書名・ページ番号を分けた形式にすると、出所が失われません。
出典:Subagents in the SDK
intermediate tool calls and results stay inside the subagent; only its final message returns to the parent.https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Using structured data formats to separate content from metadata (source URLs, document names, page numbers) when passing context between agents to preserve attributionhttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
試験のポイント
- 親から子に渡るのは指示文だけ。必要な事実は、全部そこに書く。
出典:Subagents in the SDK
The only content you pass from parent to subagent is the Agent tool's prompt string, so include any file paths, error messages, or decisions the subagent needs directly in that prompt.
https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20) - 独立した仕事は、1回の応答で複数まとめて呼び、並列に走らせる。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Spawning parallel subagents by emitting multiple Task tool calls in a single coordinator response rather than across separate turns
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20) - 文脈を渡すときは、本文と出所のメタデータを分けた構造にする。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Using structured data formats to separate content from metadata (source URLs, document names, page numbers) when passing context between agents to preserve attribution
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)