Harness Engineering 6 months ahead, in a few hours.

Claude Code ultrathink: the keyword now runs a turn at xhigh effort

Thomas Poulain Ā·

In Claude Code, type ultrathink anywhere in your prompt and that turn runs at xhigh effort. The next turn goes back to your session’s level, and you never touch /effort. This behavior arrived in the terminal with v2.1.311, released on October 26, 2026. v2.1.316 brought it to VS Code and to the Code tab of the Desktop app. You need Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.1 or Fable 5.2, used through Anthropic’s API. The keyword also adds an in-context instruction that asks for deeper reasoning.

For effort settings in general, read the post on Claude Code effort levels.

What does ultrathink change for a turn?

If you haven’t set anything, Opus 5.5 starts at medium. With ultrathink, the turn goes up two levels. In Anthropic’s tests cited in the docs, Claude at a higher level tested more edge cases and verified more of its work. It also uses more tokens. Your session setting stays as it was, and the next turn runs at your usual level again.

In the terminal and in VS Code, the word turns rainbow-colored when it can raise the turn. Since v2.1.311, the rainbow no longer shows when the word sits in quotes or inside a file path. Check the color before you send. If the word stays plain, the turn keeps your usual level.

You can also type the word while Claude is working. Write a message that contains ultrathink and press Enter. Claude Code queues it without interrupting the turn. Claude reads it as soon as its current tool calls finish, and the rest of the turn runs at xhigh. This helps when you see Claude going in circles on a bug.

Where does ultrathink raise the effort?

The docs list three places, each with its minimum version:

  • the interactive terminal prompt, since v2.1.311;
  • the VS Code chat box, since v2.1.316;
  • a local session in the Desktop app’s Code tab, since v2.1.316.

The active model has to be Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2 or Fable 5.1. Otherwise, switch with /model.

In VS Code, check your version if you turned telemetry off. Before v2.1.317, the word didn’t raise the effort in that case.

Why doesn’t the word show in color?

The docs give the causes to check.

  • The word is inside quotes, brackets, a path or a command. Type it again on its own.
  • Your prompt starts with /. The keyword inside a slash command doesn’t raise the turn.
  • CLAUDE_CODE_EFFORT_LEVEL is set below xhigh. That variable wins over everything else, so unset it.
  • Your own maxEffortLevel, or a limit your organization set, caps effort below xhigh. Raise your cap to xhigh or above, or ask an admin to raise the organization’s.
  • The active model isn’t in the list above.

What does ultrathink do on Bedrock or Agent Platform?

According to the v2.1.311 changelog, the move to xhigh happens through Anthropic’s API. The docs name cases where the word can’t raise a turn, such as Amazon Bedrock, Google Cloud’s Agent Platform or a Claude apps gateway. The turn then keeps your session’s effort level. Only the in-context instruction asks for more reasoning.

On those providers, set the effort yourself. Run /effort xhigh before the hard task, then go back to your usual level. To leave your saved default alone, open /effort with no argument, pick xhigh and confirm with s. The level then applies to the current session only. The s key needs v2.1.257 or later.

Ultrathink or /effort xhigh?

SettingHow longWorth knowing
ultrathink in the promptThis turnxhigh, on the 5.5 models and Fable 5.1 or 5.2, through Anthropic’s API
/effort xhighThis model, later sessions includeds in the /effort slider keeps it to this session
CLAUDE_CODE_EFFORT_LEVEL=xhighAs long as the variable is setWins over /effort. Set below xhigh, it blocks ultrathink

Type ultrathink for one hard question in the middle of an ordinary session. Think of a test that fails one run in ten in CI, or an architecture choice before you write code. There’s nothing to reset afterwards.

Go through /effort when the whole session needs that level, such as a tricky migration. Retyping the word in every message gets old fast, and forgetting it once sends that turn back to your usual level. Remember to lower it again later, since /effort xhigh stays saved for that model. To see what a task costs at each level, read the post on what a Claude Code task costs.

If you always type ultrathink for the same kind of task, put effort: xhigh in the frontmatter of the skill that runs it instead. According to the docs, that level lasts until the end of the turn the skill runs in.

How does it relate to ultracode?

The ultracode keyword does something else. In a prompt, it asks Claude to write a dynamic workflow for the task, without changing the session’s effort level. A script then spreads the work across many subagents. /effort ultracode turns that mode on for the whole session, at the current effort level. Launching with claude --effort ultracode also sets the effort to xhigh.

For one hard question, ultrathink is enough. Keep ultracode for a task too big for a single conversation, such as auditing every route in a repository. The docs warn that a workflow uses noticeably more tokens than the same task done in conversation.

What about think, think hard or megathink?

Many online guides still mention ā€œthinkā€, ā€œthink hardā€ or ā€œmegathinkā€. Claude Code only recognizes ultrathink as a thinking keyword. According to the model configuration docs, Claude Code passes ā€œthinkā€, ā€œthink hardā€ and ā€œthink moreā€ through as ordinary prompt text. ā€œmegathinkā€ appears neither on that page nor in the changelog.

ā€œthinkā€ and ā€œthink harderā€ date back to v0.2.44, which suggested them along with ā€œultrathinkā€ to have Claude make a plan (Claude Code changelog). v2.1.68 re-introduced ultrathink to enable high effort for one turn.

How do I turn ultrathink off?

Set CLAUDE_CODE_DISABLE_ULTRATHINK to 1, in your shell or under the env key of a settings file. It requires v2.1.316 or later. The variable turns off the whole keyword, its in-context instruction included.

{
  "env": {
    "CLAUDE_CODE_DISABLE_ULTRATHINK": "1"
  }
}

In ~/.claude/settings.json, it applies to you in every project. In the repository’s .claude/settings.json, it applies to the whole team. This helps if you write the word for other reasons, or if you want effort to change only through /effort.


Section 3.7 of module 3, Advanced configuration covers effort levels and extended thinking. Section 9.3 of module 9, Advanced prompt crafting explains what to write instead of ā€œthink step by stepā€.

To see these articles more often on Google, add Harness Engineering to your preferred sources.

You might also like