Last updated: November 21, 2026
TL;DR
Effort is how hard Claude Code reasons on each step. Lower effort is faster and cheaper for straightforward work; higher effort tests more edge cases and checks more of its own work before it answers (Anthropic's model configuration docs). There are five levels, low, medium, high, xhigh and max, and the newest models start at medium. Pick the level by how much you'll check the result yourself:
- ๐ฏ Match the level to the task:
lowwhen you review every result,mediumfor scoped daily work,highwhen verification matters,xhighandmaxfor hard problems Claude works through without you. - ๐๏ธ Know which setting wins: an environment variable beats the level picked in a session, which beats the launch flag, which beats settings.
- โก Boost one turn instead of the session: put
ultrathinkin a prompt. - ๐ Read the scale per model: the same level name means a different amount of reasoning on different models.
Which effort level for which task
Anthropic's docs map each level to a kind of work:
| Level | Use it for |
|---|---|
low | Quick exchanges you review each time: brainstorming, a first sketch, a rename |
medium | Day-to-day engineering with a clear scope. The default on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 |
high | Work where verification matters or edge cases are likely, such as fixing a bug in an existing codebase |
xhigh | Deeper reasoning at higher token spend. The default on Opus 4.7 |
max | Hard problems you want Claude to work through without you, such as finding security vulnerabilities |
Two notes from the same page change how you read the table:
- Higher isn't automatically better. The docs say
max"may show diminishing returns and is prone to overthinking", so test it before you make it a habit. - Lower can be the right call. At a lower level Claude returns a starting point sooner, which fits work where you review each result and steer the next step.
If you're moving from Opus 5 to Opus 5.5, Anthropic's testing found Opus 5.5 at medium matches or beats Opus 5 at high on coding evaluations, so the docs suggest starting at medium rather than carrying high across.
How to set it, and which setting wins
You can set effort in six places:
/effortin a session. With no argument it opens a slider; with a level name it sets that level;/effort autoclears your saved level for the current model.- The
/modelpicker, with the left and right arrow keys. - The
effortflag (two hyphens) when you launch, for one session. CLAUDE_CODE_EFFORT_LEVEL, an environment variable set to a level name.- Settings: a per-model level in
modelSettings, oreffortLevelas the default for models without one. Our Claude Code settings guide covers where those files live. - Skill and subagent frontmatter: an
effortfield overrides the level while that skill or subagent runs.
When more than one applies, Claude Code takes the first in this order:
- The
CLAUDE_CODE_EFFORT_LEVELenvironment variable - A level picked in the session, with
/effortor the/modelpicker - The
effortflag - Settings: the level saved for the model, or
effortLevel - The model's default
So if /effort seems to do nothing, check for the environment variable first. Three more details save confusion:
maxisn't saved. It applies to the current session only, unless you set it through the environment variable, and neither settings key accepts it.- In the slider, Enter saves and
sdoesn't. Enter makes the level your default;sapplies it to this session only. - Opus 5.5 ignores an old top-level
effortLevelin your user settings. It starts at its own default until you choose a level for it.
Raise one turn with ultrathink
You don't need to change the session's level for one hard question. Put ultrathink anywhere in a prompt and Claude Code asks for deeper reasoning on that turn only. In the terminal, the word shows in rainbow colors when it will also raise that turn to xhigh. Other phrases such as "think hard" are not keywords.
Ultracode is different: it's a setting, not an effort level. With it on, Claude runs dynamic workflows for substantive tasks, and turning it on from the launch flag starts the session at xhigh.
Read the scale per model
- Supported levels differ. Opus 4.6 and Sonnet 4.6 have no
xhigh. If you set a level a model doesn't support, Claude Code falls back to the highest one at or below it, soxhighruns ashighon Opus 4.6. - Level names aren't comparable across models. The docs say the scale is calibrated per model, so
highon one model is not the same amount of reasoning ashighon another. - Thinking is always on for the newest models. Fable models, Sonnet 5 and later, Haiku 5.5, and Opus 4.7 and later always use adaptive reasoning, and you can't turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models. Effort is the dial that's left.
- Thinking tokens are billed. You're charged for every thinking token generated, even when it's collapsed, so a higher level costs more on each turn. Our context window guide covers
/contextfor seeing where a session's tokens go. - Admins can cap it.
maxEffortLeveland organization limits cap the level, and the lower cap wins.
For Fable 5.2 itself and its fast mode, see our Claude Fable 5.2 post.
Frequently asked questions
What are the effort levels in Claude Code?
There are five: low, medium, high, xhigh and max. Lower levels are faster and cheaper; higher levels reason more, test more edge cases and verify more before answering. Opus 4.6 and Sonnet 4.6 support four, with no xhigh.
What is the default effort level in Claude Code?
It depends on the model. Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 default to medium. Opus 4.7 defaults to xhigh. The other models that support effort default to high. An organization can set its own default for its default model.
How do I change effort in Claude Code?
Run /effort to open a slider, or /effort followed by a level name to set it. You can also use the /model picker's arrow keys, the effort flag at launch, the CLAUDE_CODE_EFFORT_LEVEL environment variable, or effortLevel in settings.
Why doesn't /effort change anything?
Usually because CLAUDE_CODE_EFFORT_LEVEL is set. The environment variable takes priority over a level picked in the session, the launch flag and settings. Unset it, or set it to auto, and /effort takes effect.
Should I use max effort in Claude Code?
Only for hard problems Claude works through without you, such as hunting security vulnerabilities. Anthropic's docs warn that max may show diminishing returns and is prone to overthinking, so test it before adopting it broadly. It also applies to the current session only.
What does ultrathink do in Claude Code?
Putting ultrathink in a prompt asks for deeper reasoning on that turn without changing the session's effort level. Where it shows in rainbow colors, it also raises that turn to xhigh. Phrases like think hard are not keywords.
Is effort the same on every model?
No. The scale is calibrated per model, so the same level name doesn't mean the same amount of reasoning on different models. A level a model doesn't support falls back to the highest one below it.
Put the level where the work is
A level you choose per session is easy to forget. Writing it where the work is defined, in a subagent's or skill's effort field, keeps the decision with the task: low for a quick formatter, high for a reviewer. That is the same habit as keeping rules in CLAUDE.md and adding one each time something goes wrong, the method in our guide to compound engineering for Claude Code. For when to hand work to a subagent at all, see our Claude Code subagents guide.
Stop guessing. Score your first workflow.
Score one workflow in about five minutes. Nine questions, a grade, and the specific gap holding it back - no call required.
Related Posts

Claude Code on GitLab: pipelines, merge requests and @claude
Claude Code runs on GitLab as a CI/CD job you add yourself: one job, one masked API key, and Claude opens merge requests from your runners. How to set it up, wire @claude mentions, run it on Bedrock or Google Cloud, and cap what each run can touch and spend.

Claude Code GitHub Actions: set it up, and decide what it can touch
Claude Code GitHub Actions runs Claude Code in your repository's workflows, on an @claude mention or a prompt on any GitHub event. How to install it, how it signs in, and the four layers that decide what a run can touch and spend.

Claude Code SDK or claude -p: which one to script against
The Claude Code SDK is now the Claude Agent SDK, and it runs the same agent as claude -p. When a script should call claude -p, when your code needs the SDK, what each loads by default, and how each signs in.
