Subagents

Subagents
Photo by Dima Solomin / Unsplash

What I learned

A subagent is a specialized AI assistant that works independently from the main Claude Code context window.

Main advantage: delegate tasks to specialized agents. They handle their own context window, so you can have your main context window clean and optimized.

You can create your own subagents and run them in parallel.

What I tried

I created my own subagent and run it using commands @my-subagent "prompt"

Key takeaway

Using subagents help you to keep your main context window clean, to run task in parallel and give your subagents their own specialized responsibilities.