Claude Code Subagents: Specialized AI Workers for Complex Tasks
Subagents in Claude Code are independent AI workers spawned by the main agent to handle scoped tasks — code search, planning, security review, status-line setup. They run with their own context window, their own tool allowlist, and return a single summary. This post explains when to use them, how to author your own, and the patterns that work.