Blog

Opus 4.8 in Claude Code: What’s New, Pricing, and How to Switch in 2026

Markdown

What changes in Claude Code with Opus 4.8 on May 28, 2026: Dynamic Workflows, xhigh effort, Fast Mode. Exact prices, benchmarks, decision matrix.

Read full article

Ailoot reference documentation: ailoot.ai/docs/.

What was added alongside Claude Opus 4.8 on May 28, 2026?

Key takeaway

Anthropic released Opus 4.8 and Claude Code v2.1.154 on the same day. Four changes in one day: the new Opus 4.8 model (agentic coding benchmark: 69.2% versus 64.3% for 4.7), Dynamic Workflows for orchestrating up to 16 agents concurrently and up to 1000 total per run, xhigh effort as a new level of thinking, and Fast Mode became 3 times cheaper. The standard price did not change.

On May 28, Anthropic rolled out Opus 4.8 — 41 days after Opus 4.7. Claude Code v2.1.154 and the blog post “Introducing dynamic workflows in Claude Code” came out the same day. The next day, v2.1.156 fixed a bug with thinking blocks that broke the API on Opus 4.8.

Four changes that affect everyone who codes in Claude Code:

  1. The new Opus 4.8 model — the same prices ($5/$25 per million tokens), but higher benchmarks and it misses bugs in its own code 4 times less often.
  2. Dynamic Workflows — Claude writes a JS script that can launch up to 1000 subagents over a run, with no more than 16 active concurrently. The trigger is the word workflow in the prompt.
  3. xhigh effort — a new reasoning level. The default on Opus 4.8 is now high; for demanding tasks, you can raise it to xhigh.
  4. Fast Mode became 3 times cheaper — it was 6× the standard price; now it is 2× for 2.5× the speed.

Anthropic itself speaks about this release cautiously:

Users will see a modest but noticeable improvement in Opus 4.8 over its predecessor. The model is about four times less likely than its predecessor to miss defects in code it wrote itself without comment.

— Anthropic, https://www.anthropic.com/news/claude-opus-4-8

In this guide, I’ll show exactly what changed, what it costs in practice, and whether you should switch now or wait.

How is Opus 4.8 different from 4.7?

Key takeaway

According to Anthropic’s figures, Opus 4.8 is 4.9 points higher on agentic coding (SWE-Bench Pro: 69.2% versus 64.3%), 137 points higher on GDPval-AA Elo (1890 versus 1753), and misses its own bugs 4 times less often. The standard price did not change. The knowledge cutoff and 1M context remain the same.

What improved in the numbers

Anthropic published benchmarks in its official announcement and in the Claude API Docs. Summary table:

BenchmarkOpus 4.7Opus 4.8Δ
SWE-Bench Verified87.6%88.6%+1.0
SWE-Bench Pro (agentic coding)64.3%69.2%+4.9
GDPval-AA Elo (knowledge work)17531890+137
Multidisciplinary reasoning (HLE + tools)54.7%57.9%+3.2
Online-Mind2Web (browser/computer use)-84%new
OSWorld-Verified (agentic computer use)-83.4%confirmed
Agentic financial analysis51.5%53.9%+2.4
MCP-Atlas-82.2%new

⚠️ These are vendor-published figures — numbers from Anthropic, not an independent measurement.

The main promise: “4× less likely to miss bugs”

Anthropic claims:

The model is four times less likely than its predecessor to miss defects in code it wrote itself without comment.

— Anthropic, https://www.anthropic.com/news/claude-opus-4-8

That sounds great, but there’s a nuance under the hood: according to Anthropic’s System Card, Claude Opus 4.8 had the lowest rate of incorrect answers of six models on every benchmark because it abstains when it is uncertain.

Translated from System Card language into vibe-coder language: the model did not become 4 times smarter. It became more likely to say “I’m not sure, check this” instead of producing a plausible hallucination. Honesty instead of an IQ increase — that’s how it evolved.

In practice, this means that on the same tasks where Claude used to lie confidently, it will now say, “I’m not sure about this.” That lowers risk but does not increase coverage.

What stayed the same

  • Standard price ($5 per million input tokens, $25 per million output tokens) — unchanged.
  • Knowledge cutoff — January 2026, as with 4.7.
  • Default context — 1 million tokens on the Anthropic API, AWS Bedrock, and GCP Vertex AI. On Microsoft Foundry — 200K.
  • Max output — 128K tokens.
  • Sampling parameters (temperature, top_p, top_k) — still unsupported; they return a 400 error.

Where Opus 4.8 falls short

Honestly: on Terminal-Bench 2.1, Opus 4.8 scores 74.6% — not bad, but it is not the category leader. If most of your work happens in the terminal, keep this in mind: Codex is often a little stronger on purely terminal tasks. Opus 4.8 is ahead on the other benchmarks, but this difference is real.

The second candid point: on complex agentic pipelines with unverified input (website parsing, RSS reading), protection against prompt injection in Opus 4.8 is not guaranteed. If you are building automation that reads other people’s documents, keep a separate input sanitizer.

How much does Opus 4.8 cost in 2026?

Key takeaway

Standard prices of $5/$25 per million tokens remain the same as for 4.7. Fast Mode became 3 times cheaper: it was 6× the standard price; now it is 2× at 2.5× the speed (that is, $10/$50). On the Claude Max 5x plan at $100, with stable Opus 4.8 usage, you get about 4–6 hours of active coding a day. On Pro at $20 — 1–2 hours. I cover Anthropic plans in the guide about limits.

Pricing tiers

ModeInput ($/M tokens)Output ($/M tokens)Speed
Standard$5$25baseline
Fast Mode$10$50up to 2.5× faster

The standard price stayed the same as for 4.7 and 4.6. That is rare — new generations usually cost more. Fast Mode became 3 times cheaper: on 4.6 and 4.7, fast mode was 6× the standard price. On 4.8, it is 2×.

What that means per hour of work

One hour of active coding in Claude Code on Opus 4.8 is about 1–2 million input tokens and 100–300 thousand output tokens. At standard prices, that is $5–10 for input and $2.5–7.5 for output. Rounded, it’s $8–15 per hour on the API alone.

On subscription plans:

  • Pro ($20/month) — enough for 1–2 hours of active work a day. A single demanding prompt with a Dynamic Workflow burns through the limit.
  • Max 5x ($100/month) — 4–6 hours a day consistently. The sweet spot for most vibe coders.
  • Max 20x ($200/month) — a full workday without worrying about the limit. It makes sense if you launch many workflows or work with the Agent SDK.

More details in the guides how not to burn through Claude Code limits and where tokens go.

⚠️ An important detail from Anthropic: a workflow with 1000 agents burns “substantially more tokens than a typical session.” A large run can consume substantial allowance even though no more than 16 agents run at once. Check the available usage and set a run budget before launching; concurrency alone does not determine total cost.

⚠️ Fast Mode is not included in Pro / Max / Team / Enterprise plans. It requires usage credits to be enabled and is billed separately at $10/$50 per million tokens on top of the subscription. If you are on Max and enable Fast Mode without credits, you will get a message saying you need to top up your balance. This is often missed when reading the documentation.

What are Dynamic Workflows in Claude Code?

Key takeaway

A Dynamic Workflow is a JS script that Claude writes for your task. The script launches up to 16 parallel subagents at once (up to 1000 in total in a single run). Intermediate results live in the script’s variables; only the final result enters Claude’s context. The trigger is the word workflow in the prompt, or /effort ultracode, or the built-in /deep-research command.

How a workflow differs from a subagent and a skill

Previously, everything Claude Code did autonomously used turn-by-turn orchestration. On each turn, Claude decided which tool to call, and intermediate results sat in its context. This works for up to 4–5 subagents; beyond that, the context overflows.

Dynamic Workflow changes the pattern. Claude writes a JavaScript script that orchestrates the agents itself. Intermediate results live in that script’s variables, not in Claude’s context. Only the final result returns to the context. This has three effects:

  1. You can launch up to 16 agents in parallel, up to 1000 in total per run.
  2. Claude’s context does not overflow — each subagent works in its own sandbox.
  3. The script is reusable — after a successful run, press s in /workflows, and it is saved as your slash command.

Anthropic’s workflow docs put it this way:

A dynamic workflow is a JavaScript script that orchestrates subagents at scale. Claude writes a script for the task you described, and the runtime executes it in the background while your session remains responsive.

— Anthropic Claude Code Docs, https://code.claude.com/docs/en/workflows

Runtime limits

ParameterValue
Concurrent agentsup to 16 at once
Total agents per run1000 per run
Mid-run user inputnone — you cannot intervene; you have to restart
Direct filesystem/shell from the scriptnone — only spawned agents can write/read

Three ways to activate a workflow

  1. The word workflow in the prompt. “Run a workflow to audit every API endpoint under src/routes/ for missing auth checks”. Claude sees the trigger, writes a script, and launches it.
  2. /effort ultracode — combines xhigh reasoning with automatic workflow orchestration. It applies to all substantive tasks in the session. The docs say:

One request can turn into several workflows in a row: one to understand the code, a second to make changes, and a third to check them.

— Anthropic Claude Code Docs, https://code.claude.com/docs/en/workflows
  1. /deep-research [question] — a built-in workflow for research with web search and cross-checking sources.

Example: Bun on 750,000 lines of Rust in 11 days

The Bun team used Dynamic Workflows for an experiment: porting Bun from Zig to Rust. According to the Anthropic blog:

  • ~750,000 lines of Rust generated.
  • 11 days from the first commit to merge.
  • 99.8% of tests in the existing suite passed.
  • ~300 rules for translating Zig → Rust.

The technical pattern was three workflows in a row:

  1. Workflow #1 maps the correct Rust lifetime for every struct field in the Zig codebase.
  2. Workflow #2 writes each .rs file as a behavior-identical port of its .zig counterpart. Hundreds of file tasks distributed across batches, with at most 16 concurrent agents and two reviewers per file.
  3. Workflow #3 is a fix loop: runs build + test until everything passes.

The main trap: workflows will burn through your limit on small tasks

Practical takeaway: if a task can be handled by 1–2 simple subagents, do not call a workflow; use subagents manually. Workflows pay off for 50+ files, not 5.

Dynamic Workflow is the next step in context engineering. A workflow can distribute work across up to 1000 agent launches in total, scheduling no more than 16 concurrently. Without shared project context, errors can accumulate across those batches because each agent sees only its own piece.

When should you enable xhigh effort?

Key takeaway

xhigh effort is a new reasoning level between high and what came before. On Opus 4.8, the default is high; xhigh is for demanding tasks: migrations, security audits, and planned refactors. For routine edits, xhigh means paying extra for thinking tokens without getting any benefit. In Claude Code, the effort slider was renamed from “Speed/Intelligence” to “Faster/Smarter.”

In the Claude Code v2.1.154 release notes, Anthropic explicitly says: Opus 4.8 runs at effort=high by default — this is the new standard after the release. The standard used to be lower. The new xhigh level is available on top of that for the most demanding tasks, where the model spends more thinking tokens on every turn.

When to use xhigh:

  • Migrations (new architectural pattern → 50+ files).
  • Security audits (security review of 200+ endpoints).
  • Planned refactors with invariant checks.
  • Complex, long debugging sessions where the model needs to remember the whole path.

When NOT to use it:

  • Routine edits in one file (write a test, rename a method).
  • Simple prompts with a clear structure.
  • Documentation / comments — xhigh costs extra there.

In Claude Code v2.1.154, the effort slider was renamed from “Speed/Intelligence” to “Faster/Smarter.” The default /effort high is now applied under the hood; you do not need to switch it explicitly.

When should you use Fast Mode?

Key takeaway

Fast Mode on Opus 4.8 is still the same Opus in a high-speed configuration. It costs $10/$50 per million tokens (2× the standard price) and is up to 2.5× faster. It became 3 times cheaper: it was 6× the standard price on 4.6/4.7. Use it when responsiveness matters more than accuracy: live code review, fast iterations, a demo. Do NOT use it for long-horizon agentic work — the 2× price hurts the economics.

Prices:

ParameterValue
Input$10 per million tokens (2× the standard price)
Output$50 per million tokens (2× the standard price)
Speedup to 2.5× output tokens/sec
Activationspeed: "fast" in the API or a setting in Claude Code /config

When to use it:

  • Interactive tasks where response time matters more than accuracy (live code review on a stream).
  • Quick edits and testing hypotheses.
  • A demo / pitch to a client.

When NOT to use it:

  • Long-horizon agentic work — 2× the price on a 1M context hurts the economics.
  • A large Dynamic Workflow — Fast Mode doubles the applicable token rates, and usage accumulates across all launched agents. The 1000 total-launch limit is not a fixed 1000× task-cost multiplier; budget from actual aggregate input and output usage.
  • Background sessions where speed is not critical.

How do you switch to Opus 4.8 without losing settings?

Key takeaway

Four steps. Update Claude Code to v2.1.156 (not v2.1.154 — it has a bug with thinking blocks). Open /config and check that Opus 4.8 is available in the model list. On the Pro plan, also enable Dynamic Workflows in /config. Run a test on a simple task (one file, clear prompt). You do not need to migrate Skills or CLAUDE.md — they work automatically with any model.

Step 1. Update Claude Code

In the terminal:

claude upgrade

Or reinstall it using Anthropic’s documentation.

⚠️ The target version is v2.1.156 or later. v2.1.154 had a bug: when using Opus 4.8, thinking blocks were modified, which caused API errors. The bug was fixed in v2.1.156.

Check the version:

claude --version

Step 2. Switch the model in /config

In Claude Code:

/model claude-opus-4-8

Or open /config → Model section → select Opus 4.8 from the list. The model ID on the API endpoint is claude-opus-4-8.

Step 3. Enable Dynamic Workflows (Pro plan)

Dynamic Workflows are disabled by default on the Pro plan. Open /config → Workflows section → enable them. They are enabled from the start on Max, Team, and personal Enterprise. On Enterprise with an admin, they may be disabled by the admin; ask them to enable it.

Step 4. Run a test

In Claude Code, ask for a simple task with a clear result to make sure the model responds correctly:

Write a TypeScript function that splits an array into chunks of a fixed length.
Give me tests in vitest.

If the response is appropriate and the phrase “using claude-opus-4-8” appears at the beginning, the switch worked. If there is a 400 error, check your Claude Code version (go back to step 1).

What you do NOT need to migrate

Should you switch from Sonnet 4.6 or Haiku 4.5?

Key takeaway

Sonnet 4.6 is cheaper and faster, and is excellent for routine and medium-complexity work. Haiku 4.5 is almost free for CI/CD and automated tests. Opus 4.8 is for architectural decisions, migrations, and complex refactors. The matrix: routine = Sonnet, demanding task = Opus 4.8, CI and batch = Haiku. For most vibe coders, the sweet spot is Sonnet 4.6 as the default model plus Opus 4.8 for demanding tasks via the model switcher.

I already covered choosing between Sonnet and Opus in an older guide, but that was about 4.7. The rules shift a little with Opus 4.8.

Decision matrix for 2026:

TaskModelWhy
Routine edits, writing tests, refactoring in one fileSonnet 4.63 times cheaper, fast enough, sufficient quality
Architectural decision (how to lay out a project)Opus 4.8 @ xhighDemanding reasoning, context capacity, new honesty
Migration across 50+ filesOpus 4.8 + Dynamic WorkflowThis is where workflows make sense
Security auditOpus 4.8 + Dynamic WorkflowAdversarial agent-vs-agent checks
CI/CD, batch, automated testsHaiku 4.5Almost free, fast, sufficient quality

For most vibe coders, the sweet spot is Sonnet 4.6 as the default model, plus Opus 4.8 for demanding tasks through the /model switcher. That way, you pay less and still handle demanding tasks properly.

What does NOT work in Opus 4.8?

Key takeaway

Three known weaknesses. First — data-heavy strategy: practical reports say analysis and roadmap work is worse than with 4.7. Second — “the last 10%”: the model struggles to handle edge cases in existing codebases. Third — hallucinations remain, especially when context is insufficient. This does not cancel out the update, but it is important to know so you are not disappointed.

Three areas where Opus 4.8 falls short according to practical reports:

  1. Data-heavy strategy and roadmaps. Practical reports say 4.7 is still preferred for analysis. If your main use case is to build a metrics table and propose a roadmap, try 4.8 first; if it fails, go back to 4.7 using /model claude-opus-4-7.

  2. “The last 10%” in existing codebases. The model does greenfield work (a new project from scratch) very well, but struggles when maturing old code — edge cases and the specific quirks of the architecture. This is a typical weakness of reasoning models: they generate well but are poor at “finishing off” something that already exists.

  3. Hallucinations remain. “4× less likely to miss bugs” means that the model says “I don’t know” more often, but when context is insufficient, it can still produce a plausible fabrication. The protection is project context: the more complete CLAUDE.md is, the less room there is for hallucinations.

This does not mean “don’t update.” It means: understand the limitations and keep Sonnet 4.6 and Opus 4.7 in your back pocket as fallbacks.

What comes after Opus 4.8?

Key takeaway

In its May 2026 announcement, Anthropic hinted at “Mythos-class models in the coming weeks” — the next generation, expected in June 2026. So if you are choosing between “update now or wait,” the answer is: update, but do not invest in large migrations before Mythos is released. In practice: try Opus 4.8 on current projects; do not rebuild infrastructure around workflows before June.

In Anthropic’s phrasing, “coming weeks” usually means 4–8 weeks. In other words, a Mythos-class model will most likely come out in June–July 2026. This changes the strategy:

  • If your current projects use Sonnet 4.6 or Opus 4.7 — update to 4.8 and try xhigh and workflows on specific tasks. This is a free upgrade in terms of price.
  • If you planned a large migration using a workflow — do not rush. A model that can do it even better may come out in a month or two. You can start with an experiment on one module to understand how it works.
  • If you were going to rebuild your infrastructure around Dynamic Workflows — wait. Mythos may change the underlying patterns.

That uncertainty is the main advice: stay flexible. Opus 4.8 is a good incremental upgrade. Mythos may be a leap. Do not invest in major rework a month before a possible new model.

Continue exploring Ailoot at ailoot.ai.

More details

Questions about Opus 4.8 in Claude Code: What’s New, Pricing, and How to Switch in 2026

Can a Dynamic Workflow run 1000 agents at the same time?

No. The article’s runtime limit is up to 16 concurrent agents and up to 1000 total agent launches over one run. A large file set is processed across batches within the concurrency limit.

How should I estimate the cost of a large workflow?

Add input and output usage across the agents actually launched and apply the relevant token rates. Fast Mode doubles those applicable rates; neither the 16-concurrency limit nor the 1000-total limit is a fixed multiplier for the cost of a normal task.

All articles