Module 07 of 11

Subagents

Lessons

About This Module

A long session fills up with file reads, search output, and test logs, and Claude Code starts to lose focus. Subagents solve this by letting the main agent hand a task to a separate Claude instance that has its own context window and its own instructions, then report back with just the result. Your main conversation stays clean, and independent tasks can run in parallel.

This module covers the built-in subagents such as the explore agent, and how to create custom subagents as markdown files with a name, description, tools, and a system prompt. You will learn the /agents interface, project versus personal agents, how agents are triggered automatically or manually, and how to chain several of them into a workflow for writing tests, running them, and reviewing code.

Watch the lessons in order, then continue on to Skills & Plugins.

Lessons

4 videos
01

Claude Code Subagents Tutorial: Parallel Execution & Custom Agents

Nebius Academy introduces what a subagent is, explores the built-in options such as the explore agent, and runs several in parallel. It then creates a custom unit test generator subagent and uses subagents to generate and run a large test plan.

02

How to Use Subagents in Claude Code (Step By Step)

A step-by-step walkthrough from Just Ask Dave on creating a subagent, writing focused instructions, assigning work to it from Claude Code, and reviewing what it returns. It also shows how to bring the finished work back into your main task and when delegating makes sense.

03

How to Use Subagents in Claude Code

Tim Warner explains why isolated context matters, then builds a markdown linting agent from scratch using the /agents interface. It covers project versus user-level agents, choosing tools and models, spawning parallel instances, running agents in the background, and checking token use with /context.

04

Claude Custom Subagents (Build Your Own AI Workers)

CampusX shows why built-in agents are not enough for project-specific rules such as security audits and testing standards. It breaks down how a subagent file is structured with markdown, YAML configuration, tools, and a system prompt, how agents are triggered automatically or manually, and builds a test writer and test runner pipeline connected through a slash command.