The Effort Leak: Why Your Subagents Cost as Much as Your Main Session Subagents in Claude Code inherit the main session's effort level by default, so a main session running at max effort spawns every subagent at max effort, according to a post by Boris Cherny on X summarized in The Code's Sunday Special of 8 November. A single-task test published by Wmedia's Claude Code Hub found the same five-line file-explanation subagent consumed 586 output tokens at low effort, 701 at high, 656 at xhigh and 10,921 at max. The write-up also reports that setting CLAUDE_CODE_EFFORT_LEVEL=medium globally overrides per-agent effort: low settings, and that the per-call effort parameter requires Claude Code v2.1.292 or later. Once a team gets a spending cap, the conversation changes. Before the cap, nobody asks where the tokens went. After it, someone hits the limit on a Wednesday afternoon and the whole team starts reading usage screens like bank statements. This week I went through the newsletters and docs with one question: where do coding-agent tokens actually go, and which knobs move the number? This is not a benchmark post. I did not run anything for it. Every number below comes from a named source, and I label what kind of number it is. Where I give an opinion, it is reasoning, not a measurement. The thing that started this was a line in The Code’s Sunday Special 8 November . The newsletter summarizes a post by Boris Cherny on X: subagents inherit the main session’s effort level by default. So if your main session runs at max effort, every subagent it spawns runs at max effort too. That is a newsletter summary of a social post, so I treat it as a pointer, not proof. But it matches how the docs and two independent write-ups describe resolution order, and it explains something I had seen people complain about without a name for it: a cheap-looking “go find the file that does X” subagent costing as much as the main reasoning turn. How big can the gap be? Wmedia’s Claude Code Hub published a small test author-run, one task : the same subagent explaining a file in five lines spent 586 output tokens at low effort, 701 at high, 656 at xhigh and 10,921 at max. One task is not a distribution, but it shows the shape of the risk. Max effort on a lookup is not a few percent more. It can be an order of magnitude more. The Code also says /usage now offers a "press f to fix" option for this. I have not found that in any documentation, so I am passing it on only as the newsletter's claim. There are two layers here, and it took me a while to keep them apart: effort how hard the model reasons and model which model runs . Three places can set a subagent’s effort, plus a new fallback: That precedence comes from the official subagents docs as summarized by Pasquale Pillitteri’s write-up and Wmedia’s tip page, which agree with each other. Read rung 1 carefully, because it is the trap. If you put CLAUDE CODE EFFORT LEVEL=medium in your shell profile to "save money", you have also overridden every effort: low in your agent files. Wmedia notes that with that variable set, the per-call parameter disappears entirely. One global setting flattens all your per-agent tuning. Two version caveats. Pillitteri’s write-up says the stable channel was still at 2.1.309 when the variable shipped, so check claude --version before you trust it. And Wmedia says the per-call effort parameter needs v2.1.292 or later, while the frontmatter field is older. Which effort levels exist depends on the model. Pillitteri lists low, medium, high, xhigh and max for Opus 5.5, Opus 4.8 and Opus 4.7, and no xhigh for Opus 4.6 and Sonnet 4.6. I am not going to hard-code that list. Check the model configuration page for whatever you run. CLAUDE CODE SUBAGENT MODEL is a separate variable. It picks the children's model and has nothing to do with effort. You can combine them: children on a smaller model at low effort. For model resolution, a guide that checked the official docs gives this order: the model parameter Claude passes for that invocation, then model in the frontmatter inherit means the main model , then CLAUDE CODE SUBAGENT MODEL, then the main conversation's model. Notice the asymmetry with effort: for the model, the environment variable sits below the frontmatter. For effort, the session-wide variable sits above it. I would not trust my memory on this, and you should not trust mine either. Open the docs page once and confirm it for your version. +------------------------------+---------------------------+-----------------------------------+------------------------------+| Knob | Where it lives | What it changes | Default |+------------------------------+---------------------------+-----------------------------------+------------------------------+| CLAUDE CODE EFFORT LEVEL | Shell env / settings env | Effort for session AND all | Unset || | | subagents; beats everything below | || Agent tool effort param | Per call, set by Claude | Effort for that one invocation | Absent unless asked || | e.g. from CLAUDE.md | | v2.1.292+ || effort: frontmatter | .claude/agents/