---
title: "Delegate with subagents — PromptConduit"
description: Parallel agents cover more ground and keep your main context clean.
image: "https://promptconduit.dev/og-image.png"
---

<!-- Markdown copy of https://promptconduit.dev/coaching/delegate-with-subagents. Index of every page: https://promptconduit.dev/llms.txt -->

# Delegate with subagents

Parallel agents cover more ground and keep your main context clean.

Updated October 8, 2026 · [Scott Havird](https://promptconduit.dev/about) · 3 min read

**Subagents** run an independent task in their own context window and report back a conclusion. They suit broad searches, multi-file audits, and anything you would otherwise grind through serially in your main session.

## When PromptConduit flags this

PromptConduit counts a subagent each time the agent calls the `Agent` or `Task` tool, and records the subagent type (`Explore`, `Plan`, `general-purpose`, or a custom name) and duration.

The **“Delegate with subagents”** tip fires when there are **zero subagents** and a lot of tool activity:

-   **Editor extension (live session):** at least 40 tool calls and no subagents, in a session with at least 3 prompts.
-   **Web Trends view:** at least 200 tool calls and no subagents across the selected period, with at least 5 prompts.

The tool-call bar is there on purpose. A short session with no subagents is fine. The tip only appears when the volume of work suggests some of it could have been delegated.

## Why it matters

Two mechanisms:

1.  **Context hygiene.** Every file read and search result in your main session stays in its context and is resent with every later request. A subagent does its reading in a separate context and returns only the findings. Anthropic’s cost guide recommends delegating verbose operations (running tests, fetching docs, processing logs) for exactly this reason. A smaller main context is cheaper per turn and less likely to hit auto-compaction.
2.  **Parallelism.** Independent pieces of work can run concurrently instead of one after another. Three exploration tasks that don’t depend on each other don’t need to wait on each other.

Subagents are not free. Each one makes its own requests and starts its own cache rather than reading the parent’s. The win comes from keeping bulky, throwaway reading out of the conversation you keep paying to resend.

## What to do

**Ask for delegation explicitly.** In Claude Code:

```
Use a subagent to investigate how our auth system handles token refresh.
Report the files involved and the refresh flow, not the file contents.
```

**Fan out independent work.** When a task splits into pieces that don’t depend on each other, ask for them in parallel:

```
Research the auth, billing, and notifications modules in parallel using
separate subagents. For each, list the public entry points and any TODOs.
```

**Give each subagent a self-contained brief.** It starts with fresh context and does not see your conversation history, so include the paths, the question, and the shape of the answer you want.

**Define recurring roles once.** If you keep asking for the same kind of review or audit, save it as a custom subagent in `.claude/agents/` (project) or `~/.claude/agents/` (personal):

```
---
name: code-reviewer
description: Reviews code for quality and best practices
tools: Read, Glob, Grep
---

You are a code reviewer. Analyze the code and give specific, actionable
feedback on quality, security, and best practices.
```

Restricting `tools` keeps a read-only role read-only. For simple tasks you can also set a smaller `model` in the frontmatter to lower its cost.

**Keep synthesis in the main session.** Use subagents for “go find out” work and make the decisions yourself, with the conclusions in front of you. For parallel *edits*, give each subagent its own worktree so they don’t collide; see [isolate risky work in a worktree](https://promptconduit.dev/coaching/isolate-with-worktrees).

## How to check it worked

In the editor extension’s coaching tab, the **Subagents** cell shows the count and average duration for the live session, and notes “up to N in parallel” when several were spawned in the same batch. The **Skills & subagents** and **Subagents** sections break usage down by type. The **Subagents / day** sparkline tracks the trend.

Two side effects should also show. The batching score in the same tab tends to rise when independent work runs together (see [batch your tool calls](https://promptconduit.dev/coaching/batch-tool-calls)). And your main session’s context stays smaller, which you can watch with Claude Code’s `/context` command. To watch the session graph of turns and subagents live, run `promptconduit graph`. Setup is in [/docs/editor-extension](https://promptconduit.dev/docs/editor-extension).

## Frequently asked questions

### What is a subagent in Claude Code?

A specialized assistant that runs a task in its own context window, with its own system prompt, tool access, and permissions, and returns only a summary to the main conversation. Claude Code ships built-in Explore, Plan, and general-purpose subagents.

### Can Claude Code subagents run in parallel?

Yes. Anthropic's docs suggest asking for independent research in parallel using separate subagents, and note it works best when the research paths don't depend on each other. By default up to 20 subagents can run at once.

### When does PromptConduit suggest using subagents?

When a session has at least 40 tool calls and no subagents (editor extension), or a period has at least 200 tool calls and no subagents (web Trends view).

### Where do I define a custom subagent?

As a Markdown file with YAML frontmatter in .claude/agents/ for a project or ~/.claude/agents/ for all your projects. Only name and description are required.

Get this coaching on your own sessions

The free PromptConduit CLI and editor extension compute coaching insights like this one from your own Claude Code and Cursor sessions, fully offline.

`curl -fsSL https://promptconduit.dev/install | bash`

[Quick start →](https://promptconduit.dev/docs/quick-start) [Teams: free up to 3, Team $99/month flat →](https://promptconduit.dev/pricing)

## Related

-   [Batch your tool calls](https://promptconduit.dev/coaching/batch-tool-calls)
    
    Grouping independent reads and edits cuts round-trips and output tokens.
    
-   [Raise your tool success rate](https://promptconduit.dev/coaching/raise-tool-success-rate)
    
    Failed tool calls waste a full round-trip each. Give the agent what it needs to get them right first time.
    
-   [Right-size your MCP servers](https://promptconduit.dev/coaching/right-size-mcp-servers)
    
    Connect the MCP servers you actually use and prune the rest.
    

[← All guides](https://promptconduit.dev/coaching)

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "@id": "https://promptconduit.dev/#software",
  "name": "PromptConduit",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "macOS, Linux, Windows",
  "description": "PromptConduit shows what AI coding costs per developer, repo, and pull request across Claude Code and Cursor. An open-source CLI records every session to a local JSONL file first, with git context and exact cost computed on your machine. Teams sync to see spend across members, models, repos, and clients, with budgets and alerts.",
  "url": "https://promptconduit.dev",
  "installUrl": "https://promptconduit.dev/docs/installation",
  "softwareHelp": {
    "@type": "CreativeWork",
    "url": "https://promptconduit.dev/docs"
  },
  "releaseNotes": "https://promptconduit.dev/changelog",
  "license": "https://opensource.org/licenses/MIT",
  "isAccessibleForFree": true,
  "publisher": {
    "@id": "https://promptconduit.dev/#organization"
  },
  "offers": [
    {
      "@type": "Offer",
      "name": "Free",
      "description": "The full CLI on your machine, and a team of up to 3.",
      "price": "0",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 3,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Team",
      "description": "Up to 15 members. One flat price, no seat math.",
      "price": "99",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "99",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 15,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Growth",
      "description": "Up to 50 members, for teams and agencies running AI across many repos.",
      "price": "249",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "249",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 50,
        "unitText": "members"
      }
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://promptconduit.dev/#organization",
  "name": "PromptConduit",
  "url": "https://promptconduit.dev",
  "logo": "https://promptconduit.dev/favicon.svg",
  "email": "hello@promptconduit.dev",
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "email": "hello@promptconduit.dev",
    "url": "https://promptconduit.dev/about"
  },
  "sameAs": [
    "https://github.com/promptconduit/cli",
    "https://github.com/promptconduit/editor-extension",
    "https://twitter.com/promptconduit"
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Delegate with subagents",
  "description": "Parallel agents cover more ground and keep your main context clean.",
  "author": {
    "@type": "Person",
    "@id": "https://promptconduit.dev/about#person",
    "name": "Scott Havird",
    "url": "https://promptconduit.dev/about",
    "sameAs": [
      "https://scotthavird.com",
      "https://github.com/scotthavird"
    ],
    "worksFor": {
      "@id": "https://promptconduit.dev/#organization"
    }
  },
  "publisher": {
    "@id": "https://promptconduit.dev/#organization"
  },
  "datePublished": "2026-06-29",
  "dateModified": "2026-10-08",
  "mainEntityOfPage": "https://promptconduit.dev/coaching/delegate-with-subagents",
  "image": "https://promptconduit.dev/og-image.png",
  "keywords": "subagents, parallelism, context, agent skills"
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://promptconduit.dev/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Coaching guides",
      "item": "https://promptconduit.dev/coaching"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "Delegate with subagents",
      "item": "https://promptconduit.dev/coaching/delegate-with-subagents"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is a subagent in Claude Code?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A specialized assistant that runs a task in its own context window, with its own system prompt, tool access, and permissions, and returns only a summary to the main conversation. Claude Code ships built-in Explore, Plan, and general-purpose subagents."
      }
    },
    {
      "@type": "Question",
      "name": "Can Claude Code subagents run in parallel?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Anthropic's docs suggest asking for independent research in parallel using separate subagents, and note it works best when the research paths don't depend on each other. By default up to 20 subagents can run at once."
      }
    },
    {
      "@type": "Question",
      "name": "When does PromptConduit suggest using subagents?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "When a session has at least 40 tool calls and no subagents (editor extension), or a period has at least 200 tool calls and no subagents (web Trends view)."
      }
    },
    {
      "@type": "Question",
      "name": "Where do I define a custom subagent?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "As a Markdown file with YAML frontmatter in .claude/agents/ for a project or ~/.claude/agents/ for all your projects. Only name and description are required."
      }
    }
  ]
}
```
