skip to content

After a team starts delegating every search to Claude Code subagents, plan usage climbs — where does a subagent's token cost come from, and how do you cut it?

level: seniorimportance: should knowfreq 9%

answer

  1. own requests, same usage limits
  2. a new prefix means a cold cache
  3. the report rides every later turn
  4. forks share the parent's cache
  5. cheaper model, shorter report

basics

~20 s

Each subagent sends its own requests against the same usage limits, on a cold cache, and its report then stays in the parent's context. Cut cost with cheaper subagent models, terse reports, forks for context-heavy work and fewer delegations.

solid answer

~40 s

A subagent is not free context: it **sends its own requests**, which count toward the same usage limits as your main conversation. A fresh subagent has a different prefix (its own system prompt and tools), so its first request reads **none of the parent's prompt cache** and warms a cache of its own, on a five-minute lifetime even on a subscription unless `subagentPromptCacheTtl` says otherwise. It loads CLAUDE.md into its own window, except `Explore` and `Plan`. Then its **report appends to the parent** and is re-sent with every later request. To cut cost: run simple subagents on a cheaper model, ask for terse reports, use a fork when the task needs the conversation (it reads the parent's cache), keep quick targeted changes in the main conversation, and check the subagent share in `/usage`.

go deeper

for a junior

Recall that a subagent sends its own requests against the same usage limits, so delegation saves main-window context, not tokens.

for a middle

Explain the four cost parts: its own loop, a cold cache, its startup context, and the report re-sent with every later parent turn.

for a senior

Measure with the /usage attribution, then pick levers: cheaper subagent models, terse reports, forks for context-heavy work, resumes over re-spawns, and fewer delegations.

for a principal

Set delegation norms for a team: which jobs earn a subagent, which models subagents run on, and how report shape is standardised, weighing usage against main-window clarity.

## Where the tokens go Delegation moves work out of the main window; it does not make the work free. A subagent's cost has four parts. 1. **Its own requests.** Every subagent runs its own agent loop and sends its own model requests, which count toward the **same usage limits** as the main conversation. A search that reads forty files reads them in the subagent's window instead of yours, but it still reads them. 2. **A cold start.** A fresh subagent has its own system prompt and tool set, so its prefix differs from the parent's and its first request reads none of the parent's prompt cache. It warms a cache of its own across its turns. 3. **Its startup context.** It loads the CLAUDE.md hierarchy and a git status snapshot into its own window, plus any preloaded skills. The built-in `Explore` and `Plan` agents skip CLAUDE.md and git status to stay cheap. 4. **The report.** Its final message appends to the main conversation and is **re-sent with every later parent request**. Many subagents returning detailed reports can consume significant context. The parent's own cache is unaffected by delegation: the subagent's call and result append to the conversation and leave the parent's prefix intact. ## Cache lifetime for subagents Subagent requests fall outside the main conversation's cache-lifetime bucket. They get **five minutes**, even on a subscription where the main conversation gets an hour, unless you set `subagentPromptCacheTtl` (v2.1.242 and later) or the matching environment variable. A longer lifetime keeps a slow subagent's cache warm across pauses, but each cache write is billed at a higher rate, so it pays only for subagents with long gaps between turns. The cache mechanics themselves belong with prompt caching; for delegation the point is that a fresh subagent starts cold. ## What makes a fork different A **fork** inherits the parent's system prompt, tools and history exactly, so its first request **reads the parent's cache**. That makes forking cheaper than a fresh subagent for tasks that need the same context. A **resumed** subagent can also read the cache its original run warmed, which is a reason to resume rather than re-spawn. ## Levers that reduce cost | Lever | Effect | | --- | --- | | Cheaper model for simple subagents | A `model` field such as `haiku` on the definition, or `CLAUDE_CODE_SUBAGENT_MODEL` as a default | | One model for every subagent | `CLAUDE_CODE_SUBAGENT_MODEL` plus `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1` (v2.1.257 and later) | | Compact reports | Ask for paths, line numbers and conclusions, not pasted file contents | | Fork for context-heavy side tasks | Reuses the parent's cached prefix | | Resume instead of re-spawn | Keeps history and can reuse the earlier cache | | Keep small jobs in the main conversation | Avoids a cold start and a second loop | Two cautions about models: - A family alias that matches the main conversation's family resolves to the main conversation's exact model, so `opus` on an Opus session does not pick a different Opus version. - A switch of the main session to a more expensive model also applies to every subagent that inherits the session's model. ## Measuring before cutting On a Pro, Max, Team or Enterprise plan, `/usage` shows an **attribution** breakdown in which subagents appear as their own share of recent usage, alongside skills, plugins and MCP servers. The `Prompt cache (main)` line in the Session block of `/usage` covers the main conversation only, not subagents, so a high hit rate there says nothing about subagent cold starts. ## When not to delegate The docs' own guidance is to keep work in the **main conversation** when: - the task needs frequent back-and-forth or iterative refinement; - several phases share significant context, such as planning, implementing and testing; - it is a quick, targeted change; - latency matters, since a non-fork subagent starts fresh and has to gather context. Delegate to a **subagent** when: - the output is verbose and you need only a summary; - the work needs specific tool restrictions or permissions; - the work is self-contained and can come back as a summary. A team that delegates every search pays a cold start, a second agent loop and a report for lookups the main conversation could have done in one read. For a question about something already in the conversation, `/btw` answers from the existing context without a subagent, and its answer is not added to history.

  • The `Prompt cache (main)` line in `/usage` shows a healthy hit rate, yet subagent-heavy sessions still burn usage. Why can both be true?
    That cache line covers the main conversation only. Each fresh subagent starts with a different prefix, so its first request misses the cache, and on a subscription its cache lives five minutes unless `subagentPromptCacheTtl` is set. The attribution breakdown in `/usage` shows the subagent share directly.
  • You set `CLAUDE_CODE_SUBAGENT_MODEL=haiku`, but a reviewer subagent still runs on Opus. Why?
    The variable is a default. A per-invocation `model` from Claude or the definition's `model` field outranks it. To force one model onto every subagent, also set `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1` (v2.1.257 and later). Forks still run on the main session's model. `/tasks` shows the model on each running subagent's row.

  • Subagent tokens do not count toward your plan's usage limits
  • A fresh subagent reuses the parent's prompt cache from its first request
  • Delegating invalidates the main conversation's prompt cache
  • A subagent's report is free once the subagent has ended
  • Forks always cost more than fresh subagents because they carry history

Assumes Claude Code 2.1.286: subagentPromptCacheTtl needs 2.1.242+, and CLAUDE_CODE_SUBAGENT_MODEL_FORCE needs 2.1.257+.