What is a subagent?

Definition

Subagents can specialize in exploration, review, testing or another independent responsibility. The parent workflow supplies an objective, relevant context and authority limits, then integrates the returned result.

Delegation must define file ownership, permissions and expected evidence. A read-only exploration subagent can gather information without changing project state, reducing the risk of conflicting edits during planning.

ELI5

A subagent is an AI agent assigned one bounded part of a larger task. A coordinating agent or process keeps responsibility for the overall result and later reviews the returned work.

For example, one subagent can research security risks while another tests usability. Each receives a clear scope, allowed tools, expected evidence, and reporting format so their work can be checked and combined safely.

Why use a subagent for exploration?

It can investigate a focused question independently while the main workflow retains responsibility for decisions and integration.

What should a subagent assignment specify?

It should specify the objective, allowed resources, write permissions, constraints, expected evidence and final report.

  1. Flat agent workflow beside the words GLM 5.3 in Zcode
  2. The words Claude Code Ships Fast beside flat feature tiles and a usage gauge
  3. Tisha Chawla and Susheem Koul beside the words Control the Token Burn
  4. Sarah Sanders beside the headline Securing Agents That Run Bash on a black background.
Definition card for subagent: What is a subagent?

A subagent is an AI agent assigned a bounded part of a larger task by another coordinating agent or workflow.