Skip to main content

Toolkit

Capability 04 · reviewed 2026-08-01

On this page2 sections

Agents & Subagents

Subagents are isolated model-and-tool loops delegated by a primary AgentA worker you delegate to: brief it, and it takes steps on its own. A chatbot answers; an agent acts.An LLM that runs tools in a loop toward a goal — it acts, checks the result, decides the next step, and repeats until done.Full definition. Their value is not simply parallelism. They protect the main context from noisy exploration, let a role use narrower tools and instructions, and create a reviewable boundary around one unit of work.

Claude Code, Codex, and Copilot all document built-in or custom subagents. The differences that matter are configuration scope, nesting, communication, result handoff, model choice, and how much of the child run the operator can inspect.

Use a Subagent When

  • The task has a bounded objective and can return a concise artifact.
  • Exploration or test output would pollute the main decision context.
  • A specialist needs different tools, instructions, or model economics.
  • Independent reviewers can reduce anchoring on one hypothesis.

Do not delegate a tightly sequential step whose output must be reasoned over continuously by the main agent. The handoff cost can exceed the context saved.

The Control Model

Treat the parent as coordinator, not as an infallible authority. Define the child contract explicitly: objective, allowed scope, inputs, output shape, verification, and stop condition. If agents can write to the same checkout, allocate file ownership or isolate worktrees before they run.

Claude Code supports custom subagent definitions and nested delegation. Codex surfaces coordinator-managed subagent threads across local clients. Copilot custom agents run as subagents with role-specific toolsets. Those are documented capabilities; they do not establish equivalent runtime quality, reliability, or cost.

The deeper lenses retain Claude Code configuration examples. The delegation mechanics transfer; product syntax and nesting limits do not.

Documented coverage · 2026-08-01

Agents & Subagents by product

These classifications are documentation findings, not empirical runtime tests. Surface names are explicit because product-family claims are too coarse.

Claude Code

Anthropic

NativeCLI · IDE

Claude Code supports built-in and custom subagents with isolated context, tool and model controls, and nested delegation.

Basis: documentedSources: 1

UnknownCloud

The reviewed subagent reference does not establish a complete hosted-surface contract equivalent to local clients.

Basis: documentedSources: 1

OpenAI Codex

OpenAI

NativeCLI · IDE

Codex enables built-in and custom subagents by default and surfaces their parallel work as coordinator-managed threads.

Basis: documentedSources: 2

PartialWeb · Cloud

Hosted subagent workflows are documented, but availability and controls differ from configurable local Codex agents.

Basis: documentedSources: 2

GitHub Copilot

GitHub

NativeCLI · Cloud

Copilot documents custom agents with isolated context and role-specific tools, used as subagents by the primary agent.

Basis: documentedSources: 3, 4

UnknownIDE · Web

The reviewed CLI customization sources do not establish one equivalent custom-agent contract for IDE and web surfaces.

Basis: documentedSources: 3, 4

Source register

Agents & Subagents sources

Primary vendor documentation reviewed on the date shown. Links may change after publication.

  1. Create custom subagents (opens in a new tab)

    Anthropic · official docs · accessed 2026-08-01

  2. Subagents (opens in a new tab)

    OpenAI · official docs · accessed 2026-08-01

  3. Overview of customizing GitHub Copilot CLI (opens in a new tab)

    GitHub · official docs · accessed 2026-08-01

  4. GitHub Copilot CLI command reference (opens in a new tab)

    GitHub · official docs · accessed 2026-08-01

Comparative implementation depth

Four implementation lenses