What is ultracode in Claude Code? What it did in my 4 planning documents

What is ultracode in Claude Code? What happened each time I used it

I typed the word ultracode into Claude Code for the first time on June 3. I had read in the docs that it was the keyword for "dynamic workflows", where Claude writes a script that runs many subagents at once. In that first session nothing spectacular happened. Three subagents went off and audited my skill folder. Since then I have used it for four planning documents, one of them built by 17 agents, and I have also learned when not to use it.

I'm not a developer. I run a small home setup of scripts, bots and Claude Code sessions, and I describe what I want in plain sentences. So this post skips how to write a workflow script. It covers what the keyword did for me, with dates.

What the keyword does

A dynamic workflow is a JavaScript script that Claude writes for the task you describe. A runtime executes it in the background while your session stays usable. The script decides what runs next, holds the intermediate results in variables, and launches subagents, so Claude's own context only receives the final answer.

The difference from a normal subagent is who holds the plan. With subagents, Claude decides the next step every turn. With a workflow, the script decides.

How you turn it on, as I noted from the docs on June 3 and checked again today in my local Claude Code (version 2.1.307):

  • Put the word ultracode in your prompt. That is the opt-in for a single task.
  • Ask for a workflow in your own words. "Run this as a workflow" also counts.
  • Turn it on for the whole session with /effort ultracode.

The tool description in my current version says it should only be used when the user has opted in one of those ways. By default it keeps a run under 10 agents, and there is a "Dynamic workflow size" setting in /config if you want a different scale. /workflows shows a run's progress while it's going.

Two limits I wrote down from the docs on June 3: workflows were a research preview for paid plans on version 2.1.154 or later, with a cap of 16 agents at the same time and 1,000 per run. Those numbers are from June and may have moved since.

The first run did not use a workflow at all

On June 3 I was in the web version of Claude Code, version 2.1.161. The keyword was recognized. The system clearly injected an instruction to use the Workflow tool. But the Workflow runtime wasn't available in that web environment, so Claude fell back to its ordinary subagent tool and launched 3 of them in parallel, one per domain, and merged the results.

The 3 agents audited 61 skills in my setup for overlap and relevance to my remaining work. The report listed about 24 candidates for merging or retiring; usage logs were missing, so it was a structural audit, not a usage count. It also hit 2 server errors (500) before it succeeded, so I would not call it stable.

The keyword is an opt-in, not a guarantee. If the runtime isn't there, you get the normal fan-out.

The four planning documents

From late June I used ultracode when I asked Claude Code to write a plan or a spec. The runs I recorded:

DateDocumentAgentsWhat the script did
June 23Spec for my "AI office" (a front end plus a message relay plus a PC bridge)175 discovery agents, then 3 competing architecture proposals judged and merged, 3 component designs, a draft spec, and 3 adversarial reviewers
June 24Spec for re-centering my always-on agent around its memory9Read-only verification and adversarial review of the draft
July 2Master plan with 5 directions9A survey of my own system and outside references, 228 tool calls in total
July 11Spec for a draft publisher for my Korean blog4Donor pattern search, asset inventory, integration contract, web check, 90 tool calls

The June 23 run is the one I would show someone. The 3 adversarial reviewers at the end found 6 blockers and 13 major issues in the draft, and all of them were folded back into the spec before I approved it. One blocker was that two parts of the system were both set up to receive the same Telegram messages.

The run produced a reviewed document in one sitting. I don't have the background to review an architecture proposal myself.

The July fix that mattered to me

My July 18 notes record this changelog entry for version 2.1.210:

Fixed the ultracode keyword opt-in firing on non-human-originated input such as webhook payloads and relayed PR comments

Before that fix, the keyword could trigger a multi-agent run from text that a human did not type, such as a webhook payload or a relayed pull request comment. My system relays Telegram requests to Claude Code. A relayed message containing that word could have started a large run on its own, and I would have found out from the usage meter. If you run Claude Code from any kind of automation, update past 2.1.210 before you leave the keyword anywhere near it.

Measuring it on August 10

In August I ran a small pilot to see whether a workflow was better than doing the same job by hand in a session. It was a document-scoring pipeline, with a cross-check by Codex, a different company's model, reserved for the highest-tier documents.

Result
Agents4
Wall time8 minutes 39 seconds
Failures0
ThroughputAbout 3 times the manual way
ReproducibilityOne document scored 73 in the workflow and 76 by hand, same grade and same weakest axis

I did not separate token cost in that pilot, so I can't tell you it was cheaper. It was faster, and the scores held.

The pilot also caught a mistake in my own experiment notes. My notes used 89, a score after one round of polishing, while the first-pass score was 67, below the baseline. The earlier manual review had missed the discrepancy. I saved the script as a reusable workflow file so the scoring can be rerun without rebuilding it.

When I don't use it

My August 10 notes set a rule: use a workflow when a job involves at least two of repetition, branching, parallel work, retries, approvals, or an audit trail. A single lookup or a one-line change gets no workflow.

For workflows that write files, I added 4 conditions: the agents work in an isolated git worktree, my Claude Code is version 2.1.222 or later, they never push or merge (I review the diff in my session), and the first run covers 1 to 3 items. Four things stay off limits: my rules and settings, operational data such as spreadsheets and ledgers, secrets, and deletions. The August 11–12 handover records the first write run under those conditions. It updated README files in 3 repositories, and the originals stayed clean.

One correction to my June notes. I had written that a running workflow could not take user input, so sign-offs would have to be split into separate runs. By August I found that was wrong. You can watch a run with /workflows, skip a step, stop it, or resume it later. So an approval step can sit inside the script instead of between two scripts.

My usual split is still Claude Code for the plan and Codex for the review (why I give them different jobs).

FAQ

What does ultracode mean in Claude Code?
It's the keyword that opts a prompt into multi-agent orchestration. Claude writes a workflow script, and a runtime executes it in the background with many subagents. Without the keyword, a session or a workflow request in your own words, Claude isn't supposed to use that tool.

Does typing it always start a workflow?
Not in my experience. On June 3, in the web version, the keyword was recognized but the runtime wasn't available, and Claude used 3 normal subagents instead.

How many agents does it use?
Whatever the script needs. My runs used 17, 9, 9 and 4. My current version's default guideline keeps a run under 10 unless the prompt calls for more, and /config has a setting for the size.

Is it cheaper than doing the work in one session?
I don't know. The docs say it uses more tokens, and my August pilot didn't separate token cost. It was about 3 times faster for the scoring job.

Can I stop a run once it's started?
Yes. /workflows shows progress, and you can skip a step, stop the run, or resume it later. I had this wrong in June.

Comments

Popular posts from this blog

Python script works manually but not in Task Scheduler: the Microsoft Store python stub (and a daily alive check)

Schedule a weekly AI summary with Windows Task Scheduler (with a human OK step)

Codex vs Claude Code: which jobs I give each (3 months of work logs)

What not to automate with AI: my approval rule for money and irreversible actions

Telegram bot receives /start automatically: how it triggered my kill switch (one-line fix)