Subagents
A sub-agent mechanism in Claude Code in which each sub-agent has its own independent context window and tool permissions, making it suited to isolated, task-specific work.
Core Facts
Timeline (last 90 days)
Skills in Claude Code are reusable instruction packages, Subagents are sub-agents with independent context windows, and Hooks are check scripts that trigger automatically on specific events (such as before or after tool calls).
The content covered by Claude Code Quest includes basic command-line operations as well as advanced features such as Skills, Hooks, Subagents, and MCP.
Compared with the monolithic-agent approach of cramming all tools into a single prompt, the sub-agent architecture can reduce prompt length, reduce tool misselection, increase task parallelism, and make it easier to debug and iterate each sub-agent separately.
Skill-based encapsulation (splitting domain knowledge into sub-skills and sub-agents) is the mainstream path for AI tools to land in vertical scenarios.
Each subagent is essentially a Markdown file whose header contains the name, description, list of available tools and model selection, with the system prompt below.
Anthropic's multi-agent research system shows that the subagent pattern is markedly effective in tasks requiring multi-step exploration, but token consumption increases significantly, so it should be avoided for simple tasks.
The Subagents pattern isolates complex subtasks through independent contexts; a subagent's lengthy intermediate process does not affect the main agent's decision space, and the main agent receives only refined conclusions.
Production-grade agents typically combine five strategies: Prompt Caching, Compaction, Tool-result Clearing, Retrieval, and Subagents.
The recommended scope of claude-code-setup covers five categories: Hooks, Subagents, Skills, MCP Servers, and Plugins.
The context window refers to the maximum number of tokens a large model can process in a single inference, covering the sum of the input prompt and the output completion, and content exceeding the window will be truncated or cause the call to fail.
3 more timeline events
All Facts (13)
The context window refers to the maximum number of tokens a large model can process in a single inference, covering the sum of the input prompt and the output completion, and content exceeding the window will be truncated or cause the call to fail.
70%UnverifiedSkills in Claude Code are reusable instruction packages, Subagents are sub-agents with independent context windows, and Hooks are check scripts that trigger automatically on specific events (such as before or after tool calls).
50%UnverifiedThe content covered by Claude Code Quest includes basic command-line operations as well as advanced features such as Skills, Hooks, Subagents, and MCP.
50%UnverifiedCompared with the monolithic-agent approach of cramming all tools into a single prompt, the sub-agent architecture can reduce prompt length, reduce tool misselection, increase task parallelism, and make it easier to debug and iterate each sub-agent separately.
50%UnverifiedSkill-based encapsulation (splitting domain knowledge into sub-skills and sub-agents) is the mainstream path for AI tools to land in vertical scenarios.
50%UnverifiedEach subagent is essentially a Markdown file whose header contains the name, description, list of available tools and model selection, with the system prompt below.
50%UnverifiedAnthropic's multi-agent research system shows that the subagent pattern is markedly effective in tasks requiring multi-step exploration, but token consumption increases significantly, so it should be avoided for simple tasks.
50%UnverifiedThe Subagents pattern isolates complex subtasks through independent contexts; a subagent's lengthy intermediate process does not affect the main agent's decision space, and the main agent receives only refined conclusions.
50%UnverifiedProduction-grade agents typically combine five strategies: Prompt Caching, Compaction, Tool-result Clearing, Retrieval, and Subagents.
50%UnverifiedThe recommended scope of claude-code-setup covers five categories: Hooks, Subagents, Skills, MCP Servers, and Plugins.
50%UnverifiedClaude Code can automate an entire workflow through three capabilities: Skills, Hooks, and Sub-agents.
50%UnverifiedSubagents are a multi-agent collaboration mechanism; Claude Code can decompose complex tasks and dispatch multiple sub-agents to complete them separately before aggregating the results.
50%UnverifiedA single Agent producing and validating its own output carries the risk of self-confirmation bias, as the model tends to approve the output it just generated; a Reviewer Agent with an independent context is more likely to find problems.
50%