← Claude Code Hub
Oct 27, 2026 · 8 min read ✦ Tip #242

Make Claude Code subagents cheaper: run quick ones at low effort

Claude Code subagents with no level of their own on your model inherit your session's effort: at max, a five-line explanation spent 10,921 output tokens against 586 at low. One line in CLAUDE.md or the CLAUDE_CODE_SUBAGENT_EFFORT variable sets the level for each one.

Each subagent at the effort its task needs: the same subagent explaining a file in five lines spent 586 output tokens at low, 701 at high, 656 at xhigh and 10,921 at max, and one line in CLAUDE.md makes Claude pass "effort": "low" to each subagent it starts

TL;DR Put one line in your CLAUDE.md saying which subagents run at low and which at high. Since v2.1.292, Claude turns it into an effort parameter on every subagent it starts. Without it, any subagent with no level of its own that runs on your model inherits your session's, unless you set CLAUDE_CODE_SUBAGENT_EFFORT, and at max a five-line explanation costs 18 times more.

Update, November 3, 2026: since v2.1.317, a subagent running on a different model from your session no longer inherits your level: it uses the level you saved for that model or, if there is none, that model's default. The precedence table, the cases and the way to check the level now include it.

Update, November 2, 2026: since v2.1.316, CLAUDE_CODE_SUBAGENT_EFFORT sets the level of subagents nothing else gives one, instead of letting them inherit your session's. The precedence table, the cases and the way to check the level now include it.

A subagent on your model runs at your session's effort unless something gives it a level of its own; since v2.1.317, one on another model runs at the level saved for that model or its default. Since v2.1.316, the CLAUDE_CODE_SUBAGENT_EFFORT variable changes that starting point: subagents nothing gives a level run at its level instead. Raise the session to max for a hard problem and the subagent that only has to find a file reasons as deeply. Since v2.1.292, Claude can pass a different level to each subagent it starts: you only have to tell it which.

What the level costs on a quick task

Same general-purpose subagent, same task, only the level changed. Claude Code v2.1.311 on Sonnet 5.5, against a 360-line Python hook, one run per cell. Subagent output tokens and seconds, read from its transcript:

Subagent task low high xhigh max
Explain in five lines how the hook decides 586 · 9 s 701 · 10 s 656 · 9 s 10,921 · 81 s
Find the file that blocks the commit 508 · 9 s 637 · 14 s 744 · 14 s 4,724 · 44 s

Up to xhigh, a mechanical task costs about the same at any level: effort is adaptive, and the model barely thinks when the task doesn't call for it. At max that stops. The same five-line explanation spent 18 times the output tokens and took nine times as long, and those are billed as output, the model's highest rate.

max is exactly the level you raise for a while: Claude Code applies it to the current session only. And every subagent without a level of its own that runs on your model inherits it, unless you have CLAUDE_CODE_SUBAGENT_EFFORT set. With the session launched with --effort max and a subagent nobody gave a level, the same explanation ran at max: 9,577 output tokens and 80 seconds. A model: haiku subagent no longer catches it: on v2.1.317, with a Sonnet 5.5 session at max, the subagent ran at medium, Haiku 5.5's default.

Where a lower level does cost you

The same comparison on a bug review of the same hook:

Review of gate.py low high
Output tokens 1,214 7,202
Time 18 s 62 s
What it found 12 findings; the one it called "most serious" doesn't exist 7 findings, the first a real bypass

At low, the top bug was a function returning a list shorter than its input; the code appends one item per line, so it isn't there. At high, the one that mattered showed up: an unclosed quote in the command makes the hook catch the exception and let the commit through unchecked. In a review, thinking is the product. There the level stays high.

Where each subagent gets its level

Claude Code resolves it in this order, and the first one present wins:

Source Who sets it Scope
CLAUDE_CODE_EFFORT_LEVEL You, in the environment The whole session, subagents included
The Agent tool's effort parameter Claude, when you ask for it That invocation, resumes included
effort: in the agent's definition You, in .claude/agents/ Every time that agent runs
CLAUDE_CODE_SUBAGENT_EFFORT You, in the environment (v2.1.316+) Subagents none of the above gives a level
The level saved for the subagent's model, or that model's default /effort or /model with that model active Subagents on a different model from your session (v2.1.317+)
Your session's level /effort, --effort, your settings Subagents on your model

A file-finder agent with effort: low in its frontmatter ran at low without asking for anything. Asked for it "at high effort", Claude made this call and the subagent ran at high:

{"description": "Find file containing \"world\"", "subagent_type": "file-finder", "effort": "high", "prompt": "Find which file(s) in ... contain the word \"world\". Report the file path(s) and the matching lines."}

How to set it up

1. One line in your CLAUDE.md

Run search and lookup subagents at low effort. Run review subagents at high effort.

With that line in the project's CLAUDE.md and a prompt that never mentioned effort ("Use a general-purpose subagent to find which file contains the word world"), Claude passed "effort": "low" in the call. It also covers the agents that aren't yours, such as general-purpose, which have no frontmatter you can edit.

2. Pin it in your own agents' definitions

For an agent of your own that always does the same job, the level goes in its file:

---
name: file-finder
description: Finds files in the repo by name or content. Use for quick lookups.
tools: Glob, Grep, Read
effort: low
---
You find files. Answer with the paths only.

The full format is in creating custom agents. To also take it off your main model, model: haiku is the other half of the saving, covered in Haiku 5.5 subagents.

3. Check the level it ran at

In an interactive session, the /tasks panel adds the effort set for each subagent to its row. Outside one, every subagent leaves a .meta.json next to its transcript:

cat ~/.claude/projects/<project>/<session>/subagents/agent-*.meta.json
{"agentType":"general-purpose","isBuiltIn":true,"launchedWithDefaults":true,"description":"List files in folder","toolUseId":"toolu_01SyzkYKtHeftFPafzT47ZHn","spawnDepth":1,"requestShape":"background","requestNonInteractive":true,"effort":"low","finished":true}

No effort field means nobody set a level for that subagent: it ran at your session's, at its model's when that isn't yours or, if you have it set, at CLAUDE_CODE_SUBAGENT_EFFORT's. The .meta.json records none of the three. The level it really ran at is on every response in its transcript:

grep -o '"effort":"[a-z]*"' ~/.claude/projects/<project>/<session>/subagents/agent-*.jsonl | sort | uniq -c

With the session at medium and CLAUDE_CODE_SUBAGENT_EFFORT=low, the .meta.json of a general-purpose subagent started with no parameter had no effort field, and its transcript showed "effort":"low" on every response.

The cases you'll run into

  • With CLAUDE_CODE_EFFORT_LEVEL set, the parameter is gone. With the variable at medium, Claude answered a request for a subagent at max with "the Agent tool has no effort parameter". The subagent ran at medium, over its own effort: low. If you use that variable, you set the level for all of them.
  • Forks don't take it. The parameter is only for subagents that aren't a fork; a fork inherits the whole session.
  • One default for every subagent. CLAUDE_CODE_SUBAGENT_EFFORT=low makes every subagent nothing gives a level run at low, even with your session at max. Unlike CLAUDE_CODE_EFFORT_LEVEL, it overrides neither the parameter nor the frontmatter effort:: it only covers subagents none of those gives a level, on your model or not. It is the option when you'd rather not depend on Claude reading your CLAUDE.md.
  • A subagent on another model doesn't inherit your level. Since v2.1.317, a model: haiku subagent runs at the level you saved for Haiku with /effort or /model, or at its default medium, even with your session at max. Those that inherit your model, such as general-purpose, stay at your session's.
  • Resuming keeps the level. A subagent started at low stays at low when you send it another message.
  • A level the model lacks drops to the highest one it has. xhigh runs as high on Opus 4.6. And a maxEffortLevel or organization cap still applies.
  • Your session doesn't change. The level Claude passes to a subagent leaves yours alone: the session in these runs stayed at medium. To pin your session's level per model there's effort per model, and to find out which one you really have, effort is not the level you think.

Official docs: Sub-agents: choose an effort level · Model configuration: adjust effort level

Requirements

  • Claude Code v2.1.292 or later for the effort parameter, and v2.1.316 for CLAUDE_CODE_SUBAGENT_EFFORT, tested on that version with Sonnet 5.5, and v2.1.317 for a subagent on another model to take that model's level, tested with a Sonnet 5.5 session at max and a Haiku 5.5 subagent; the frontmatter effort field is older. The runs above used v2.1.311 on Sonnet 5.5 under -p, one run per cell: the figures change with the model and the task, and the jump at max is the one to watch.
  • The /tasks panel, the level kept on resume and the fork case come from the docs.

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

Approve less, but better.

Ten minutes in, you're hitting yes without reading. That's not review, that's prayer. A 10-page guide with the five levers in order of risk.

  • 1. Rules the first match wins
  • 2. Mode a dial, not a switch
  • 3. Auto mode a classifier approves for you
  • 4. Sandbox a fence the OS puts up
  • 5. Bypass only inside a container
Are you a professional Web developer?

You'll receive the guide by email · You join the Gravitas newsletter · Unsubscribe anytime

of 10
#

Wmedia · 10 pages
FREE GUIDE · 10 pages · 5 levers

Approve less, but better.

Ten minutes in, you're hitting yes without reading. That's not review, that's prayer. A 10-page guide with the five levers in order of risk.

Are you a professional Web developer? · Unsubscribe anytime
How I use AI

My Claude Code workflow.

The skills, agents and instructions I use as a professional Software Engineer. It's called Craft, and it's a plugin you can install.

See the skills

Tired of approving permissions without reading?