Answer: A subagent is a specialized AI assistant that runs in its own context window with a custom system prompt, specific tool access, and independent permissions. It works on a delegated task and returns a summary to the main conversation. Status: Confirmed Entry: tool/claude-code/agents-and-automation/what-is-a-subagent Revision: 4 Digest: sha256:ee8660db1e596500 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:18Z Last changed: 2026-11-20T12:21:04Z (behavior: works on a delegated task and returns a summary to the main conversation → It works on a delegated task and returns a summary to the main conversation) Last verified: 2026-11-20T12:21:04Z Next check: 2026-11-21T12:21:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of definition | A specialized AI assistant that runs in its own context window with a custom system prompt, specific tool access, and independent permissions | [1] | 2026-11-20 behavior | It works on a delegated task and returns a summary to the main conversation | [1] | 2026-11-20 built-in subagents | Explore, Plan, and general-purpose | [1] | 2026-11-20 Sources: [1] Anthropic. "Glossary". https://code.claude.com/docs/en/glossary.md Role: primary. Accessed: 2026-11-20T12:21:04Z Quote: "A specialized AI assistant that runs in its own context window with a custom system prompt, specific tool access, and independent permissions." (Supports: definition) Quote: "It works on a delegated task and returns a summary to the main conversation." (Supports: behavior) Quote: "Built-in subagents include Explore, Plan, and general-purpose." (Supports: built-in subagents) Published: 2026-11-20T10:31:29Z Snapshot SHA-256: 9710e9dd45dfbb7bc5446cae9c7e560eb798451ecdcf49756a0e31d0797a5f75 (captured 2026-11-20T12:21:02Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:21:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:04Z Last attempt: 2026-11-20T12:21:04Z Notes and limitations: Extracted automatically from a single official source (section "Subagent"). Related: https://latestn.com/tool/claude-code/agents-and-automation/when-to-use-single-message-input When should I use single message input instead of streaming input in the Claude Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/write-eval-case How do I write an eval case for a Claude Code plugin, including prompt.md frontmatter and case.yaml fields? https://latestn.com/tool/claude-code/agents-and-automation/write-mod-test How do I write an automated test for a Claude Code mod? https://latestn.com/tool/claude-code/agents-and-automation/user-input-limitations What are the limitations of handling user input with the Claude Code Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/wait-for-subagents How do I make Claude wait for subagents to finish before continuing? https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-hook What is a hook in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:21:04Z | changed | behavior: works on a delegated task and returns a summary to the main conversation → It works on a delegated task and returns a summary to the main conversation | [1] 2026-11-18T12:16:31Z | changed | session scope: A subagent stays inside the session that spawned it → — | [1] 2026-11-18T12:16:31Z | changed | use cases: keep large explorations out of your primary context or to run parallel research → — | [1] 2026-11-17T12:26:13Z | changed | session scope: — → A subagent stays inside the session that spawned it | [1] 2026-11-17T12:26:13Z | changed | use cases: — → keep large explorations out of your primary context or to run parallel research | [1] 2026-11-17T12:26:13Z | changed | behavior: It works on a delegated task and returns a summary to the main conversation → works on a delegated task and returns a summary to the main conversation | [1] 2026-11-13T03:04:18Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-subagent/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/what-is-a-subagent POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/what-is-a-subagent with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/what-is-a-subagent?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is a subagent in Claude Code? Revision 4, last verified 2026-11-20T12:21:04Z. https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-subagent (accessed 2026-11-21T10:04:16Z). @misc{LatestN_tool_claude_code_agents_and_automation_what_is_a_subagent_r4, title = {What is a subagent in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-subagent}}, note = {Revision 4; digest sha256:ee8660db1e596500; last verified 2026-11-20T12:21:04Z; accessed 2026-11-21T10:04:16Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/what-is-a-subagent