Promptles
AI & Prompt Engineering

Subagents

advanced

Definition

Independent AI workers the main assistant can spawn to handle a scoped subtask — typically research, exploration, or parallel work. The subagent runs on its own context, does its job, and returns a short report, so your main thread stays focused on decisions.

In the wild

Before planning a migration, you ask the main assistant to spawn an Explore subagent to list every caller of `legacyAuth` across the repo. It returns a grouped list in 150 words, and your main thread uses it to draft the plan.

More from AI & Prompt Engineering