Effort Levels, Ultrathink & Ultracode
Set Claude Code's effort per model, save or cap it, see when ultrathink runs a turn at xhigh, why ultracode is a workflow setting, and which cost limits hold.
What You’ll Learn
Session 25 covered which model to run. This session covers a separate control: how much reasoning Claude Code asks that model to use.
By the end, you’ll understand:
- Which effort levels each model supports, and where each one starts in Claude Code
- How Claude Code resolves the level, how
modelSettingssaves it per model, and howmaxEffortLevelcaps it - How to set effort per subagent and per workflow stage
- What
ultrathinkchanges for one turn, and when it runs that turn atxhigh - Why ultracode is a workflow setting rather than an effort level, and every way to turn it on and off
- Which cost limits Claude Code actually documents
The Effort Dial
Effort controls adaptive reasoning: the model decides whether and how much to think on each step. Lower levels favor speed and cost; higher levels favor deeper reasoning. The available values, and the starting level, depend on the active model:
| Model | Supported levels | Default in Claude Code |
|---|---|---|
| Fable 5.1, Fable 5 | low, medium, high, xhigh, max | high |
| Opus 5.5, Sonnet 5.5, Haiku 5.5 | low, medium, high, xhigh, max | medium |
| Opus 5 (previous Opus generation), Sonnet 5, Opus 4.8 | low, medium, high, xhigh, max | high |
| Opus 4.7 | low, medium, high, xhigh, max | xhigh |
| Opus 4.6, Sonnet 4.6 | low, medium, high, max (no xhigh) | high |
| Haiku 4.5 | Not listed as effort-capable | Don’t pass --effort |
This table follows the Claude Code 2.1.318 model configuration, which states that models not listed there do not support effort. That includes Sonnet 4.5, which sonnet still resolves to on Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry. Model visibility, aliases, and entitlement vary by provider, plan, and account, so confirm what /model shows in your environment.
Three things changed with the 5.5 generation:
- Haiku 5.5 supports effort. Anthropic calls it “our first Haiku-class model to come with an adjustable effort setting,” and Claude Code offers it all five levels (v2.1.293 or later). Haiku 4.5 is not listed as effort-capable, and it is still what the
haikualias means on Amazon Bedrock, Google Cloud’s Agent Platform, Claude Platform on AWS, and Microsoft Foundry. Attach an effort override tohaikuonly when you know it resolves to Haiku 5.5. - The 5.5 models start at
medium. Opus 5.5 defaults tomedium, one level below thehighdefault of Opus 5, the previous Opus generation. Claude Code’s docs report that in Anthropic’s testing, “Opus 5.5 atmediummatches or exceeds Opus 5 athighon coding and knowledge-work evaluations.” When you move from Opus 5 to Opus 5.5, start atmediuminstead of carrying your old level over. - Defaults differ by surface. Sonnet 5.5 defaults to
highon the Claude API but starts atmediumin Claude Code. Anthropic also notes that “Fable 5.1 defaults to High effort in Claude Code,” while Claude.ai and Cowork start it at Medium.
If you set a level the active model doesn’t support, Claude Code falls back to the highest supported level at or below it. For example, xhigh runs as high on Opus 4.6, which is still what opus means on Microsoft Foundry. The effort scale is calibrated per model, so high is not a universal fixed token budget.
Use the default for routine work, then move deliberately:
low: quick exchanges where you review each result, such as brainstorming, a first sketch, or a renamemedium: the default on Opus 5.5, Sonnet 5.5, and Haiku 5.5. On Opus 5.5 and Sonnet 5.5 it fits day-to-day engineering work with a clear scope; on models with a higher default, it trades some capability for fewer tokenshigh: work where verification matters or edge cases are likely, such as fixing a bug in an existing codebase; the default on most other modelsxhigh: deeper reasoning at higher token spend; the default on Opus 4.7max: the deepest level, for hard problems you want Claude to work through without you. It may show diminishing returns and is prone to overthinking, so test it before adopting it broadly
Set and Confirm Effort
/effort
/effort high
/effort auto
/effort status
/effort with no argument opens a slider. Enter, or a level typed after /effort, saves that level as your default for the active model; s in the slider applies it to this session only. /effort auto clears your saved level for the active model, and /effort status prints the level in effect. The session header also shows the current level next to the model name, and in the /model picker the left and right arrow keys adjust effort for the highlighted model.
You can also launch a single session at a chosen level; --effort does not persist:
claude --effort xhigh
max is session-only unless you set it through the CLAUDE_CODE_EFFORT_LEVEL environment variable.
How Claude Code Picks the Level
Claude Code takes the first source that applies:
- An explicit choice:
CLAUDE_CODE_EFFORT_LEVEL(which outranks the other two),--effortat launch, or/effortin the session - Your settings: a level saved for the model under
modelSettings, or aneffortLevelkey - The model’s default from the table above (or the default effort your organization sets for its organization default model)
Caps apply on top: a level above maxEffortLevel or an organization effort limit runs at the cap instead.
Save Levels Per Model with modelSettings
Since v2.1.251, /effort saves levels per model under the modelSettings key in your user settings, so each model keeps its own level when you switch. You rarely edit it by hand, but this is the shape:
{
"modelSettings": {
"claude-opus-5-5": {
"effortLevel": "high"
}
}
}
The top-level effortLevel key still exists as a default for models without a saved level. It accepts only low, medium, high, or xhigh — not max, and not ultracode. One catch: in your user settings file, effortLevel is the older form that /effort wrote before levels became per-model. It keeps applying to Opus 5, Fable 5.1, and earlier models, but Opus 5.5 and models released after it ignore it and start at their own default until you save a level for them. In project, local, or managed settings, or with --settings, effortLevel applies to every model.
Cap Effort with maxEffortLevel
maxEffortLevel (v2.1.267 or later) caps the level a session can use while leaving lower levels available. Anything higher runs at the cap, whether it came from /effort, the /model picker, --effort, CLAUDE_CODE_EFFORT_LEVEL, skill or subagent frontmatter, or the model’s own default. Claude Code applies the cap itself, so it holds on every provider. Values run from low to max ("max" means no cap). When several settings scopes set a cap, the lowest wins, and a per-model cap goes inside modelSettings:
{
"maxEffortLevel": "xhigh",
"modelSettings": {
"claude-fable-5-1": {
"maxEffortLevel": "high"
}
}
}
This example stops any model from running at max and keeps Fable 5.1, the most expensive model, at high or below. Deploy it in managed settings to enforce it for an organization. An Enterprise admin’s per-role effort limit can apply as well, and the lower of the two caps wins.
Effort per Subagent and per Stage
Effort can also change for one worker at a time:
- Subagent and skill frontmatter: an
effortfield applies whenever that subagent or skill is active, overriding the session level. - The Agent tool’s
effortparameter (v2.1.292 or later): when you ask Claude to run a non-fork subagent at a specific level, it passes the level for that invocation. The parameter overrides the frontmatter field and stays in effect when the subagent is resumed. - Workflow
agent()opts: aneffortvalue on one call ('low'through'max') sets that stage’s level. The workflow docs don’t say which level a stage without one gets, so don’t count on it matching your session; setefforton any stage where the level matters.
CLAUDE_CODE_EFFORT_LEVEL outranks all three, and maxEffortLevel or an organization cap still limits them. A subagent with no effort from its frontmatter or the Agent tool doesn’t always get the session’s level either: on the main conversation’s model it runs at the level you picked in the session or set with --effort, but since v2.1.317, subagents and teammates on a different model use that model’s saved effort level or its default. The v2.1.316 changelog also adds CLAUDE_CODE_SUBAGENT_EFFORT, which sets the level subagents run at when nothing else names one. The usual pattern: low effort for cheap mechanical stages, and high effort only for the verify and judge stages that decide the outcome.
Ultrathink Is a One-Turn Instruction
Put ultrathink anywhere in a prompt to request deeper reasoning for that turn:
ultrathink: find the smallest safe migration plan for this schema change
Claude Code recognizes the keyword and adds an in-context instruction for that turn without changing your session’s effort setting. Since v2.1.311 it can also raise the turn’s effort: typed in the interactive terminal, it runs that turn at xhigh on Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 through Anthropic’s API, and typed while Claude is already working, it raises the rest of that turn. Since v2.1.316, the VS Code extension does the same.
The word shows in rainbow colors only where it can raise effort. It can’t when it sits inside quotes, brackets, a file path, or a command, or in a prompt that starts with /; when CLAUDE_CODE_EFFORT_LEVEL, your maxEffortLevel, or an organization effort limit holds you below xhigh; or where a turn can’t be raised at all, such as on Amazon Bedrock, where you set the effort level instead. To turn the keyword off entirely, set CLAUDE_CODE_DISABLE_ULTRATHINK, which the v2.1.316 changelog added.
Phrases such as “think”, “think hard”, and “think more” are ordinary prompt text, not equivalent trigger keywords. And ultrathink has nothing to do with ultracode: one changes how hard a single turn reasons, the other decides whether Claude orchestrates a workflow.
Ultracode Is a Workflow Setting, Not an Effort Level
Ultracode is not another effort level. It is a Claude Code setting: with it on, Claude plans a dynamic workflow for each substantive task instead of waiting for you to ask, at whichever effort level the session runs at. This is the behavior since v2.1.284.
Turn it on or off for the current session:
/effort ultracode
/effort ultracode off
You can also flip the Ultracode toggle with Tab in the /effort slider, then press Enter. /effort ultracode is session-only: it resets when the session ends. To start every session with it on, use the ultracode setting:
{
"ultracode": true
}
Claude Code reads this key but never writes it, and /effort ultracode off still turns ultracode off for one session when the key is true.
Or launch with it already on:
claude --effort ultracode
Of the CLI routes, only --effort ultracode also changes the level: it starts the session at xhigh with ultracode on (v2.1.203 or later; the Agent SDK’s effortLevel: "ultracode" does the same). Turning ultracode on or off with /effort or the ultracode setting leaves the effort level unchanged, and picking a level in /effort or /model leaves ultracode as it was. The effortLevel setting and CLAUDE_CODE_EFFORT_LEVEL don’t accept ultracode.
Availability. Ultracode needs dynamic workflows turned on (they are on by default except on the Pro plan, where you enable them under Dynamic workflows in /config) and a model that supports xhigh. That rules out Opus 4.6, Sonnet 4.6, and models that take no effort at all. When ultracode is unavailable, --effort ultracode starts the session with ultracode off, at the highest level the model and any cap allow, up to xhigh. An effort cap lowers the level an ultracode session runs at, but doesn’t turn ultracode off.
Cost. With ultracode on, a single request can become several workflows in a row (one to understand the code, one to make the change, one to verify it), so each request uses more tokens and takes longer, and subscription limits arrive sooner. Turning it on also opts you in to large runs: the Large workflow warning doesn’t appear, the session’s concurrent-subagent limit isn’t enforced for subagents Claude spawns with the Agent tool, and auto mode doesn’t ask you to approve the first workflow launch. Turn it off with /effort ultracode off when you return to routine work.
Before v2.1.284, ultracode behaved differently: turning it on forced xhigh, picking another level turned it off, and an effort cap below xhigh made it unavailable. Older guides that describe ultracode as “xhigh plus workflows” are describing that earlier behavior.
For a single task, you don’t need the setting. Type the keyword ultracode in your prompt, or simply ask Claude to “use a workflow,” and that one task runs as a workflow without changing the session’s effort level. The keyword works only in prompts a person types: it doesn’t fire from -p, scheduled tasks, relayed webhooks or pull request comments, or Agent SDK prompts that aren’t stamped as human input (a restriction that dates from v2.1.210). Turn the keyword off with the Ultracode keyword trigger row in /config (workflowKeywordTriggerEnabled).
Cost Controls: What Is Actually Enforced
Claude Code does not document prompt-level token directives or a workflow-global budget object. Treat a token target written in a prompt as guidance, not a harness-enforced contract.
The documented controls are:
maxEffortLevel: a client-side effort cap that holds on every provider/workflows: watch each agent’s token use, and pause or stop a run- Workflow size guideline:
workflowSizeGuideline(small,medium,large, orunrestricted) is advice to Claude about agent count, not a cap; the default ismedium, orsmallon the Pro plan - Runtime limits: up to 16 concurrent agents per run by default (fewer on machines with fewer CPUs;
CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTSsets 1–256), 1,000 agents total per run, and 4,096 items perparallel()orpipeline()call - Large-workflow warning: shown when a run schedules more than 25 agents or projects more than 1.5 million tokens; it is advisory, and it doesn’t appear while ultracode is on
claude -p --max-budget-usd: stops a print-mode run once Claude Code’s estimated spend reaches the amount. It is checked against a client-side estimate and spend can pass it, so leave headroomclaude -p --max-turns: a turn limit in non-interactive print mode
Example:
claude -p --max-budget-usd 5 --max-turns 8 \
"Review the migration and return only confirmed blockers"
Those flags stop the print-mode process. They are not token-pool objects exposed inside a workflow script.
A Practical Selection Rule
| Work | Starting point |
|---|---|
| Rename, formatting, known one-file fix | low |
| Clearly scoped feature work on Opus 5.5 or Sonnet 5.5 | the medium default |
| Bug fixes in an existing codebase, reviews where edge cases matter | high |
| Difficult debugging or high-stakes verification | xhigh |
| A hard problem Claude should work through alone, such as a security audit | max, after testing it on your own work |
| One unusually hard reasoning turn | ultrathink |
| One large task that benefits from scripted multi-agent work | the ultracode keyword or “use a workflow” |
| A stretch of substantive tasks you want orchestrated | /effort ultracode, then /effort ultracode off |
Start at the cheapest level that can reliably finish the work. Raise effort when the cost of a wrong judgment exceeds the cost of more reasoning; use orchestration only when independent work or repeatable control flow adds value.
Key Insight
Effort and orchestration are different controls. Effort changes how deeply a model reasons, and each model now has its own starting point: medium on the 5.5 models. Ultrathink deepens a single turn; typed in the terminal or VS Code with Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.1 on Anthropic’s API, it can run that turn at xhigh without touching your saved level. Ultracode adds workflow planning at whatever level you run; it is a setting, not another effort level. maxEffortLevel and the print-mode limits are the controls Claude Code actually enforces. Keeping those layers separate makes both quality and cost easier to reason about.
Next Session
Session 27 opens the orchestration layer: the Workflow tool, where JavaScript holds the control flow and subagents supply judgment.
Official Sources
- Model configuration and effort levels
- All settings:
effortLevel,modelSettings,maxEffortLevel,ultracode - Dynamic workflows and ultracode
- Subagents: choose an effort level
- CLI flags, including print-mode limits
- Environment variables
- Introducing Claude Haiku 5.5
- Introducing Claude Sonnet 5.5
- Introducing Claude Fable 5.1 and Claude Mythos 5.1
- Claude Code changelog:
ultrathink(v2.1.311, v2.1.316) and subagent effort (v2.1.316, v2.1.317)