Versus · AI tools
Claude Code xhigh vs max effort
- Last checked
- 5 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- xhigh for a big refactor or migration.
- max for a security review or a bug that beat xhigh.
Compared here
- 01xhigh effort
- 02max effort
Short answer
Use xhigh for long, hard coding sessions and keep max for the rare problem you want Claude to grind on alone. Anthropic's Claude Code docs describe xhigh as "deeper reasoning at higher token spend" and max as the deepest level, for "hard problems you want Claude to work through without you, such as finding security vulnerabilities", with a warning that max "may show diminishing returns and is prone to overthinking". Both burn more of your plan's usage than the default.
Two practical differences: max does not stick. Claude Code applies max to the current session only unless you set it with the CLAUDE_CODE_EFFORT_LEVEL environment variable, while xhigh can be saved as your default. And not every model has xhigh: Opus 4.6 and Sonnet 4.6 go straight from high to max, so xhigh runs as high there. Pick xhigh for a big refactor or migration. Pick max for a security review or a bug that beat xhigh. Stay on the default for everyday edits. Below: the level table, model support, how to set each, and the usage cost.
At a glance
| xhigh | max | |
|---|---|---|
| What Anthropic says it is for | Deeper reasoning at higher token spend; long-running agentic and coding work | Hard problems Claude works through without you, like finding security vulnerabilities |
| Anthropic's warning | Meaningfully higher token usage than high (Opus 4.7 guidance) | May show diminishing returns and is prone to overthinking; test first |
| Saved as your default? | Yes, via /effort, modelSettings or effortLevel | No: current session only, unless set by environment variable |
| Models in Claude Code | Fable, Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, Opus 4.7 | All of those plus Opus 4.6 and Sonnet 4.6 |
| On Opus 4.6 / Sonnet 4.6 | Runs as high | Supported |
| Default anywhere? | Default on Opus 4.7 | Never a default |
| Ultracode | Turning on ultracode with --effort ultracode sets xhigh | Not tied to ultracode |
| Usage on Pro or Max plans | More tokens per task, so limits arrive sooner | Most tokens per task; limits arrive soonest |
Money talk: Anthropic has no affiliate program with us and this page earns nothing from Claude. There are no buttons to click. The only money question here is how fast each level eats the usage you already pay for.
Everything below comes from Anthropic's Claude Code model configuration docs and its effort documentation, read on 4 December 2026. We did not run a benchmark of xhigh against max on our own code, and we will not invent one. Anthropic changes these defaults with new models, so check the docs when a new model lands.
The five levels in one look
Claude Code has five effort levels. From the docs' "choosing a level" table:
- low: quick exchanges you review each time, such as brainstorming, a first sketch or a rename.
- medium: the default on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5; on models with a higher default, it saves tokens on cost-sensitive work.
- 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." It "may show diminishing returns and is prone to overthinking, so test before adopting it broadly."
Effort is not only thinking. The API docs say it affects all output tokens: text, tool calls and thinking. Higher effort tends to mean more tool calls, more planning out loud and longer summaries. Lower effort means fewer, terser tool calls.
What xhigh is good at
Anthropic's API docs describe xhigh as "extended capability for long-horizon work", with long-running agentic and coding tasks (over 30 minutes) as the typical use. Its guidance for Opus 4.7 and 4.8 goes further: start with xhigh for coding and agentic use, and expect "meaningfully higher token usage than high".
In plain words, xhigh is the level for a real session of work: a refactor across many files, a migration, designing a schema, reviewing a large codebase. Claude thinks harder before each step and checks more, at the cost of more tokens and more time.
What max is good at
Max removes the brakes. The API docs call it "absolute maximum capability with no constraints on token spending". Claude Code's docs give the honest version: diminishing returns, prone to overthinking, test before you adopt it.
Anthropic's Opus 4.7 guidance is blunter: "On most workloads max adds significant cost for relatively small quality gains, and on some structured-output or less intelligence-sensitive tasks it can lead to overthinking." For Fable 5.2 it says to reserve max "for measuring the model's ceiling and for the rare task where time and tokens don't matter".
So max is a special tool: a security hunt, a nasty concurrency bug, a proof you want checked to the bone, run while you do something else.
The quiet difference: max does not stick
This trips people up. From the docs: "Unless you set it through the CLAUDE_CODE_EFFORT_LEVEL environment variable, Claude Code applies max to the current session only." And max "isn't accepted as a level" in the effortLevel or modelSettings settings keys.
xhigh behaves like the other levels. Pick it in the /effort slider or the /model picker and press Enter, or type /effort xhigh, and Claude Code saves it as your default for that model. Press s in the slider instead to apply a level to this session only (Claude Code v2.1.257 or later).
Anthropic clearly does not want max to be anyone's accidental default. If you start a new session and wonder why Claude is less thorough, that is why.
Which models support which
From the Claude Code docs:
| Model | Levels available |
|---|---|
| Fable models | low, medium, high, xhigh, max |
| Opus 5.5, Sonnet 5.5, Haiku 5.5, Opus 5, Sonnet 5, Opus 4.8, Opus 4.7 | low, medium, high, xhigh, max |
| Opus 4.6, Sonnet 4.6 | low, medium, high, max |
If you pick a level the model does not support, Claude Code "falls back to the highest supported level at or below the one you set". The docs' own example: "xhigh runs as high on Opus 4.6." So on an older model, xhigh quietly becomes high, and the only way up is max.
Defaults differ too: Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 default to medium; Opus 4.7 to xhigh; the rest to high. Coming from Opus 4.6? See Opus 4.6 vs 4.7 for what else changed.
How to set each
- /effort xhigh or /effort max in a session. /effort alone opens a slider; /effort auto clears your saved level for the model.
- claude --effort xhigh when launching, for that session.
- CLAUDE_CODE_EFFORT_LEVEL, which beats every other source. It is also the only way to make max persist.
- Settings: a per-model level in modelSettings, or effortLevel for a default (low, medium, high or xhigh only).
- Skills and subagents: an effort field in their markdown frontmatter overrides the level while they run, so a review subagent can run at xhigh while your main session stays at medium.
- Admins: the settings reference, as shown in search, describes a maxEffortLevel setting that caps what a session can use; higher requests run at the cap.
The order of precedence, first wins: environment variable, a level picked in the session, the --effort flag, saved settings, the model default.
Ultracode is a separate toggle in the same slider. The docs say it is "a Claude Code setting rather than a model effort level": Claude orchestrates dynamic workflows for substantive tasks at whatever effort the session runs. Launching with --effort ultracode turns it on and sets xhigh. It is unavailable on models without xhigh.
What it does to your usage
Here is the money part. On a Pro or Max subscription, Claude Code and chat share one pool. Anthropic's Claude Code plan article says the limits "are shared across Claude and Claude Code." Higher effort means more tokens per task, so you reach your five-hour and weekly limits sooner. The docs do not publish a "max costs N times xhigh" figure, so we will not invent one; the API docs simply say xhigh uses meaningfully more tokens than high and max spends without constraint.
Practical rules:
- Default for everyday work. Most edits, explanations and small fixes do not need more.
- xhigh for sessions that matter. Turn it on for the big task, then go back.
- max on purpose, once. It resets after the session anyway.
- Subagents at lower effort. The API docs suggest low for simple tasks such as subagents.
- Watch the meter. If you keep hitting limits on xhigh, compare plans in Claude Pro vs Max before you blame the model.
xhigh vs max vs "thinking"
People mix up effort with thinking. On current models, effort is the main control and thinking adapts to it. The API docs say "at higher effort levels, Claude thinks more readily and at greater length", and on several newer models thinking cannot be turned off at xhigh or max. Our Claude Code thinking on vs off page covers the older thinking switch.
Verdict
- Pick xhigh for long, important coding sessions: refactors, migrations, schema design, codebase reviews. Save it as your default only if most of your work is like that.
- Pick max for a single hard problem you want solved without babysitting, and accept slower, pricier, sometimes overthought results.
- Pick neither for routine work. The default exists for a reason, and your usage limit will thank you.
If you are choosing between models rather than levels, see best AI model for coding. Method on how we pick.
Questions people ask
What is xhigh effort in Claude Code?
A reasoning level between high and max. Claude Code's docs call it deeper reasoning at higher token spend, and it is the default on Opus 4.7. Anthropic's API docs describe xhigh as extended capability for long-horizon work, typically long-running agentic and coding tasks. It is available on newer models, not on Opus 4.6 or Sonnet 4.6.
Is max effort better than xhigh?
Not reliably. Max lets Claude spend tokens without constraint, but Anthropic warns it may show diminishing returns and is prone to overthinking. Its Opus 4.7 guidance says max adds significant cost for relatively small quality gains on most workloads. Use max when xhigh has clearly failed on a hard problem, not as your default.
Why does Claude Code reset from max every session?
By design. The docs say Claude Code applies max to the current session only unless you set it through the CLAUDE_CODE_EFFORT_LEVEL environment variable. Max is also not accepted in the effortLevel or modelSettings keys. Lower levels, including xhigh, are saved as your default when you pick them in the /effort slider and press Enter.
Is max effort the same as the Claude Max plan?
No. Max effort is a reasoning level inside Claude Code. The Max plan is Anthropic's $100-a-month subscription with 5x Pro usage. They share a name and nothing else, though higher effort does burn through any plan's usage faster, which is one reason people upgrade. Our Claude Pro vs Max page covers the plans.
How do I set xhigh or max in Claude Code?
Type /effort xhigh or /effort max, or run /effort alone for a slider. You can also launch with claude --effort xhigh, or set CLAUDE_CODE_EFFORT_LEVEL, which overrides everything else. Admins can cap levels with maxEffortLevel. Skills and subagents can set their own effort in their markdown frontmatter.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- Claude Code docs: Model configuration (effort levels), checked 4 Dec 2026
- Claude Platform docs: Effort, checked 4 Dec 2026
- Claude Code docs: All settings (maxEffortLevel), checked 4 Dec 2026
- Claude Code docs: Environment variables, checked 4 Dec 2026
- Anthropic support: Using Claude Code with your Pro or Max plan, checked 4 Dec 2026