Harness Engineering 6 months ahead, in a few hours.

What is ultracode in Claude Code? How and when to use it

Thomas Poulain ·

Ultracode is a Claude Code setting that lets Claude start workflows on its own for big tasks. A workflow is a script that runs many subagents in parallel. You turn it on with /effort ultracode. It isn’t an effort level. It works on top of your session’s level and uses a lot more tokens.

What does ultracode do in Claude Code?

With ultracode on, Claude plans a workflow for each substantive task instead of waiting for you to ask.

A subagent is another Claude instance. It works in its own context and sends back only a summary.

In a workflow, Claude writes a JavaScript script that starts and coordinates those subagents. The script runs in the background, and your session stays responsive. Only the final answer reaches your conversation. The fan-out post covers how these scripts work.

One request can turn into several workflows in a row. In the docs’ example, a first workflow studies the code, then a second one makes the change. A last one verifies it.

How do I turn ultracode on and off?

Run the command in Claude Code. It applies to the current session.

/effort ultracode
/effort ultracode off

In the /effort slider, Tab flips the Ultracode toggle and Enter applies it. In VS Code, there’s an Ultracode switch under the effort slider.

To start a session with ultracode on, launch claude --effort ultracode. That flag also sets the effort level to xhigh.

To have every session start with ultracode, add the key to a settings file such as ~/.claude/settings.json.

{
  "ultracode": true
}

How do I use ultracode for a single task?

Put the keyword ultracode in your prompt. Claude Code highlights it, and Claude writes a workflow for that task only. Your session’s effort level stays the same.

ultracode: audit every API endpoint under src/routes/ for missing auth checks

Asking in your own words, like “use a workflow”, works the same way.

To type the word without starting a workflow, wrap it in backticks. To turn the keyword off everywhere, switch off Ultracode keyword trigger in /config.

Ultracode vs max effort: what’s the difference?

Ultracode and max effort control different things, and you can use both at once.

The effort level sets how much Claude thinks at each step. There are five levels, from low to max. The higher the level, the more tokens Claude spends. The effort level post helps you pick one.

Ultracode is about how the work gets organized. Claude splits a big task across several subagents rather than handling it alone in your conversation.

TypeWhat it doesHow long it lasts
xhighEffort levelDeeper reasoning, more tokensSaved per model, or for the session
maxEffort levelDeepest reasoningCurrent session
ultrathinkKeyword in a promptMore thinking on that turnOne turn
ultracodeClaude Code settingSubagent workflows for substantive tasksSession, or one task with the keyword

Since v2.1.284, released on September 28, 2026, ultracode stays on at any effort level. Picking a level in /effort or /model leaves it on. So on Opus 5.5, you don’t have to choose between max and ultracode.

Before that version, turning ultracode on set the session to xhigh, and picking another level turned it off. If you read elsewhere that ultracode equals xhigh, that’s the old behavior.

As for max, the docs warn that it may show diminishing returns and tends to overthink. Test it before you make it your usual setting.

Which models and plans support ultracode?

Ultracode needs two things. Workflows must be turned on, and your model must support xhigh effort.

The Fable models, Opus 5.5, Sonnet 5.5 and Haiku 5.5 support it. So do Opus 5, Sonnet 5, Opus 4.8 and Opus 4.7. Opus 4.6 and Sonnet 4.6 have no xhigh, so /effort doesn’t offer ultracode on them.

According to the workflows page, workflows are available on all paid plans and with Anthropic API access. They also work on Amazon Bedrock, Google Cloud’s Agent Platform and Microsoft Foundry. On Pro, turn on the Dynamic workflows row in /config first.

If workflows are turned off, ultracode disappears from /effort and the keyword no longer starts anything.

How much does ultracode cost?

The docs don’t put a number on the extra cost. They do say that with ultracode on, each request uses more tokens and takes longer.

Every agent sends its own requests on top of your conversation’s. On a subscription, you reach your usage limits sooner.

Turning ultracode on also counts as opting in to large runs. While it’s on, these safeguards no longer apply.

  • The Large workflow warning, which normally flags more than 25 agents or 1.5 million projected tokens.
  • The limit of 20 concurrent subagents started with the Agent tool.
  • In auto mode, the approval prompt before the first workflow.

To gauge the cost, run the task on a small slice first, such as a single directory. /workflows shows each agent’s token usage, and x stops the run.

For fewer agents, pick the small size guideline. It aims for fewer than 5 agents per workflow.

/config workflowSizeGuideline=small

Workflow agents run on your session’s model by default. On Fable, each one costs Fable prices, covered in the Fable 5.2 post. Ask Claude to use a smaller model for simple stages. The other cost levers are in the task cost post.

When should you use ultracode, and when not?

Ultracode helps when a task outgrows what one conversation can coordinate. The docs mention a codebase-wide audit or a 500-file migration. A workflow can also have other agents review one agent’s findings before the report.

For one big task, the keyword is enough. Keep the session mode for a run of big tasks. Switch it off with /effort ultracode off when you go back to routine work.

Skip it when the task fits in one conversation, since the extra cost isn’t worth it. Skip it too if you want to sign off on each step. Once a workflow starts, it takes no more input from you. For a hard but short question, raise the effort or type ultrathink instead.


Section 7.9 of module 7, Optimization and pro workflow shows the manual version of a fan-out. It’s a loop of claude -p calls with a budget per session. Section 3.7 of module 3, Advanced configuration shows how to choose your model and effort level.

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

You might also like