Claude Code 2.1.317 changed how subagents and re-reads use your context
Claude Code 2.1.317 updates subagent effort inheritance and removes the Read stub.
Claude Code 2.1.317 shipped 3 November 2026 and changed subagent effort, while re-reads return full files. Here is how to cap effort and keep context in check.
Quick answer
Claude Code 2.1.317, published 3 November 2026, made two changes that affect how fast a session uses context and plan limits. Subagents and teammates that run on a different model from your main conversation now use that model's saved effort level or its default, instead of inheriting your session level. The Read tool no longer returns a short stub when you read a file that has not changed; it returns the full file again. If your sessions started feeling shorter or your usage limit started draining faster after the update, these two changes are the likely cause. The fix is to set a saved effort level for each model your subagents use, set CLAUDE_CODE_SUBAGENT_EFFORT as a fallback, cap effort with maxEffortLevel, and compact earlier with /autocompact.
Why this matters now
Effort is the dial that decides how much thinking a model does before it acts, and thinking tokens are billed tokens. Anthropic's docs say you are charged for all thinking tokens generated, even when the thinking output is collapsed or redacted. A subagent that used to inherit your medium session level can now run at high on its own model, and every re-read of a file now costs the full file again. In a long session with several subagents, that adds up across a week of work. The change is easy to miss, because nothing in the session tells you the subagent level changed. The session header shows your level, not theirs.
What you need
You need Claude Code 2.1.317 or later, a terminal, and a few minutes. Check your version with claude --version. The native installer updates itself in the background and applies the new version on the next launch. Run claude update to force it, then restart. No new install and no API key are involved.
What changed in Claude Code 2.1.317
Two changes in the release notes matter for daily use. First, subagents and teammates on a different model from the main conversation use that model's saved effort level or its default, instead of the session's effort level. Before this release they inherited your session level. Second, the Read tool's "file unchanged since your last Read" stub is gone, so reading an unchanged file again returns its full content. The same release also changed claude -p inside a session so it no longer shares that session's ID, with CLAUDE_CODE_DISABLE_NESTED_SESSION_ID=1 to restore the old behavior on self-hosted runners. A follow-up release, 2.1.318, published 4 November 2026, added an effort option to a mod's $.model.fork so a quick side job can run at low effort whatever the session uses.
Why your usage limit can drain faster now
A subagent that runs hotter than your session spends more on every turn, and you never see its level in the session header. Effort controls how much reasoning the model does at each step. The docs list five levels: low, medium, high, xhigh, and max. Most models default to high. Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to medium. Opus 4.7 defaults to xhigh. Before 2.1.317, a subagent on another model inherited your session level, so a session at medium kept its subagents at medium. Now that subagent uses the level saved for its own model, or that model's default.
Suppose your session runs on Sonnet 5.5 at medium and Claude delegates a review to a subagent on Opus 4.7. Before the update, that subagent ran at medium. Now it runs at xhigh, the Opus 4.7 default, unless you saved a level for Opus 4.7. Re-reads add a second cost. Before the update, reading a file twice returned a short stub the second time. Now the full file comes back on every read, so a long session that re-checks the same files pays for those files again on each read. The fix is to save a level for every model your subagents touch, which the steps below do.
Set the effort level for each model
Work through these in order. Each one takes a minute, and together they put the subagent level back under your control.
- Check the version you run. Run
claude --versionin your terminal. You want 2.1.317 or later. If you are behind, runclaude updateand restart Claude Code, since an update takes effect on the next launch. - Check the level in effect. In a session, run
/effort status. The session header also shows the level next to the model name. - Save a level for the model your subagents use. Switch to that model with
/model <name>, for example/model opus, then run/effort lowand press Enter. Pressing Enter saves the level as your default for that model. Pressingsin the/effortslider applies it to the current session only. Repeat for each model your subagents run on. Anthropic's guidance lists low as the fit for simpler tasks such as subagents, so low is the usual pick for search and lookup subagents, and high fits a review subagent. - Set a fallback for every subagent. Add
CLAUDE_CODE_SUBAGENT_EFFORT=lowto your shell profile, then restart your terminal. This variable, added in 2.1.316, sets the level for subagents that nothing else assigns one to, instead of letting them inherit the session level. It does not touch your main session. - Pin effort in frontmatter. If you write custom subagents or skills in
.claude/agents/<name>.mdor.claude/skills/<name>.md, addeffort: lowto the frontmatter. Frontmatter travels with the project, so anyone who runs the subagent in that repo gets the same level without changing their own defaults.
Cap effort so nothing runs hot
A cap is the backstop for every level set above it. maxEffortLevel caps the level a session can use. Anything higher runs at the cap, whether it came from /effort, the /model picker, --effort, an environment variable, or skill or subagent frontmatter. Add it to your user settings file, ~/.claude/settings.json:
{
"maxEffortLevel": "high"
}
With the cap at high, a subagent that would run at xhigh runs at high instead, and a session at max drops to high. Note that max is not accepted as a value in the effortLevel or per-model modelSettings keys, only as an argument to /effort max and --effort max, so a cap at high does not break existing configs.
Stop re-reads filling the context window
The Read stub is gone, so an unchanged file comes back in full every time Claude reads it. If you have a workflow where an agent repeatedly checks a test file, a log, or a config, every pass puts the whole file into the context window.
Two habits help. First, use /autocompact to trigger compaction earlier, before the context window is crowded. Second, keep subagents scoped to smaller tasks so individual contexts stay leaner.
What to do if it fails
If your session still seems to drain fast, check these three things:
- Run
claude --versionand confirm you are on 2.1.317 or 2.1.318. - Run
/effort statusinside a running session to verify what level the active model is using. - Verify your
~/.claude/settings.jsonsyntax with a JSON validator if themaxEffortLevelcap does not seem to take effect.
Frequently asked questions
Conclusion
Claude Code 2.1.317 makes effort settings per-model rather than per-session, and drops the unchanged Read stub. Both changes push toward higher token use unless you explicitly configure your subagents and caps. Set your per-model defaults, set the subagent fallback in your shell, and add maxEffortLevel to your settings.
Want to calculate the token cost differences between models and effort levels? Use the AI Cost Calculator on PromptStaging.